/* Extracted from inline <style> in index.html */
/* ===== Modal Overlay ===== */
.custom-modal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    padding: 1rem;
    overflow-y: auto;
}

/* ===== Modal Box ===== */
.custom-modal-content {
    background: #fff;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.3s ease;
    font-family: 'Segoe UI', sans-serif;
}

/* ===== Animation ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Modal Header ===== */
.custom-modal-header {
    background-color: #f0f4f8;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.custom-modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.custom-btn-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #777;
    cursor: pointer;
}

.custom-btn-close:hover {
    color: #e74c3c;
}

/* ===== Modal Body ===== */
.custom-modal-body {
    padding: 1.25rem 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    overflow-y: auto;
    color: #444;
}

.custom-modal-body ol,
.custom-modal-body ul {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
}

.custom-modal-body li {
    margin-bottom: 6px;
}

.custom-modal-body strong {
    color: #222;
}

.custom-modal-body a {
    color: #007bff;
    text-decoration: none;
}

.custom-modal-body a:hover {
    text-decoration: underline;
}

.custom-modal-body img {
    max-width: 180px;
    display: block;
    margin: 10px auto;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.custom-modal-body .text-muted {
    font-size: 0.85rem;
    color: #888;
    text-align: center;
}

/* ===== Modal Footer ===== */
.custom-modal-footer {
    padding: 1rem 1.5rem;
    background: #f0f4f8;
    border-top: 1px solid #ddd;
    text-align: right;
}

.custom-btn {
    background: #007bff;
    color: white;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.custom-btn:hover {
    background: #0056b3;
}

/* ===== Responsive Tweaks ===== */
@media (max-width: 576px) {

    .custom-modal-overlay {
        margin: 10px;
    }

    .custom-modal-content {
        width: 100%;
        max-height: 95vh;
    }

    .custom-modal-body {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .custom-btn {
        width: 100%;
        margin-top: 0.5rem;
    }

    .custom-modal-footer {
        text-align: center;
    }
}

.navbar {
    height: 75px;
}

/* Rotating keywords for hero subtitle */
.rotating-wrapper {
    display: inline-block;
}

.rotating-word {
    display: inline-block;
    color: #ff6b6b;
    font-weight: 700;
    transition: opacity 0.35s ease, transform 0.35s ease;
    opacity: 1;
}

.rotating-word.fade-out {
    opacity: 0;
    transform: translateY(-6px);
}

.rotating-word.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Underline SVG underlined text */
.underline-wrapper {
    position: relative;
    display: inline-block;
    padding-bottom: 6px;
}

.underline-wrapper .underline-svg {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 12px;
    pointer-events: none;
}

.underline-wrapper .underline-svg path {
    stroke: #ff6b6b;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

@media (max-width: 576px) {
    .underline-wrapper .underline-svg {
        height: 8px;
    }
}

/* Improve hero readability and styling */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.95) saturate(0.95);
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.60) 0%, rgba(0, 0, 0, 0.45) 40%, rgba(0, 0, 0, 0.6) 100%);
    backdrop-filter: blur(2px);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    padding: 40px 18px;
}

.hero .container {
    padding-left: 18px;
    padding-right: 18px;
}

.hero h1 {
    color: #fff;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    font-weight: 800;
    letter-spacing: 0.2px;
    max-width: 900px;
    margin: 0 auto;
}

.hero h2 {
    color: #fff;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
    margin-top: 8px;
}

.hero p {
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
}

.cta-button {
    box-shadow: 0 10px 30px rgba(21, 8, 44, 0.35);
}

/* Improved job details modal */
#jobDetailsModal.modal-overlay {
    padding: 18px;
}

#jobDetailsModal .modal-content {
    position: relative;
    width: 100%;
    max-width: 760px;
    max-height: 88vh;
    overflow: hidden;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    padding: 0;
}

#jobDetailsModal .modal-shell {
    display: flex;
    flex-direction: column;
    max-height: 88vh;
}

#jobDetailsModal .modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}

#jobDetailsModal .modal-kicker {
    margin: 0 0 6px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #111827;
}

#jobDetailsModal #modalJobTitle {
    margin: 0;
    font-size: clamp(1.6rem, 2.6vw, 2.4rem);
    line-height: 1.08;
    color: #111827;
}

#jobDetailsModal .modal-subtitle {
    margin-top: 10px;
    color: #6b7280;
    font-size: 0.98rem;
    max-width: 52ch;
}

#jobDetailsModal .modal-close {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #fff;
    color: #374151;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

#jobDetailsModal .modal-close:hover {
    transform: translateY(-1px);
    border-color: #9ca3af;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

#jobDetailsModal .modal-body {
    padding: 24px;
    overflow-y: auto;
}

#jobDetailsModal .detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

#jobDetailsModal .detail-card,
#jobDetailsModal .description-card {
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #fff;
    padding: 15px 16px;
    box-shadow: none;
}

#jobDetailsModal .detail-card span,
#jobDetailsModal .description-card span {
    display: block;
}

#jobDetailsModal .detail-label {
    margin-bottom: 6px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #111827;
}

#jobDetailsModal .detail-value {
    color: #111827;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

#jobDetailsModal .description-card {
    background: #ffffff;
}

#jobDetailsModal .description-card p {
    margin: 0;
    color: #374151;
    line-height: 1.65;
}

#jobDetailsModal .modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 18px 24px 24px;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
}

#jobDetailsModal .modal-meta {
    color: #6b7280;
    font-size: 0.92rem;
}

#jobDetailsModal .modal-apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    padding: 12px 18px;
    border-radius: 10px;
    background: #111827;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: none;
    border: 1px solid #111827;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

#jobDetailsModal .modal-apply-btn:hover {
    background: #ffffff;
    color: #111827;
    border-color: #111827;
}

@media (max-width: 768px) {

    #jobDetailsModal .modal-head,
    #jobDetailsModal .modal-body,
    #jobDetailsModal .modal-footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    #jobDetailsModal .detail-grid {
        grid-template-columns: 1fr;
    }

    #jobDetailsModal .modal-footer {
        flex-direction: column;
        align-items: stretch;
    }

    #jobDetailsModal .modal-apply-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    #jobDetailsModal.modal-overlay {
        padding: 10px;
    }

    #jobDetailsModal .modal-head,
    #jobDetailsModal .modal-body,
    #jobDetailsModal .modal-footer {
        padding-left: 14px;
        padding-right: 14px;
    }

    #jobDetailsModal #modalJobTitle {
        font-size: 1.35rem;
    }

    #jobDetailsModal .modal-subtitle {
        font-size: 0.92rem;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding-left: 18px;
        padding-right: 18px;
        padding-top: 24px;
        padding-bottom: 18px;
    }

    .hero h1 {
        font-size: 30px;
        line-height: 1.08;
        max-width: 100%;
    }
}

@media (max-width: 420px) {
    .hero-content {
        padding-left: 14px;
        padding-right: 14px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .hero h1 {
        font-size: 26px;
    }
}

/* small animation for rotating word to feel lively */
.rotating-word.fade-in {
    transform: translateY(0) scale(1);
}

.rotating-word.fade-out {
    transform: translateY(-6px) scale(0.98);
}

/* helper classes to replace inline styles */
.hero-bg-1 { background-image: url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80'); }
.hero-bg-2 { background-image: url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80'); }
.hero-bg-3 { background-image: url('https://images.unsplash.com/photo-1521791136064-7986c2920216?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80'); }

.nav-demo-btn--caps { text-transform: capitalize; }
.hero-desc { max-width: 600px; margin: 0 auto; }
