:root {
    --primary-color: #f8ae3a;
    --secondary-color: #f8ae3a;
    --background-color: #feebcc;
    --text-color: black;
}

* {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    color: var(--text-color);
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}


/* Header */

.top-bar {
    display: grid;
    grid-template: 1fr/repeat(2, 1fr);
    background-color: var(--primary-color);
}

.header {
    position: relative;
    z-index: 100;
}

.top-bar {
    position: relative;
    z-index: 200;
}

.left {
    display: flex;
    gap: 10px;
    margin-left: 50px;
}

.left h4 {
    margin-top: 20px;
    color: white;
}

.left img {
    width: 25px;
    height: 25px;
    margin: 15px;
}

.right {
    display: flex;
    gap: 10px;
    margin-left: 100px;
}

.right h4 {
    margin-top: 20px;
    color: white;
}

.right img {
    width: 25px;
    height: 25px;
    margin: 15px;
}

.divider {
    color: black;
}

.bottom-bar {
    display: grid;
    width: 100%;
    height: 100px;
    grid-template-columns: auto 1fr auto;
    justify-content: center;
    align-content: center;
    background-color: black;
    position: relative;
}

.logo {
    margin-left: 100px;
    justify-content: center;
    align-content: center;
    height: 80%;
    width: 150%;
}

li {
    padding-top: 20px;
    font-size: 18px;
    list-style: none;
}

.menus {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: center;
    align-content: center;
}

.menus a {
    color: white !important;
    text-decoration: none;
    padding: 20px;
    font-weight: bold;
}

.menus a:hover {
    text-decoration: none;
    background-image: linear-gradient(to right, #f8ae3a, #ffffff) !important;
    border-radius: 20px;
    color: black !important;
    padding: 20px;
}

.active {
    background-image: linear-gradient(to right, #f8ae3a, #ffffff) !important;
    border-radius: 20px;
}

.menus a.active {
    color: black !important;
}

.contact-button {
    background-color: var(--primary-color);
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 20px;
}

.contact-button a {
    color: black;
    text-decoration: none;
    font-weight: bold;
}

.contact-button a:hover {
    text-decoration: none;
    color: white;
}

.contact {
    margin-right: 100px;
    align-content: center;
}


/* 1. The Container (li) */


/* Essential: This keeps the dropdown anchored to this specific menu item */

li {
    position: relative;
    list-style: none;
    display: inline-block;
    /* Or flex, depending on your nav bar */
}


/* 2. The Main "Business" Link */

.business {
    text-decoration: none;
    display: block;
    transition: color 0.3s;
}

.business a {
    color: white;
}


/* 3. The Dropdown Menu (Hidden by default) */

.submenu {
    display: none;
    /* Hidden by default */
    position: absolute;
    /* FULL WIDTH MAGIC */
    left: 0;
    width: 100%;
    /* Spans 100% of the .bottom-bar width */
    top: 80px;
    /* Push it down to clear the header height */
    background-color: black;
    /* Deep black/grey background */
    padding: 30px 10%;
    /* 10% side padding to align text with your logo */
    box-sizing: border-box;
    /* Ensures padding doesn't break the width */
    z-index: 999;
    /* Optional: The Gold top border seen in some designs */
    /* Layout: 2 Columns like the screenshot */
    grid-template-columns: 250px 250px;
    gap: 15px;
    align-content: center;
    justify-content: center;
    border-top: 2px solid #fdb913;
}


/* 4. The Hover Effect ( The Trigger ) */


/* When you hover the 'li', display the '.submenu' as a grid */

li:hover .submenu {
    display: grid;
}


/* Keep the main "Business" link yellow while the menu is open */

li:hover .business {
    color: var(--primary-color);
}


/* 5. Styling the Links INSIDE the dropdown */

.submenu a {
    color: white !important;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 0;
    transition: color 0.2s;
    font-weight: bold;
}


/* Hover color for the dropdown items */

.submenu a:hover {
    background-image: linear-gradient(to right, #f8ae3a, #ffffff);
    width: fit-content;
    padding: 15px;
    color: black !important;
    border-radius: 20px;
    /* Gold/Yellow accent */
}

.menus li {
    position: static;
}


/* Header Mobile view */


/* =========================
MOBILE OFFCANVAS MENU
========================= */

.mb-menu {
    display: none;
}


/* Hamburger */

.menu-btn {
    width: 30px;
    cursor: pointer;
}

.menu-btn span {
    display: block;
    height: 3px;
    background: white;
    margin: 6px 0;
}


/* Overlay - Fixed to prevent body scroll */

.offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.offcanvas-overlay.mactive {
    opacity: 1;
    visibility: visible;
}


/* Offcanvas Menu - Fixed positioning and scrolling */

.offcanvas-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    /* Full viewport height */
    background-color: var(--primary-color);
    z-index: 1001;
    transition: left 0.4s ease;
    overflow: hidden;
    /* Prevent outer scroll */
    display: flex;
    flex-direction: column;
}

.offcanvas-menu.mactive {
    left: 0;
}


/* Header */

.offcanvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    flex-shrink: 0;
    /* Prevent header from scrolling */
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.offcanvas-header img {
    width: 150px;
}

.close-btn {
    font-size: 28px;
    color: white;
    cursor: pointer;
    line-height: 0.6;
    padding: 8px;
    background: black;
    border-radius: 100%;
}


/* Links Container - This is the scrollable part */

.offcanvas-links {
    list-style: none;
    margin: 0;
    padding: 20px;
    flex: 1;
    /* Take remaining space */
    overflow-y: auto;
    /* Enable vertical scroll ONLY on menu items */
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
    display: flex;
    flex-direction: column;
}

.has-submenu {
    overflow: visible;
}


/* Custom scrollbar for offcanvas menu */

.offcanvas-links::-webkit-scrollbar {
    width: 6px;
}

.offcanvas-links::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.offcanvas-links::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.offcanvas-links::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

.offcanvas-links li {
    margin-top: -20px;
}

.offcanvas-links a,
.submenu-toggle {
    color: black;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: block;
    padding: 10px 0;
}


/* Prevent body scroll when menu is open */

body.menu-open {
    overflow: hidden;
    position: fixed;
}


/* Submenu */

.mobile-submenu {
    display: none;
    margin-top: 10px;
    padding-left: 15px;
    overflow: scroll;
}

.mobile-submenu.mactive {
    display: block;
}

.mobile-submenu li {
    display: flex;
    flex-direction: column;
    overflow: scroll;
}

.mobile-submenu li a {
    font-size: 14px;
    font-weight: normal;
    color: black;
    padding: 8px 0;
}


/* Contact Button */

.contact-mobile {
    background: black;
    color: white !important;
    padding: 10px;
    border-radius: 20px;
    margin-top: 10px;
    text-align: center;
}


/* MOBILE ONLY */

@media (max-width: 768px) {
    .menus,
    .contact {
        display: none;
    }
    .mb-menu {
        display: block;
        position: absolute;
        right: 30px;
        top: 35px;
    }
    .top-bar {
        display: none;
    }
    .bottom-bar {
        display: flex;
        flex-direction: row;
        margin-top: 0px;
        ;
    }
    .logo {
        margin-right: 300px;
        height: 100px;
        width: 150px;
        padding: 10px;
    }
}


/* =====================
HERO SECTION
===================== */

.hero-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    overflow: visible;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.15;
    color: #1a1f36;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero-title .highlight {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 17px;
    line-height: 1.8;
    color: #6b7280;
    margin-bottom: 36px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}


/* =====================
SEARCH BAR
===================== */

.search-container {
    background: white;
    border-radius: 16px;
    padding: 10px;
    display: flex;
    gap: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
    flex-wrap: wrap;
}

.rhino {
    flex: 1;
    min-width: 100px;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 10px;
    font-size: 15px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.rhino:hover {
    background: #f3f4f6;
}

.rhino img {
    width: 25px;
    height: 25px;
}

.search-input {
    flex: 1;
    min-width: 100px;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 10px;
    font-size: 15px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-input:hover {
    background: #f3f4f6;
}

.search-input svg {
    width: 20px;
    height: 20px;
    opacity: 0.5;
    flex-shrink: 0;
}

.keyword-wrapper {
    flex: 2;
    min-width: 140px;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s;
}

.keyword-wrapper:focus-within {
    background: #f0f4ff;
}

.keyword-wrapper svg {
    width: 20px;
    height: 20px;
    opacity: 0.5;
    flex-shrink: 0;
}

.keyword-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    color: black;
    outline: none;
    font-family: inherit;
    min-width: 0;
}

.keyword-input::placeholder {
    color: #9ca3af;
}

.search-btn {
    padding: 12px 28px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-family: inherit;
}

.search-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(248, 174, 58, 0.4);
}


/* Search Results */

.search-results {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary-color);
    animation: fadeInUp 0.4s ease-out;
}

.search-results p {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
}

.search-results strong {
    color: var(--primary-color);
    font-size: 15px;
}

.popular-searches {
    font-size: 14px;
    color: #6b7280;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    line-height: 2;
}

.popular-searches a {
    color: #1a1f36;
    text-decoration: none;
    font-weight: 600;
    margin: 0 4px;
    transition: color 0.2s;
}

.popular-searches a:hover {
    color: var(--primary-color);
}


/* =====================
HERO IMAGES — non-overlapping on mobile
===================== */


/* .hero-images {
position: relative;
height: 520px;
animation: fadeIn 1s ease-out 0.5s both;
}

.image-card {
position: absolute;
border-radius: 24px;
overflow: hidden;
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.image-card::before {
content: '';
position: absolute;
inset: 0;
border: 4px solid var(--primary-color);
border-radius: 24px;
z-index: 2;
pointer-events: none;
}

.image-card img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}

.image-card-1 {
top: 10px;
right: 20px;
width: 90%;
height: 230px;
z-index: 2;
animation: slideCard1 10s ease-in-out infinite;
}

.image-card-2 {
bottom: 10px;
left: 20px;
width: 90%;
height: 230px;
z-index: 1;
animation: slideCard2 10s ease-in-out infinite;
}

.dots-pattern {
position: absolute;
width: 100px;
height: 100px;
background-image: radial-gradient(circle, #f8ae3a 2px, transparent 2px);
background-size: 15px 15px;
opacity: 0.3;
}

.dots-1 {
top: 30px;
left: 0;
animation: pulse 4s ease-in-out infinite;
}

.dots-2 {
bottom: 40px;
right: 0;
animation: pulse 4s ease-in-out infinite 2s;
}

.shape-bg {
position: absolute;
background: linear-gradient(135deg, rgba(65, 105, 225, 0.05) 0%, rgba(65, 105, 225, 0.1) 100%);
border-radius: 50%;
filter: blur(60px);
z-index: -1;
}

.shape-1 {
top: -80px;
right: -50px;
width: 350px;
height: 350px;
animation: rotate 20s linear infinite;
}

.shape-2 {
bottom: -60px;
left: 0;
width: 300px;
height: 300px;
animation: rotate 25s linear infinite reverse;
} */

.Rimage img {
    height: 500px;
    width: 600px;
    border-radius: 30px;
}


/* =====================
JOB OFFERS
===================== */

.job-offers {
    padding: 60px 40px;
}

.job-offers-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.job-offers-container h2 {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
}

.job-offers-container>h4 {
    text-align: center;
    color: #6b7280;
    max-width: 700px;
    line-height: 1.7;
}

.job-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
}

.job-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-radius: 24px;
    padding: 32px 24px;
    transition: box-shadow 0.3s, transform 0.3s;
    background: white;
}

.job-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-4px);
}

.job-card>img {
    width: 70px;
    height: 70px;
    margin-bottom: 12px;
}

.job-card h3 {
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.details {
    margin-top: 16px;
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: center;
}

.place {
    display: flex;
    flex-direction: row;
    gap: 6px;
    align-items: center;
}

.place img {
    width: 18px;
    height: 18px;
}

.place h4 {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.type h5 {
    font-size: 12px;
    background: #fef3c7;
    color: #92400e;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}


/* Apply button — anchor tag, no form */

.apply-btn {
    margin-top: 20px;
    padding: 10px 24px;
    background-color: var(--primary-color);
    border-radius: 30px;
    border: none;
    cursor: pointer;
    color: black;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    display: inline-block;
    transition: background 0.3s, color 0.3s;
}

.apply-btn:hover {
    background-color: #e09a25;
    color: white;
}


/* Footer */

.footer {
    background-color: black;
}

.footer-container {
    padding: 50px;
    display: grid;
    grid-template: 1fr/repeat(4, 1fr);
    align-content: center;
    justify-content: center;
    gap: 30px;
}

.about-company h3 {
    font-weight: bold;
    background-color: var(--primary-color);
    width: fit-content;
    padding: 10px;
    border-radius: 20px;
}

.about-company p {
    color: white;
    line-height: 2em;
    width: 300px;
}

.about-company img {
    height: 100px;
    width: 200px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.our-business h3 {
    font-weight: bold;
    background-color: var(--primary-color);
    width: fit-content;
    padding: 10px;
    border-radius: 20px;
}

.quick-links {
    margin-left: 50px;
    ;
}

.quick-links h3 {
    font-weight: bold;
    background-color: var(--primary-color);
    width: fit-content;
    padding: 10px;
    border-radius: 20px;
}

.links li {
    display: flex;
    flex-direction: row;
    list-style: none;
}

.links li a {
    color: white;
    text-decoration: none;
}

li a:hover {
    background-image: linear-gradient(to right, #f8ae3a, #ffffff) !important;
    color: black;
    padding: 10px;
    border-radius: 20px;
    font-weight: bold;
}

.contact-details h3 {
    font-weight: bold;
    background-color: var(--primary-color);
    width: fit-content;
    padding: 10px;
    border-radius: 20px;
}

.contact-details li {
    display: flex;
    flex-direction: row;
    gap: 10px;
    color: white;
}

.contact-details li img {
    height: 20px;
    width: 20px;
    margin-top: 5px;
}

.contact-details li p {
    color: white;
}

.copyright p {
    color: white;
    margin-left: 600px;
    padding-bottom: 30px;
}


/* Mobile Footer */

@media (max-width: 768px) {
    .footer-container {
        display: grid;
        grid-template: 4fr/ 1fr;
        padding: 50px;
    }
    .about-company {
        text-align: center;
    }
    .about-company h3 {
        margin-left: 90px;
    }
    .about-company p {
        font-size: 18px;
        margin-left: 30px;
    }
    .our-business li {
        font-size: 15px;
        padding-left: 20px;
    }
    .quick-links {
        margin-left: 150px;
        margin-top: -365px;
    }
    .quick-links h3 {
        margin-left: 50px;
        white-space: nowrap;
    }
    .quick-links li {
        margin-left: 100px;
        font-size: 15px;
    }
    .contact-details {
        margin-top: -20px;
        padding-left: 20px;
    }
    .contact-details h3 {
        margin-left: 20px;
    }
    .footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .copyright {
        display: none;
    }
    .mobile-copyright p {
        color: white;
        padding: 10px;
    }
}


/* =====================
ANIMATIONS
===================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideCard1 {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-16px);
    }
}

@keyframes slideCard2 {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(16px);
    }
}

@keyframes pulse {
    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.05);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


/* =====================
MOBILE (max 768px)
===================== */

@media (max-width: 768px) {
    /* Hero – stacked */
    .hero-container {
        grid-template-columns: 1fr;
        padding: 28px 20px 40px;
        gap: 28px;
    }
    .hero-title {
        font-size: 28px;
        margin-bottom: 14px;
    }
    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 20px;
    }
    /* Search bar stacks vertically */
    .search-container {
        flex-direction: column;
        gap: 10px;
        padding: 14px;
    }
    .rhino,
    .search-input,
    .keyword-wrapper {
        width: 100%;
        flex: none;
    }
    .search-btn {
        width: 100%;
        justify-content: center;
        padding: 14px;
        font-size: 16px;
    }
    /* Hero image – full width, proportional */
    .Rimage {
        order: -1;
        /* show image above text */
        width: 100%;
    }
    .Rimage img {
        width: 100%;
        max-width: 100%;
        height: 280px;
        border-radius: 20px;
        object-fit: cover;
        aspect-ratio: unset;
    }
    /* Job grid – 1 column */
    .job-offers {
        padding: 36px 16px;
    }
    .job-offers-container h2 {
        font-size: 26px;
    }
    .job-offers-container>h4 {
        font-size: 14px;
    }
    .job-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .job-card {
        padding: 24px 20px;
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }
}