@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* -- Colors -- */
    --primary-color: #002091;
    /* Your requested Deep Blue */
    --secondary-color: #3a86ff;
    /* Lighter Electric Blue for gradients */
    --accent-color: #ffb703;
    /* Amber Gold for Actions/Buttons */
    --accent-hover: #fb8500;
    /* Darker Orange for hover states */

    /* -- Text & Backgrounds -- */
    --text-main: #1b263b;
    --text-muted: #6c757d;
    --text-light: #ffffff;
    --body-bg: #f5f5f5;
    /* Your requested BG */
    --card-bg: #ffffff;
    --border-color: #e0e0e0;

    /* -- Formatting -- */
    --font-main: 'Outfit', sans-serif;
    --border-radius: 12px;
    /* Smooth, modern corners */
    --container-width: 95%;

    /* -- Shadows -- */
    --shadow-sm: 0 2px 8px rgba(0, 32, 145, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 32, 145, 0.08);
    --shadow-hover: 0 12px 24px rgba(0, 32, 145, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--body-bg);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: 1280px;
    /* Slightly wider for modern screens */
    width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   Header 
   ========================================= */
header {
    background: var(--card-bg);
    /* Clean white header with bottom border */
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    font-weight: 800;
    /* Gradient Text for Logo */
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.logo-img {
    /* Adjust height to fit your header (usually 40px to 60px is best) */
    height: 60px;
    width: 60px;
    /* Maintains aspect ratio */
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Subtle hover effect for the logo */
.logo-img:hover {
    transform: scale(1.02);
}

/* Responsive adjustment for mobile */
@media (max-width: 768px) {
    .logo-img {
        height: 35px;
    }
}

/* Navigation */
nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    position: relative;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    padding: 0.5rem 0;
}

nav a:hover,
nav a.active {
    color: var(--primary-color);
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

/* =========================================
   Hero Section 
   ========================================= */


.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    /* Removed negative margin-bottom so scroll sits below */
    padding: 4rem 0;
    text-align: center;
    position: relative;
    z-index: 1;
    border-radius: 0 0 20px 20px;
    /* Optional: Slight curve at bottom of blue */
}

.btn-outline:hover {
    background: transparent !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.hero-actions a {
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 25;
}

/* Optional: Add a pattern overlay if you want texture */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    position: relative;
    z-index: 2;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* =========================================
   Layout Grid 
   ========================================= */
.main-layout {
    display: grid;
    grid-template-columns: 260px 1fr 280px;
    gap: 2rem;
    margin-top: 1rem;
    align-items: start;
    position: relative;
    z-index: 10;
    /* Sits above hero bottom */
}

/* Sticky Sidebars */
.sidebar,
.ads-sidebar {
    position: sticky;
    top: 100px;
}

/* Responsive Grid */
@media (max-width: 1200px) {
    .main-layout {
        grid-template-columns: 240px 1fr;
    }

    .ads-sidebar {
        display: none;
    }
}

@media (max-width: 850px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        margin-bottom: 2rem;
    }

    .hero {
        margin-bottom: 0;
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }
}

/* =========================================
   Components: Logo Scroll 
   ========================================= */
.logo-scroll-container {
    background: var(--card-bg);
    padding: 1.5rem 0;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    /* Add margin to separate it from the hero if desired */
    margin-top: 0;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-sm);
}

.logo-scroll {
    display: flex;
    gap: 4rem;
    animation: scroll 25s linear infinite;
    width: max-content;
}

.logo-scroll span {
    font-size: 1.2rem;
    font-weight: 700;
    color: #b0b8c1;
    text-transform: uppercase;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* =========================================
   Components: Job Cards 
   ========================================= */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.section-header h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.view-all {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.job-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    /* Added border for better definition */
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    padding: 10px;
    /* Ensures cards in same row are equal height */
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-color);
}

.job-thumb {
    width: 100%;
    height: 150px;
    /* Taller image for better ratio */
    overflow: hidden;
}

.job-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.job-body {
    /* FIXED: More padding for breathing room */
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0.5rem;
    /* Adds consistent space between elements */
}

.job-type {
    align-self: flex-start;
    padding: 0.35rem 0.85rem;
    background: #eef2ff;
    color: var(--primary-color);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.job-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
    margin: 0;
    /* Let gap handle spacing */
}

.job-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.job-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 1.5rem;

    /* Truncate text */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Button Styling */
.btn {
    display: inline-block;
    width: 100%;
    padding: 0.8rem;
    /* Gradient Button */
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    text-align: center;
    margin-top: auto;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 32, 145, 0.2);
}

.btn:hover {
    background: linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    box-shadow: 0 6px 12px rgba(0, 32, 145, 0.3);
    transform: translateY(-1px);
}

/* Secondary Button (e.g., Apply Now alternate) */
.btn-secondary {
    background: var(--accent-color);
    color: #000;
}

.btn-secondary:hover {
    /* background: var(--accent-hover); */

    background: white;
}

.btn-cours:hover {
    background: #ffb930;
}

/* =========================================
   Sidebar & Widgets 
   ========================================= */
.sidebar .filter-section {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.sidebar .filter-section h3 {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.8rem;
}

.ads-sidebar .ad-slot {
    background: #e9ecef;
    border-radius: var(--border-radius);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-weight: 500;
    margin-bottom: 2rem;
}