/* Informed Portal - Custom Styles */

:root {
    --primary-color: #10B981;
    --primary-dark: #059669;
    --secondary-color: #6B7280;
    --dark-bg: #111827;
    --light-bg: #F9FAFB;
    --white: #FFFFFF;
    --border-color: #E5E7EB;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--white);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* Prevent any element from causing horizontal scroll */
body > * {
    max-width: 100%;
}

/* Navigation */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand:hover {
    color: var(--primary-dark);
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.navbar-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar-menu a:hover {
    color: var(--primary-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    margin-left: auto;
    transition: all 0.3s;
}

.mobile-menu-toggle:hover {
    background: var(--primary-color);
    color: var(--white);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

/* Mobile Navigation Dropdown */
@media (max-width: 768px) {
    html, body {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1000;
        margin: 0;
        padding: 0.75rem 0;
    }
    
    .navbar-container {
        padding: 0 0.75rem;
    }
    
    /* Spacer to push content below fixed navbar */
    .mobile-nav-spacer {
        height: 60px !important;
    }
    
    .hero-section {
        margin-top: 0;
        padding: 2rem 0.75rem;
    }
    
    /* Full width sections on mobile */
    .section {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        padding: 1.5rem 0.5rem;
    }
    
    /* Minimal padding for containers */
    .section-container {
        max-width: 100%;
        overflow-x: hidden;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
        box-sizing: border-box;
    }
    
    /* Make all cards full width */
    .job-card,
    .blog-post-card,
    .sidebar-widget,
    .featured-post-card,
    .country-card,
    .faq-item {
        margin-left: 0;
        margin-right: 0;
        border-radius: 0.5rem;
        width: 100%;
    }
    
    /* Jobs grid full width */
    .jobs-grid {
        padding: 0;
        gap: 0.75rem;
    }
    
    /* Hero content full width */
    .hero-content {
        padding: 0 0.5rem;
    }
    
    /* Search wrapper */
    .hero-search-wrapper {
        margin: 0 0.25rem;
    }
    
    /* Footer full width */
    .footer {
        padding: 2rem 0.75rem;
    }
    
    .footer-container {
        padding: 0;
    }
    
    .footer-grid {
        padding: 0;
        gap: 1.5rem;
    }
    
    .navbar-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .navbar-container > div:first-child {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .navbar-menu {
        display: none;
        width: 100%;
        background: var(--white);
        border-top: 1px solid var(--border-color);
        margin-top: 1rem;
        padding: 0.5rem 0;
        flex-direction: column;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    }
    
    .navbar-menu.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            max-height: 0;
        }
        to {
            opacity: 1;
            max-height: 500px;
        }
    }
    
    .navbar-menu li {
        width: 100%;
    }
    
    .navbar-menu a {
        display: block;
        width: 100%;
        padding: 0.875rem 1.25rem;
        color: var(--text-primary);
        font-weight: 500;
        transition: all 0.2s;
    }
    
    .navbar-menu a:hover {
        background: var(--light-bg);
        color: var(--primary-color);
        padding-left: 1.5rem;
    }
    
    .navbar-menu .btn-primary {
        margin: 0.5rem 1rem;
        padding: 0.75rem;
        border-radius: 0.5rem;
        text-align: center;
        display: block;
        background: var(--primary-color);
        color: var(--white);
    }
    
    .navbar-menu .btn-primary:hover {
        background: var(--primary-dark);
        padding-left: 0.75rem;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
    padding: 4rem 2rem;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    padding: 2rem 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Search Bar */
.hero-search-form {
    width: 100%;
    max-width: 650px;
    margin-bottom: 1.5rem;
}

.hero-search-wrapper {
    display: flex;
    gap: 0;
    background: var(--white);
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.hero-search-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.2);
}

.hero-search-input-group {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    min-width: 0;
}

.hero-search-icon {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.hero-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 1rem 0;
    background: transparent;
    color: var(--text-primary);
    min-width: 0;
}

.hero-search-input::placeholder {
    color: var(--text-secondary);
}

.hero-search-btn {
    border-radius: 50px;
    padding: 1rem 1.75rem;
    margin: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.hero-search-btn i {
    font-size: 0.9rem;
}

/* Responsive Hero Search */
@media (max-width: 640px) {
    .hero-search-wrapper {
        flex-direction: column;
        border-radius: 16px;
    }
    
    .hero-search-input-group {
        padding: 0.5rem 1rem;
    }
    
    .hero-search-input {
        padding: 0.75rem 0;
    }
    
    .hero-search-btn {
        margin: 0.5rem;
        border-radius: 12px;
        justify-content: center;
    }
    
    .hero-search-btn span {
        display: inline;
    }
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Hero Illustration */
.hero-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.illustration-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.people-illustration {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.person-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: transform 0.3s;
}

.person-card:hover {
    transform: translateY(-5px);
}

.person-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.person-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.person-role {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Auth Section (Login/Signup) */
.auth-section {
    min-height: 100vh;
    display: flex;
    background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
}

.auth-container {
    max-width: 1280px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 2rem;
    width: 100%;
}

.auth-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-illustration svg {
    width: 100%;
    max-width: 400px;
    height: auto;
}

.auth-form-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--white);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
}

.auth-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.auth-providers {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.provider-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--white);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.provider-btn:hover {
    border-color: var(--primary-color);
    background: var(--light-bg);
}

.provider-btn.google {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.provider-btn.google:hover {
    background: var(--primary-dark);
}

.divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    background: var(--white);
    padding: 0 1rem;
    position: relative;
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btn-submit {
    width: 100%;
    padding: 0.875rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: var(--primary-dark);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 5rem;
    right: 2rem;
    z-index: 9999;
    max-width: 400px;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border-left: 4px solid var(--primary-color);
}

.alert-danger {
    background: #FEE2E2;
    color: #991B1B;
    border-left: 4px solid #EF4444;
}

.alert-info {
    background: #DBEAFE;
    color: #1E40AF;
    border-left: 4px solid #3B82F6;
}

/* Featured Jobs Section */
.section {
    padding: 4rem 2rem;
}

.section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-container-no-max {
    margin: 0 auto;
    padding: 0 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.job-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.job-company {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.125rem;
}

.job-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-featured {
    background: #FEF3C7;
    color: #92400E;
}

.job-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.job-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.job-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Job detail HTML content formatting */
.job-detail-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.job-detail-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.job-detail-content ul,
.job-detail-content li {
    list-style: none;
    margin-bottom: 0.5rem;
    padding-left: 0;
}

.job-detail-content li {
    padding-left: 1.5rem;
    position: relative;
}

.job-detail-content li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.job-posted {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Homepage with Sidebar Layout */
.page-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.main-content-wrapper {
    min-width: 0;
}

.homepage-sidebar {
    position: sticky;
    top: 6rem;
    height: fit-content;
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Scrollbar styling for homepage sidebar */
.homepage-sidebar::-webkit-scrollbar {
    width: 6px;
}

.homepage-sidebar::-webkit-scrollbar-track {
    background: var(--light-bg);
    border-radius: 10px;
}

.homepage-sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.homepage-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Job Detail Layout with Sidebar */
.job-detail-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.job-detail-main {
    min-width: 0;
}

.job-detail-sidebar {
    position: sticky;
    top: 6rem;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Ad Container */
.ad-container,
.ad-placeholder {
    background: transparent;
    border-radius: 0.25rem;
    padding: 0;
    overflow: hidden;
}

.ad-label {
    text-align: center;
    font-size: 0.6rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.15rem;
}

/* Sidebar Card */
.sidebar-card {
    background: var(--white);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s, box-shadow 0.2s;
}

.sidebar-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

/* Job Search Filter Card */
.search-filter-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.job-search-form {
    width: 100%;
}

.search-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

.search-form-grid .form-group {
    margin-bottom: 0;
}

.form-label i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-size: 0.875rem;
}

.search-button-group {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.btn-search,
.btn-clear {
    height: fit-content;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-clear {
    background: var(--light-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-clear:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

/* Filter Links in Sidebar */
.filter-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--light-bg);
    border-radius: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}

.filter-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateX(5px);
}

.filter-link i {
    color: var(--primary-color);
    transition: color 0.2s;
}

.filter-link:hover i {
    color: var(--white);
}

/* Featured AdSense Card in Grid */
.ad-card-featured {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
    border: 2px dashed var(--border-color);
    display: flex;
    flex-direction: column;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.ad-card-featured:hover {
    transform: none;
    box-shadow: var(--shadow-md);
}

.ad-label-featured {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.ad-label-featured i {
    color: var(--primary-color);
}

.featured-ad-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    min-height: 250px;
}

.featured-ad-placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: 250px;
}

.sidebar-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.125rem;
    margin-top: 0.25rem;
    min-width: 20px;
}

.info-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.info-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* Share Buttons */
.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: white;
}

.share-btn.facebook {
    background: #1877F2;
}

.share-btn.facebook:hover {
    background: #145dbf;
}

.share-btn.twitter {
    background: #1DA1F2;
}

.share-btn.twitter:hover {
    background: #0c8bd9;
}

.share-btn.linkedin {
    background: #0A66C2;
}

.share-btn.linkedin:hover {
    background: #004182;
}

.share-btn.copy {
    background: var(--text-secondary);
}

.share-btn.copy:hover {
    background: var(--text-primary);
}

/* Responsive Design */

/* Large Tablets and Small Desktops (1200px and below) */
@media (max-width: 1200px) {
    .section-container {
        padding: 0 1.5rem;
    }
    
    .navbar-container {
        padding: 0 1.5rem;
    }
    
    .hero-container {
        gap: 3rem;
    }
    
    .jobs-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

/* Tablets (968px and below) */
@media (max-width: 968px) {
    .hero-container,
    .auth-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-illustration,
    .auth-illustration {
        display: none;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    /* Page with Sidebar */
    .page-with-sidebar {
        grid-template-columns: 1fr;
        padding: 0;
    }
    
    .homepage-sidebar {
        position: static;
        max-height: none;
        order: 2;
        padding: 0 1rem;
        margin-top: 2rem;
    }
    
    /* Job Detail Layout */
    .job-detail-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .job-detail-sidebar {
        position: static;
        order: 2;
        margin-top: 2rem;
    }
    
    /* Jobs Grid */
    .jobs-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    /* Navigation */
    .navbar-menu {
        gap: 1rem;
        font-size: 0.875rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Admin Sidebar */
    .admin-sidebar {
        width: 200px;
    }
    
    .admin-main {
        margin-left: 200px;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .admin-table {
        font-size: 0.875rem;
    }
}

/* Mobile Landscape and Small Tablets (768px and below) */
@media (max-width: 768px) {
    /* Search Filter - Tablet */
    .search-form-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 0.75rem;
    }
    
    .form-group:nth-child(1) {
        grid-column: 1 / -1; /* Search spans full width on tablet too */
    }
    
    .search-button-group {
        grid-column: 1 / -1;
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .btn-search,
    .btn-clear {
        flex: 1;
    }
    
    /* Admin Layout */
    .admin-sidebar {
        transform: translateX(-100%);
        z-index: 1000;
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    /* Table Responsiveness */
    .admin-table-container {
        overflow-x: auto;
    }
    
    .admin-table {
        min-width: 600px;
    }
    
    /* Filter Grid */
    .filter-grid {
        grid-template-columns: 1fr;
    }
    
    /* Job Cards */
    .job-card {
        padding: 1.5rem;
    }
    
    .job-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    /* People Illustration */
    .people-illustration {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Share Buttons */
    .share-buttons {
        gap: 0.5rem;
    }
    
    .share-btn {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
    }
}

/* Mobile Portrait (640px and below) */
@media (max-width: 640px) {
    /* Base Layout */
    body {
        font-size: 0.875rem;
    }
    
    /* Search Filter - Mobile (Compact, No Wrap) */
    .search-filter-card {
        padding: 1rem;
        border-radius: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .search-form-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .form-group:nth-child(1) {
        grid-column: 1 / -1; /* Search spans full width */
    }
    
    .form-label {
        font-size: 0.75rem;
        margin-bottom: 0.375rem;
        font-weight: 600;
    }
    
    .form-label i {
        display: none; /* Hide icons on mobile to save space */
    }
    
    .form-input {
        font-size: 0.875rem;
        padding: 0.625rem;
    }
    
    .search-button-group {
        grid-column: 1 / -1;
        flex-direction: row;
        gap: 0.5rem;
        margin-top: 0;
    }
    
    .btn-search,
    .btn-clear {
        flex: 1;
        justify-content: center;
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
        font-weight: 600;
    }
    
    .btn-text {
        display: none; /* Show icons only */
    }
    
    .btn-search i,
    .btn-clear i {
        margin: 0;
    }
    
    /* Navbar */
    .navbar {
        padding: 0.875rem 0;
    }
    
    .navbar-container {
        padding: 0 1rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-brand i {
        font-size: 1.125rem;
    }
    
    .navbar-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        padding-top: 1rem;
    }
    
    .navbar-menu.active {
        display: flex;
    }
    
    /* Hero Section - Full width on mobile */
    .hero-section {
        padding: 1.5rem 0.5rem;
        min-height: auto;
    }
    
    .hero-container {
        padding: 0 0.25rem;
    }
    
    .hero-content {
        padding: 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
        padding: 0 0.25rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .stat-item {
        width: 100%;
        padding: 1rem;
        background: white;
        border-radius: 0.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta a,
    .hero-cta button {
        width: 100%;
        justify-content: center;
    }
    
    /* Section Spacing - Full width on small screens */
    .section {
        padding: 1.5rem 0.25rem;
    }
    
    .section-container {
        padding: 0 0.125rem;
    }
    
    /* Cards stretch full width */
    .job-card {
        margin: 0;
        border-radius: 0.375rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.875rem;
    }
    
    .section-header {
        margin-bottom: 1.5rem;
    }
    
    /* Jobs Grid */
    .jobs-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .job-card {
        padding: 1rem;
    }
    
    .job-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .job-title {
        font-size: 1.125rem;
    }
    
    .job-company {
        font-size: 1rem;
    }
    
    /* Auth Pages */
    .auth-section {
        padding: 1rem;
    }
    
    .auth-form-container {
        padding: 1.5rem 1rem;
    }
    
    .auth-title {
        font-size: 1.75rem;
    }
    
    .provider-btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    /* Job Detail */
    .job-detail-main {
        padding: 0;
    }
    
    .job-detail-main > div {
        padding: 1rem;
    }
    
    /* Sidebar Cards */
    .sidebar-card {
        padding: 1rem;
    }
    
    .sidebar-title {
        font-size: 1rem;
    }
    
    .info-item {
        gap: 0.75rem;
    }
    
    .info-item i {
        font-size: 1rem;
    }
    
    /* Buttons */
    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    /* Forms */
    .form-input {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .form-label {
        font-size: 0.875rem;
    }
    
    /* Flash Messages */
    .flash-messages {
        right: 0.5rem;
        left: 0.5rem;
        top: 4rem;
        max-width: none;
    }
    
    .alert {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 1rem 1rem;
    }
    
    .footer-grid {
        gap: 1.5rem;
    }
    
    .footer-section h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-section {
        font-size: 0.875rem;
    }
    
    /* Admin Tables */
    .admin-table {
        font-size: 0.75rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.5rem;
    }
    
    /* Modal */
    .modal-content {
        padding: 1.5rem;
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-header {
        margin-bottom: 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.25rem;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    /* Ultra compact mobile */
    .section {
        padding: 1rem 0.25rem;
    }
    
    .section-container {
        padding: 0;
    }
    
    .hero-section {
        padding: 1rem 0.25rem;
    }
    
    .hero-title {
        font-size: 1.4rem;
        padding: 0 0.125rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .job-title {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.625rem 1.25rem;
        font-size: 0.8125rem;
    }
    
    .person-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.75rem !important;
    }
    
    .person-name {
        font-size: 1rem !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .ad-container,
    .share-buttons,
    .btn-primary,
    .btn-secondary {
        display: none !important;
    }
    
    .section {
        page-break-inside: avoid;
    }
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   NO-WRAP UTILITIES & FIXES
   Prevent text and icons from wrapping awkwardly
   ======================================== */

/* Buttons with icons - never wrap */
.btn-primary,
.btn-secondary,
.btn-outline,
.btn-search,
.btn-clear {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Job meta items - keep icon and text together */
.job-meta-item {
    white-space: nowrap;
    flex-shrink: 0;
}

/* Navigation links - don't break */
.navbar-menu a,
.navbar-menu li {
    white-space: nowrap;
}

/* Job card company and location badges */
.job-card-company,
.job-card-location {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Featured badge */
.featured-badge {
    white-space: nowrap;
    flex-shrink: 0;
}

/* Stats items */
.stat-item,
.hero-stats .stat-item {
    white-space: nowrap;
}

/* Quick info items on job detail */
.quick-info-item {
    white-space: nowrap;
}

/* Social share buttons */
.share-btn {
    white-space: nowrap;
}

/* Country cards */
.country-card h3 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================
   MOBILE RESPONSIVE - CONTROLLED WRAPPING
   ======================================== */

@media (max-width: 576px) {
    /* Allow job meta to stack on very small screens but keep items together */
    .job-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .job-meta-item {
        white-space: nowrap;
    }
    
    /* Navigation brand */
    .navbar-brand {
        white-space: nowrap;
        font-size: 1.25rem;
    }
    
    /* Hero stats - allow wrapping of stat items but not within them */
    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero-stats .stat-item {
        white-space: nowrap;
        min-width: auto;
    }
    
    /* Search buttons - icon only on very small screens */
    .btn-search span,
    .btn-clear span {
        display: none;
    }
    
    .btn-search,
    .btn-clear {
        padding: 0.75rem;
        min-width: 44px;
        justify-content: center;
    }
    
    /* Footer grid - single column */
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    /* Job card adjustments */
    .job-card-header {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .job-card-header h3 {
        word-break: break-word;
    }
    
    /* Quick info - stack vertically */
    .quick-info-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   TABLET RESPONSIVE
   ======================================== */

@media (min-width: 577px) and (max-width: 768px) {
    .job-meta {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .job-meta-item {
        white-space: nowrap;
    }
    
    .hero-stats {
        flex-wrap: nowrap;
        gap: 2rem;
    }
}

/* ========================================
   DESKTOP - NO WRAPPING ON LARGER SCREENS
   ======================================== */

@media (min-width: 769px) {
    .job-meta {
        flex-wrap: nowrap;
        gap: 1.25rem;
    }
    
    .hero-stats {
        flex-wrap: nowrap;
    }
    
    /* Ensure navbar displays correctly on desktop */
    .navbar-menu {
        display: flex !important;
        flex-wrap: nowrap;
    }
    
    .mobile-menu-toggle {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
    
    .navbar {
        position: sticky;
    }
}

/* ========================================
   COOKIE CONSENT BANNER
   ======================================== */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: 1.25rem 2rem;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-text {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 280px;
}

.cookie-text strong {
    font-size: 1rem;
}

.cookie-text p {
    line-height: 1.5;
}

.cookie-text a {
    text-decoration: underline;
}

.cookie-text a:hover {
    text-decoration: none;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.cookie-btn-decline {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}

.cookie-btn-decline:hover {
    background: var(--light-bg);
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

/* Cookie consent responsive */
@media (max-width: 768px) {
    .cookie-consent {
        padding: 1rem 1.25rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-text {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-text i {
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-btn {
        flex: 1;
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .cookie-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

/* ========================================
   READ MORE LINK HOVER EFFECT
   ======================================== */

.read-more-link:hover {
    gap: 0.75rem !important;
}

.read-more-link:hover i {
    transform: translateX(3px);
}

.read-more-link i {
    transition: transform 0.3s ease;
}

/* ========================================
   MOBILE OVERFLOW PREVENTION
   ======================================== */

/* Prevent horizontal scrolling on all screen sizes */
pre, code {
    overflow-x: auto;
    max-width: 100%;
    word-wrap: break-word;
    white-space: pre-wrap;
}

table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
}

/* Ensure long text breaks properly */
h1, h2, h3, h4, h5, h6, p, a, span, div {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Images and media should never overflow */
img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* ========================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   Professional Mobile-First Design
   ======================================== */

/* ===========================================
   TABLET BREAKPOINT (768px - 1024px)
   =========================================== */
@media (max-width: 1024px) {
    .navbar-container {
        padding: 0 1.5rem;
    }
    
    .section-container {
        padding: 0 1.5rem;
    }
    
    .hero-section {
        padding: 3rem 1.5rem;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* ===========================================
   MOBILE BREAKPOINT (max-width: 768px)
   =========================================== */
@media (max-width: 768px) {
    /* === GLOBAL MOBILE STYLES === */
    html, body {
        font-size: 15px;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Prevent all elements from overflowing */
    * {
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Ensure all major containers fit within viewport */
    .section,
    .section-container,
    .hero-section,
    .hero-container,
    .footer,
    .footer-container,
    .jobs-grid,
    .blog-layout {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    /* Fix for images and media */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* === NAVIGATION === */
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100vw;
        z-index: 1000;
        padding: 0.75rem 0;
        background: var(--white);
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        overflow-x: hidden;
    }
    
    .navbar-container {
        padding: 0 1rem;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-brand i {
        font-size: 1.1rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.5rem;
        font-size: 1.25rem;
    }
    
    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 0.5rem 0;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        border-top: 1px solid var(--border-color);
    }
    
    .navbar-menu.active {
        display: flex;
    }
    
    .navbar-menu li {
        width: 100%;
    }
    
    .navbar-menu a {
        display: block;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .navbar-menu a:hover {
        background: var(--light-bg);
    }
    
    /* === MOBILE NAV SPACER === */
    .mobile-nav-spacer {
        height: 60px !important;
        display: block;
    }
    
    /* === HERO SECTION === */
    .hero-section {
        padding: 2rem 0;
        min-height: auto;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .hero-content {
        padding: 0;
        text-align: center;
        width: 100%;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    /* === SEARCH BAR === */
    .hero-search-wrapper {
        flex-direction: column;
        margin: 0;
        border-radius: 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .hero-search-input-group {
        width: 100%;
        padding: 0.75rem 1rem;
        box-sizing: border-box;
    }
    
    .hero-search-input {
        font-size: 0.95rem;
        width: 100%;
        border: none;
        outline: none;
    }
    
    .hero-search-btn {
        width: calc(100% - 1rem);
        margin: 0.5rem;
        padding: 0.875rem;
        border-radius: 0.75rem;
        box-sizing: border-box;
    }
    
    /* === SECTIONS === */
    .section {
        padding: 2rem 0;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .section-container {
        padding: 0 1rem;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .section-header {
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    /* === JOBS GRID === */
    .jobs-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
        width: 100%;
        max-width: 100%;
    }
    
    /* === JOB CARDS === */
    .job-card {
        padding: 1rem;
        border-radius: 0.75rem;
        margin: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .job-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .job-title {
        font-size: 1.1rem;
    }
    
    .job-company {
        font-size: 0.9rem;
    }
    
    .job-card-body {
        margin: 0.75rem 0;
    }
    
    .job-card-footer {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .job-tags {
        flex-wrap: wrap;
        gap: 0.375rem;
    }
    
    .job-tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* === COUNTRY CARDS === */
    .country-card,
    .person-card {
        padding: 1.25rem;
    }
    
    /* === FAQ SECTION === */
    .faq-item {
        margin-bottom: 0.75rem;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .faq-answer {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    /* === FOOTER === */
    .footer {
        padding: 2rem 0;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .footer-container {
        padding: 0 1rem;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        width: 100%;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-section p,
    .footer-section li,
    .footer-section a {
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding-top: 1.5rem;
    }
    
    /* === AUTH PAGES === */
    .auth-section {
        padding: 1.5rem 1rem;
    }
    
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-card {
        padding: 1.5rem;
        border-radius: 1rem;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    /* === BUTTONS === */
    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
    
    /* === JOB DETAIL PAGE === */
    .job-detail-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .job-detail-main {
        order: 1;
    }
    
    .job-detail-sidebar {
        order: 2;
        position: static;
    }
    
    .job-detail-header {
        padding: 1.25rem;
    }
    
    .job-detail-title {
        font-size: 1.5rem;
    }
    
    .job-detail-content {
        padding: 1.25rem;
    }
    
    /* === SIDEBAR === */
    .sidebar-widget {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .sidebar-widget h3 {
        font-size: 1rem;
    }
    
    /* === VIEW ALL LINK === */
    .view-all-link {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ===========================================
   SMALL MOBILE BREAKPOINT (max-width: 480px)
   =========================================== */
@media (max-width: 480px) {
    html, body {
        font-size: 14px;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    
    /* Ensure all containers stay within bounds */
    .section-container,
    .hero-container,
    .navbar-container,
    .footer-container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* === NAVIGATION === */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-brand i {
        font-size: 1rem;
    }
    
    /* === HERO === */
    .hero-section {
        padding: 1.5rem 0;
    }
    
    .hero-container {
        padding: 0 0.75rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    /* === SECTIONS === */
    .section {
        padding: 1.5rem 0;
    }
    
    .section-container {
        padding: 0 0.75rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .section-subtitle {
        font-size: 0.85rem;
    }
    
    /* === JOB CARDS === */
    .job-card {
        padding: 0.875rem;
    }
    
    .job-title {
        font-size: 1rem;
    }
    
    .job-company {
        font-size: 0.85rem;
    }
    
    .job-description {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }
    
    /* === FAQ === */
    .faq-question {
        padding: 0.875rem;
        font-size: 0.9rem;
    }
    
    .faq-answer {
        padding: 0.875rem;
        font-size: 0.85rem;
    }
    
    /* === FOOTER === */
    .footer {
        padding: 1.5rem 0.75rem;
    }
    
    .footer-section h3 {
        font-size: 1rem;
    }
    
    .footer-section p,
    .footer-section li,
    .footer-section a {
        font-size: 0.85rem;
    }
    
    /* === AUTH === */
    .auth-card {
        padding: 1.25rem;
    }
    
    .auth-title {
        font-size: 1.35rem;
    }
    
    .form-input {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
    
    /* === JOB DETAIL === */
    .job-detail-header {
        padding: 1rem;
    }
    
    .job-detail-title {
        font-size: 1.25rem;
    }
    
    .job-detail-content {
        padding: 1rem;
    }
    
    /* === BUTTONS === */
    .btn-primary,
    .btn-secondary {
        padding: 0.7rem 1rem;
        font-size: 0.875rem;
    }
}

/* ===========================================
   EXTRA SMALL SCREENS (max-width: 360px)
   =========================================== */
@media (max-width: 360px) {
    html, body {
        font-size: 13px;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .hero-title {
        font-size: 1.35rem;
    }
    
    .section-title {
        font-size: 1.15rem;
    }
    
    .job-title {
        font-size: 0.95rem;
    }
}

