:root {
    --primary-color: #007bff; /* A clean blue for professionalism */
    --secondary-color: #6c757d; /* A subtle gray for secondary text */
    --accent-color: #28a745; /* A green for success/calls-to-action */
    --bg-light: #f8f9fa; /* Light background for sections */
    --bg-white: #ffffff; /* White background for main content */
    --text-dark: #343a40; /* Dark text for readability */
    --shadow: rgba(0, 0, 0, 0.1);
    --font-family: 'Poppins', sans-serif;
    --header-height: 70px; /* IMPORTANT: This is the height of your header. Adjust if different! */
    --border-color: #eee; /* Added for consistency */
}

body.dark-mode {
    --primary-color: #0084ff;
    --secondary-color: #a0a0a0;
    --accent-color: #2fbc4f;
    --bg-light: #121212;
    --bg-white: #1e1e1e;
    --text-dark: #f1f1f1;
    --shadow: rgba(255, 255, 255, 0.05);
    --border-color: #333; /* Ensuring this is always defined */
}

/* --- Dark Mode Specific Styles (Ensures elements change color) --- */
body.dark-mode .header {
    background-color: var(--dark-bg-color, #1e1e1e);
    box-shadow: 0 2px 5px var(--dark-shadow, rgba(255, 255, 255, 0.05));
}
body.dark-mode .nav { /* Mobile overlay menu */
    background-color: var(--dark-bg-color, #1e1e1e);
    box-shadow: 0 4px 8px var(--dark-shadow, rgba(255, 255, 255, 0.05));
    border-top-color: var(--dark-border-color, #444);
}
body.dark-mode .menu-toggle .hamburger,
body.dark-mode .menu-toggle .hamburger::before,
body.dark-mode .menu-toggle .hamburger::after {
    background-color: var(--dark-text-color, #f1f1f1);
}
body.dark-mode .logo {
    color: var(--primary-color); /* Logo color changes with primary color */
}
body.dark-mode .nav a {
    color: var(--dark-text-color, #f1f1f1);
    border-bottom-color: var(--dark-border-color, #444);
}
body.dark-mode .nav a:hover {
    background-color: rgba(255, 255, 255, 0.05); /* Light hover for dark mode mobile */
}
body.dark-mode .nav .theme-switch-wrapper {
    border-top-color: var(--dark-border-color, #444);
}
body.dark-mode .slider {
    background-color: #555; /* Dark mode slider track background */
}
body.dark-mode input:checked + .slider {
    background-color: #767676; /* Dark mode slider track checked background */
}
body.dark-mode .slider:before {
    background-color: #eee; /* Dark mode slider thumb */
}


body {
    font-family: var(--font-family);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0; /* Adjusted to 2rem 0 for padding within sections, header container has its own padding */
}


/* --- Header Structure & Positioning --- */
.header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 5px var(--shadow);
    position: sticky; /* Makes header stick to the top */
    top: 0;
    width: 100%;
    z-index: 100; /* Ensures header is above other content */
    height: var(--header-height); /* Uses the variable for consistent height */
    display: flex; /* Enables flexbox for inner container */
    align-items: center; /* Vertically centers content inside the header */
}

.header .container {
    display: flex;
    justify-content: space-between; /* Pushes logo to left, nav & toggle to right */
    align-items: center; /* Vertically centers items within the container */
    width: 100%; /* Take full width of header */
    max-width: 1200px; /* Your defined max-width */
    margin: 0 auto; /* Center the container */
    padding: 0 20px; /* Horizontal padding */
}

.logo {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-color); /* Uses your primary color */
    text-decoration: none;
    z-index: 101; /* Higher z-index to be above mobile menu when open */
}


/* --- Mobile Menu Toggle (Hamburger) Styles --- */
.menu-toggle {
    display: flex; /* SHOWS hamburger by default on mobile */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px; /* Adjusted for 3 bars + 2 gaps */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 101; /* Above mobile menu */
}

.menu-toggle .hamburger {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-dark); /* Uses your text color */
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-dark); /* Uses your text color */
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.menu-toggle .hamburger::before {
    top: 0;
}

.menu-toggle .hamburger::after {
    bottom: 0;
}

/* Hamburger active state (turns into X) */
.menu-toggle.is-active .hamburger {
    background-color: transparent; /* Middle bar disappears */
}

.menu-toggle.is-active .hamburger::before {
    transform: rotate(45deg);
    top: 9.5px; /* Adjusted for precise centering */
    background-color: var(--text-dark); /* Ensure it stays visible for rotation */
}

.menu-toggle.is-active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 9.5px; /* Adjusted for precise centering */
    background-color: var(--text-dark); /* Ensure it stays visible for rotation */
}


/* --- Main Navigation Styles (Mobile Default) --- */
.nav {
    display: none; /* Hides the navigation by default on mobile */
    flex-direction: column; /* Stacks navigation items vertically */
    width: 100%;
    position: fixed; /* Changed to fixed to allow scrolling independently of main content */
    top: var(--header-height); /* Starts right below the header */
    left: 0;
    background-color: var(--bg-white);
    box-shadow: 0 4px 8px var(--shadow);
    z-index: 99; /* Below logo and hamburger */
    border-top: 1px solid var(--border-color); /* Uses your border color */
    padding: 20px 0; /* Vertical padding inside the mobile menu */
    height: calc(100vh - var(--header-height)); /* Full screen height minus header */
    overflow-y: auto; /* Adds scrollbar if menu content is too long */
    transform: translateY(-100%); /* Starts hidden (pushed up outside view) */
    transition: transform 0.3s ease-out; /* Smooth slide-in/out */
}

.nav.is-open {
    display: flex; /* SHOWS the navigation when 'is-open' class is added by JavaScript */
    transform: translateY(0); /* Slides the menu into view */
}

/* Add this to prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}


.nav a {
    display: block; /* Each link takes full width for easy tapping */
    padding: 15px 20px; /* Padding for mobile links */
    color: var(--text-dark); /* Uses your text color */
    text-decoration: none;
    font-size: 1.1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color); /* Separator line between links */
    transition: background-color 0.2s ease;
}

/* Target the last navigation link (NOT the theme switch) to remove its bottom border */
.nav a:nth-last-child(2) {
    border-bottom: none;
}

.nav a:hover {
    background-color: rgba(0, 0, 0, 0.05); /* Light hover effect for mobile links */
}

/* --- Theme Switch Wrapper within Mobile Nav --- */
.nav .theme-switch-wrapper {
    display: flex; /* Ensures the wrapper is displayed */
    justify-content: center; /* Centers the switch horizontally */
    align-items: center; /* Vertically aligns items inside wrapper */
    margin-top: 20px; /* Space from links above */
    padding-top: 15px; /* Add some internal padding */
    border-top: 1px solid var(--border-color); /* Optional separator above the switch */
}

/* --- Specific Styles for the Dark Mode Switch (Slider) - MOVED GLOBALLY --- */
/* These are the styles that make the actual toggle switch look like a switch. */
/* They are OUTSIDE of any media query so they apply to both mobile and desktop. */
.theme-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

/* Hide default HTML checkbox */
.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider (the track) */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

/* The slider before (the thumb/circle) */
.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

/* Change background color when checked */
input:checked + .slider {
    background-color: var(--primary-color);
}

/* Focus state */
input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-color);
}

/* Move thumb when checked */
input:checked + .slider:before {
    transform: translateX(24px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}


/* --- DESKTOP STYLES (Applies when screen is 769px or wider) --- */
@media (min-width: 769px) {
    .menu-toggle {
        display: none; /* HIDES the hamburger menu on desktop */
    }

    .nav {
        display: flex; /* SHOWS the navigation horizontally on desktop */
        flex-direction: row; /* Arranges navigation items horizontally */
        position: static; /* Removes absolute positioning from mobile */
        width: auto; /* Auto width based on content */
        height: auto; /* Auto height based on content */
        background-color: transparent; /* Removes mobile background */
        box-shadow: none; /* Removes mobile shadow */
        z-index: auto; /* Resets z-index */
        border-top: none; /* Removes border */
        padding: 0; /* Removes mobile padding */
        overflow-y: visible; /* Allows content to overflow if needed */
        transform: none; /* Resets any transform from mobile animation */
        transition: none; /* Disables transitions for desktop (no animation when resizing) */
    }

    /* Remove body.menu-open overflow hidden on desktop */
    body.menu-open {
        overflow: auto; /* Or initial */
    }

    .nav a {
        display: inline-block; /* Displays links side-by-side */
        padding: 0 15px; /* Adds spacing between links */
        border-bottom: none; /* No border for desktop links */
        font-size: 1rem; /* Adjust font size for desktop links */
        margin-left: 0; /* Reset margin-left from mobile */
        text-align: left;
    }
    .nav a:hover {
        background-color: transparent; /* No background on hover for desktop */
        color: var(--primary-color); /* Uses your primary color for hover */
    }

    /* --- Theme Switch Wrapper within Desktop Nav --- */
    .nav .theme-switch-wrapper {
        display: flex; /* Ensures it's displayed on desktop */
        align-items: center; /* Vertically aligns the switch components */
        margin-left: 20px; /* Adds space between the last nav link and the switch */
        margin-top: 0; /* Removes any top margin from mobile */
        padding: 0; /* Removes any padding from mobile */
        border-top: none; /* Removes any top border from mobile */
    }
}

/* Hero Section */
.hero {
    background-color: var(--bg-white);
    padding: 6rem 0;
}
.hero .container {
    display: flex;
    align-items: center;
    gap: 2rem; /* REDUCED: A smaller gap for better flexibility on intermediate screen sizes */
    flex-wrap: wrap; /* ADDED: Allows items to wrap to the next line if space is tight, even before the 768px breakpoint */
}
.hero-content {
    flex: 1;
}
.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.tagline {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}
.cta-button {
    background-color: var(--primary-color);
    color: #fff;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    transition: background-color 0.3s ease;
}
.cta-button:hover {
    background-color: #0056b3;
}
.hero-image {
    flex: 1.5; /* CHANGED: Gives this item 1.5 times more space than its sibling (.hero-content) */
    text-align: right;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    /* ADDED: Set a fixed height for the image container to control its vertical space. Adjust 480px as needed! */
    height: 480px; /* IMPORTANT: Adjust this value (e.g., 400px, 550px) to control image height. */
    display: flex; /* Makes the container a flexbox */
    align-items: center; /* Vertically centers the image inside this container */
    justify-content: center; /* Horizontally centers the image inside this container */
}
.hero-image img {
    width: 100%; /* Ensures image fills container's width */
    height: 100%; /* Ensures image fills container's height */
    object-fit: cover; /* CHANGED: This will make the image cover the entire container area. It might crop parts of the image if its aspect ratio doesn't match the container's. */
    border-radius: 10px;
    box-shadow: 0 8px 16px var(--shadow);
    transition: transform 0.5s ease-out, box-shadow 0.5s ease-out, filter 0.5s ease-out;
    display: block;
    filter: saturate(1);
    /* REMOVED: max-width: 100%; height: auto; max-height: 500px; object-fit: contain; */
}

.hero-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}
/* NEW: About Page Hero Section */
.about-hero {
    background: linear-gradient(135deg, var(--primary-color), #0056b3); /* A rich blue gradient */
    color: #fff;
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden; /* For potential background effects */
}

.about-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transform: rotate(45deg);
    z-index: 0;
}

.about-hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    transform: rotate(-30deg);
    z-index: 0;
}

.about-hero .container {
    position: relative; /* Bring content above pseudo-elements */
    z-index: 1;
}

.about-hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.about-hero-content .tagline {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    color: rgba(255,255,255,0.9);
}

/* NEW: Our Story Section */
.story-section {
    background-color: var(--bg-white);
    padding: 5rem 0;
    text-align: center;
}

.story-section h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.story-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.story-section h3 { /* Style for "Yesterday's Efoyta" and "Today's Efoyta" headings */
    font-size: 2rem;
    color: var(--text-dark);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.story-section p {
    max-width: 900px;
    margin: 0 auto 1.5rem auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    text-align: justify; /* Justify text for a more formal look */
}

.story-section p:last-of-type { /* Remove bottom margin for the last paragraph in a sequence */
    margin-bottom: 0;
}

.story-section p.amharic-text {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--secondary-color);
    color: var(--secondary-color);
    font-style: italic;
    text-align: center; /* Center Amharic text if preferred, or leave justified */
}

.story-section p.amharic-text .amharic-heading {
    display: block;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-style: normal;
}

.current-efoyta-list {
    list-style: none; /* Remove default bullet points */
    padding: 0;
    margin: 2rem auto; /* Center the list */
    max-width: 600px;
    text-align: left; /* Align list items to the left */
}

.current-efoyta-list li {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
    position: relative;
    padding-left: 25px; /* Space for custom bullet */
}

.current-efoyta-list li::before {
    content: '•'; /* Custom bullet point */
    color: var(--primary-color); /* Bullet color */
    font-weight: bold;
    position: absolute;
    left: 0;
}

.current-efoyta-list li strong {
    color: var(--accent-color); /* Highlight numbers */
}


/* NEW: Photo Gallery Section - ENHANCED STYLES */
.gallery-section {
    background-color: var(--bg-light);
    padding: 5rem 0;
    text-align: center;
    overflow: hidden; /* Important for animations */
}

.gallery-section h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.gallery-intro {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
    gap: 2rem; /* Increased space between images for better presentation */
    margin-top: 2rem;
    padding: 0 1rem; /* Add slight padding on sides for smaller screens */
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px; /* Slightly more rounded corners */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); /* Stronger initial shadow */
    cursor: zoom-in;
    transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease; /* All transitions in one place */
    /* Animation for initial load */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlideUp 0.8s ease forwards;
}

/* Stagger the animation */
.photo-gallery .gallery-item:nth-child(1) { animation-delay: 0.1s; }
.photo-gallery .gallery-item:nth-child(2) { animation-delay: 0.2s; }
.photo-gallery .gallery-item:nth-child(3) { animation-delay: 0.3s; }
.photo-gallery .gallery-item:nth-child(4) { animation-delay: 0.4s; }
.photo-gallery .gallery-item:nth-child(5) { animation-delay: 0.5s; }
.photo-gallery .gallery-item:nth-child(6) { animation-delay: 0.6s; }
/* Add more if you have more images (e.g., .photo-gallery .gallery-item:nth-child(7) { animation-delay: 0.7s; }) */

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.gallery-item:hover {
    transform: translateY(-8px) scale(1.03) rotateZ(1deg); /* Lift, slightly enlarge, and rotate */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25); /* Even stronger shadow on hover */
    border: 2px solid var(--accent-color); /* Add a subtle accent border on hover */
}

.gallery-item img {
    width: 100%;
    height: 250px; /* Fixed height for consistent grid rows */
    object-fit: cover; /* Cover ensures image fills the space */
    display: block;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1); /* More pronounced zoom */
    filter: brightness(0.6); /* Darken image more on hover */
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0)); /* Darker gradient */
    color: #fff;
    padding: 20px; /* More padding */
    font-size: 1.2rem; /* Larger font */
    font-weight: 700; /* Bolder font */
    text-align: center;
    transform: translateY(100%); /* Start hidden */
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease; /* Smoother, bouncier transition */
    opacity: 0;
    pointer-events: none;
}

.gallery-item:hover .overlay {
    transform: translateY(0); /* Slide up on hover */
    opacity: 1;
}

/* Lightbox Styles (for when an image is clicked) */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    visibility: hidden; /* Hidden by default */
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s; /* Transition out */
}

.lightbox.active {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease, visibility 0s linear 0s; /* Transition in */
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    line-height: 1;
    transition: color 0.3s ease;
    z-index: 2001; /* Above image */
}

.lightbox-close:hover {
    color: var(--primary-color);
}
/* About Section */
.about-section {
    background-color: var(--bg-white);
    padding: 4rem 0;
    text-align: center;
}
.about-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}
.about-section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

/* Services Section */
.services-section {
    padding: 4rem 0;
    text-align: center;
}
.services-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.service-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px var(--shadow);
    transition: transform 0.3s ease;
}
.service-card:hover {
    transform: translateY(-10px);
}
.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Why Us Section */
.why-us-section {
    background-color: var(--bg-white);
    padding: 4rem 0;
}
.why-us-section .container {
    display: flex;
    align-items: center;
    gap: 4rem;
}
.why-us-content {
    flex: 1;
}
.why-us-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}
.reasons-list {
    list-style-type: none;
    padding-left: 0;
}
.reasons-list li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 25px;
}
.reasons-list li::before {
    content: '✓';
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}
.why-us-image {
    flex: 1;
    text-align: right;
    position: relative; /* ADDED: For positioning the overlay */
    overflow: hidden; /* ADDED: To contain elements that might extend beyond */
    cursor: pointer; /* ADDED: Indicates interactivity */
}
.why-us-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 16px var(--shadow);
    /* NEW FANCY PROPERTIES START */
    transition: transform 0.5s ease-out, box-shadow 0.5s ease-out, filter 0.5s ease-out; /* Adjusted transition for smoother effect */
    display: block; /* Ensures consistent behavior */
    filter: saturate(1); /* Initial state for saturation */
    /* NEW FANCY PROPERTIES END */
}

.why-us-image:hover img { /* Note: Hover on the PARENT container for combined effect */
    transform: scale(1.05) translateY(-5px); /* Larger zoom and lift effect */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); /* Much more pronounced shadow */
    filter: saturate(1.15); /* Slightly more vibrant */
}
/* --- Combined Fancy Image Overlay Effects --- */

.hero-image::before,
.why-us-image::before { /* TARGETING BOTH AT ONCE */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 123, 255, 0.2), rgba(40, 167, 69, 0.2)); /* Using primary & accent colors */
    border-radius: 10px; /* Match image border-radius */
    opacity: 0; /* Hidden initially */
    transition: opacity 0.5s ease-out; /* Smooth transition for appearance */
    pointer-events: none; /* Allows clicks to pass through to the image */
    z-index: 1; /* Place above the image but below any potential captions */
}

.hero-image:hover::before,
.why-us-image:hover::before { /* TARGETING HOVER FOR BOTH */
    opacity: 1; /* Shows on hover */
}

/* Ensure images are above the pseudo-element for filters to apply correctly */
/* This part should stay at the very end of this combined block or near it */
.hero-image img,
.why-us-image img {
    z-index: 2; /* Place image above the pseudo-element */
    position: relative; /* Needed for z-index to take effect */
}

/* Call to Action Section */
.cta-section {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 4rem 0;
}
.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
.cta-button.large {
    background-color: var(--accent-color);
    font-size: 1.2rem;
    padding: 16px 32px;
}
.cta-button.large:hover {
    background-color: #218838;
}

/* Footer */
.footer {
    background-color: var(--bg-white);
    padding: 2rem 0;
    border-top: 1px solid var(--border-color); /* Uses variable */
    color: var(--secondary-color);
}
.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}
.footer-contact {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}
.footer-hours {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-hours h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.footer-hours p {
    margin: 0;
    color: var(--secondary-color);
}
.footer-company ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-company ul li {
    margin-bottom: 0.5rem;
}

.footer-company ul li a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-company ul li a:hover {
    color: var(--primary-color);
}

.footer .container h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    margin-top: 0;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact-item:hover {
    color: var(--primary-color);
}
.copyright {
    margin: 0;
    text-align: right;
}

/* --- News Page Specific Styles --- */

/* News Hero Section */
.news-hero {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color)); /* A blend of colors */
    color: #fff;
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.news-hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.news-hero-content .tagline {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    color: rgba(255,255,255,0.95);
}

/* General Section Styling for News Page */
.info-section, .bids-section, .vacancy-section {
    padding: 5rem 0;
    text-align: center;
    background-color: var(--bg-white);
}

.info-section h2, .bids-section h2, .vacancy-section h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.info-section h2::after, .bids-section h2::after, .vacancy-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 80px; /* Slightly wider underline */
    height: 5px; /* Thicker underline */
    background-color: var(--accent-color);
    border-radius: 3px;
}

.section-intro {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    color: var(--text-dark);
    line-height: 1.6;
}

/* News Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.news-card {
    background-color: var(--bg-light);
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    padding: 2.5rem;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.news-card .card-header {
    margin-bottom: 1rem;
}

.news-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.news-card .news-date {
    font-size: 0.95rem;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 1rem;
}

.news-card .news-date i {
    margin-right: 5px;
    color: var(--accent-color);
}

.news-card p {
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.news-card .read-more-btn {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.news-card .read-more-btn:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.news-card .read-more-btn i {
    margin-left: 8px;
    font-size: 0.9rem;
}

/* Bids Section */
.bids-section {
    background-color: var(--bg-light);
    padding: 5rem 0;
}

.bids-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.bid-item {
    background-color: var(--bg-white);
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    padding: 2.5rem;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Push button to bottom */
}

.bid-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.bid-item .bid-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    width: 100%; /* Center the icon above text */
}

.bid-item h3 {
    font-size: 1.9rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.bid-item p {
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Allow content to grow */
}

.bid-item .bid-details {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: var(--secondary-color);
    line-height: 1.8;
}

.bid-item .bid-details span {
    display: block; /* Each detail on new line */
}

.bid-item .bid-details i {
    margin-right: 8px;
    color: var(--accent-color);
}

.btn-outline {
    display: inline-block;
    padding: 12px 25px;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto; /* Push button to bottom */
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.more-link {
    margin-top: 4rem;
}

/* Vacancy Section - The Fancy Part! */
.vacancy-section {
    background: linear-gradient(180deg, var(--bg-white), var(--bg-light)); /* Subtle gradient background */
    padding: 6rem 0;
}

.vacancy-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 3.2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.vacancy-section h2::after {
    width: 100px; /* Wider underline for this prominent heading */
    background-color: var(--accent-color);
}

.vacancy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Larger min-width for cards */
    gap: 3rem; /* Generous space between cards */
    margin-top: 3rem;
    padding: 0 1rem;
}

.vacancy-card {
    background-color: var(--bg-white);
    border-radius: 20px; /* More rounded */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1); /* Deeper shadow */
    overflow: hidden; /* Important for image */
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease; /* Bouncier transform */
    border: 1px solid rgba(0,0,0,0.08); /* Subtle border */
}

.vacancy-card:hover {
    transform: translateY(-12px) scale(1.01); /* Lift more, slight scale */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2); /* Even more pronounced shadow */
}

.vacancy-image-wrapper {
    width: 100%;
    height: 220px; /* Fixed height for image */
    overflow: hidden;
    position: relative;
    background-color: var(--bg-light); /* Fallback/loading background */
}

.vacancy-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover ensures image fills the space */
    display: block;
    transition: transform 0.5s ease;
}

.vacancy-card:hover .vacancy-image-wrapper img {
    transform: scale(1.08); /* Zoom image on card hover */
}

.vacancy-content {
    padding: 2.5rem;
    flex-grow: 1; /* Allows content to push button down */
    display: flex;
    flex-direction: column;
}

.vacancy-content h3 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.vacancy-content .location,
.vacancy-content .deadline {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
    display: block;
}

.vacancy-content .location i,
.vacancy-content .deadline i {
    margin-right: 8px;
    color: var(--accent-color);
}

.vacancy-content h4 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-top: 1.8rem;
    margin-bottom: 0.8rem;
    border-bottom: 2px solid var(--accent-color); /* Underline for subheadings */
    padding-bottom: 5px;
    display: inline-block; /* Makes border only as wide as text */
}

.vacancy-content ul {
    list-style: none; /* Remove default bullets */
    padding: 0;
    margin-bottom: 1.5rem;
}

.vacancy-content ul li {
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 25px;
}

.vacancy-content ul li::before {
    content: '\2022'; /* Unicode for a bullet point */
    color: var(--accent-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    position: absolute;
    left: 0;
}

.apply-btn {
    display: inline-flex; /* Use flex to align icon and text */
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    color: #fff;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    margin-top: auto; /* Push button to the bottom of the card */
    width: fit-content; /* Make button only as wide as its content */
}

.apply-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color)); /* Reverse gradient on hover */
}

.apply-btn i {
    margin-left: 10px;
}

/* General button styles for .btn and .btn-primary (ensure consistency) */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1.05rem;
}

.primary-btn {
    background-color: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.primary-btn:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero .container,
    .why-us-section .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-image,
    .why-us-image {
        text-align: center;
    }
    .hero-image img {
        margin-top: 2rem;
    }
    .why-us-content {
        margin-top: 2rem;
    }
    /* NEW: Consolidated Footer Mobile Adjustments */
    .footer .container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        align-items: center; /* Center items when stacked */
        gap: 1.5rem; /* Adjust gap for mobile stacking */
    }
}