﻿/* File: Content/css/GovMissionPartnership.css */
/* Government Mission Partnership Styles */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== SECTION CONTAINER ===== */
.gov-partnership-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    position: relative;
    overflow: hidden;
}

    .gov-partnership-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 6px;
        background: linear-gradient(90deg, #1d4ed8, #059669, #dc2626);
        z-index: 1;
    }

.partnership-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ===== SECTION HEADER ===== */
.section-header {
    text-align: center;
    margin-bottom: 70px;
    padding: 0 20px;
}

.section-title {
    font-size: 3rem;
    color: #1e293b;
    margin-bottom: 20px;
    font-weight: 800;
    position: relative;
    display: inline-block;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -12px;
        left: 50%;
        transform: translateX(-50%);
        width: 140px;
        height: 5px;
        background: linear-gradient(90deg, #1d4ed8, #059669);
        border-radius: 3px;
        box-shadow: 0 2px 10px rgba(29, 78, 216, 0.3);
    }

.section-subtitle {
    font-size: 1.4rem;
    color: #334155;
    max-width: 600px;
    margin: 30px auto 0;
    line-height: 1.7;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    border: 2px solid rgba(29, 78, 216, 0.1);
}

/* ===== MISSIONS GRID ===== */
.missions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
    margin-bottom: 70px;
    padding: 0 10px;
}

/* ===== MISSION CARD ===== */
.mission-card {
    position: relative;
    border-radius: 20px;
    min-height: 200px;
    overflow: visible !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

    .mission-card:hover {
        transform: translateY(-15px);
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    }

/* Mission Background */
.mission-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    z-index: 1;
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.mission-card:hover .mission-bg {
    opacity: 0.15;
}

/* Mission Content */
.mission-content {
    position: relative;
    padding: 35px 30px;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Mission Badge */
.mission-badge {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    overflow: visible;
}

    .mission-badge::before {
        content: '';
        position: absolute;
        inset: -5px;
        border-radius: 25px;
        opacity: 0.2;
        z-index: 1;
    }

.mission-icon {
    font-size: 3rem;
    z-index: 2;
    position: relative;
    transition: transform 0.3s ease;
}

.mission-card:hover .mission-icon {
    transform: scale(1.15);
}

/* Mission Info */
.mission-info {
    flex: 1;
}

.mission-title {
    font-size: 1.8rem;
    color: #1e293b;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
    position: relative;
    padding-bottom: 12px;
}

    .mission-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 50px;
        height: 3px;
        border-radius: 2px;
    }

.mission-desc {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.6;
    font-weight: 500;
}

/* ===== INDIVIDUAL MISSION COLORS ===== */

/* Mission 1: NFSM - Pulses */
.mission-1 {
    background: linear-gradient(135deg, #059669, #10b981);
}

.mission-card:nth-child(1) .mission-badge::before {
    background: #059669;
}

.mission-card:nth-child(1) .mission-title::after {
    background: #059669;
}

.mission-card:nth-child(1):hover {
    box-shadow: 0 25px 60px rgba(5, 150, 105, 0.2);
}

/* Mission 2: NFSNM - Cereals */
.mission-2 {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
}

.mission-card:nth-child(2) .mission-badge::before {
    background: #1d4ed8;
}

.mission-card:nth-child(2) .mission-title::after {
    background: #1d4ed8;
}

.mission-card:nth-child(2):hover {
    box-shadow: 0 25px 60px rgba(29, 78, 216, 0.2);
}

/* Mission 3: NLM - Fodder */
.mission-3 {
    background: linear-gradient(135deg, #0d9488, #14b8a6);
}

.mission-card:nth-child(3) .mission-badge::before {
    background: #0d9488;
}

.mission-card:nth-child(3) .mission-title::after {
    background: #0d9488;
}

.mission-card:nth-child(3):hover {
    box-shadow: 0 25px 60px rgba(13, 148, 136, 0.2);
}

/* Mission 4: State Programmes */
.mission-4 {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
}

.mission-card:nth-child(4) .mission-badge::before {
    background: #7c3aed;
}

.mission-card:nth-child(4) .mission-title::after {
    background: #7c3aed;
}

.mission-card:nth-child(4):hover {
    box-shadow: 0 25px 60px rgba(124, 58, 237, 0.2);
}

/* ===== CALL TO ACTION ===== */
.partnership-cta {
    text-align: center;
    padding: 0 20px;
}

.learn-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px 45px;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 3px solid transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(29, 78, 216, 0.3);
    position: relative;
    overflow: visible;
    min-width: 300px;
}

    .learn-more-btn:hover {
        background: linear-gradient(135deg, #1e40af, #1d4ed8);
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0 15px 40px rgba(29, 78, 216, 0.4);
        color: white;
        text-decoration: none;
        border-color: rgba(255, 255, 255, 0.3);
    }

    .learn-more-btn:active {
        transform: translateY(-2px);
    }

.btn-arrow {
    font-size: 1.4rem;
    font-weight: bold;
    transition: transform 0.3s ease;
    opacity: 0.9;
}

.learn-more-btn:hover .btn-arrow {
    transform: translateX(8px);
    opacity: 1;
}

.learn-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.7s ease;
}

.learn-more-btn:hover::before {
    left: 100%;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mission-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

    .mission-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .mission-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .mission-card:nth-child(3) {
        animation-delay: 0.3s;
    }

    .mission-card:nth-child(4) {
        animation-delay: 0.4s;
    }

@keyframes pulseButton {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(29, 78, 216, 0.3);
    }

    50% {
        box-shadow: 0 10px 30px rgba(29, 78, 216, 0.6);
    }
}

.learn-more-btn {
    animation: pulseButton 3s infinite;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .missions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .gov-partnership-section {
        padding: 80px 15px;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .section-subtitle {
        font-size: 1.2rem;
        padding: 18px 25px;
    }

    .mission-content {
        padding: 30px 25px;
    }

    .mission-badge {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }

    .mission-icon {
        font-size: 2.5rem;
    }

    .mission-title {
        font-size: 1.6rem;
    }

    .mission-desc {
        font-size: 1rem;
    }

    .learn-more-btn {
        padding: 18px 40px;
        font-size: 1.1rem;
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .missions-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto 50px;
        gap: 25px;
    }

    .section-title {
        font-size: 2.2rem;
    }

        .section-title::after {
            width: 120px;
        }

    .section-subtitle {
        font-size: 1.1rem;
        padding: 15px 20px;
        margin-top: 20px;
    }

    .mission-card:hover {
        transform: translateY(-10px);
    }

    .mission-badge::before {
        inset: -4px;
    }

    .learn-more-btn {
        padding: 16px 35px;
        font-size: 1rem;
        min-width: 250px;
    }
}

@media (max-width: 480px) {
    .gov-partnership-section {
        padding: 60px 10px;
    }

    .section-header {
        margin-bottom: 50px;
    }

    .section-title {
        font-size: 1.9rem;
        margin-bottom: 15px;
    }

    .section-subtitle {
        font-size: 1rem;
        padding: 15px;
    }

    .missions-grid {
        gap: 20px;
        margin-bottom: 40px;
    }

    .mission-card {
        border-radius: 15px;
        min-height: 180px;
    }

    .mission-bg {
        border-radius: 15px;
    }

    .mission-content {
        padding: 25px 20px;
        border-radius: 15px;
    }

    .mission-badge {
        width: 60px;
        height: 60px;
        border-radius: 15px;
        margin-bottom: 20px;
    }

        .mission-badge::before {
            border-radius: 20px;
        }

    .mission-icon {
        font-size: 2rem;
    }

    .mission-title {
        font-size: 1.4rem;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }

        .mission-title::after {
            width: 40px;
            height: 2px;
        }

    .mission-desc {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .learn-more-btn {
        padding: 14px 30px;
        font-size: 0.95rem;
        min-width: 220px;
        gap: 10px;
        border-radius: 40px;
    }

    .btn-arrow {
        font-size: 1.2rem;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .mission-card,
    .learn-more-btn,
    .mission-card:hover,
    .mission-icon,
    .btn-arrow {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

/* Focus styles */
.learn-more-btn:focus {
    outline: 3px solid #1d4ed8;
    outline-offset: 5px;
}

.mission-card:focus-within {
    outline: 3px solid rgba(29, 78, 216, 0.3);
    outline-offset: 5px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .gov-partnership-section {
        background: white !important;
        padding: 40px 20px !important;
    }

    .mission-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }

        .mission-card:hover {
            transform: none !important;
        }

    .mission-bg {
        opacity: 0.05 !important;
    }

    .learn-more-btn {
        display: none;
    }
}
