/* --- Hero Banner --- */
.hero-section {
    background: linear-gradient(rgba(0, 34, 68, 0.88), rgba(0, 34, 68, 0.88)), 
                url('https://images.unsplash.com/photo-1504711434969-e33886168f5c?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat fixed;
    padding: 7rem 0;
    text-align: center;
    color: #ffffff; 
    border-bottom: 5px solid #d9232d;
}

.hero-section h2 {
    font-size: 2.6rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin: 0 auto 1.5rem auto;
    line-height: 1.6;
    color: #e6f2ff;
}

.divider {
    height: 3px;
    width: 80px;
    background-color: #d9232d;
    margin: 1.5rem auto;
}

.ministry-text {
    font-size: 1.1rem;
    font-style: italic;
    color: #ffcc00;
}

/* --- Shared Elements --- */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h3 {
    font-size: 2.2rem;
    color: #002244;
}

.small-divider {
    height: 3px;
    width: 50px;
    background-color: #d9232d;
    margin: 1rem auto 0 auto;
}

.small-divider-left {
    height: 3px;
    width: 50px;
    background-color: #d9232d;
    margin: 1rem 0 1.5rem 0;
}

/* --- Intro Section (2 Columns) --- */
.intro-section {
    padding: 5rem 0;
    background-color: #ffffff;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.intro-left h3 {
    font-size: 2.2rem;
    color: #002244;
    line-height: 1.3;
}

.intro-right p {
    font-size: 1.15rem;
    color: #555;
    line-height: 1.8;
}

/* --- 6 Pillars Grid Section --- */
.pillars-section {
    padding: 4rem 0 5rem;
    background-color: #f4f7f6;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pillar-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-bottom: 4px solid #002244;
    transition: transform 0.3s ease;
    text-align: center;
}

.pillar-card:hover {
    transform: translateY(-5px);
    border-bottom: 4px solid #d9232d;
}

.pillar-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.pillar-card h4 {
    color: #002244;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.pillar-card p {
    color: #666;
    font-size: 0.95rem;
}

/* --- Detailed Functions Section --- */
.functions-section {
    padding: 5rem 0;
    background-color: #ffffff;
}

.functions-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.function-item {
    background: #ffffff;
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.function-item:hover {
    box-shadow: 0 10px 30px rgba(0,34,68,0.1);
    border-bottom: 4px solid #d9232d;
}

.function-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(0,34,68,0.95), rgba(0,34,68,0.95));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.function-item:hover::before {
    opacity: 1;
}

.function-item h4, .function-item p {
    transition: color 0.3s ease;
}

.function-item:hover h4 {
    color: #ffcc00;
}

.function-item:hover p {
    color: #e6f2ff;
}

/* SVG Icon Styling */
.function-icon-box {
    width: 100px;
    height: 100px;
    background-color: #f0f7ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    transition: background-color 0.3s ease;
}

.function-item:hover .function-icon-box {
    background-color: rgba(255, 255, 255, 0.1);
}

.func-icon {
    width: 50px;
    height: 50px;
    stroke: #002244;
    transition: stroke 0.3s ease;
}

.function-item:hover .func-icon {
    stroke: #ffcc00;
}

.function-item h4 {
    font-size: 1.4rem;
    color: #002244;
    margin-bottom: 1rem;
}

.function-item p {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
}

/* --- Impact & Benefits Section --- */
.impact-section {
    padding: 5rem 0;
    background-color: #002244; 
    color: #ffffff;
}

.impact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.impact-quote-box {
    border-left: 5px solid #ffcc00;
    padding-left: 2rem;
}

.impact-quote-box p {
    font-size: 1.5rem;
    font-style: italic;
    color: #e6f2ff;
    line-height: 1.6;
}

.impact-text h3 {
    font-size: 2.2rem;
    color: #ffffff;
}

.impact-text ul {
    list-style: none;
    margin-top: 1rem;
}

.impact-text li {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    padding-left: 25px;
    position: relative;
    color: #e6f2ff;
}

.impact-text li::before {
    content: '✓';
    color: #ffcc00;
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2rem;
}

/* --- Conclusion Section --- */
.conclusion-section {
    padding: 6rem 0;
    background-color: #f4f7f6;
}

.conclusion-2-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 4rem;
    align-items: center;
}

.conclusion-image-side {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    background-color: #e0e0e0;
    min-height: 300px;
}

.conclusion-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.conclusion-img:hover {
    transform: scale(1.05); 
}

.conclusion-text-side h3 {
    color: #002244;
    font-size: 2.2rem;
    line-height: 1.3;
}

.conclusion-text-side p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .functions-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .intro-grid, .impact-grid, .conclusion-2-col-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .functions-content {
        grid-template-columns: 1fr;
    }
    .main-nav > ul {
        flex-direction: column;
    }
}