/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* ==================================================
   BODY - MODERN & DYNAMIC
================================================== */

body {
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    color: #1a2a1a;
    line-height: 1.7;
    margin: 0;
    padding-top: 100px;
    background: #f5f5f5;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ORIGINAL BACKGROUND IMAGE - RESTORED */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url("../images/salustania.png") center center no-repeat;
    background-size: cover;
    opacity: 0.5;
    z-index: -1;
    pointer-events: none;
}

/* ADDITIONAL OVERLAY FOR DEPTH */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(67, 177, 67, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(67, 177, 67, 0.03) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* ==================================================
   HEADER - GLASS MORPHISM
================================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 90px;
    background: rgba(67, 177, 67, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 30px rgba(67, 177, 67, 0.25);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

header:hover {
    background: rgba(67, 177, 67, 0.96);
    box-shadow: 0 4px 40px rgba(67, 177, 67, 0.35);
}

.logo img {
    height: 70px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* ==================================================
   NAVIGATION - ENHANCED
================================================== */

nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    position: relative;
    padding: 5px 0;
    transition: all 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, #ffffff, #c8e6c9);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    transform: translateY(-2px);
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

/* ==================================================
   SUCCESS BANNER - MODERN
================================================== */

.success-banner {
    max-width: 1200px;
    margin: 20px auto;
    padding: 18px 25px;
    background: rgba(212, 237, 218, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid #c3e6cb;
    border-radius: 12px;
    color: #155724;
    text-align: center;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.15);
}

.success-close {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #155724;
    transition: 0.3s ease;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-close:hover {
    background: rgba(21, 87, 36, 0.1);
    transform: rotate(90deg);
}

/* ==================================================
   SECTION - SOLID GREEN BORDER - NO MOVEMENT
================================================== */

.section {
    max-width: 1200px;
    margin: 25px auto;
    padding: 50px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    border-top: 6px solid #43B143;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

/* NO .section:hover - COMPLETELY REMOVED */

/* SECTION HEADINGS WITH SPARKLE ANIMATION */
.section h2 {
    font-size: 38px;
    color: #1a4a1a;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 18px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* SPARKLE STAR ANIMATION */
.section h2::before {
    content: '✦';
    color: #43B143;
    margin-right: 12px;
    font-size: 32px;
    display: inline-block;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.5; transform: scale(1.2) rotate(180deg); }
}

.section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 90px;
    height: 5px;
    background: linear-gradient(to right, #43B143, #79C679, #a8d5a8);
    border-radius: 3px;
}

.section p {
    font-size: 17px;
    line-height: 2;
    color: #1e2a1e;
    text-align: left;
    margin-bottom: 20px;
}

.section p b {
    color: #2f8f2f;
    font-weight: 700;
}

/* ==================================================
   INFO BOX - ENHANCED
================================================== */

.info-box {
    background: rgba(248, 255, 248, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-left: 5px solid #43B143;
    padding: 30px 35px;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(67, 177, 67, 0.05);
}

.info-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(67, 177, 67, 0.12);
    background: rgba(255, 255, 255, 0.95);
}

.info-box h3 {
    color: #1a4a1a;
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 700;
}

/* ==================================================
   CAREER INFO GRID
================================================== */

.career-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* ==================================================
   JOB CONTAINER & BOX
================================================== */

.job-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
}

.job-box {
    flex: 0 1 350px;
    max-width: 350px;
    min-height: 180px;
    background: rgba(248, 255, 248, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-left: 5px solid #43B143;
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.job-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(67, 177, 67, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.job-box h3 {
    color: #1a4a1a;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 700;
}

.job-box ul {
    list-style: disc;
    padding-left: 20px;
    color: #2a3a2a;
}

.job-box ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* ==================================================
   APPLICATION HEADER
================================================== */

.application-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.application-header h2 {
    margin: 0;
}

/* APPLICATION HEADER WITH SPARKLE */
.application-header h2::before {
    content: '✦';
    color: #43B143;
    margin-right: 12px;
    font-size: 32px;
    display: inline-block;
    animation: sparkle 2s ease-in-out infinite;
}

/* FIX: Allow pointer cursor on application image */
.application-title-img {
    width: 180px;
    height: auto;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.5);
    pointer-events: auto !important;
}

.application-title-img:hover {
    transform: scale(1.05) rotate(-1deg);
    box-shadow: 0 8px 25px rgba(67, 177, 67, 0.2);
}

/* ==================================================
   JOB HEADER
================================================== */

.job-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.job-header h2 {
    margin: 0;
}

/* JOB HEADER WITH SPARKLE */
.job-header h2::before {
    content: '✦';
    color: #43B143;
    margin-right: 12px;
    font-size: 32px;
    display: inline-block;
    animation: sparkle 2s ease-in-out infinite;
}

/* ==================================================
   BUTTONS - MODERN
================================================== */

.apply-btn {
    margin-left: auto;
    padding: 14px 34px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #43B143, #2f8f2f);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(67, 177, 67, 0.2);
    letter-spacing: 0.5px;
}

.apply-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(67, 177, 67, 0.35);
    background: linear-gradient(135deg, #4fc14f, #2f8f2f);
}

.apply-btn:active {
    transform: translateY(-1px);
}

/* ==================================================
   FOOTER - MODERN
================================================== */

footer {
    background: linear-gradient(135deg, #1a4a1a, #2f8f2f);
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    padding: 25px 20px;
    margin-top: 50px;
    font-size: 15px;
    letter-spacing: 0.5px;
    border-top: 3px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================
   MODAL STYLES - ENHANCED
========================================== */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex !important;
}

.modal-wrapper {
    width: 100%;
    max-width: 760px;
    max-height: 90vh;
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-content {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    border: 2px solid rgba(67, 177, 67, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, #43B143, #69C669);
    color: #fff;
    padding: 22px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 28px;
    color: #fff;
    font-weight: 700;
}

.modal-close {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-close:hover {
    background: #2f8f2f;
    color: #fff;
    transform: rotate(90deg) scale(1.05);
}

.modal-body {
    padding: 35px;
    overflow-y: auto;
    flex: 1;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #43B143, #79C679);
    border-radius: 10px;
}

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

/* ==================================================
   FORM STYLES - MODERN
================================================== */

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #1a4a1a;
    margin-bottom: 8px;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8ece8;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #43B143;
    outline: none;
    box-shadow: 0 0 0 4px rgba(67, 177, 67, 0.1);
    background: #fff;
    transform: translateY(-1px);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group input[type="file"] {
    padding: 10px;
    background: #fafafa;
    border: 2px dashed #43B143;
    cursor: pointer;
}

.form-group input[type="file"]::file-selector-button {
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #43B143, #2f8f2f);
    color: #fff;
    cursor: pointer;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.form-group input[type="file"]::file-selector-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(67, 177, 67, 0.3);
}

.upload-note {
    display: block;
    margin-top: 6px;
    color: #888;
    font-size: 12px;
}

.form-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #eee;
    display: flex;
    justify-content: flex-end;
}

.submit-btn {
    padding: 14px 40px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #43B143, #2f8f2f);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(67, 177, 67, 0.2);
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(67, 177, 67, 0.35);
    background: linear-gradient(135deg, #4fc14f, #2f8f2f);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ==================================================
   SMALL MODALS
================================================== */

.modal-small {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    border: 3px solid #28a745;
}

.modal-small.success {
    border: 3px solid #28a745;
}

.modal-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 20px;
}

.modal-icon.warning {
    background: #fff3cd;
    color: #f0a500;
}

.modal-icon.success-icon {
    background: #d4edda;
    color: #28a745;
}

.modal-small h2 {
    color: #1a4a1a;
    margin-bottom: 15px;
    font-weight: 700;
}

.modal-small p {
    color: #2a3a2a;
    margin-bottom: 25px;
    line-height: 1.7;
}

.modal-btn {
    padding: 12px 40px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #43B143, #2f8f2f);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(67, 177, 67, 0.2);
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(67, 177, 67, 0.3);
}

.modal-btn.success-btn {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.modal-btn.success-btn:hover {
    background: linear-gradient(135deg, #34ce57, #28a745);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

/* ==================================================
   RESPONSIVE
================================================== */

/* TABLETS */
@media (max-width: 992px) {
    body {
        padding-top: 100px;
    }

    header {
        flex-direction: column;
        justify-content: center;
        height: auto;
        padding: 15px 20px;
        gap: 10px;
    }

    .logo img {
        height: 60px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .section {
        margin: 25px 20px;
        padding: 35px;
        border-top: 6px solid #43B143;
    }
    
    .section h2 {
        font-size: 32px;
    }
    
    .section h2::before {
        font-size: 28px;
    }

    .job-header h2::before {
        font-size: 28px;
    }

    .application-header h2::before {
        font-size: 28px;
    }
}

/* MOBILE */
@media (max-width: 768px) {
    body {
        padding-top: 150px;
    }

    header {
        flex-direction: column;
        gap: 8px;
        padding: 12px 20px;
        height: auto;
        min-height: 90px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    
    nav a {
        font-size: 13px;
    }

    .section {
        margin: 15px;
        padding: 25px;
        border-top: 6px solid #43B143;
    }
    
    .section h2 {
        font-size: 28px;
    }
    
    .section h2::before {
        font-size: 26px;
    }

    .job-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .job-header h2::before {
        font-size: 26px;
    }

    .apply-btn {
        width: 100%;
        margin-left: 0;
        text-align: center;
    }

    .application-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .application-header h2::before {
        font-size: 26px;
    }

    .application-title-img {
        width: 140px;
    }

    .modal-wrapper {
        width: 100%;
        max-height: 100vh;
    }

    .modal-content {
        border-radius: 0;
        max-height: 100vh;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .modal-header h2 {
        font-size: 22px;
    }

    .modal-body {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-actions {
        flex-direction: column;
    }

    .submit-btn {
        width: 100%;
    }

    .job-box {
        flex: 0 1 100%;
        max-width: 100%;
    }

    .success-banner {
        margin: 10px 15px;
        padding: 12px 15px;
        font-size: 14px;
        flex-wrap: wrap;
    }

    .modal-small {
        padding: 30px 20px;
    }
    
    .info-box {
        padding: 20px 25px;
    }
}

/* SMALL MOBILE */
@media (max-width: 480px) {
    body {
        padding-top: 150px;
    }

    .logo img {
        height: 50px;
    }

    nav {
        gap: 8px;
    }

    nav a {
        font-size: 12px;
    }

    .section {
        padding: 20px;
        border-top: 6px solid #43B143;
    }
    
    .section h2 {
        font-size: 24px;
    }
    
    .section h2::before {
        font-size: 22px;
    }
    
    .application-header h2::before {
        font-size: 22px;
    }
    
    .job-header h2::before {
        font-size: 22px;
    }
    
    .application-title-img {
        width: 120px;
    }
    
    .job-box {
        padding: 20px;
    }
}

/* ============================================
   SILENT PROTECTION - FULL PROTECTION
   ============================================ */

/* Allow pointer events on clickable elements */
[onclick] {
    cursor: pointer !important;
}

.application-title-img {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Prevent ALL selection */
* {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* Prevent image selection and dragging - but keep pointer events for clickable images */
img {
    -webkit-user-drag: none !important;
    -user-drag: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

/* Only block pointer events on non-interactive images */
img:not(.application-title-img):not([onclick]) {
    pointer-events: none !important;
}

/* Prevent text selection on body */
body {
    -webkit-user-select: none !important;
    user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

/* Disable text selection in ALL text elements */
p, h1, h2, h3, h4, h5, h6, span, div, label, button, a, li, ul, ol {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    cursor: default !important;
}

/* But allow pointer cursor on interactive elements */
button, .apply-btn, .submit-btn, .modal-btn, .modal-close, .success-close, 
.application-title-img, .iso-title-img, [onclick] {
    cursor: pointer !important;
}

/* Make selection completely invisible */
::selection {
    background: transparent !important;
    color: inherit !important;
}

::-moz-selection {
    background: transparent !important;
    color: inherit !important;
}

::-webkit-selection {
    background: transparent !important;
    color: inherit !important;
}

/* ============================================
   SILENT PRINT BLOCKING - NO MESSAGES
   ============================================ */

/* Hide everything when printing - SILENT */
@media print {
    body * {
        display: none !important;
        visibility: hidden !important;
    }
    
    html, body {
        background: white !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    body::before {
        display: none !important;
    }
}

/* Remove any warning message styling */
.screenshot-warning {
    display: none !important;
}