/* Main Stylesheet for Imployii */

/* Prevent horizontal scrolling globally */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

:root {
    --primary-color: #FF5400;
    --secondary-color: #001849;
    --white: #FFFFFF;
    --light-gray: #f7f9fc;
    --dark-gray: #666666;
    --black: #333333;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Global button styles with brand colors */
.btn-primary,
button.btn-primary,
a.btn-primary,
input[type="submit"].btn-primary {
    background-color: #FF5400 !important;
    border-color: #FF5400 !important;
    color: white !important;
}

.btn-primary:hover, 
.btn-primary:focus,
button.btn-primary:hover,
a.btn-primary:hover,
input[type="submit"].btn-primary:hover {
    background-color: #e64a00 !important;
    border-color: #e64a00 !important;
}

.btn-outline-primary,
button.btn-outline-primary,
a.btn-outline-primary {
    color: #FF5400 !important;
    border-color: #FF5400 !important;
    background-color: transparent !important;
}

.btn-outline-primary:hover, 
.btn-outline-primary:focus,
button.btn-outline-primary:hover,
a.btn-outline-primary:hover {
    background-color: #FF5400 !important;
    border-color: #FF5400 !important;
    color: white !important;
}

.text-primary,
.text-primary * {
    color: #FF5400 !important;
}

/* Make Sign Up button orange */
header .btn.btn-primary,
header .btn-primary,
.header-container .btn-primary,
a.btn.sign-up,
#sign-up-btn {
    background-color: #FF5400 !important;
    border-color: #FF5400 !important;
    color: white !important;
}

/* Force company button colors */
.company-card .btn-outline-primary,
.company-details .btn-outline-primary,
.card-footer .btn-outline-primary {
    color: #FF5400 !important;
    border-color: #FF5400 !important;
}

.company-card .btn-outline-primary:hover,
.company-details .btn-outline-primary:hover,
.card-footer .btn-outline-primary:hover {
    background-color: #FF5400 !important;
    color: white !important;
}

.meta-icon i,
.detail-icon i {
    color: #FF5400 !important;
}

/* Animation for gradient text */
@keyframes gradient-x {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animate-gradient-x {
    background-size: 200% 100%;
    animation: gradient-x 3s ease infinite;
}

/* Animation for ping effect */
@keyframes ping {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    70%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

.animate-ping {
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-1 { width: 8.33%; }
.col-2 { width: 16.66%; }
.col-3 { width: 25%; }
.col-4 { width: 33.33%; }
.col-5 { width: 41.66%; }
.col-6 { width: 50%; }
.col-7 { width: 58.33%; }
.col-8 { width: 66.66%; }
.col-9 { width: 75%; }
.col-10 { width: 83.33%; }
.col-11 { width: 91.66%; }
.col-12 { width: 100%; }

[class*="col-"] {
    padding: 0 15px;
    margin-bottom: 30px;
}

.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    text-align: center;
}

.highlight {
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-lg {
    padding: 12px 30px;
    font-size: 1.1rem;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--white);
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--secondary-color); }
.bg-light { background-color: var(--light-gray); }
.bg-white { background-color: var(--white); }

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    max-width: min(1400px, 100vw) !important;
    margin: 0 auto;
    box-sizing: border-box;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 50px;
    width: auto;
    background: transparent;
    mix-blend-mode: multiply;
}

.main-nav {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    min-width: 0;
    overflow: hidden;
}

.main-nav > ul {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav li {
    margin-left: 8px;
    flex-shrink: 0;
}

.main-nav a {
    color: var(--secondary-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.main-nav a i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.main-nav a.btn {
    color: var(--white);
    background-color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 30px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary-color);
    cursor: pointer;
}

/* Language Selector Styles */
.language-dropdown {
    position: relative;
    margin-left: 1.5rem;
}

.language-toggle {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    color: var(--secondary-color);
    font-weight: 500;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 30px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.language-toggle:hover {
    border-color: var(--light-gray);
}

.language-toggle i {
    margin-right: 5px;
    color: var(--primary-color);
}

.language-toggle .fa-chevron-down {
    font-size: 0.7rem;
    margin-left: 5px;
    color: var(--primary-color);
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    box-shadow: var(--shadow);
    border-radius: 10px;
    width: 600px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.language-dropdown:hover .language-menu {
    max-height: 600px;
    opacity: 1;
    visibility: visible;
    padding: 1.5rem;
}

.language-search {
    position: relative;
    margin-bottom: 1.5rem;
}

.language-search input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid var(--light-gray);
    border-radius: 30px;
    font-size: 0.9rem;
}

.language-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dark-gray);
}

.language-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.language-category h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.language-category ul li {
    margin-bottom: 0.5rem;
}

.language-category ul li a {
    color: var(--secondary-color);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.language-category ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.view-all-languages {
    text-align: center;
    margin-top: 1.5rem;
}

.view-all-languages a {
    color: var(--primary-color);
    font-size: 0.9rem;
    text-decoration: underline;
}

/* Messages Styles */
.messages-container {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 999;
    pointer-events: none; /* Allow clicks to pass through container */
}

.message {
    padding: 1rem 0;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    opacity: 1;
    pointer-events: auto; /* Re-enable pointer events for messages */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.5s ease-out forwards, fadeOut 0.5s ease-in 4.5s forwards;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.message-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.message-error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.message-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.message-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.message .container {
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 2rem;
}

.message-icon {
    margin-right: 1rem;
    font-size: 1.2rem;
}

.message-text {
    flex: 1;
    padding-right: 2rem;
}

.message-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    padding: 8px;
    font-size: 16px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.message-close:hover {
    opacity: 1;
}

/* Footer Styles */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-section p i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.copyright .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.copyright p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Custom FAQ Section styling */
.faq-section {
    padding: 5rem 0;
    background-color: #fff;
}

.faq-section .highlight {
    color: #FF5400;
}

.faq-list {
    margin-top: 2.5rem;
}

.faq-item {
    margin-bottom: 1.25rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.faq-question {
    padding: 1.5rem;
    background-color: #fff;
    color: #001849;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-question:after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #FF5400;
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.faq-item.active .faq-question {
    color: #FF5400;
}

.faq-item.active .faq-question:after {
    content: '\f077';
    transform: rotate(0deg);
}

.faq-answer {
    background-color: #f8f9fa;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px; /* Adjust as needed */
}

.faq-answer-content {
    color: #666;
    line-height: 1.6;
}

/* Work Permits Styles */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--light-gray);
}

.page-header h1 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.page-header .lead {
    color: var(--dark-gray);
    font-size: 1.1rem;
}

.country-filters {
    margin-bottom: 2rem;
}

#country-search {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--light-gray);
    border-radius: 30px;
    font-size: 1rem;
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.country-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.country-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.country-card a {
    color: var(--secondary-color);
    display: block;
}

.country-card-inner {
    padding: 1.5rem;
}

.country-flag {
    text-align: center;
    margin-bottom: 1rem;
}

.country-flag img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.country-flag i {
    font-size: 3rem;
    color: var(--primary-color);
}

.country-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    text-align: center;
}

.country-info {
    margin-bottom: 1rem;
    text-align: center;
}

.country-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.country-summary {
    color: var(--dark-gray);
    font-size: 0.9rem;
    line-height: 1.4;
}

.country-card .btn {
    width: 100%;
    display: block;
    margin-top: 1rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    background-color: var(--light-gray);
    border-radius: 10px;
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 3rem;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--dark-gray);
    font-size: 1.1rem;
}

/* Company Card Styles */
.company-card {
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}
.company-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Company Logo and Icon */
.company-logo {
    border-radius: 8px;
    object-fit: contain;
    background-color: #f8f9fa;
}
.company-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* Meta Icons */
.meta-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Detail Icons */
.detail-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Company Details */
.company-details .list-group-item {
    border-left: none;
    border-right: none;
    border-top: none;
    padding-top: 15px;
    padding-bottom: 15px;
}
.company-details .list-group-item:last-child {
    border-bottom: none;
}

/* Reviews */
.review-rating {
    color: #FFD700; /* Gold color for stars */
}

/* Job Items */
.job-item {
    transition: all 0.2s ease;
    padding: 15px;
    border-radius: 8px;
}
.job-item:hover {
    background-color: rgba(255, 84, 0, 0.05);
}

/* Icon Size Utility */
.icon-small {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

/* Work Permit Detail Styles */
.work-permit-detail {
    padding: 2rem 0;
}

.country-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.country-flag-lg {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 1.5rem;
}

.country-flag-sm {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    margin-right: 0.5rem;
    display: inline-block;
    vertical-align: middle;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.permit-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1rem;
    background-color: var(--light-gray);
    border-radius: 10px;
    margin-bottom: 2rem;
}

.permit-info-item {
    display: flex;
    flex-direction: column;
}

.permit-info-item .label {
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin-bottom: 0.25rem;
}

.permit-info-item .value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.work-permit-sections .section {
    margin-bottom: 2.5rem;
    padding: 0;
}

.work-permit-sections h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-gray);
}

.work-permit-sections h2:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-section {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.sidebar-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--light-gray);
}

.country-list {
    margin-bottom: 1.5rem;
}

.country-list li {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--light-gray);
}

.country-list li:last-child {
    border-bottom: none;
}

.country-list a {
    display: flex;
    align-items: center;
}

.dropdown {
    position: relative;
}

.dropdown ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
}

/* Custom orange arrow for Work Permits dropdown - Bootstrap compatible */
.main-nav .dropdown-toggle::after {
    display: none; /* Hide Bootstrap's default caret */
}

.dropdown-toggle .fa-caret-down,
.main-nav .dropdown-toggle .fa-caret-down {
    margin-left: 5px;
    font-size: 0.8rem;
    color: var(--primary-color) !important;
}

/* Work Permits Dropdown - Bootstrap Compatible */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    width: 300px;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: var(--shadow);
    border-radius: 10px;
    z-index: 1050;
    padding: 0.5rem 0;
    scrollbar-width: thin; /* For Firefox */
}

/* Align menu to the right when requested (Bootstrap compatibility) */
.dropdown-menu-end {
    right: 0;
    left: auto;
}

/* Custom scrollbar styles for the dropdown */
.dropdown-menu::-webkit-scrollbar {
    width: 8px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Bootstrap handles dropdown show/hide - removed hover conflicts */

.dropdown-menu li {
    margin: 0;
    width: 100%;
}

.dropdown-menu a {
    padding: 0.35rem 0.8rem;
    display: flex;
    align-items: center;
    color: var(--secondary-color);
    font-size: 0.85rem;
    transition: all 0.2s ease;
    width: 100%;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.dropdown-menu a:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.dropdown-divider {
    height: 1px;
    margin: 0.5rem 0;
    overflow: hidden;
    background-color: var(--light-gray);
}

/* Responsive Styles */
@media screen and (max-width: 991px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .language-menu {
        width: 500px;
    }

    .language-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .country-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .country-flag-lg {
        margin-bottom: 1rem;
        margin-right: 0;
    }

    .permit-summary {
        flex-direction: column;
        gap: 1rem;
    }

    .col-lg-8, .col-lg-4 {
        width: 100%;
    }
}

@media screen and (max-width: 767px) {
    .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, 
    .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
        width: 100%;
    }

    .show-mobile {
        display: block;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 1rem;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .main-nav.active {
        max-height: 600px;
        opacity: 1;
        visibility: visible;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav li {
        margin: 0.5rem 0;
        width: 100%;
    }

    .language-menu {
        width: 300px;
    }

    .language-list {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .copyright .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Additional responsive breakpoints for navigation overflow prevention */
@media (max-width: 1400px) {
    .header-container {
        max-width: 1200px !important;
        padding: 0.8rem 1rem;
    }
    
    .main-nav li {
        margin-left: 6px;
    }
    
    .main-nav a {
        font-size: 0.9rem;
        padding: 0.4rem 0.6rem;
    }
}

@media (max-width: 1200px) {
    .header-container {
        max-width: 100% !important;
        padding: 0.8rem 0.5rem;
    }
    
    .main-nav li {
        margin-left: 4px;
    }
    
    .main-nav a {
        font-size: 0.85rem;
        padding: 0.3rem 0.4rem;
    }
}

@media (max-width: 900px) {
    .main-nav li {
        margin-left: 2px;
    }
    
    .main-nav a {
        font-size: 0.8rem;
        padding: 0.2rem 0.3rem;
    }
    
    /* Language selector becomes icon-only on small screens */
    .language-selector-text {
        display: none;
    }
}

/* Living Guide Styles */
.living-guide-section {
    margin-top: 3rem;
}

.living-guide-intro {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--dark-gray);
}

.living-guide-categories {
    margin-top: 2rem;
}

.living-guide-category {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    height: 100%;
    border-top: 3px solid var(--primary-color);
}

.living-guide-category h3 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.living-guide-category h3 i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.living-guide-category .content {
    font-size: 0.95rem;
    line-height: 1.5;
}

.living-guide-category .content p {
    margin-bottom: 0.75rem;
}

.living-guide-category .content ul {
    padding-left: 1.5rem;
}

.disclaimer {
    margin-top: 2rem;
    font-style: italic;
    color: var(--dark-gray);
}

/* Reviews Section Styles */
.reviews-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-gray);
}

.reviews-container {
    margin-bottom: 2rem;
}

.review-count {
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
    font-size: 1rem;
}

.review-count .count {
    font-weight: bold;
    color: var(--primary-color);
}

.review-item {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--light-gray);
}

.reviewer-info h4 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.reviewer-name {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.review-date {
    color: var(--dark-gray);
    font-size: 0.8rem;
    opacity: 0.7;
}

.review-rating {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.review-content {
    color: var(--black);
    line-height: 1.6;
}

.review-pros-cons {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--light-gray);
}

.review-pros, .review-cons {
    flex: 1;
}

.review-pros h5, .review-cons h5 {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.review-pros h5 {
    color: #28a745;
}

.review-pros h5:before {
    content: '\f067';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 0.5rem;
    color: #28a745;
}

.review-cons h5 {
    color: #dc3545;
}

.review-cons h5:before {
    content: '\f068';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 0.5rem;
    color: #dc3545;
}

.no-reviews {
    text-align: center;
    padding: 2rem;
    background-color: var(--light-gray);
    border-radius: 10px;
    color: var(--dark-gray);
}

.no-reviews p:first-child {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Review Form Styles */
.review-form-container {
    background-color: var(--light-gray);
    border-radius: 10px;
    padding: 2rem;
}

.review-form-container h3 {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.review-form .form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.review-form .form-group {
    flex: 0 0 calc(50% - 20px);
    margin: 0 10px 1.5rem;
}

.review-form .form-group.col-md-6 {
    flex: 0 0 calc(50% - 20px);
}

.review-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.review-form input, 
.review-form textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.review-form input:focus, 
.review-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.review-form textarea {
    resize: vertical;
    min-height: 120px;
}

.rating-stars {
    display: flex;
    gap: 0.5rem;
    font-size: 1.5rem;
    color: #ddd;
    margin-top: 0.5rem;
    cursor: pointer;
}

.rating-stars i {
    transition: color 0.3s ease;
}

.rating-stars i:hover, 
.rating-stars i.selected {
    color: var(--primary-color);
}

.form-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.form-submit {
    margin-top: 1rem;
}

.review-disclaimer {
    margin-top: 1rem;
    color: var(--dark-gray);
}

/* Star Rating Styles */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    font-size: 2rem;
    color: #ddd;
    margin-right: 0.5rem;
}

.star-rating label:hover,
.star-rating label.hover,
.star-rating input:checked ~ label {
    color: #FF5400;
}

.star-rating-container {
    margin-bottom: 1rem;
}

/* Emoji Reaction Styles */
.emoji-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.btn-emoji {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.25rem 0.5rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.btn-emoji:hover {
    background-color: #e9ecef;
    transform: scale(1.1);
}

.btn-emoji.active {
    background-color: #FFF0E6;
    border-color: #FF5400;
    color: #FF5400;
}

.emoji {
    font-size: 1.2rem;
}

.emoji-count {
    font-size: 0.8rem;
    font-weight: bold;
    margin-top: 0.25rem;
}

.current-reactions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.reaction-badge {
    display: inline-flex;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 1rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.9rem;
}

.remote-badge {
    background-color: #E6FFF0;
    color: #00A352;
}

.verified-badge {
    background-color: #E8F5E9;
    color: #2E7D32;
    font-weight: 500;
}

.visa-badge {
    background-color: #E3F2FD;
    color: #1565C0;
    font-weight: 500;
}

@media (max-width: 576px) {
    .job-badge-row {
        flex-wrap: wrap;
    }
    .badge {
        margin-bottom: 0.5rem;
    }
}