/* Start Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s forwards;
    opacity: 0;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s forwards;
    opacity: 0;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.slide-in {
    animation: slideIn 0.3s ease-out forwards;
}

.slide-out {
    animation: slideOut 0.3s ease-in forwards;
}
/* End Animations */

/* Start Feature Cards */
.feature-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card > div {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.image-container {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-card .content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 140px;
    width: 100%;
}

.feature-card .content-wrapper h3 {
    margin-bottom: 12px;
    line-height: 1.3;
    text-align: center;
}

.feature-card .content-wrapper p {
    flex: 1;
    line-height: 1.5;
    margin-bottom: 16px;
    text-align: center;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-4 > div {
    height: 100%;
}

.feature-card .relative.w-20.h-20 img {
    transition: transform 0.3s ease;
}

.feature-card:hover .relative.w-20.h-20 img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .feature-card .content-wrapper {
        min-height: 120px;
    }
}

@media (max-width: 640px) {
    .feature-card .content-wrapper {
        min-height: 100px;
    }
}
/* End Feature Cards */

/* Start Mission Section */
.mission-content h1 {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mission-content h1 span {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mission-btn {
    position: relative;
    overflow: hidden;
}

.mission-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.mission-btn:hover::before {
    left: 100%;
}

.mission-image .relative {
    transition: transform 0.3s ease;
}

.mission-image:hover .relative {
    transform: translateY(-10px);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.mission-image .absolute.animate-bounce {
    animation: float 3s ease-in-out infinite;
}

.mission-image .absolute.animate-bounce:nth-child(2) {
    animation-delay: 1.5s;
}

@media (max-width: 1024px) {
    .mission-content {
        text-align: center;
    }
    
    .mission-image {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .mission-content h1 {
        font-size: 2.5rem;
    }
    
    .mission-image .relative.w-80.h-80 {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 640px) {
    .mission-content h1 {
        font-size: 2rem;
    }
    
    .mission-image .relative.w-80.h-80 {
        width: 240px;
        height: 240px;
    }
}
/* End Mission Section */

/* Start Unit Cards */
.unit-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.unit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.unit-card .flex-shrink-0 {
    position: relative;
    z-index: 1;
}

.unit-card .flex-1 {
    position: relative;
    z-index: 1;
}

.unit-card .w-16.h-16 {
    background: #f8fafc;
}

.unit-card .w-16.h-16 img {
    filter: contrast(1.2) brightness(0.9);
    mix-blend-mode: multiply;
}

.unit-card h3 {
    transition: color 0.3s ease;
    color: #1e293b;
}

.unit-card:hover h3 {
    color: #1d4ed8;
}

.unit-card p {
    transition: color 0.3s ease;
    color: #475569;
}

.unit-card:hover p {
    color: #334155;
}

.unit-card:nth-child(2) { animation-delay: 0.2s; }
.unit-card:nth-child(3) { animation-delay: 0.3s; }
.unit-card:nth-child(4) { animation-delay: 0.4s; }
.unit-card:nth-child(5) { animation-delay: 0.5s; }
.unit-card:nth-child(6) { animation-delay: 0.6s; }

@media (max-width: 1024px) {
    .unit-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .unit-card {
        padding: 1rem;
    }
    
    .unit-card .flex {
        flex-direction: column;
        text-align: center;
    }
    
    .unit-card .flex-shrink-0 {
        margin-bottom: 1rem;
        margin-right: 0;
        align-self: center;
    }
    
    .unit-card .w-16.h-16 {
        width: 4rem;
        height: 4rem;
    }
    
    .unit-card h3 {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }
    
    .unit-card p {
        text-align: center;
    }
}

@media (max-width: 640px) {
    .unit-card .flex {
        flex-direction: column;
        text-align: center;
    }
    
    .unit-card .flex-shrink-0 {
        margin-bottom: 1rem;
        margin-right: 0;
        align-self: center;
    }
    
    .unit-card .w-16.h-16 {
        width: 3.5rem;
        height: 3.5rem;
    }
    
    .unit-card h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
}
/* End Unit Cards */

/* Start Marquee */
.marquee {
    display: flex;
    width: fit-content;
    animation: scroll 20s linear infinite;
}

.marquee:hover {
    animation-play-state: paused;
}

.marquee-item:hover ~ .marquee {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.marquee-item {
    flex-shrink: 0;
    margin: 0 0.75rem;
}

.marquee-item:hover img {
    transform: scale(1.05);
}

.marquee-item:hover span {
    opacity: 0;
}

.marquee-item span {
    display: none !important;
}
/* End Marquee */

/* Start News Banner */
@keyframes cn-slide-down {
    from { transform: translateY(-8px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes cn-ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-1 * var(--cn-distance, 100%))); }
}

@keyframes cn-text-fade {
    from { opacity: 0; transform: translateY(2px); }
    to { opacity: 1; transform: translateY(0); }
}

.cn-enter { animation: cn-slide-down .6s cubic-bezier(.22,1,.36,1) both; }
.cn-text-enter { animation: cn-text-fade .35s ease both; }
.cn-ticker-animate { animation: cn-ticker var(--cn-duration, 20s) linear infinite; }
/* End News Banner */

/* Start Content Area */
.content-area .tab-image {
    display: block;
    width: min(78%, 560px);
    height: 380px;
    margin: 0 auto 1.5rem auto;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

@media (max-width: 1024px) {
    .content-area .tab-image {
        width: min(85%, 520px);
        height: 340px;
    }
}

@media (max-width: 640px) {
    .content-area .tab-image {
        width: 100%;
        height: 260px;
    }
}
/* End Content Area */