:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --text-white: #ffffff;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #111827;
    --bg-overlay: rgba(0, 0, 0, 0.5);
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --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);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    overflow-x: hidden;
}

.container {
    max-width: 98%;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-banner {
    position: relative;
    height: 380px;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -21112;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}


.hero-content {
    text-align: center;
    color: var(--text-white);
    max-width: 800px;
    padding: 0 2rem;
    animation: heroFadeIn 1s ease-out;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.hero-subtitle {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  opacity: 0;
  font-weight: bold;
  font-family: "Montserrat", sans-serif;
  animation: fadeIn .8s ease-out .6s forwards;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  margin-bottom: 2rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}


.main-content {
    padding-top: 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.section-title i {
    color: var(--primary-color);
}

.categories-section {
    padding: 1.5rem 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
}

.category-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.25rem 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}

.category-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.vacancy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.vacancy-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid rgb(148, 148, 149) ;
}

.vacancy-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border: 2px solid #0069d989;
}

.vacancy-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.vacancy-company {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.vacancy-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.apply-btn {
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    width: 100%;
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition);
}

.apply-btn:hover {
    background: var(--primary-dark);
}

.job-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.company-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.company-info img {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    border: 1px solid var(--border-light);
}

.company-info h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.job-meta-info {
    display: flex;
    gap: 0.5rem;
}

.job-type,
.job-level {
    padding: 0.25rem 0.6rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 500;
}

.job-type {
    background: var(--primary-color);
    color: var(--text-white);
}

.job-level {
    background: var(--success-color);
    color: var(--text-white);
}

.job-description,
.job-requirements,
.job-benefits {
    margin-bottom: 1.5rem;
}

.job-description h4,
.job-requirements h4,
.job-benefits h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.job-description p {
    line-height: 1.6;
    color: #333;
    font-size: 0.9rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    overflow-x: hidden;
}

#modal-job-description {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    overflow-x: hidden;
}


.job-stats {
    display: flex;
    gap: 2rem;
    padding: 0.75rem;
    margin-top: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.stat i {
    color: var(--primary-color);
}

.modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-top: 1px solid var(--border-color);
    justify-content: flex-end;
    background: var(--bg-secondary);
}

.company-contact-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: white;
    padding: 0.5rem;
    border-radius: var(--radius-md);
}

.contact-item {
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    gap: 1rem;
    color: #92400e;
    padding: 0.75rem 1rem;
    background: #fef3cd;
    border-radius: var(--radius-md);
    border: 1px solid #fde68a;
    transition: var(--transition);
}

.contact-item:hover {
    border-color: #fde68a;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.contact-item i {
      align-items: center;
    text-align: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-color);
    width: 24px;
    text-align: center;
}

.contact-item > div {
    display: flex;
        align-items: center;
    text-align: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.contact-label {
      align-items: center;
    text-align: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 500;
    color: #92400e;
    letter-spacing: 0.5px;
}

.contact-label a {
  text-decoration: none;
}

.contact-label a:hover {
   text-decoration:underline
}



.contact-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.btn-primary,
.btn-secondary {
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-light);
}

.application-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.65rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.site-footer {
    background: #1e293b;
    color: white;
    margin-top: 3rem;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    padding: 2.5rem 0;
}

.footer-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: white;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo i {
    color: var(--primary-color);
}

.footer-section p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.65rem;
}

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-section ul li a:hover {
    color: white;
    padding-left: 0.25rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.contact-info i {
    color: var(--primary-color);
    width: 16px;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding: 1.25rem 0;
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
}

#popupNotification {
    position: fixed;
    bottom: 20px;
    left: 20px;
    min-width: 250px;
    max-width: 350px;
    padding: 12px 18px;
    border-radius: 8px;
    color: #fff;
    z-index: 3000000;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.4;
    font-weight: normal;
    word-wrap: break-word;
}

#popupNotification.show {
    opacity: 1;
    transform: translateY(0);
}

#popupNotification.success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border-left: 4px solid #28a745;
}

#popupNotification.error {
    background: linear-gradient(135deg, #e63946, #dc3545);
    border-left: 4px solid #e63946;
}

.modal-overlay {
    display: none;
    position: fixed;
    z-index: 1000000000000000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.apply-modal {
    background: white;
    margin: 2% auto;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease-out;
}

.category-modal {
    background: white;
    margin: 2% auto;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    scrollbar-width: none;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease-out;
}

.job-modal {
    background: white;
    margin: 2% auto;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 1000px;
    max-height: 100vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    background: var(--bg-secondary);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--text-secondary);
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background: #e2e8f0;
    color: var(--text-primary);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(to bottom, white, var(--bg-secondary));
}

.modal-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.modal-body {
    padding: 1.5rem;
    background: var(--bg-secondary);
}

.apply-modal .modal-header {
    background: #f8f9fa;
    padding: 14px 18px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-radius: 12px 12px 0 0;
}

.apply-modal .modal-title {
    display: none;
}

.apply-modal .modal-close-btn {
    background: transparent;
    border: none;
    color: #6c757d;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 18px;
    padding: 0;
}

.apply-modal .modal-close-btn:hover {
    color: #000;
}

#apply-form {
    padding: 20px 24px;
}

#apply-form .form-group {
    margin-bottom: 16px;
}

#apply-form .form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    margin-bottom: 6px;
    font-size: 13px;
    color: #495057;
}

#apply-form .form-group label i {
    font-size: 14px;
    color: #007bff;
    width: 16px;
}

#apply-form input,
#apply-form textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: #ffffff;
    color: #495057;
    font-size: 13px;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

#apply-form input::placeholder,
#apply-form textarea::placeholder {
    color: #6c757d;
}

#apply-form input:focus,
#apply-form textarea:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

#apply-form textarea {
    min-height: 70px;
    resize: vertical;
}

#apply-form input[type="file"] {
    padding: 7px 10px;
    cursor: pointer;
    font-size: 12px;
}

.apply-form-note {
    font-size: 11px;
    color: #6c757d;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.apply-form-note i {
    font-size: 11px;
}

.apply-form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

.apply-form-cancel {
    padding: 9px 18px;
    background: transparent;
    color: #6c757d;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.apply-form-cancel:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.apply-form-submit {
    padding: 9px 22px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.apply-form-submit:hover {
    background: #0069d9;
}

.apply-form-submit:active {
    transform: scale(0.98);
}
.vacancy-card{
    box-shadow: 0 4px 6px -1px rgb(148, 148, 149);
  }
.apply-form-submit i,
.apply-form-cancel i {
    font-size: 13px;
}

.apply-modal::-webkit-scrollbar,
.job-modal::-webkit-scrollbar,
.category-modal::-webkit-scrollbar {
    width: 6px;
}

.apply-modal::-webkit-scrollbar-track,
.job-modal::-webkit-scrollbar-track,
.category-modal::-webkit-scrollbar-track {
    background: #f8f9fa;
}

.apply-modal::-webkit-scrollbar-thumb,
.job-modal::-webkit-scrollbar-thumb,
.category-modal::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 3px;
}

.apply-modal::-webkit-scrollbar-thumb:hover,
.job-modal::-webkit-scrollbar-thumb:hover,
.category-modal::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

.carousel-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.carousel {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    z-index: 10000;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel img.active {
    opacity: 1;
}

@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    .vacancy-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .modal-section p {
      font-size: 14.5px !important;
    }
    .hero-banner {
        height: 320px;
        min-height: 320px;
    }
    .section-title {
        font-size: 1.75rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.6rem;
    }
    .category-card {
        padding: 1rem 0.5rem;
    }
    .category-icon {
        font-size: 1.5rem;
    }
    .category-name {
        font-size: 0.85rem;
    }
    .vacancy-grid {
        grid-template-columns: 1fr;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        padding: 2rem 0;
    }
    .job-details-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .job-meta-info {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .modal-footer {
        flex-direction: column;
    }
    .company-contact-container {
        gap: 0.75rem;
    }
    .contact-item {
        padding: 0.6rem 0.85rem;
    }
    .contact-item i {
        font-size: 1.1rem;
    }
    .contact-label {
        font-size: 0.7rem;
    }
    .contact-value {
        font-size: 0.85rem;
    }
    .job-modal,
    .category-modal {
        width: 95%;
        margin: 1rem;
        max-height: 85vh;
    }
    .apply-modal {
        width: 95%;
        margin: 1rem;
    }
    .modal-body {
        padding: 1.25rem;
    }
    .modal-header {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    .hero-banner {
        height: 280px;
        min-height: 280px;
    }
    .category-card {
        padding: 0.85rem 0.4rem;
    }
    .category-icon {
        font-size: 1.35rem;
    }
    .category-name {
        font-size: 0.8rem;
    }
    .company-info {
        flex-direction: column;
        align-items: flex-start;
    }
    .company-info img {
        width: 60px;
        height: 60px;
    }
    .job-stats {
        flex-direction: column;
        gap: 0.75rem;
    }
    .modal-close {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }
    #apply-form {
        padding: 16px 18px;
    }
    .apply-form-buttons {
        flex-direction: column;
    }
    .apply-form-cancel,
    .apply-form-submit {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 0.4rem;
    }
    
    .hero-banner {
        height: 250px;
        min-height: 250px;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .category-card {
        padding: 0.75rem 0.35rem;
    }
    
    .category-icon {
        font-size: 1.25rem;
    }
    
    .category-name {
        font-size: 0.75rem;
    }
    
    .vacancy-card {
        padding: 0.875rem;
    }
    
    .vacancy-title {
        font-size: 0.9rem;
    }
    
    .vacancy-company {
        font-size: 0.8rem;
    }
    
    .company-info img {
        width: 50px;
        height: 50px;
    }
    
    .modal-close {
        width: 28px;
        height: 28px;
        font-size: 1rem;
        right: 0.75rem;
        top: 0.75rem;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
    
    .job-modal,
    .category-modal,
    .apply-modal {
        width: 98%;
        margin: 0.5rem;
        max-height: 95vh;
    }
    
    #apply-form {
        padding: 14px 16px;
    }
    
    .contact-item {
        padding: 0.5rem 0.75rem;
    }
    
    .contact-item i {
        font-size: 1rem;
    }
    
    .contact-label {
        font-size: 0.65rem;
    }
    
    .contact-value {
        font-size: 0.8rem;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

.scale-in {
    animation: scaleIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.text-center {
    text-align: center;
}

.hidden {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Modal styles from vakansiyalar.css */
.close-modal {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  color: var(--text-light);
  cursor: pointer;
  z-index: 1;
  line-height: 1;
  background: var(--bg-secondary);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close-modal:hover {
  background: var(--danger-color);
  color: #fff;
  transform: rotate(90deg);
}

.modal-details {
  padding: 28px;
}

.modal-details h2 {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-details h2 i {
  color: var(--primary-color);
}

.modal-company-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.modal-company-logo {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.modal-company-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.modal-company-logo i {
  font-size: 20px;
  color: var(--primary-color);
}

.modal-company {
  color: var(--text-secondary);
  margin-bottom: 0;
  font-size: 15px;
  font-weight: 500;
}

.premium-badge-modal {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #fff;
  padding: 5px 14px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 10px;
}

.modal-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 20px 0;
  padding: 18px;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  font-size: 14px;
}

.modal-info-grid strong {
  color: var(--text-primary);
  font-weight: 600;
}

.modal-section {
  margin: 20px 0;
}

.modal-section h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.modal-section p {
  line-height: 2;
  font-size: 17px !important;
  padding:3px 0;
}

.modal-section ul {
  margin: 12px 0;
  padding-left: 24px;
  list-style: none;
}

.modal-section ul li {
  margin-bottom: 8px;
  position: relative;
  color: #333;
  font-size: 15px;
  padding-left: 20px;
}

.modal-section ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #3b82f6;
    font-size: 16px;
    font-weight: normal;
    line-height: 1.5;
}
.modal-section p[style="color: #453c3c"] {
  color: #453c3c !important;
}

.modal-views {
  padding: 14px;
  background: linear-gradient(135deg, #e0f2fe 0%, #bfdbfe 100%);
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);
  margin: 20px 0;
  font-weight: 600;
  color: #1e40af;
  font-size: 14px;
}

/* Role-based messages */
.login-message,
.biznes-message {
  padding: 16px;
  border-radius: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.login-message {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border: 2px solid #3b82f6;
  color: #1e40af;
}

.login-message a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: underline;
}

.login-message a:hover {
  color: var(--primary-dark);
}

.biznes-message {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border: 2px solid #ef4444;
  color: #991b1b;
}

.biznes-message i {
  font-size: 16px;
}

.btn-apply,
.btn-applied,
.btn-login {
  width: 100%;
  padding: 13px 22px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: "Inter", sans-serif;
}

.btn-apply {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-apply:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.btn-applied {
  background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
  color: #fff;
  cursor: not-allowed;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-login {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: #fff;
}

.modal-section h5 {
    font-size:15px;
}
@media (max-width: 768px) {
    .modal-section p {
        font-size: 14.5px !important;
    }
}
