@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,100..900;1,100..900&display=swap');

* {
    font-family: "Archivo";
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding-top: 20px;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    backdrop-filter: blur(5px);
    overflow-x: hidden;
    max-width: 100vw;
}

.title-logo {
    color: white;
}

/*navbar*/

.navbar {
    background-color: #747bda;
    /* Changed from hidden to visible so dropdown menus are not clipped */
    overflow: visible;
    position: sticky;
    top: 0;
    /* Increased z-index so dropdown sits above other content */
    z-index: 2000;
    width: calc(100% - 40px); /* Account for body padding */
    max-width: 1575px;
    padding: 1rem 2rem;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    margin: 0 auto; /* Center the navbar */
    display: flex; /* Added flex display */
    align-items: center; /* Vertical alignment */
    justify-content: space-between; /* Space between logo and links */
    box-sizing: border-box; /* Include padding in width calculation */
}

/* New logo styles */
.navbar-logo {
    height: 40px; /* Adjust based on your logo size */
    width: auto;
    margin-right: 30px;
    filter: brightness(0) invert(1);
}

.navbar-links {
    display: flex;
    justify-content: flex-end; /* Changed to push links to right */
    flex-wrap: wrap;
    gap: 10px;
    flex: 1; /* Take remaining space */
    z-index: 999;
}

/* Ensure dashboard dropdown menus appear above other elements */
.dashboard-dropdown { position: relative; z-index: 3000; }
.dashboard-dropdown .dropdown-menu { z-index: 4000 !important; }

/* Dashboard dropdown styled like navbar links */
.dashboard-dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
}

.dashboard-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #747bda;
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 10px;
    padding: 6px;
    min-width: 210px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    display: none; /* JS toggles */
}

.dashboard-dropdown .dropdown-menu a {
    background: rgba(255,255,255,0.12);
    margin: 4px 0;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 1rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    text-decoration: none;
    transition: all .25s ease;
}

.dashboard-dropdown .dropdown-menu a:hover {
    background: rgba(255,255,255,0.22);
    transform: translateY(-3px);
    color: #b6f5e5;
    border-color: rgba(255,255,255,0.35);
}

.dashboard-dropdown .dropdown-menu a:active {
    transform: translateY(-1px);
}

.dashboard-dropdown .dropdown-arrow-btn {
    background: rgba(255,255,255,0.15);
    border: 2px solid transparent;
    border-radius: 6px;
    color: #fff;
    transition: all .25s ease;
    margin-left: 6px;
    padding: 4px 8px;
    font-size: 0.7rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dashboard-dropdown .dropdown-arrow-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-3px);
}

.dashboard-dropdown .dropdown-arrow-btn:active {
    transform: translateY(-1px);
}

.dashboard-dropdown .dropdown-arrow-btn.open {
    transform: rotate(180deg) translateY(-3px);
}

.map-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 4000;
    background: rgba(0, 0, 0, 0.6);
    padding: 40px 20px;
    overflow-y: auto;
}

.map-modal-content {
    background: #ffffff;
    margin: 0 auto;
    width: min(900px, 100%);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
    padding: 24px;
    position: relative;
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
}

.map-header h3 {
    margin: 0;
    font-size: 1.35rem;
    color: #1a2a6c;
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-modal .close-modal,
.map-modal .close {
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
    color: #6c757d;
    cursor: pointer;
    transition: color 0.2s ease;
}

.map-modal .close-modal:hover,
.map-modal .close:hover {
    color: #e74c3c;
}

.map-instructions {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1a2a6c;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 18px;
    border-left: 4px solid #1a2a6c;
    box-shadow: 0 2px 6px rgba(26, 42, 108, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-modal #map-container,
.map-modal #freelancer-setup-map,
.map-modal #employer-map-container {
    width: 100%;
    min-height: 420px;
    border: 1px solid #dce2eb;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.map-modal .modal-actions {
    margin-top: 18px;
}

.map-modal .btn-cancel {
    background-color: #fff;
    border: 2px solid #747bda;
    color: #747bda;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
}

.map-modal .btn-cancel:hover {
    background-color: rgba(116, 123, 218, 0.05);
    box-shadow: 0 4px 8px rgba(116, 123, 218, 0.1);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .map-modal {
        padding: 24px 12px;
    }

    .map-modal-content {
        padding: 18px;
    }

    .map-modal #map-container,
    .map-modal #freelancer-setup-map,
    .map-modal #employer-map-container {
        min-height: 360px;
    }
}

.navbar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    text-align: center;
    padding: 12px 20px;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.navbar a:hover {
    color: #b6f5e5;
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar a:active {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Icon styles */
.navbar a i {
    font-size: 1.2rem;
}

/* Main Content Styles */
/* Hero Section Styles - Introduction */
/* Updated Hero Section Styles */
.hero-section {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 1600px;
    width: calc(100% - 40px);
    padding: 1rem;
    min-height: 600px; /* Adjust based on your needs */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(38, 145, 127, 0.85), rgba(111, 131, 194, 0.85));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 80px 20px;
    text-align: center;
    color: white;
}

.logo {
    width: 200px;
    -webkit-filter: drop-shadow(5px 5px 5px #222);
    filter: drop-shadow(5px 5px 5px #4e4157);
}

.title-logo {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

.question {
    font-size: 1.8rem;
    margin: 20px 0;
    font-weight: 600;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 40px;
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1;
}

.btn-freelancer {
    background-color: #ffffff;
    color: #397681;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-client {
    background-color: rgba(213, 36, 236, 0.2);
    color: rgb(254, 253, 255);
    border: 2px solid white;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    padding: 12px 30px;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

/* Information Section Styles */
.info-section {
    padding: 60px 20px;
    background-color: white;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 1600px;
    width: calc(100% - 40px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 2.5rem;
    color: #7a74da;
    margin-bottom: 30px;
    text-align: center;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    max-width: 100%;
}

.info-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.info-card i {
    font-size: 3rem;
    color: #7a74da;
    margin-bottom: 20px;
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

/* Assistance Section Styles */
.assistance-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #b1b1e5, #e9e8ff);
    border-radius: 10px;
    margin: 20px auto;
    max-width: 1600px;
    width: calc(100% - 40px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.assistance-content {
    max-width: 800px;
    margin: 0 auto;
}

.assistance-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
    max-width: 100%;
}

.assistance-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background-color: white;
    color: #7a74da;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.assistance-btn:hover {
    background-color: #7a74da;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Footer Styles */
.footer {
    background-color: var(--white);
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.footer-container {
    max-width: 1400px;
    width: calc(100% - 40px);
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-column {
    margin-bottom: 1.5rem;
    flex: 1;
    min-width: 200px;
    margin-right: 1rem;
}

.footer-column:last-child {
    margin-right: 0;
}

.footer-brand {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-text {
    color: var(--gray);
    margin-bottom: 1rem;
}

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

.social-link {
    width: 36px;
    height: 36px;
    background-color: var(--primary);
    color: rgb(43, 29, 41);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.footer-heading {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    color: var(--gray);
    text-decoration: none;
}

.footer-copyright {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--gray);
}

/* Search Modal Styles */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Simple alerts */
.alert{ 
    border-radius: 10px; 
    padding: 12px 16px; 
    border: 1px solid #e9ecef; 
    background: #f8f9fa; 
    color: #495057; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.alert.success{ 
    border-color: #c3e6cb; 
    background: #d4edda; 
    color: #155724; 
}
.alert.error{ 
    border-color: #f5c6cb; 
    background: #f8d7da; 
    color: #721c24; 
}

#toast-container{
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    width: min(95vw, 700px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 10px;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.search-modal-content {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    padding: 35px;
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideUp 0.4s ease-out;
    position: relative;
}

.search-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #747bda, #9c88ff, #747bda);
    border-radius: 20px 20px 0 0;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f3f8;
}

.modal-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header h2::before {
    content: "🔍";
    font-size: 1.5rem;
}

.search-modal-close {
    background: #f8f9fa;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    color: #6c757d;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-modal-close:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.filter-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.filter-option {
    position: relative;
}

.filter-option label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-option select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    color: #495057;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 15px center;
    background-repeat: no-repeat;
    background-size: 1.2em;
    cursor: pointer;
}

.filter-option select:focus {
    border-color: #747bda;
    outline: none;
    box-shadow: 0 0 0 3px rgba(116, 123, 218, 0.1);
    transform: translateY(-2px);
}

.filter-option select:hover {
    border-color: #bdc3e6;
    transform: translateY(-1px);
}

.search-button {
    width: 100%;
    background: linear-gradient(135deg, #747bda 0%, #9c88ff 100%);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 18px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(116, 123, 218, 0.3);
    position: relative;
    overflow: hidden;
}

.search-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.search-button:hover::before {
    left: 100%;
}

.search-button:hover {
    background: linear-gradient(135deg, #5a62c5 0%, #8a7df0 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(116, 123, 218, 0.4);
}

.search-button:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(116, 123, 218, 0.3);
}

/* Enhanced CTA Button Styles */
.cta-button {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.4s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.cta-button:active {
    transform: translateY(0px);
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.2);
}

.cta-button i {
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: scale(1.1);
}

/* Centralized Apply/Message button */
.btn-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #747bda 0%, #6470c5 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 12px 22px;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(116, 123, 218, 0.35);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn-apply::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.4s ease;
}

.btn-apply:hover::before { left: 100%; }
.btn-apply:hover {
    background: linear-gradient(135deg, #656fd0 0%, #5964b8 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(116, 123, 218, 0.45);
}
.btn-apply:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(116, 123, 218, 0.3);
}
.btn-apply i { font-size: 0.95em; }

/* Ensure anchors and buttons look identical */
a.btn-apply { border: none; }
button.btn-apply { border: none; }

/* Disabled/applied state if needed */
.btn-applied {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #e9ecff;
    color: #6b72c7;
    border: 1px solid #cfd5ff;
    border-radius: 8px;
    font-weight: 700;
    padding: 12px 22px;
    font-size: 1rem;
    cursor: not-allowed;
}

/* Search Modal Form Enhancements */
.modal-form {
    margin-top: 10px;
}

.form-description {
    background: #f8f9fa;
    border-left: 4px solid #747bda;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 0 8px 8px 0;
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.5;
}

.search-field {
    margin-bottom: 20px;
}

.search-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-field input,
.search-field select,
.search-field textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    color: #495057;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.search-field input:focus,
.search-field select:focus,
.search-field textarea:focus {
    border-color: #747bda;
    outline: none;
    box-shadow: 0 0 0 3px rgba(116, 123, 218, 0.1);
    transform: translateY(-2px);
}

.search-field input:hover,
.search-field select:hover,
.search-field textarea:hover {
    border-color: #bdc3e6;
    transform: translateY(-1px);
}

.search-field input::placeholder {
    color: #adb5bd;
    font-style: italic;
}

/* Textarea enhancements to match inputs visually */
.search-field textarea {
    min-height: 120px;
    line-height: 1.4;
    resize: vertical;
}

.search-field textarea::placeholder {
    color: #adb5bd;
    font-style: italic;
}

/* Select wrapper for custom dropdown arrow */
.select-wrapper {
    position: relative;
}

.select-wrapper select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 15px center;
    background-repeat: no-repeat;
    background-size: 1.2em;
    cursor: pointer;
}

/* Responsive Design for Search Modal */
@media (max-width: 768px) {
    .search-modal-content {
        padding: 25px;
        margin: 20px;
        width: calc(100% - 40px);
        max-width: none;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .filter-options {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .search-button {
        padding: 15px 25px;
        font-size: 1rem;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .search-field input,
    .search-field select,
    .filter-option select {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .search-modal-content {
        padding: 20px;
        margin: 15px;
        width: calc(100% - 30px);
    }

    .modal-header h2 {
        font-size: 1.3rem;
    }

    .modal-header h2::before {
        font-size: 1.2rem;
    }
}

/* Responsive styles for index.php */

/* Large laptop/desktop responsive (MacBook and similar screens) */
@media screen and (max-width: 1680px) {
    .navbar {
        width: calc(100% - 40px);
        padding: 1rem 1.5rem;
    }
    
    .navbar-links {
        gap: 8px;
    }
    
    .navbar a {
        font-size: 1.1rem;
        padding: 10px 16px;
    }
}

@media screen and (max-width: 1440px) {
    .navbar {
        width: calc(100% - 30px);
        padding: 1rem 1.2rem;
    }
    
    .navbar-links {
        gap: 6px;
    }
    
    .navbar a {
        font-size: 1rem;
        padding: 10px 14px;
    }
}

@media screen and (max-width: 1280px) {
    .navbar {
        width: calc(100% - 20px);
        padding: 0.9rem 1rem;
    }
    
    .navbar-logo {
        height: 35px;
        margin-right: 20px;
    }
    
    .navbar-links {
        gap: 5px;
    }
    
    .navbar a {
        font-size: 0.95rem;
        padding: 10px 12px;
    }
}

@media screen and (max-width: 1024px) {
    .navbar {
        width: calc(100% - 20px);
        padding: 0.8rem 1rem;
    }
    
    .navbar-logo {
        height: 32px;
        margin-right: 15px;
    }
    
    .navbar-links {
        gap: 4px;
    }
    
    .navbar a {
        font-size: 0.9rem;
        padding: 8px 10px;
        gap: 5px;
    }
}

/* Mobile responsive navbar */
@media screen and (max-width: 768px) {
    .navbar {
        flex-direction: column;
        width: calc(100% - 20px);
        padding: 0.8rem 0.8rem;
        gap: 10px;
        align-items: center;
        margin: 10px auto;
    }
    
    .navbar-logo {
        margin-right: 0;
        margin-bottom: 8px;
        height: 35px;
    }
    
    .navbar-links {
        flex-wrap: wrap;
        justify-content: center;
        padding-bottom: 5px;
        width: 100%;
        gap: 5px;
    }
    
    .navbar a {
        font-size: 0.85rem;
        padding: 8px 10px;
        white-space: nowrap;
    }
    
    .dashboard-dropdown .dropdown-menu {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        min-width: 180px;
    }
}

/* Android phones and similar (720px width) */
@media screen and (max-width: 720px) {
    body {
        padding-top: 10px;
        overflow-x: hidden;
    }

    .navbar {
        width: calc(100% - 16px);
        margin: 8px auto;
        padding: 0.7rem 0.6rem;
        border-radius: 8px;
    }
    
    .navbar-logo {
        height: 32px;
        margin-bottom: 6px;
    }
    
    .navbar-links {
        gap: 4px;
    }
    
    .navbar a {
        font-size: 0.8rem;
        padding: 7px 9px;
        gap: 4px;
    }
    
    .hero-section {
        margin: 10px auto;
        padding: 0.5rem;
        min-height: 500px;
        border-radius: 8px;
        max-width: 100%;
        width: calc(100% - 16px);
    }
    
    .hero-content {
        padding: 40px 15px;
    }
    
    .logo {
        width: 120px;
    }
    
    .title-logo {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    .hero-description {
        font-size: 1rem;
        max-width: 100%;
        padding: 0 10px;
        margin: 0 auto 20px;
    }
    
    .question {
        font-size: 1.3rem;
        margin: 15px 0;
    }
    
    .button-group {
        flex-direction: column;
        gap: 12px;
        margin-top: 20px;
        padding: 0 20px;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    /* Info section responsive */
    .info-section {
        padding: 30px 15px;
        margin: 15px auto;
        max-width: 100%;
        width: calc(100% - 16px);
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Assistance section responsive */
    .assistance-section {
        padding: 30px 15px;
        margin: 15px auto;
        max-width: 100%;
        width: calc(100% - 16px);
    }
    
    .assistance-content p {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .assistance-buttons {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0 10px;
    }
    
    /* Footer responsive */
    .footer-container {
        padding: 30px 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* Small mobile devices */
@media screen and (max-width: 480px) {
    .navbar {
        width: calc(100% - 10px);
        padding: 0.7rem 0.5rem;
        border-radius: 8px;
    }
    
    .navbar-logo {
        height: 32px;
        margin-bottom: 8px;
    }
    
    .navbar-links {
        gap: 3px;
    }
    
    .navbar a {
        font-size: 0.8rem;
        padding: 6px 8px;
        gap: 4px;
    }
    
    .navbar a i {
        font-size: 0.85rem;
    }
}

/* Hero section responsive */
@media screen and (max-width: 992px) {
    .hero-content {
        padding: 0 20px;
        text-align: center;
    }
    
    .logo-container {
        margin: 0 auto 20px;
    }
    
    .hero-description {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .title-logo {
        font-size: 2.5rem;
    }
    
    .button-group {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .btn {
        width: 100%;
    }
}

/* Information section responsive */
@media screen and (max-width: 992px) {
    .info-cards {
        flex-direction: column;
        gap: 30px;
    }
    
    .info-card {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Assistance section responsive */
@media screen and (max-width: 768px) {
    .assistance-content {
        padding: 20px;
    }
    
    .assistance-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .assistance-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

/* Footer responsive */
@media screen and (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media screen and (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-copyright {
        text-align: center;
    }
}

/* Small screen optimizations */
@media screen and (max-width: 480px) {
    .navbar a {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .title-logo {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero-content {
        padding-top: 60px;
    }
    
    .footer-container {
        padding: 40px 20px 20px;
    }
}

/* Fix for hero video on mobile */
@media screen and (max-width: 768px) {
    .hero-video {
        object-position: center;
    }
    
    .hero-overlay {
        background-color: rgba(0, 0, 0, 0.6); /* Darker overlay on mobile for better text legibility */
    }
}