﻿* {
    outline: none;
    box-sizing: border-box;
}

:root {
    --body-bg-color: #f8fafc;
    --theme-bg-color: rgba(255, 255, 255, 0.15);
    --body-font: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --body-color: #1a1a1a;
    --active-color: #d32f2f;
    --active-light-color: rgba(211, 47, 47, 0.1);
    --secondary-color: #0d2b4f;
    --highlight-color: #b89778;
    --header-bg-color: rgba(255, 255, 255, 0.25);
    --search-border-color: rgba(0, 0, 0, 0.1);
    --border-color: rgba(0, 0, 0, 0.12);
    --alert-bg-color: rgba(255, 255, 255, 0.35);
    --subtitle-color: #4b5563;
    --inactive-color: rgba(0, 0, 0, 0.05);
    --placeholder-color: #6b7280;
    --button-color: #fff;
}

.dark-mode {
    --body-bg-color: #0f172a;
    --theme-bg-color: rgba(0, 0, 0, 0.35);
    --header-bg-color: rgba(0, 0, 0, 0.45);
    --alert-bg-color: rgba(0, 0, 0, 0.55);
    --body-color: #f1f5f9;
    --inactive-color: rgba(255, 255, 255, 0.1);
    --active-light-color: rgba(211, 47, 47, 0.2);
    --border-color: rgba(255, 255, 255, 0.12);
    --search-border-color: rgba(255, 255, 255, 0.1);
}

::-moz-placeholder {
    color: var(--placeholder-color);
}

:-ms-input-placeholder {
    color: var(--placeholder-color);
}

::placeholder {
    color: var(--placeholder-color);
}

img {
    max-width: 100%;
}

html {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--body-bg-color);
    font-family: var(--body-font);
    color: var(--body-color);
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.job-mains {
    height: 100vh;
}

.job {
    display: flex;
    flex-direction: column;
    max-width: 1440px;
    margin: 0 auto;
    flex-grow: 1;
    background: linear-gradient(135deg, var(--active-light-color), rgba(13, 43, 79, 0.1));
    backdrop-filter: blur(12px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.header {
    display: flex;
    align-items: center;
    padding: 0 48px;
    background-color: var(--header-bg-color);
    height: 80px;
    width: 100%;
    font-size: 16px;
    justify-content: space-between;
    backdrop-filter: blur(12px);
    transition: box-shadow 0.4s ease, height 0.3s ease, padding 0.3s ease;
}

.header-shadow {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.header-menu a {
    text-decoration: none;
    color: var(--body-color);
    font-weight: 600;
    transition: color 0.3s ease, transform 0.3s ease, font-size 0.3s ease;
}

    .header-menu a:hover {
        color: var(--highlight-color);
        transform: translateY(-2px);
    }

    .header-menu a:not(:first-child) {
        margin-left: 40px;
        transition: margin-left 0.3s ease;
    }

    .header-menu a.active {
        color: var(--active-color);
    }

.wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow-x: hidden;
    padding: 24px;
    transition: padding 0.3s ease;
}

.search-menu {
    height: 40px;
    display: flex;
    align-items: center;
    background-color: var(--header-bg-color);
    width: 100%;
    padding: 0 24px;
    margin-top: 32px;
    margin-bottom: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(12px);
    transition: height 0.3s ease, padding 0.3s ease, margin 0.3s ease, border-radius 0.3s ease;
}

    .search-menu div:not(:last-of-type) {
        border-right: 1px solid var(--search-border-color);
        transition: border 0.3s ease, padding 0.3s ease;
    }

.search-bar {
    height: 100%;
    width: 40%;
    position: relative;
    transition: width 0.3s ease, height 0.3s ease, border 0.3s ease;
}

    .search-bar input {
        width: 100%;
        height: 100%;
        background-color: transparent;
        border: none;
        font-size: 12px;
        font-weight: 500;
        padding: 0 24px 0 48px;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56.966 56.966' fill='%23d32f2f'%3e%3cpath d='M55.146 51.887L41.588 37.786A22.926 22.926 0 0046.984 23c0-12.682-10.318-23-23-23s-23 10.318-23 23 10.318 23 23 23c4.761 0 9.298-1.436 13.177-4.162l13.661 14.208c.571.593 1.339.92 2.162.92.779 0 1.518-.297 2.079-.837a3.004 3.004 0 00.083-4.242zM23.984 6c9.374 0 17 7.626 17 17s-7.626 17-17 17-17-7.626-17-17 7.626-17 17-17z'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-size: 20px;
        background-position: 12px 50%;
        transition: all 0.3s ease;
    }

        .search-bar input:focus {
            background-color: var(--inactive-color);
            box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
        }

.search-location,
.search-job {
    display: flex;
    align-items: center;
    width: 25%;
    font-size: 12px;
    font-weight: 500;
    padding: 0 24px;
    height: 100%;
    transition: width 0.3s ease, padding 0.3s ease;
}

    .search-location select,
    .search-job select {
        width: 100%;
        height: 34px;
        background-color: transparent;
        border: 1px solid var(--search-border-color);
        padding: 0 10px;
        font-size: 12px;
        border-radius: 10px;
        outline: none;
        appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg width='14' height='14' fill='%230d2b4f' viewBox='0 0 24 24'%3e%3cpath d='M7 10l5 5-7-5z'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 12px center;
        transition: all 0.3s ease;
    }

        .search-location select:focus,
        .search-job select:focus {
            border-color: var(--active-color);
            box-shadow: 0 0 8px var(--active-light-color);
        }

    .search-location svg,
    .search-job svg {
        margin-right: 12px;
        width: 22px;
        color: var(--highlight-color);
    }

.search-button {
    background-color: var(--active-color);
    height: 100%;
    border: none;
    font-weight: 700;
    width: 10%;
    font-size: 12px;
    padding: 0 24px;
    border-radius: 0px 12px 12px 0px;
    color: var(--button-color);
    cursor: pointer;
    transition: all 0.4s ease;
    animation: pulse 2s infinite ease-in-out;
}

    .search-button:hover {
        background-color: #b71c1c;
        transform: scale(1.05);
        box-shadow: 0 4px 12px var(--active-light-color);
    }

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

.main-container {
    flex-grow: 1;
    padding: 48px 24px;
    transition: padding 0.3s ease;
}

.searched-jobs {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.searched-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideY 0.8s ease both;
    transition: gap 0.3s ease;
}

.searched-show {
    font-size: 24px;
    font-weight: 700;
    color: var(--active-color);
    letter-spacing: 0.03em;
    transition: font-size 0.3s ease;
}

footer {
    background-color: rgb(255, 255, 255);
    backdrop-filter: blur(10px);
    color: #1a1a1a;
    position: fixed;
    bottom: 0;
    width: 100%;
    flex-shrink: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.job-area {
    height: 100vh
}

.job-cards {
    padding-top: 32px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 28px;
    animation: slideY 0.8s ease both;
    transition: gap 0.3s ease;
}

.job-card {
    padding: 16px;
    background-color: var(--header-bg-color);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06), inset 0 0 0 1px var(--active-light-color);
    backdrop-filter: blur(12px);
    display: flex;
    width: 380px;
    flex-direction: column;
}



    .job-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1), inset 0 0 0 1px var(--highlight-color);
        background-color: var(--active-light-color);
    }

    .job-card svg {
        width: 50px;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        transition: width 0.3s ease;
    }

.job-card-header {
    display: flex;
    align-items: center;
}

.job-card-title {
    font-weight: 700;
    font-size: 17px;
    margin-top: 12px;
    color: var(--body-color);
    letter-spacing: 0.02em;
    transition: font-size 0.3s ease, margin-top 0.3s ease;
}

.job-card-subtitle {
    color: var(--subtitle-color);
    line-height: 1.5;
    font-weight: 300;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: font-size 0.3s ease, -webkit-line-clamp 0.3s ease;
}

.job-detail-buttons {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    transition: margin-top 0.3s ease, gap 0.3s ease;
}

.info-txt {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    transition: margin-top 0.3s ease, gap 0.3s ease;
}

.detail-button {
    background-color: var(--inactive-color);
    color: var(--secondary-color);
    font-size: 10px;
    font-weight: 600;
    padding: 7px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

    .detail-button:hover {
        background-color: var(--highlight-color);
        color: var(--button-color);
    }

.job-card-buttons {
    margin-top: auto;
    padding-top: 16px;
    display: flex;
}

.card-buttons {
    background-color: var(--secondary-color);
    color: var(--button-color);
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.4s ease;
    width: 100%;
    box-sizing: border-box;
}

    .card-buttons:hover {
        background-color: #091f3a;
        transform: scale(1.02);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

.job-overview {
    display: none;
    flex-grow: 1;
    animation: slide 0.8s ease both;
}

.job-overview-cards {
    display: flex;
    flex-direction: column;

    flex-shrink: 0;
}

.job-overview-card {
    margin-bottom: 10px;
    background-color: var(--header-bg-color);
    border-radius: 16px;
    transition: all 0.4s ease;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(12px);
}

    .job-overview-card:hover {
        background-color: var(--active-light-color);
        transform: translateY(-4px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    }

.job-overview-buttons {
    display: flex;
    align-items: center;
    margin-top: 16px;
    gap: 10px;
}

    .job-overview-buttons .search-buttons {
        background-color: var(--inactive-color);
        color: var(--secondary-color);
        font-size: 11px;
        padding: 2px 5px;
        border-radius: 8px;
        font-weight: 600;
    }

    .job-overview-buttons .job-stat {
        color: var(--active-color);
        font-size: 13px;
        font-weight: 600;
        margin-left: auto;
    }

    .job-overview-buttons .job-day {
        color: var(--subtitle-color);
        font-size: 13px;
        font-weight: 500;
    }

.job-explain {
    background-color: var(--header-bg-color);
    margin-left: 48px;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(12px);
    transition: margin-left 0.3s ease;
}

.job-bg {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.4s ease;
    filter: brightness(0.9);
}

    .job-bg:hover {
        filter: brightness(1);
    }

.job-logos {
    margin-top: -48px;
    padding: 0 24px;
    position: relative;
    transition: padding 0.3s ease, margin-top 0.3s ease;
}

    .job-logos svg {
        width: 88px;
        padding: 16px;
        background-color: #fff;
        border-radius: 16px;
        border: 4px solid var(--header-bg-color);
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
        transition: width 0.3s ease, padding 0.3s ease;
    }

.job-title-wrapper {
    display: flex;
    align-items: center;
    padding-inline: 14px;
    transition: padding-inline 0.3s ease;
}

    .job-title-wrapper .job-card-title {
        font-size: 20px;
        font-weight: 800;
        color: var(--active-color);
        letter-spacing: 0.03em;
        transition: font-size 0.3s ease;
    }

.job-action {
    margin-left: auto;
}

    .job-action .search-buttons {
        background-color: var(--active-color);
        color: var(--button-color);
        padding: 10px 14px;
        font-size: 12px;
        font-weight: 700;
        border-radius: 10px;
        transition: all 0.4s ease;
    }

        .job-action .search-buttons:hover {
            background-color: #b71c1c;
            transform: scale(1.05);
            box-shadow: 0 4px 12px var(--active-light-color);
        }

.job-explain-content {
    padding: 22px;
    transition: padding 0.3s ease;
}

.job-subtitle-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    transition: gap 0.3s ease;
}

    .job-subtitle-wrapper .company-name,
    .job-subtitle-wrapper .posted,
    .job-subtitle-wrapper .app-number {
        color: var(--secondary-color);
        font-size: 13px;
        transition: font-size 0.3s ease;
    }

    .job-subtitle-wrapper .company-name {
        font-weight: 600;
    }


.explain-bar {
    margin-top: 12px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    padding: 10px;
    justify-content: space-between;
    background: linear-gradient(145deg, var(--inactive-color), var(--active-light-color));
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: padding-bottom 0.3s ease;
}

.explain-title {
    color: var(--subtitle-color);
    font-size: 13px;
    font-weight: 600;
    transition: font-size 0.3s ease;
}

.explain-subtitle {
    font-size: 12px;
    font-weight: 500;
    margin-top: 6px;
    color: var(--body-color);
    transition: font-size 0.3s ease;
}

.explain-contents {
    transition: width 0.3s ease, padding 0.3s ease, margin-top 0.3s ease, border 0.3s ease;
}

    .explain-contents + .explain-contents {
        border-left: 1px solid var(--border-color);
        padding-left: 24px;
    }

.overview-text {
    margin-top: 22px;
}

.overview-text-header {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary-color);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--active-light-color);
    transition: font-size 0.3s ease;
}

.overview-text-item {
    font-size: 12px;
    line-height: 1.7;
    color: var(--body-color);
    margin-top: 16px;
    font-weight: 300;
    transition: font-size 0.3s ease;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal {
    display: none; /* Should be 'none' by default, JS makes it 'block' or 'flex' */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background-color: var(--header-bg-color);
    width: 85vw;
    max-width: 1280px;
    height: 90vh;
    z-index: 9999;
    overflow: hidden; /* Important for rounded corners and containing children */
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
    animation: zoomIn 0.4s ease forwards;
    transition: width 0.3s ease, height 0.3s ease;
    flex-direction: column;
}

.show.modal {
    display: block;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    padding: 24px;
    background: linear-gradient(90deg, var(--active-light-color), var(--inactive-color));
    border-bottom: 2px solid var(--highlight-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1003;
}

    .modal-header > div {
        flex: 1; /* Allows the div to take available space */
        text-align: center; /* Centers the text horizontally */
    }

.close-button {
    font-size: 32px;
    cursor: pointer;
    color: var(--subtitle-color);
    transition: color 0.3s ease, transform 0.3s ease;
}

    .close-button:hover {
        color: var(--highlight-color);
        transform: rotate(90deg);
    }

.modal-body {
    padding: 48px;
    height: calc(100% - 80px); /* Adjust based on modal-header actual height */
    overflow-y: auto;
    background: var(--theme-bg-color);
    transition: padding 0.3s ease;
}

.modal-title {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: var(--active-color);
    /* margin-bottom: 16px;*/
    letter-spacing: 0.03em;
    transition: font-size 0.3s ease;
}

.modal-subtitle {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary-color);
    /* margin-bottom: 24px;*/
    transition: font-size 0.3s ease;
}

.section {
    margin-bottom: 48px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary-color);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--highlight-color);
    transition: font-size 0.3s ease;
}

.content-text {
    color: var(--body-color);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 24px;
    font-weight: 300;
    transition: font-size 0.3s ease;
}

.kvkk-table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    font-size: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    overflow: hidden; /* For border-radius clipping */
    transition: font-size 0.3s ease;
}

    .kvkk-table th,
    .kvkk-table td {
        border: 1px solid var(--border-color);
        padding: 16px;
        text-align: left;
        vertical-align: top;
        transition: padding 0.3s ease, font-size 0.3s ease;
    }

    .kvkk-table th {
        background: var(--active-light-color);
        font-weight: 700;
        color: var(--secondary-color);
    }

    .kvkk-table tr:nth-child(even) {
        background-color: var(--inactive-color);
    }

    .kvkk-table tr:hover {
        background-color: var(--active-light-color);
    }

.bullet-list {
    list-style-type: disc;
    margin-left: 24px;
    margin-bottom: 24px;
}

    .bullet-list li {
        margin-bottom: 12px;
        line-height: 1.7;
        color: var(--body-color);
        font-weight: 300;
    }

.numbered-list {
    list-style-type: decimal;
    margin-left: 24px;
    margin-bottom: 24px;
}

    .numbered-list li {
        margin-bottom: 16px;
        line-height: 1.7;
        color: var(--body-color);
        font-weight: 300;
    }

.contact-info {
    background: var(--inactive-color);
    padding: 32px;
    border-radius: 12px;
    margin-top: 32px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.03);
}

    .contact-info p {
        margin-bottom: 12px;
        line-height: 1.7;
        font-size: 16px;
        font-weight: 300;
    }

.custom-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.loading-content img {
    width: 280px;
    height: 280px;
    transition: width 0.3s ease, height 0.3s ease;
}

@keyframes slideY {
    0% {
        opacity: 0;
        transform: translateY(200px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide {
    0% {
        opacity: 0;
        transform: translateX(300px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    0% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.detail-page .job-overview {
    display: flex;
}

.detail-page .job-cards,
.detail-page .searched-bar {
    display: none;
}


.job-title-with-logo {
    display: flex;
    align-items: center;
    margin-top: 12px;
}

    .job-title-with-logo .job-card-title {
        font-weight: 700;
        font-size: 14px; /* Adjusted from original, can be fine-tuned */
        color: var(--body-color);
        letter-spacing: 0.02em;
    }


/* ------------- RESPONSIVE STYLES ------------- */

/* Large Desktops & Laptops (Original base is for this) */
/* No specific changes needed here unless overriding base */

/* Desktops & Large Tablets */
@media screen and (max-width: 1300px) {
    .job-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-page .searched-jobs {
        padding-left: 0;
    }
}

/* Tablets */
@media screen and (max-width: 992px) {
    .header {
        padding: 0 24px;
    }

    .wrapper {
        padding: 20px;
    }

    .main-container {
        padding: 32px 16px;
    }

    .job-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .job-explain {
        margin-left: 24px;
    }

    .job-subtitle-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .explain-bar {
        flex-wrap: wrap;
        padding-bottom: 16px; /* Reduced padding */
    }

    .explain-contents {
        width: 50%;
        padding: 10px; /* Added padding for content */
    }

        .explain-contents + .explain-contents {
            border-left: none; /* Remove side border for 2-col layout */
            padding-left: 10px; /* Keep some spacing */
        }

        .explain-contents:nth-child(even) { /* Ensure right elements in 2-col don't have left padding */
            padding-left: 10px;
        }

        .explain-contents:nth-child(odd) {
            padding-right: 10px;
        }

        .explain-contents:nth-child(n+3) { /* Items from the second row onwards */
            margin-top: 16px;
            border-top: 1px solid var(--border-color);
            padding-top: 16px;
        }

    .modal-body {
        padding: 32px;
    }

    .modal-title {
        font-size: 24px;
    }

    .modal-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 20px;
    }
}

/* Small Tablets & Large Phones */
@media screen and (max-width: 768px) {
    .header {
        height: 70px;
        padding: 0 20px;
    }

    .header-menu a {
        font-size: 15px;
    }

        .header-menu a:not(:first-child) {
            margin-left: 20px;
        }

    .wrapper {
        padding: 16px;
    }

    .search-menu {
        height: auto;
        flex-direction: column;
        padding: 16px;
        gap: 10px;
        border-radius: 12px;
        margin-bottom: 20px;
    }

        .search-menu div:not(:last-of-type) {
            border-right: none;
            border-bottom: 1px solid var(--search-border-color);
            padding-bottom: 10px;
            margin-bottom: 10px; /* Add margin for visual separation */
        }

        .search-menu div:last-of-type { /* If last item is a div (e.g. search-job) */
            border-bottom: none;
            padding-bottom: 0;
            margin-bottom: 0;
        }

    .search-bar,
    .search-location,
    .search-job {
        width: 100%;
        height: 48px;
    }

    .search-button { /* Button is not a div, style separately */
        width: 100%;
        height: 48px;
        border-radius: 10px;
        font-size: 14px;
        margin-top: 10px; /* If there are other elements above it */
    }

    .search-menu .search-button { /* More specific for button inside search-menu */
        margin-top: 0; /* Reset if it's the only item or follows a div with margin-bottom */
    }

    .search-bar input {
        padding: 0 16px 0 40px;
        background-position: 10px 50%;
    }

    .search-location,
    .search-job {
        padding: 0 16px;
    }

    .main-container {
        padding: 24px 12px;
    }

    .detail-page .job-overview-cards {
        display: none;
    }

    .job-explain {
        margin-left: 0;
    }

    .job-bg {
        height: 160px;
    }

    /*.job-logos {
        margin-top: -35px;*/ /* Adjust based on new logo size */
    /*}*/

        .job-logos svg {
            width: 70px;
            padding: 12px;
        }

    .job-title-wrapper .job-card-title {
        font-size: 18px;
    }

    .job-card {
        padding: 16px;
    }

        .job-card svg {
            width: 45px;
        }

    .job-card-title {
        font-size: 16px;
        margin-top: 10px;
    }

    .job-card-subtitle {
        font-size: 11px;
        -webkit-line-clamp: 3;
    }

    .job-explain-content {
        padding: 20px;
    }

    .explain-bar .explain-contents {
        width: 100%;
        border-left: none !important; /* Important to override previous */
        padding: 10px 0 !important; /* Vertical padding, no horizontal */
    }

        .explain-bar .explain-contents + .explain-contents {
            margin-top: 16px;
            border-top: 1px solid var(--border-color);
            padding-top: 16px;
        }

    .modal {
        width: 100vw;
        height: 100vh;
    }

    .modal-body {
        padding: 24px;
    }

    .kvkk-table-wrapper { /* Add this wrapper in HTML around your table if not present */
        overflow-x: auto;
        margin: 32px 0; /* Keep original table margin on wrapper */
    }

    .kvkk-table {
        /* display: block; */ /* Avoid display:block for tables if scroll is enough */
        /* white-space: nowrap; */ /* Causes text in cells not to wrap, use with caution */
        margin: 0; /* Reset margin as it's on wrapper now */
    }

        .kvkk-table th, .kvkk-table td {
            font-size: 13px;
            padding: 10px;
            white-space: normal; /* Allow text to wrap within cells */
        }

        .kvkk-table th {
            min-width: 100px;
        }
    /* Example: give th a min-width */

}

/* Mobile Phones */
@media screen and (max-width: 576px) {
    .header {
        padding: 0 16px;
        height: 60px;
    }

    .header-menu a {
        font-size: 14px;
    }

        .header-menu a:not(:first-child) {
            margin-left: 15px;
        }

    .search-menu {
        flex-direction: row;
        flex-wrap: nowrap;
        height: 48px;
        padding: 0;
        border-radius: 12px;
        overflow: hidden; /* Important for rounded children */
        margin-top: 24px;
        margin-bottom: 20px;
    }

        .search-menu div:not(:last-of-type) { /* Reset from 768px */
            border-right: none;
            border-bottom: none;
            padding-bottom: 0;
            margin-bottom: 0;
        }

    .search-location,
    .search-job {
        display: none;
    }

    .search-bar {
        flex-grow: 1;
        width: auto; /* Override */
        height: 100%;
        border-right: 1px solid var(--search-border-color); /* Separator */
    }

        .search-bar input {
            border-radius: 0; /* Input is inside, no radius */
            font-size: 12px; /* Ensure readability */
        }

    .search-button {
        width: auto; /* Let padding define width */
        padding: 0 20px;
        flex-shrink: 0;
        height: 100%;
        margin-left: 0;
        margin-top: 0; /* Reset from 768px */
        border-radius: 0; /* Button is inside, no radius */
        font-size: 13px;
    }

    .searched-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .searched-show {
        font-size: 18px;
        margin-left: 0;
    }

    .job-cards {
        gap: 16px;
    }

    .job-card-title {
        font-size: 15px;
    }

    .job-title-with-logo .job-card-title {
        font-size: 14px; /* Slightly smaller if needed */
    }

    .job-card-subtitle {
        font-size: 11px;
    }

    .detail-button {
        font-size: 10px;
        padding: 6px 8px;
    }

    .card-buttons {
        padding: 8px 16px;
        font-size: 12px;
    }

    .job-bg {
        height: 140px;
    }

    .job-logos {
        padding: 0 16px;
        margin-top: -30px;
    }

        .job-logos svg {
            width: 60px;
            padding: 10px;
        }

    .job-explain-content {
        padding: 16px;
    }

    .job-title-wrapper {
        padding-inline: 10px;
    }

        .job-title-wrapper .job-card-title {
            font-size: 17px; /* Job detail title */
        }

    .job-action .search-buttons {
        
        font-size: 11px;
    }

    .explain-title {
        font-size: 12px;
    }

    .explain-subtitle {
        font-size: 11px;
    }

    .overview-text-header {
        font-size: 16px;
    }

    .overview-text-item {
        font-size: 11px;
    }

    .modal-body {
        padding: 16px;
        height: calc(100% - 70px); /* Adjust if modal header height changes */
    }

    .modal-title {
        font-size: 20px;
    }

    .modal-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 18px;
    }

    .content-text {
        font-size: 14px;
    }

    .kvkk-table th, .kvkk-table td {
        font-size: 12px;
        padding: 8px;
    }
}

/* Very Small Phones */
@media screen and (max-width: 480px) {
    .header {
        padding: 0 12px;
        height: 56px;
    }

    .header-menu a {
        font-size: 13px;
    }

        .header-menu a:not(:first-child) {
            margin-left: 10px;
        }

    .wrapper {
        padding: 12px;
    }

    .main-container {
        padding: 16px 8px;
    }

    .search-menu {
        height: 44px; /* Further reduce height */
        margin-top: 16px;
        margin-bottom: 16px;
    }

    .search-bar input {
        padding: 0 12px 0 36px;
        background-size: 16px;
        background-position: 8px 50%;
        font-size: 11px;
    }

    .search-button {
        padding: 0 16px;
        font-size: 12px;
    }

    .job-card {
        padding: 12px;
    }

        .job-card svg {
            width: 40px;
        }

    .job-card-title {
        font-size: 14px;
        margin-top: 8px;
    }

    .job-title-with-logo .job-card-title {
        font-size: 13px;
    }

    .job-card-subtitle {
        font-size: 10px;
        -webkit-line-clamp: 2;
    }

    .job-detail-buttons {
        gap: 6px;
    }

    .detail-button {
        font-size: 9px;
        padding: 5px 7px;
    }

    .card-buttons {
        padding: 7px 14px;
        font-size: 11px;
    }

    .job-bg {
        height: 120px;
    }

    .job-logos svg {
        width: 50px;
        padding: 8px;
        margin-top: -25px;
    }

    .job-title-wrapper .job-card-title { /* Detail page title */
        font-size: 16px;
    }

    .job-explain-content {
        padding: 12px;
    }

    .modal-body {
        padding: 12px;
        height: calc(100% - 60px); /* Adjust if modal header height changes */
    }

    .modal-title {
        font-size: 18px;
    }

    .modal-subtitle {
        font-size: 14px;
    }

    .section-title {
        font-size: 16px;
    }

    .content-text {
        font-size: 13px;
    }

    .kvkk-table th, .kvkk-table td {
        font-size: 11px;
        padding: 6px;
    }

    .loading-content img {
        width: 200px;
        height: 200px;
    }
}


.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.captcha-display {
    background: #f0f0f0;
    padding: 10px 20px;
    font-size: 24px;
    font-family: 'Courier New', monospace;
    letter-spacing: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    user-select: none;
}

.refresh-btn {
    padding: 8px 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

    .refresh-btn:hover {
        background: #0056b3;
    }