.ministry-plan-section * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.ministry-plan-section {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    color: #ffffff;
    width: 100%;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.ministry-plan-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.ministry-plan-title {
    font-size: clamp(48px, 5vw, 90px);
    font-weight: 300;
    margin-top: 10px;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.ministry-plan-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.ministry-plan-collage {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px; 
    width: 70%; 
    margin: 0 auto;
    position: relative;
    height: auto;
}

.ministry-plan-frame {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    opacity: 1;
}

.ministry-plan-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.ministry-plan-frame:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.ministry-plan-frame:hover img {
    transform: scale(1.1);
}

/* Individual frame sizing - reduced sizes */
.ministry-plan-frame-1 {
    width: 190px; /* Reduced from 220px */
    height: 240px; /* Reduced from 280px */
    flex-shrink: 0;
}

.ministry-plan-frame-2 {
    width: 210px; /* Reduced from 240px */
    height: 300px; /* Reduced from 350px */
    flex-shrink: 0;
}

.ministry-plan-frame-3 {
    width: 280px; /* Reduced from 320px */
    height: 360px; /* Reduced from 420px */
    flex-shrink: 0;
}

.ministry-plan-frame-4 {
    width: 210px; /* Reduced from 240px */
    height: 260px; /* Reduced from 300px */
    flex-shrink: 0;
}

.ministry-plan-frame-5 {
    width: 190px; /* Reduced from 220px */
    height: 240px; /* Reduced from 280px */
    flex-shrink: 0;
}

/* Floating animation */
@keyframes ministryPlanFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .ministry-plan-collage {
        width: 85%;
        gap: 12px;
    }
    
    .ministry-plan-frame-1 {
        width: 160px;
        height: 200px;
    }
    
    .ministry-plan-frame-2 {
        width: 180px;
        height: 260px;
    }
    
    .ministry-plan-frame-3 {
        width: 230px;
        height: 300px;
    }
    
    .ministry-plan-frame-4 {
        width: 180px;
        height: 220px;
    }
    
    .ministry-plan-frame-5 {
        width: 160px;
        height: 200px;
    }
}

@media (max-width: 900px) {
    .ministry-plan-collage {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 20px; /* Space for scrollbar */
        width: 90%; /* A bit wider on tablet to show more content before scrolling */
    }
}

@media (max-width: 768px) {
    .ministry-plan-section {
        padding: 60px 15px;
    }
    
    .ministry-plan-title {
        font-size: clamp(36px, 6vw, 64px);
    }
    
    .ministry-plan-frame-1 {
        width: 140px;
        height: 180px;
    }
    
    .ministry-plan-frame-2 {
        width: 150px;
        height: 220px;
    }
    
    .ministry-plan-frame-3 {
        width: 190px;
        height: 250px;
    }
    
    .ministry-plan-frame-4 {
        width: 150px;
        height: 190px;
    }
    
    .ministry-plan-frame-5 {
        width: 140px;
        height: 180px;
    }
}

@media (max-width: 480px) {
    .ministry-plan-collage {
        gap: 8px;
    }
    
    .ministry-plan-frame-1, 
    .ministry-plan-frame-5 {
        display: none; /* Hide outer frames on very small screens */
    }
}




.eight-point-plan-section {
    background-color: #000000;
    color: #ffffff;
    padding: 80px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    position: relative;
}

.plan-main-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 400;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.plan-subtitle {
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 300;
    margin-bottom: 80px;
    letter-spacing: -0.5px;
}

/* Timeline structure */
.plan-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.plan-timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.3);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

/* Timeline items */
.plan-item {
    position: relative;
    margin-bottom: 30px;
    width: 100%;
    display: flex;
    align-items: center;
}

.plan-item-left {
    justify-content: flex-start;
}

.plan-item-right {
    justify-content: flex-end;
}

/* The circular point on the timeline */
.plan-point {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #0D0D0D;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.plan-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

/* Content box */
.plan-content {
    background: rgba(30, 30, 30, 0.8);
    border-radius: 10px;
    padding: 30px;
    width: 45%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.plan-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.plan-icon img {
    width: 70px;
    height: 70px;
}

.plan-title {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 15px;
}

.plan-description {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .plan-timeline:before {
        left: 40px;
    }
    
    .plan-item {
        justify-content: flex-start;
        padding-left: 20px;
    }
    
    .plan-point {
        left: 40px;
    }
    
    .plan-content {
        width: calc(100% - 80px);
    }
}

@media (max-width: 767.98px) {
    .plan-main-title,
    .plan-subtitle {
        padding: 0 20px;
    }
    
    .plan-timeline {
        padding: 20px;
    }
    
    .plan-timeline:before {
        left: 20px;
    }
    
    .plan-item {
        padding-left: 20px;
    }
    
    .plan-point {
        left: 20px;
        width: 60px;
        height: 60px;
    }
    
    .plan-number {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    
    .plan-content {
        width: calc(100% - 60px);
        padding: 20px;
    }
    
    .plan-icon {
        width: 40px;
        height: 40px;
    }
    
    .plan-icon img {
        width: 24px;
        height: 24px;
    }
    
    .plan-title {
        font-size: 18px;
    }
    
    .plan-description {
        font-size: 14px;
    }
    
    .plan-item {
        margin-bottom: 20px;
    }
}



