:root {
    --primary-color: #E60000;
    --secondary-color: #007AFF;
    --accent-color: #5856D6;
    --dark-color: #1D1D1F;
    --light-color: #FFFFFF;
    --gray-1: #F5F5F7;
    --gray-2: #E8E8ED;
    --gray-3: #C7C7CC;
    --gray-4: #8E8E93;
    --gray-5: #48484A;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --max-width: 1200px;
    --header-height: 80px;
    --section-spacing: 100px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    color: var(--dark-color);
    background-color: var(--light-color);
    line-height: 1.6;
    padding-top: var(--header-height);
    overflow-x: hidden;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    position: relative;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--gray-5);
}

/* Accessibility Helpers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 12px;
    z-index: 1000;
    transition: top 0.3s;
    border-radius: 0 0 8px 0;
    font-weight: 500;
}

.skip-link:focus {
    top: 0;
}

/* Layout */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #FF6257);
    color: var(--light-color);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--light-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--dark-color);
    border: 2px solid var(--gray-2);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.apply-now-btn {
    background: linear-gradient(135deg, var(--secondary-color), #0097FF);
    color: var(--light-color);
    padding: 16px 32px;
    font-size: 18px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.apply-now-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    
}

.logo img {
    height: 128px;
    width: auto;
    max-width: 100%;
    transition: var(--transition);
}

.logo-text {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dark-color);
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    padding: 12px 20px;
    color: var(--gray-5);
    font-weight: 500;
    border-radius: 12px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(255, 59, 48, 0.08);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px 3px 0 0;
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 20px;
}

.post-job-btn {
    background: linear-gradient(135deg, var(--primary-color), #FF6257);
    color: var(--light-color);
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    margin-left: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.post-job-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: var(--gray-1);
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.menu-toggle:hover {
    background: var(--gray-2);
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--dark-color);
    margin: 2px 0;
    transition: var(--transition);
    transform-origin: center;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #FF3B30 0%, #FF0000 100%);
    color: white;
    padding: 140px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="70" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="30" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 24px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 400;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

#search-form {
    display: flex;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.2);
}

#search-input {
    flex: 1;
    padding: 18px 24px;
    border: none;
    outline: none;
    font-size: 1.1rem;
    background: transparent;
}

#search-form button {
    background: var(--dark-color);
    color: white;
    border: none;
    padding: 0 28px;
    cursor: pointer;
    transition: var(--transition);
}

#search-form button:hover {
    background: var(--primary-color);
}

/* Section Styling */
.section-header {
    text-align: center;
    margin-bottom: 30px;
    margin-top: -22px;
    
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), #FF6257);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--gray-4);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Job Listings */
.latest-jobs {
    padding: var(--section-spacing) 0;
}

.job-listings {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.job-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--gray-2);
    display: flex;
    flex-direction: column;
}

.job-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.job-header {
    padding: 24px;
    border-bottom: 1px solid var(--gray-2);
    background: linear-gradient(135deg, var(--gray-1) 0%, var(--light-color) 100%);
}

.job-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--dark-color);
    font-weight: 600;
    line-height: 1.3;
}

.job-location {
    color: var(--primary-color);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.job-location i {
    font-size: 1rem;
}

.company-name {
    padding: 0 24px;
    margin: 16px 0;
    color: var(--gray-5);
    font-size: 1rem;
    font-weight: 500;
}

.job-description {
    padding: 0 24px;
    margin-bottom: 20px;
    color: var(--gray-4);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.job-footer {
    padding: 20px 24px;
    background: var(--gray-1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--gray-2);
}

.job-deadline {
    color: var(--gray-4);
    font-size: 0.9rem;
    font-weight: 500;
}

.view-button {
    background: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.view-button:hover {
    background: var(--dark-color);
    transform: translateY(-2px);
}

/* Locations Section */
.locations-section {
    padding: var(--section-spacing) 0;
    background: var(--gray-1);
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.location-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 40px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-2);
    cursor: pointer;
}

.location-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-color), #FF6257);
    color: white;
}

.location-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0;
    font-weight: 600;
}

/* Employers Section */
.employers-section {
    padding: var(--section-spacing) 0;
    background: linear-gradient(135deg, #1a2a6c 0%, #b21f1f 50%, #fdbb2d 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.employers-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="30" cy="30" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="70" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="20" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 15s infinite linear;
}

.employers-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.employers-text h2 {
    font-size: 2.2rem;
    margin-bottom: 24px;
    font-weight: 600;
}

/* Blog Section */
.blog-section {
    padding: var(--section-spacing) 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.blog-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-2);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.blog-image-container {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image {
    transform: scale(1.05);
}

.blog-category {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.blog-content {
    padding: 24px;
}

.blog-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--gray-4);
    font-weight: 500;
}

.blog-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
    line-height: 1.4;
    font-weight: 600;
}

.blog-excerpt {
    color: var(--gray-4);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.read-more i {
    margin-left: 8px;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--dark-color);
}

.read-more:hover i {
    transform: translateX(4px);
}

.blog-cta {
    text-align: center;
    margin-top: 50px;
}

.view-all-btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.view-all-btn:hover {
    background: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* About Section */
.about-section {
    padding: var(--section-spacing) 0;
    background: var(--gray-1);
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 2.2rem;
    margin-bottom: 24px;
    font-weight: 600;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--gray-4);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Pagination - Reimagined */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px; /* Tighter. More precise. */
    margin-top: 30px;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; /* Slightly smaller. More elegant. */
    height: 42px;
    border-radius: 10px; /* Not just rounded. *Purposefully* rounded. */
    background: rgba(255, 255, 255, 0.9); /* A hint of transparency. It feels lighter. */
    color: var(--dark-color);
    border: 1px solid var(--gray-2);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* A smoother, more deliberate transition. */
    font-weight: 500;
    margin: 0 2px; /* Less wasted space. */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* Subtle depth. It's there, you feel it, you don't see it. */
}

.pagination a:hover,
.pagination a:focus {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px) scale(1.05); /* More dynamic. It doesn't just move, it *leans in*. */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1), 0 3px 5px rgba(0, 0, 0, 0.05); /* A complex, beautiful shadow on hover. */
}

.pagination a.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    font-weight: 600;
    transform: translateY(-1px); /* It's permanently elevated. It has weight. Importance. */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12); /* A stronger shadow for the active state. */
}

/* For the '...' ellipsis - because even the pauses need design */
.pagination span {
    /* Style it to match the aesthetic but be non-interactive */
    margin: 0 2px;
    color: var(--gray-3);
}

.clear-filter {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 16px;
    background: var(--gray-2);
    color: var(--dark-color);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.clear-filter:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 80px 0 40px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 24px;
    font-size: 1.4rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 12px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.footer-section p {
    color: var(--gray-3);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: var(--gray-3);
    transition: var(--transition);
    display: inline-block;
    padding: 4px 0;
    font-size: 1rem;
}

.footer-section ul li a:hover,
.footer-section ul li a:focus {
    color: white;
    transform: translateX(4px);
}

.footer-section a[href^="mailto:"] {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    transition: var(--transition);
}

.social-links a:hover,
.social-links a:focus {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-3);
    font-size: 0.95rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateX(-20px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    :root {
        --header-height: 72px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .job-listings {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        background: var(--light-color);
        width: 100%;
        height: calc(100vh - var(--header-height));
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 40px 24px;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        width: 100%;
        margin: 8px 0;
        text-align: center;
    }

    .nav-link {
        display: block;
        padding: 16px 24px;
        border-radius: 12px;
        text-align: center;
        font-size: 1.1rem;
    }

    

    .hero-section {
        padding: 100px 0;
    }

    .hero-section h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-header h2 {
        font-size: 2rem;
        margin-top: 2.8rem;
    }

    .job-listings {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .location-grid {
        grid-template-columns: 1fr;
    }

    .employers-text h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: 64px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    #search-input {
        padding: 16px 20px;
    }
    
    .job-card, .blog-card, .location-card {
        border-radius: var(--border-radius);
    }
    
    .view-all-btn {
        padding: 12px 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .contact-info p {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .header, .footer, .menu-toggle, .job-actions, .apply-button-container {
        display: none;
    }

    body {
        padding: 0;
        background: none;
        color: black;
        font-size: 12pt;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        font-weight: normal;
    }
    
    .job-details-card {
        box-shadow: none;
        border: none;
    }
}