/* ===============================
   MISSION & CORE VALUES SECTION STYLES
   =============================== */

.mission-values-section {
    position: relative;
    background: linear-gradient(135deg,
            rgba(248, 250, 252, 0.9) 0%,
            rgba(239, 246, 255, 0.8) 50%,
            rgba(219, 234, 254, 0.7) 100%);
}

.mission-values-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 15% 25%, rgba(13, 27, 42, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 85% 75%, rgba(217, 159, 89, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 150, 199, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

/* Mission Section Styles */
.mission-container {
    position: relative;
    z-index: 2;
}

.mission-header,
.values-header {
    position: relative;
    z-index: 2;
}

.footer-deco{
    background: linear-gradient(to right, #d19f59, #b8860b);
}

.mission-heading,
.values-heading {
    background: linear-gradient(135deg,
            #1f2937 0%,
            /* Dark gray */
            #374151 25%,
            /* Medium gray */
            #111827 50%,
            /* Very dark gray */
            #000000 75%,
            /* Black */
            #1f2937 100%
            /* Dark gray */
        );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.mission-content-wrapper {
    position: relative;
    z-index: 2;
}

.mission-statement {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(230, 229, 228, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mission-statement:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.mission-image {
    position: relative;
    z-index: 2;
}

.main-mission-image {
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-mission-image:hover {
    transform: scale(1.02);
}

.mission-badge {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* ===============================
   CORE VALUES SECTION - PROFESSIONAL DESIGN
   =============================== */

.core-values-container {
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}

.values-header {
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.values-heading {
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(135deg,
            #1f2937 0%,
            /* Dark gray */
            #374151 25%,
            /* Medium gray */
            #111827 50%,
            /* Very dark gray */
            #000000 75%,
            /* Black */
            #1f2937 100%
            /* Dark gray */
        );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* Professional List-Style Core Values */
.values-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr; 
    grid-template-rows: repeat(6, 1fr);
    gap: 1.5rem;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.value-item {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;  /* Ensure equal height across grid items */
    display: flex;
    align-items: center;
}

.value-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    border-color: #3b82f6;
}

.value-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #3b82f6, #f59e0b);
    border-radius: 0 2px 2px 0;
    transition: width 0.3s ease;
}

.value-item:hover::before {
    width: 6px;
}

.value-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-align: left;
    width: 100%;
    height: 100%;
}

.value-text {
    flex: 1;
}

.value-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
    letter-spacing: 0.025em;
}

.value-text p {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

.value-icon-wrapper {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #eff6ff, #fef3c7);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e7ff;
    transition: all 0.3s ease;
    margin: 0;
}

.value-item:hover .value-icon-wrapper {
    transform: scale(1.05);
    background: linear-gradient(135deg, #dbeafe, #fef3c7);
}

.value-icon {
    font-size: 1.25rem;
    background: linear-gradient(135deg, #3b82f6, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.value-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    letter-spacing: 0.025em;
}

.value-text p {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Animation classes for scroll reveal */
.mission-container,
.core-values-container {
    opacity: 0;
    transform: translateY(50px);
    animation: slideUpFade 1s ease-out forwards;
}

.mission-container {
    animation-delay: 0.2s;
}

.core-values-container {
    animation-delay: 0.4s;
}

.value-item {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 0.8s ease-out forwards;
}

.value-item:nth-child(1) {
    animation-delay: 0.1s;
}

.value-item:nth-child(2) {
    animation-delay: 0.2s;
}

.value-item:nth-child(3) {
    animation-delay: 0.3s;
}

.value-item:nth-child(4) {
    animation-delay: 0.4s;
}

.value-item:nth-child(5) {
    animation-delay: 0.5s;
}

.value-item:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);  /* Tablet: 2 columns, 3 rows */
        grid-template-rows: repeat(3, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(3, 1fr);  /* Desktop: 3 columns, 2 rows */
        grid-template-rows: repeat(2, 1fr);
        gap: 2.5rem;
        max-width: 1200px;
        margin: 0 auto;
    }

    .value-item {
        padding: 2.5rem;
        min-height: 180px;  /* Ensure consistent card height */
        display: flex;
        align-items: center;
    }

    .value-content {
        gap: 2rem;
        width: 100%;
    }

    .value-icon-wrapper {
        width: 3.5rem;
        height: 3.5rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .value-icon {
        font-size: 1.5rem;
    }

    .value-text h3 {
        font-size: 1.375rem;
    }

    .value-text p {
        font-size: 1.0625rem;
    }
}

@media (max-width: 1024px) {
    .mission-badge {
        position: static;
        margin: 20px auto 0;
        max-width: 120px;
    }

    .mission-image {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .mission-values-section {
        padding: 60px 0;
    }

    .mission-statement {
        padding: 24px !important;
        margin: 20px 0;
    }

    .mission-heading,
    .values-heading {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }

    .values-grid {
        grid-template-columns: 1fr;  /* Mobile: maintain 6 rows, 1 column */
        grid-template-rows: repeat(6, 1fr);
        gap: 20px;
        max-width: 100%;
    }

    .value-item {
        padding: 1.5rem;
        min-height: auto;
    }

    .value-content {
        gap: 1rem;
        flex-direction: row;  /* Keep horizontal layout on mobile */
        align-items: center;
    }

    .value-card {
        padding: 24px !important;
    }

    .main-mission-image img {
        height: 300px;
    }

    .value-icon-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .mission-statement h3 {
        font-size: 1.5rem !important;
    }

    .mission-statement p {
        font-size: 1rem !important;
    }

    .value-card h3 {
        font-size: 1.2rem !important;
    }

    .value-card p {
        font-size: 0.9rem !important;
    }

    .value-icon {
        width: 3rem !important;
        height: 3rem !important;
    }

    .value-icon i {
        font-size: 1.25rem !important;
    }

    .value-icon-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

/* Accessibility and reduced motion */
@media (prefers-reduced-motion: reduce) {

    .mission-container,
    .core-values-container,
    .value-card {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .mission-badge {
        animation: none;
    }
}

/* Text color utilities using specified palette */
.gradient-text {
    background: linear-gradient(135deg,
            #1f2937 0%,
            /* Dark gray */
            #374151 25%,
            /* Medium gray */
            #111827 50%,
            /* Very dark gray */
            #000000 75%,
            /* Black */
            #1f2937 100%
            /* Dark gray */
        );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}