/* Temel Stil */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* iframe içinde ise scroll'u kapat */
@media screen {
    body.in-iframe {
        overflow: hidden !important;
        position: relative !important;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #666c72; /* ICA firma rengi */
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #666c72;
}

p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Tab Navigation Container */
.tabs-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}


/* Değerlerimiz ve ICA'da çalışmak Bölümü Stilleri */
.section-title {
    text-align: center;
    margin: 40px 0 10px;
    color: #666c72;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

.values-container {
    margin: 40px 0;
}

.values-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    justify-content: space-between;
}

.value-card {
    flex: 1;
    min-width: 200px;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.value-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: #2c3e50;
}

.value-card p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Kart Renkleri - Profesyonel ve Sofistike */
.value-card.pink {
    background-color: #f5f5f5;
    border-left: 4px solid #d4a574;
}

.value-card.blue {
    background-color: #f0f4f8;
    border-left: 4px solid #5a7c99;
}

.value-card.green {
    background-color: #f2f5f0;
    border-left: 4px solid #6b8e6b;
}

.value-card.yellow {
    background-color: #faf9f5;
    border-left: 4px solid #c9a961;
}

.value-card.light-yellow {
    background-color: #f9f8f6;
    border-left: 4px solid #b8956d;
}

.value-card.light-green {
    background-color: #f3f5f2;
    border-left: 4px solid #7d9a7d;
}

.value-card.light-pink {
    background-color: #f6f4f4;
    border-left: 4px solid #a67b7b;
}

.value-card.light-blue {
    background-color: #f2f5f8;
    border-left: 4px solid #6c8ba6;
}

/* ICA'da çalışmak Bölümü Stili */
.work-principles {
    margin: 40px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.work-principles .principle-item:nth-child(odd):last-child {
    grid-column: 1 / -1;
    max-width: 100%;
    margin: 0;
}

.principle-item {
    display: flex;
    margin-bottom: 30px;
    gap: 20px;
    align-items: flex-start;
}

.principle-number {
    font-size: 3rem;
    font-weight: 700;
    color: #666c72;
    min-width: 60px;
    text-align: center;
    line-height: 1;
    padding-top: 5px;
}

.principle-content {
    flex: 1;
}

.principle-content h3 {
    color: #666c72;
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.principle-content p {
    font-size: 1rem;
    line-height: 1.5;
}


/* Görsel Stili */
.feature-image {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Açık Pozisyonlar Stili */
.job-listings {
    margin-top: 30px;
}

.job-listings h3 {
    margin-bottom: 20px;
    color: #666c72;
}

.job-listings ul {
    list-style: none;
}

.job-listings li {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.job-listings h4 {
    color: #333;
    margin-bottom: 5px;
}

.btn {
    display: inline-block;
    background-color: #666c72;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #535960;
}

/* Organizasyon Bölümü Stilleri */
.organization-departments {
    margin: 40px 0;
    position: relative;
}

.department-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
    position: relative;
}

.department-item {
    flex: 1;
    min-width: 250px;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.department-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.department-icon {
    width: 60px;
    height: 60px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.department-icon i {
    font-size: 24px;
    color: #666c72;
}

.department-item h3 {
    color: #666c72;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.department-item p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
}

/* Etik Sözleşmemiz Tab Stilleri */
#etik-sozlesmemiz h3 {
    color: #666c72; /* ICA corporate color */
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
}

#etik-sozlesmemiz h4 {
    color: #444;
    font-size: 1.2rem;
    margin-top: 25px;
    margin-bottom: 10px;
}

/* Responsive Tasarım */
/* Bize Katılın Tab Stilleri */
#bize-katilin h2 {
    color: #666c72; /* ICA corporate color */
    margin-bottom: 20px;
}

#bize-katilin p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.career-links {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.career-link-item {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.career-link-item svg {
    transition: transform 0.3s ease;
}

.career-link-item i {
    margin-right: 8px;
    color: #666c72; /* ICA corporate color */
}

.career-link-item:hover {
    background-color: #e0e0e0;
}

.career-link-item:hover svg {
    transform: scale(1.1);
}

.form-title {
    color: #666c72; /* ICA corporate color */
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.application-form .form-group {
    margin-bottom: 20px;
}

.application-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.application-form input[type="text"],
.application-form input[type="email"],
.application-form input[type="tel"],
.application-form input[type="file"],
.application-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* Önemli: padding ve border'ı genişliğe dahil eder */
    font-size: 1rem;
}

.application-form input[type="file"] {
    padding: 8px; /* Dosya inputu için farklı padding */
}

.application-form textarea {
    resize: vertical; /* Sadece dikeyde boyutlandırma */
}

.application-form .submit-btn {
    background-color: #666c72; /* ICA corporate color */
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.application-form .submit-btn:hover {
    background-color: #535960; /* Darker shade */
}

.submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.submit-btn.loading {
    position: relative;
    color: transparent;
}

.submit-btn.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #f3f3f3;
    border-radius: 50%;
    border-top: 2px solid #fff;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.form-message {
    margin-bottom: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    display: none;
    animation: slideDown 0.3s ease-out;
    font-size: 1rem;
    text-align: center;
}

.form-message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Custom viewport height property */
:root {
    --vh: 1vh;
}

/* Global Safari fixes */
* {
    -webkit-tap-highlight-color: transparent;
}

/* iframe scroll fix - allow selection and scrolling */
body, .container, .tab-content, .tab-pane {
    -webkit-overflow-scrolling: touch;
    touch-action: auto;
}

/* iframe içinde touch olaylarını aktif tut */
body.in-iframe * {
    pointer-events: auto !important;
    touch-action: auto !important;
}

/* Prevent double scroll on Safari */
.container {
    -webkit-overflow-scrolling: touch;
}

/* Safari scroll behavior fix */
@supports (-webkit-touch-callout: none) {
    body {
        position: relative;
        min-height: 100vh;
        touch-action: manipulation;
    }
}



/* Bootstrap Tab Override */
.nav-tabs {
    border-bottom: none;
}

.nav-tabs .nav-link {
    color: #333 !important;
    background-color: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 1rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none !important;
}

.nav-tabs .nav-link:hover {
    color: #666c72 !important;
    border-bottom-color: #ddd;
    text-decoration: none !important;
}

.nav-tabs .nav-link.active {
    color: #666c72 !important;
    background-color: transparent;
    border-color: transparent;
    border-bottom-color: #666c72;
    text-decoration: none !important;
}

/* Ensure only active link has border */
.nav-tabs .nav-link:not(.active) {
    border-bottom-color: transparent !important;
}

/* Scroll link style - override Bootstrap defaults */
.nav-tabs a.nav-link,
.nav-tabs a.nav-link:visited,
.nav-tabs a.nav-link:focus,
.nav-tabs a.nav-link:link {
    text-decoration: none !important;
    color: #333 !important;
}

.nav-tabs a.nav-link:hover {
    color: #666c72 !important;
    text-decoration: none !important;
}

.nav-tabs a.nav-link.active {
    color: #666c72 !important;
}

/* Override all link colors in nav */
.nav-link, 
.nav-link:link,
.nav-link:visited {
    color: #333 !important;
    text-decoration: none !important;
}

/* Tab pane override */
.tab-pane {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Mobile tab scroll */
@media (max-width: 768px) {
    .tabs-container {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        margin-left: -15px;
        margin-right: -15px;
        padding: 0;
        position: relative;
    }
    
    .nav-tabs {
        flex-wrap: nowrap;
        padding: 0 15px;
        min-width: max-content;
        display: flex;
        align-items: center;
    }
    
    .nav-tabs .nav-link {
        white-space: nowrap;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Scrollbar style - positioned below tabs */
    .tabs-container::-webkit-scrollbar {
        height: 4px;
    }
    
    .tabs-container::-webkit-scrollbar-track {
        background: #f1f1f1;
        margin: 0 15px;
    }
    
    .tabs-container::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 2px;
    }
    
    /* Hide border when scrollbar is present */
    .tabs-container::-webkit-scrollbar-thumb:hover {
        background: #999;
    }
}

@media (max-width: 768px) {
    .tabs-container {
        margin: 0;
        padding: 0;
        border-radius: 0;
    }
    
    .tabs {
        flex-wrap: nowrap;
        padding: 0 10px;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-item {
        flex-shrink: 0;
    }
    
    .tab-item a {
        padding: 14px 20px;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    /* İlk ve son tab için ekstra padding */
    .tab-item:first-child a {
        padding-left: 15px;
    }
    
    .tab-item:last-child a {
        padding-right: 15px;
    }
    
    /* Mobilde scroll bar görünür - IKEA gibi */
    .tabs::-webkit-scrollbar {
        height: 3px;
    }
    
    .tabs::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    
    .tabs::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 3px;
    }
    
    /* Tab indicator mobilde */
    .tab-indicator {
        bottom: 0;
        z-index: 1;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .container {
        padding: 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .tab-content {
        padding: 15px;
    }
    
    .tab-pane {
        padding: 1.5rem 1rem;
    }
    
    .values-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .value-card {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .section-intro {
        padding: 0 10px;
    }
    
    .work-principles {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .work-principles .principle-item:nth-child(odd):last-child {
        grid-column: auto;
        max-width: 100%;
    }
    
    .department-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .department-item {
        min-width: auto;
    }
    
    .principle-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .principle-number {
        font-size: 2.5rem;
        min-width: auto;
        text-align: left;
        padding-left: 5px;
    }

    .career-links {
        flex-direction: column;
        align-items: flex-start;
    }
    .career-link-item {
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .values-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

