/* ===================
   ROOT & GLOBAL STYLES
   =================== */
:root {
    --primary-color: #111;     /* Black for text and elegance */
    --border-color: #EAEAEA;   /* Light gray for borders */
    --light-bg-color: #F8F8F8; /* Very light gray for sections */
    --white-color: #FFFFFF;
    --text-color: #555;
    --text-color-light: #777;
    
    /* Using 'Inter' font for a clean, premium feel */
    --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-base);
    color: var(--text-color);
    background-color: var(--white-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    line-height: 1.3;
    font-weight: 500;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-color);
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.content-section {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--light-bg-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.text-center {
    text-align: center;
    margin-top: 3rem;
}

.text-center-max {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

.large-text {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #333;
    font-weight: 300;
    margin-bottom: 2rem;
}

/* ===================
   BUTTONS (ELEGANT)
   =================== */
.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 0.85rem 2.5rem;
    border-radius: 5px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #333;
    color: var(--white-color);
}

.cta-button-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.85rem 2.5rem;
    border-radius: 5px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.cta-button-outline:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* ===================
   HEADER & NAVIGATION
   =================== */

   .header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem; /* Space between logo and search */
}

.main-header {
    background: var(--white-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

/* Logo image sizing */
.logo-img,
.logo img {
    height: 100px; /* adjust as needed */
    width: auto;
    display: block;
}

/* Visually hidden (for accessible labels) */
.sr-only {
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
    border: 0;
    padding: 0; margin: -1px;
}

/* Header search (placed between nav and icons) */
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem; /* Adjust space between search and icons */
}

.header-search {
    position: relative;
}

.header-search input[type="search"] {
    padding: 0.45rem 2.5rem 0.45rem 0.8rem; /* Right padding for the button */
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 300px; /* Slightly smaller width */
    background: transparent;
    font-size: 0.95rem;
    color: var(--text-color);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.header-search input[type="search"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(17,17,17,0.03);
}

.header-search .search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 6px;
    margin: 0;
    cursor: pointer;
    color: var(--primary-color);
}

.header-search .search-btn svg {
    display: block;
}

/* Small screens: reduce search width and hide if needed */
@media (max-width: 780px) {
    .header-search input[type="search"] { min-width: 120px; }
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav ul li {
    position: relative; /* Essential for dropdown positioning */
    margin: 0 0.75rem;
}

.main-nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 1.5rem 0;
    text-decoration: none;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--primary-color);
}
.main-nav {
    flex-grow: 1; /* This is the new line */
}



/* --- Navigation Dropdown --- */
.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--white-color);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    min-width: 220px;
    max-width: 300px; /* NEW: Prevents dropdown from getting too wide */
    border-radius: 5px;
    padding: 0.5rem 0;
    z-index: 1001;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;

    /* --- FIX FOR VERTICAL ALIGNMENT --- */
    display: flex;
    flex-direction: column; /* This is the main fix! */
}

.main-nav ul li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.dropdown li {
    margin: 0;
    width: 100%; /* NEW: Ensures li takes full width */
}

.dropdown li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-color);
    font-weight: 400;
    white-space: normal;
    line-height: 1.4;
    width: 100%;
    
    /* --- NEW --- */
    text-align: center; /* This centers the text */
    transition: background-color 0.2s ease, color 0.2s ease; /* This makes the hover effect smooth */
}

.dropdown li a:hover {
    background: var(--light-bg-color); /* This is the highlight */
    color: var(--primary-color);      /* This changes the text color on highlight */
}


/* ===================
   HERO SLIDER
   =================== */
.hero-slider {
    position: relative; /* Essential for positioning content and arrows */
    height: 80vh;
    width: 100%;
    overflow: hidden; /* Hides the other slides */
}

.slider-wrapper {
    display: flex;
    width: 700%; /* Total width for 5 slides (5 * 100%) */
    height: 100%;
    transition: transform 0.7s ease-in-out; /* Slide animation */
}

.slide {
    width: 20%; /* Each slide is 1/5 of the wrapper */
    height: 100%;
    background-size: cover;
    background-position: center;
    /* Dark overlay for text readability */
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0);
}

/* --- Slider Arrow Buttons --- */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    
    /* Transparent Style */
    background-color: rgba(0, 0, 0, 0.25);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.slider-btn:hover {
    background-color: rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 1);
}

.prev-btn {
    left: 2rem;
}

.next-btn {
    right: 2rem;
}

/* ===================
   FEATURED SERVICES
   =================== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-item {
    background: var(--white-color);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 5px;
}

.service-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-item p {
    color: var(--text-color-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.learn-more {
    font-weight: 500;
    font-size: 0.9rem;
}

/* ===================
   PORTFOLIO PREVIEW
   =================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.portfolio-item a {
    display: block;
    color: var(--text-color);
}

.portfolio-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    transition: opacity 0.3s ease;
}

.portfolio-item a:hover img {
    opacity: 0.85;
}

.portfolio-info h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.portfolio-info p {
    font-size: 0.95rem;
    color: var(--text-color-light);
    margin: 0;
}


/* ===================
   FOOTER
   =================== */
.main-footer {
    background: var(--white-color);
    border-top: 1px solid var(--border-color);
    padding-top: 4rem;
    color: var(--text-color-light);
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-col h4 {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    color: var(--text-color);
}

.footer-col ul li a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/* ===================
   SOCIAL ICONS (NEW)
   =================== */
.social-icons {
    display: flex;
    align-items: center;
    gap: 1.25rem; /* Space between icons */
    margin-top: 1.25rem;
}

.social-icons a {
    color: var(--text-color);
}

.social-icons a:hover {
    color: var(--primary-color);
    opacity: 0.8;
}

.social-icons svg {
    width: 20px;
    height: 20px;
}

/* ===================
   ABOUT US PAGE STYLES
   =================== */

/* --- Simple Page Header --- */
.page-header {
    background-color: var(--light-bg-color);
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* --- Team Grid --- */
.team-grid {
    /* --- CHANGES START HERE --- */
    display: flex;         /* Use Flexbox */
    justify-content: center; /* Center the items horizontally */
    flex-wrap: wrap;       /* Allow items to wrap on small screens */
    gap: 15rem;           /* Adjust this gap value (e.g., 3rem, 4rem) to control spacing */
    text-align: center; /* Keep this from the old rule */
}

.team-member img {
    width: 100%;
    max-width: 250px; /* Keeps image from being too large */
    height: 250px;
    object-fit: cover; /* Ensures image is not distorted */
    border-radius: 50%; /* Elegant circular portraits */
    margin-bottom: 1rem; /* reduced spacing under image */
    border: 1px solid var(--border-color);
}

.team-member h3 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.team-member p {
    font-size: 0.95rem;
    color: var(--text-color-light);
    margin: 0;
}

/* ===================
   GALLERY PAGE STYLES
   =================== */

/* --- Update Page Header for Subtext --- */
.page-header p {
    font-size: 1.15rem;
    color: var(--text-color-light);
    font-weight: 300;
    margin-top: 0.5rem;
}

/* --- Filter Bar --- */
.filter-bar {
    border-bottom: 1px solid var(--border-color);
    background: var(--white-color);
    padding: 1rem 0;
    position: sticky; /* Makes the filter bar stick on scroll */
    top: 72px; /* Height of your header */
    z-index: 900;
}

.filter-bar .container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.6rem 1.25rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: var(--light-bg-color);
    border-color: #ccc;
}

.filter-btn.active {
    background: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

/* --- Gallery Grid --- */
.gallery-grid {
    display: grid;
    /* Responsive 3-column grid */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    aspect-ratio: 1 / 1; /* Makes all items perfectly square */
}

.gallery-item .gallery-link {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents image stretching */
    transition: transform 0.4s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: var(--white-color);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-overlay h3 {
    color: var(--white-color);
    font-size: 1.2rem;
    transform: translateY(15px);
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay h3 {
    transform: translateY(0);
}

/* ===================
   SERVICES PAGE STYLES
   =================== */

.services-list-grid {
    display: grid;
    /* 2 columns on desktop, 1 on mobile */
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem; /* A bit more space */
}

.service-list-item {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: var(--white-color);
    display: flex;
    flex-direction: column; /* Stacks content vertically */
}

.service-list-item img {
    width: 100%;
    height: 250px; /* Fixed height for all images */
    object-fit: cover;
    border-radius: 5px 5px 0 0; /* Rounded corners only at the top */
    border-bottom: 1px solid var(--border-color);
}

.service-list-item h3 {
    font-size: 1.5rem;
    font-weight: 500;
    padding: 1.5rem 2rem 0.5rem 2rem; /* Add padding */
}

.service-list-item p {
    font-size: 1rem;
    color: var(--text-color);
    padding: 0 2rem 1.5rem 2rem;
    flex-grow: 1; /* This makes the <p> tag fill available space */
}

.service-list-item .cta-button-outline {
    margin: 0 2rem 1.5rem 2rem; /* Add margins */
    text-align: center;
}

/* ===================
   SHOP PAGE STYLES
   =================== */

.shop-grid {
    display: grid;
    /* Responsive 3-column grid, min 280px wide */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.shop-item {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: var(--white-color);
    display: flex;
    flex-direction: column; /* Stacks image, content */
    transition: box-shadow 0.3s ease;
}

.shop-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
}

.item-image-link {
    display: block;
    aspect-ratio: 1 / 1; /* Square images */
    border-bottom: 1px solid var(--border-color);
    overflow: hidden; /* For zoom effect */
    border-radius: 5px 5px 0 0;
}

.item-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.shop-item:hover .item-image-link img {
    transform: scale(1.05); /* Subtle zoom on hover */
}

.item-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* This makes the content fill the space */
}

.item-type {
    font-size: 0.85rem;
    color: var(--text-color-light);
    margin-bottom: 0.25rem;
}

.item-content h3 {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.item-price {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.item-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-top: auto; /* This pushes buttons to the bottom */
}

.item-actions .cta-button-outline {
    flex-grow: 1; /* Button fills available space */
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}



/* ===================
   SORT BY DROPDOWN STYLES
   =================== */

/* Update filter bar to position sort dropdown */
.filter-bar .container {
    display: flex;
    justify-content: space-between; /* Pushes filters and sort apart */
    align-items: center;
    flex-wrap: wrap; /* Allows stacking on small screens */
    gap: 1rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Sort dropdown container */
.sort-container {
    position: relative;
}

.sort-select {
    /* --- Custom Appearance --- */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    
    /* --- Sizing and Spacing --- */
    padding: 0.6rem 2.5rem 0.6rem 1.25rem; /* Space for text and arrow */
    
    /* --- Elegant Styling --- */
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-color);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-family-base);
    transition: all 0.2s ease;
}

.sort-select:hover {
    background: var(--light-bg-color);
    border-color: #ccc;
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(17,17,17,0.05);
}

/* --- Custom Arrow --- */
.sort-container::after {
    content: '▼';
    font-size: 0.6rem;
    color: var(--text-color-light);
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; /* Lets clicks pass through to the select */
}

/* ===================
   CONTACT PAGE STYLES
   =================== */

/* Main Layout for the Contact Page */
.contact-layout {
    display: grid;
    /* 2-column grid, ~55% for form, ~45% for details */
    grid-template-columns: 1.2fr 1fr; 
    gap: 4rem; /* Space between columns */
    align-items: flex-start; /* Align content to the top */
    padding-top: 2rem; /* Add some space if page-header is hidden */
}

/* Style for the section titles (Send a Message, Contact Details) */
.contact-title-light {
    font-size: 2rem; 
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--primary-color);
}

/* --- Form Styles --- */
.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem; /* Match reference image style */
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"], /* Added phone type */
.contact-form textarea {
    width: 100%;
    padding: 0.85rem 1rem; /* Standard padding */
    border: 1px solid var(--border-color); /* Use theme border color */
    border-radius: 5px; /* Standard border radius */
    font-size: 1rem;
    font-family: var(--font-family-base);
    color: var(--text-color); /* Use theme text color */
    background-color: var(--white-color); /* Use theme background */
    transition: all 0.2s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color); /* Highlight border on focus */
    box-shadow: 0 0 0 3px rgba(17,17,17,0.05); /* Subtle focus shadow */
}

.contact-form textarea {
    resize: vertical; /* Allow vertical resizing only */
}

.contact-form .cta-button {
    /* Use standard button styles */
    background-color: var(--primary-color);
    color: var(--white-color);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.85rem 2.5rem;
    width: auto; /* Don't force full width unless needed */
    cursor: pointer;
}

.contact-form .cta-button:hover {
    background-color: #333; /* Darker hover */
}

/* --- Contact Details Section --- */
.contact-details-container {
    /* Container for the right column */
}

.contact-details-list {
    list-style: none;
    margin-bottom: 2rem; /* Space below the list */
}

.contact-details-list li {
    display: flex; /* Align icon and text */
    align-items: center;
    gap: 1rem; /* Space between icon and text */
    font-size: 1rem; /* Match reference image */
    font-weight: 500;
    margin-bottom: 1.5rem; /* Space between list items */
}

.contact-details-list li .icon {
    color: var(--primary-color); /* Use theme color for icons */
    flex-shrink: 0; /* Prevent icon shrinking */
}

.contact-details-list li a,
.contact-details-list li span { /* Span for non-link items like address */
    color: var(--text-color);
    text-decoration: none;
}
.contact-details-list li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* --- Business Hours Section --- */
.business-hours {
    margin-top: 3rem; /* Space above */
    padding-top: 2rem; /* Space below the list */
    border-top: 1px solid var(--border-color); /* Separator line */
}

.business-hours h3 {
    font-size: 1.25rem; /* Slightly larger title */
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.business-hours p {
    font-size: 1rem;
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
}

/* --- Responsive layout for smaller screens --- */
@media (max-width: 900px) {
    .contact-layout {
        /* Stack columns on top of each other */
        grid-template-columns: 1fr; 
        gap: 3rem; /* Reduce gap */
    }
    .contact-title-light {
        /* Optional: Center titles on mobile */
        /* text-align: center; */
    }
}

/* ===================
   POP-UP MESSAGE STYLES
   =================== */

.popup {
    position: fixed; /* Stays in place even when scrolling */
    bottom: 30px;    /* Position from the bottom */
    left: 50%;       /* Center horizontally */
    transform: translateX(-50%) translateY(100px); /* Start off-screen */
    
    background-color: var(--primary-color); /* Use theme's primary dark color */
    color: var(--white-color); /* White text */
    padding: 1rem 1.5rem;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 1002; /* Ensure it's above other content */
    
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s ease, opacity 0.4s ease, visibility 0.4s ease;
}

.popup p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
}

/* --- Style for showing the popup --- */
.popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0); /* Slide into view */
}

/* --- Optional: Error style --- */
.popup.error {
    background-color: #c00; /* Red for errors */
}


/* ===================
   CAREER PAGE STYLES
   =================== */

.job-listings {
    width: 100%;
    border-top: 1px solid var(--border-color);
}

.job-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; /* For small screens */
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.job-item-details h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.job-item-details p {
    font-size: 1rem;
    color: var(--text-color-light);
    margin: 0;
}

.job-item .cta-button-outline {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

/* Responsive for job item */
@media (max-width: 600px) {
    .job-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .job-item-details {
        margin-bottom: 1rem;
    }
    .job-item .cta-button-outline {
        width: 100%;
        text-align: center;
    }
}

.benefits-grid {
    display: grid;
    /* Creates 3 columns on desktop, 1 on mobile */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem; /* Adds space below the title */
}

.benefit-item {
    background: var(--white-color);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: 5px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-item:hover {
    /* Add a subtle lift effect on hover */
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.benefit-item svg {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.benefit-item h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.benefit-item p {
    font-size: 0.95rem;
    color: var(--text-color-light);
    line-height: 1.6;
    margin: 0;
}

