/* jis_achievements.css */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&display=swap');
 
.jis-achievements-wrapper {
    font-family: 'Montserrat', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    background-color: #f9fafb;
}
 
/* --- HERO CAROUSEL --- */
.achievements-hero {
    position: relative;
    height: 65vh;
    min-height: 500px;
    width: 100%;
    background: #111827;
    margin-bottom: 0;
    overflow: hidden;
    border-radius: 0 0 40px 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
 
.hero-slide {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1s ease; transform: scale(1.05); z-index: 1;
}
.hero-slide.active { opacity: 1; transform: scale(1); z-index: 2; }
 
/* Background Images defined here */
.slide-opm { background-image: url('/wp-content/uploads/2026/02/OPM-2-YHP_2554.jpg'); }
.slide-housing { background-image: url('/wp-content/uploads/2026/02/pm-planting-a-tree.jpg'); }
.slide-ports { background-image: url('/wp-content/uploads/2026/02/new-museum-copy.jpg'); }
 
.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.95) 0%, rgba(17, 24, 39, 0.8) 50%, rgba(17, 24, 39, 0.4) 100%);
}
 
.slide-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    z-index: 10;
    color: white;
    padding: 0 20px;
}
 
.slide-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding-top: 40px;
}
 
.ministry-tag { background: #fbbf24; color: #111827; font-weight: 700; font-size: 11px; text-transform: uppercase; padding: 6px 12px; border-radius: 4px; display: inline-block; margin-bottom: 15px; }
.slide-title { font-size: 3.5rem; font-weight: 900; line-height: 1.1; margin: 0 0 20px 0; letter-spacing: -1px; }
.slide-desc { font-size: 1.2rem; color: #e5e7eb; max-width: 600px; line-height: 1.6; margin: 0; }
   
.hero-indicators { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 20; display: flex; gap: 10px; }
.indicator { width: 40px; height: 4px; background: rgba(255,255,255,0.3); cursor: pointer; transition: 0.3s; }
.indicator.active { background: #16a34a; width: 60px; }
   
/* --- NAV --- */
.ministry-nav-wrapper { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid #e5e7eb; padding: 20px 0; box-shadow: 0 4px 10px rgba(0,0,0,0.05); width: 100%; }
   
.ministry-nav {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 0 30px 10px 30px;

    max-width: none;  
    margin: 0;         

    -webkit-overflow-scrolling: touch;
}
   
.ministry-nav::-webkit-scrollbar { height: 4px; }
.ministry-nav::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 4px; }
   
.nav-chip { white-space: nowrap; background: #f3f4f6; border: 1px solid #e5e7eb; color: #4b5563; padding: 10px 22px; border-radius: 50px; font-weight: 600; font-size: 13px; cursor: pointer; transition: 0.2s; flex-shrink: 0; }
.nav-chip:hover { background: #e5e7eb; color: #111827; }
.nav-chip.active { background: #111827; color: white; border-color: #111827; }
 
/* --- CONTENT --- */
.achievements-content { max-width: 1200px; margin: 80px auto; padding: 0 30px; }
 
/* Accordion Logic */
.ministry-section {
    margin-bottom: 30px;
    scroll-margin-top: 120px;
    display: block;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}
 
.ministry-section.hidden { display: none; }
 
.section-header {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px;
    cursor: pointer;
    background: #fff;
    transition: background-color 0.2s;
    position: relative;
}
 
.section-header:hover { background-color: #f9fafb; }
 
.section-header::after {
    content: '+';
    font-size: 2rem;
    color: #16a34a;
    font-weight: 300;
    margin-left: auto;
}
 
.ministry-section.open .section-header::after { content: '-'; }
.ministry-section.open .section-header { border-bottom: 1px solid #e5e7eb; }
 
.ministry-section:not(.open) > *:not(.section-header) { display: none; }
 
.ministry-section.open > *:not(.section-header) {
    display: grid;
    animation: slideDown 0.3s ease-out;
}
 
.ministry-section.open > .recovery-banner {
    display: block;
    margin: 30px;
}
 
.split-layout { padding: 40px 30px; }
 
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
 
.ministry-heading { font-size: 2rem; font-weight: 800; color: #111827; margin: 0; text-transform: uppercase; letter-spacing: -1px; }
.divider-line { height: 6px; flex-grow: 1; background: #f3f4f6; border-radius: 3px; display: none; }
 
.split-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: start; }
.split-layout.reverse { grid-template-columns: 0.8fr 1.2fr; }
.full-width { grid-column: 1 / -1; }
 
/* --- LISTS --- */
.list-title { font-size: 1.4rem; font-weight: 700; color: #16a34a; margin-bottom: 25px; text-transform: uppercase; letter-spacing: 1px; }
.achievement-list { list-style: none; padding: 0; margin: 0; }
.achievement-list li { position: relative; padding-left: 30px; margin-bottom: 20px; line-height: 1.6; color: #4b5563; font-size: 16px; }
.achievement-list li::before { content: "✓"; position: absolute; left: 0; top: 2px; color: #16a34a; font-weight: 900; font-size: 1.2rem; }
.achievement-list strong { color: #111827; }
 
/* --- VISUALS --- */
.visual-column { display: flex; flex-direction: column; gap: 40px; }
.photo-card { background: white; border: 1px solid #e5e7eb; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.photo-wrapper { width: 100%; height: 300px; overflow: hidden; }
.photo-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.photo-card:hover .photo-wrapper img { transform: scale(1.05); }
.photo-caption { padding: 25px; font-size: 14px; color: #6b7280; line-height: 1.6; background: #f9fafb; border-top: 1px solid #f3f4f6; }
.photo-caption strong { color: #111827; display: block; margin-bottom: 5px; font-size: 15px; }
 
/* --- STATS BOXES --- */
.grid-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.stat-box { background: #f9fafb; padding: 30px; border-radius: 12px; border-left: 6px solid #fbbf24; }
.stat-number { display: block; font-size: 2.5rem; font-weight: 800; color: #111827; margin-bottom: 10px; }
.stat-label { font-size: 14px; color: #6b7280; line-height: 1.4; display: block; }
 
/* --- RECOVERY & HOUSING STYLES --- */
.recovery-banner {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 16px;
    padding: 40px;
}
 
.recovery-header { text-align: center; max-width: 800px; margin: 0 auto 40px auto; }
.recovery-badge { background: #e11d48; color: white; padding: 4px 12px; border-radius: 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; display: inline-block; }
.recovery-title { font-size: 2rem; font-weight: 800; color: #881337; margin: 0 0 15px 0; }
.recovery-intro { font-size: 1.1rem; color: #4c0519; line-height: 1.6; }
 
.recovery-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 40px; }
.r-stat-card { background: white; padding: 20px; border-radius: 10px; border-bottom: 4px solid #e11d48; box-shadow: 0 4px 6px rgba(225, 29, 72, 0.1); text-align: center; }
.r-stat-val { display: block; font-size: 1.8rem; font-weight: 800; color: #881337; margin-bottom: 5px; }
.r-stat-lbl { font-size: 0.9rem; color: #64748b; font-weight: 600; line-height: 1.3; }
 
.recovery-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.rd-col h4 { font-size: 1.1rem; color: #be123c; border-bottom: 2px solid #fda4af; padding-bottom: 10px; margin-bottom: 20px; font-weight: 700; }
 
.recovery-list li::before { color: #e11d48; content: "•"; font-size: 1.5rem; top: 0; }
 
.housing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.housing-sub-box { background: #f0fdf4; padding: 30px; border-radius: 12px; border-left: 5px solid #16a34a; }
 
/* WAF Bypass Helper Classes */
.ministry-section.no-bottom {
    border-bottom: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin-bottom: 0;
}
.ministry-section.no-top {
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    margin-top: 0;
}
.section-divider {
    border-top: 1px solid #e5e7eb;
    margin: 0 30px;
}
.subheading {
    color: #111827;
    margin-bottom: 10px;
    font-weight: 700;
}
.spaced-paragraph {
    margin-bottom: 20px;
}
 
@media (max-width: 900px) {
    .achievements-hero { height: 60vh; min-height: 400px; border-radius: 0; }
    .split-layout, .split-layout.reverse { grid-template-columns: 1fr; gap: 30px; }
    .grid-stats { grid-template-columns: 1fr; }
    .slide-title { font-size: 2.2rem; }
    .slide-content { padding: 0 20px; }
    .recovery-details-grid, .housing-grid { grid-template-columns: 1fr; }
    .ministry-nav { padding-bottom: 15px; }
    .section-header { padding: 20px; }
}