/* ===== VALUES PAGE STYLES ===== */

/* Page Header */
.page-header {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.4), rgba(0, 51, 102, 0.5)), url('../images/values.jpg') center/cover no-repeat;
    text-align: center;
    overflow: hidden;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><circle fill="rgba(255,255,255,0.05)" cx="200" cy="200" r="300"/><circle fill="rgba(255,255,255,0.05)" cx="1000" cy="200" r="250"/></svg>');
    opacity: 0.3;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0;
}

/* Values Introduction */
.values-intro {
    padding: 80px 0 60px;
    background-color: var(--white);
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.intro-text {
    font-size: 18px;
    line-height: 1.9;
    color: var(--black);
    margin-bottom: 25px;
}

.intro-text:last-child {
    margin-bottom: 0;
}

/* Values Cards Section */
.values-cards {
    padding: 60px 0 80px;
    background: linear-gradient(180deg, var(--white) 0%, var(--light-gray) 100%);
}

.values-grid {
    max-width: 1200px;
    margin: 0 auto;
}

.values-row-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.values-row-bottom {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.value-card {
    background: var(--white);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 102, 204, 0.25);
}

.value-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

.value-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.value-card:hover .value-image img {
    transform: scale(1.1);
}

.value-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--black);
    margin: 0;
    padding: 25px 20px;
    transition: color 0.3s ease;
}

.value-card:hover .value-title {
    color: var(--primary-blue);
}

/* Closing Section */
.values-closing {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    text-align: center;
    position: relative;
    overflow: hidden;
}

.values-closing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><circle fill="rgba(255,255,255,0.03)" cx="200" cy="200" r="300"/><circle fill="rgba(255,255,255,0.03)" cx="1000" cy="200" r="250"/></svg>');
    opacity: 0.5;
}

.closing-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.closing-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 30px;
}

.closing-text {
    font-size: 18px;
    line-height: 1.9;
    color: var(--white);
    margin-bottom: 25px;
}

.closing-text:last-child {
    margin-bottom: 0;
}

/* Value Modal */
.value-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.value-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--white);
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10001;
}

.value-modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--light-gray);
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    color: var(--dark-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-icon {
    font-size: 72px;
    text-align: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 30px;
}

.modal-body {
    font-size: 17px;
    line-height: 1.9;
    color: var(--black);
}

.modal-body p {
    margin-bottom: 20px;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

/* Scrollbar for modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--dark-blue);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 60px;
    }
    
    .page-title {
        font-size: 36px;
    }
    
    .values-intro {
        padding: 60px 0 40px;
    }
    
    .intro-text {
        font-size: 16px;
        line-height: 1.8;
        padding: 0 15px;
        margin-bottom: 20px;
    }
    
    .values-cards {
        padding: 50px 0 60px;
    }
    
    .values-row-top {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .values-row-bottom {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 100%;
    }
    
    .value-image {
        height: 240px;
    }
    
    .value-title {
        font-size: 22px;
        padding: 20px 18px;
    }
    
    .values-closing {
        padding: 60px 0;
    }
    
    .closing-title {
        font-size: 28px;
        margin-bottom: 25px;
        padding: 0 15px;
    }
    
    .closing-text {
        font-size: 16px;
        line-height: 1.8;
        padding: 0 15px;
        margin-bottom: 20px;
    }
    
    .modal-content {
        padding: 40px 30px;
        max-height: 90vh;
    }
    
    .modal-icon {
        font-size: 64px;
    }
    
    .modal-title {
        font-size: 26px;
        margin-bottom: 25px;
    }
    
    .modal-body {
        font-size: 15px;
        line-height: 1.8;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 80px 0 50px;
    }
    
    .page-title {
        font-size: 28px;
        padding: 0 15px;
    }
    
    .values-intro {
        padding: 50px 0 35px;
    }
    
    .intro-text {
        font-size: 15px;
        margin-bottom: 18px;
    }
    
    .values-cards {
        padding: 40px 0 50px;
    }
    
    .values-row-top {
        gap: 18px;
        margin-bottom: 18px;
    }
    
    .values-row-bottom {
        gap: 18px;
    }
    
    .value-image {
        height: 220px;
    }
    
    .value-title {
        font-size: 20px;
        padding: 18px 15px;
    }
    
    .values-closing {
        padding: 50px 0;
    }
    
    .closing-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .closing-text {
        font-size: 15px;
        margin-bottom: 18px;
    }
    
    .modal-content {
        padding: 35px 25px;
        border-radius: 20px;
    }
    
    .modal-close {
        width: 36px;
        height: 36px;
        font-size: 24px;
        top: 15px;
        right: 15px;
    }
    
    .modal-icon {
        font-size: 56px;
        margin-bottom: 15px;
    }
    
    .modal-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .modal-body {
        font-size: 14px;
        line-height: 1.8;
    }
    
    .modal-body p {
        margin-bottom: 16px;
    }
}