.am-top-bg {        /* top:0 right:0 bottom:0 left:0 */
  width: 100%;
  height: auto;
  object-fit: cover;  /* makes image cover text */
}

/* 1. Base Section Styles */
.info-section {
    padding: 80px 0;
    background-color: #ffffff;
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #000000;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 2. Flexbox Layout */
.row {
    display: flex;
    align-items: center; /* Vertically centers text with image */
    justify-content: space-between;
    gap: 50px;
}

.content-left {
    flex: 1.2; /* Gives more space to the text */
}

.content-right {
    flex: 0.8;
    text-align: right;
}

/* 3. Typography Styles */
.main-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

.intro-text {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.description-text {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #333;
    text-align: justify;
}

/* 4. List Styles (Bold bullets) */
.info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.info-list li {
    font-weight: 500;
    font-size: 18px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.info-list li::before {
    content: "•";
    font-size: 24px;
    margin-right: 10px;
    line-height: 1;
}

/* 5. Clickable Image Button */
.btn-wrapper {
    display: inline-block;
    margin-bottom: 40px;
    transition: transform 0.2s ease;
}

.btn-wrapper img {
    display: block;
    width: 320px; /* Adjust based on your image size */
    height: auto;
    cursor: pointer;
}

.btn-wrapper:hover {
    transform: translateY(-3px);
    filter: brightness(1.05);
}

.btn-wrapper:active {
    transform: translateY(1px);
}

/* 6. Side Illustration */
.side-illustration {
    max-width: 100%;
    height: auto;
}

/* 7. Disclaimer (Bottom Text) */
.disclaimer {
    font-size: 10px;
    font-weight: 300;
    color: #222;
    line-height: 1.4;
    /* max-width: 480px; */
    margin: 0;
}

.content-bottom {
    margin-top: 100px;
}

/* 8. Mobile Responsiveness */
@media (max-width: 768px) {
    .row {
        flex-direction: column;
        text-align: left;
    }

    .content-right {
        order: -1; /* Puts the image on top for mobile users */
        text-align: center;
        margin-bottom: 30px;
    }

    .main-title {
        font-size: 32px;
    }

    .btn-wrapper img {
        width: 100%;
        max-width: 300px;
    }
}

.image-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 columns */
        gap: 10px; /* space between images */
        margin-bottom: 20px;
    }

    .image-grid-item img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 10px; /* optional: matches the rounded corners in your design */
    }

    /* ... your existing .image-grid and .image-grid-item css ... */

    .image-grid-item {
        /* ... existing properties (display, width, etc.) ... */
        transition: transform 0.5s ease, box-shadow 0.5s ease; /* Smooth transition */
        display: block; /* Ensure it behaves as a block link */
        overflow: hidden; /* Recommended for rounded corners on inner content */
    }

    .image-grid-item:hover {
        transform: translateY(-5px); /* Slightly lift the item */
        
    }

    /* Target the image inside the link to ensure it scales slightly as well */
    .image-grid-item:hover img {
        transform: scale(1.03); /* Subtle scale effect on the image itself */
    }



.modal {
    display: none; /* JS toggles to 'flex' */
    position: fixed;
    /* Adjust 'top' to match your header height */
    top: 70px; 
    left: 0;
    width: 100%;
    /* Calculate height: 100% of viewport minus the header height */
    height: calc(100vh - 70px); 
    background: rgba(0, 0, 0, 0.5);
    z-index: 999; /* Ensure this is lower than your header's z-index if you want it 'below' */
    
    justify-content: center;
    align-items: flex-start; /* Align to top so it stays below header */
    padding-top: 20px; /* Some breathing room below the header */
    margin-top: 25px;
}

.modal {
    display: none; /* JS toggles to flex */
    position: fixed;
    /* Use 'inset' to cover the screen, then adjust the top */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    
    /* Centering logic */
    justify-content: center;
    align-items: center; 
    padding: 10px;
    margin-top: 25px;
}

.modal-content {
    width: 95%;
    max-width: 650px;
    /* Important: The content itself should not exceed the available space */
    max-height: calc(100vh - 120px); 
    background: #fff;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Keeps the rounded corners while internal parts scroll */
}

/* --- 2. Fix Menu Overlap --- */
.modal-menu-container {
    display: flex;
    background-color: #f0f2f5;
    padding: 6px;
    border-radius: 14px;
    gap: 4px;
    margin-bottom: 20px;
    overflow-x: auto; /* Adds a scroll if items are too wide on tiny phones */
    scrollbar-width: none; /* Hide scrollbar for clean look */
    margin-top: 25px;
}

.modal-menu-container::-webkit-scrollbar { display: none; }

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* Makes the hover area a circle */
    transition: background-color 0.2s;
    z-index: 999;
    background-color: #f0f2f5;
}

.close-btn:hover,
.close-btn:focus {
    color: #333;
    text-decoration: none;
}

.close-btn:hover {
    background-color: #f0f2f5; /* Light gray circle on hover */
    color: #000;
}


@media (min-width: 480px) {
    .modal-content {
        width: 90%;
        max-width: 650px; /* Stops it from getting too wide on desktop */
        padding: 25px;
        /* margin: 10% auto is no longer needed because of Flexbox centering above */
    }
    
    .modal-menu-container {
        padding: 8px;
        gap: 8px;
    }
}

/* =========================================
   ARTICLE MODAL MODIFIERS
   ========================================= */

/* Override your default padding so the yellow header touches the edges */
.modal-content.article-modal {
    padding: 0 !important; 
}

/* Adjust your close button to look good on the yellow background */
.article-modal .close-btn {
    color: #ffffff;
    z-index: 10;
}
.article-modal .close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Soft white circle on hover */
    color: #ffffff;
}

/* Enable scrolling for the article since your main modal is overflow: hidden */
.article-scroll-area {
    flex: 1;
    overflow-y: auto;
    width: 100%;
}

/* Custom Scrollbar for the article */
.article-scroll-area::-webkit-scrollbar {
    width: 6px;
}
.article-scroll-area::-webkit-scrollbar-thumb {
    background-color: #cccccc;
    border-radius: 10px;
}

/* =========================================
   ARTICLE STYLING (Headers, Text, Boxes)
   ========================================= */
.modal-header-edu {
    background-color: #D4A017;
    padding: 40px 30px;
    text-align: center;
    position: relative;
}

.edu-kategori {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-weight: bold;
}

.edu-judul {
    color: #ffffff;
    font-family: 'Merriweather', 'Georgia', serif;
    font-size: 26px;
    margin: 0;
    line-height: 1.3;
}

.modal-body-edu {
    padding: 30px 40px;
}

.edu-paragraf-pembuka {
    font-size: 16px;
    line-height: 1.7;
    color: #444444;
    margin-top: 10px;
    margin-bottom: 35px;
}

.edu-section { margin-bottom: 30px; }

.edu-subjudul {
    font-family: 'Merriweather', 'Georgia', serif;
    font-size: 20px;
    color: #222222;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    margin-top: 0;
    line-height: 1.4;
}

.edu-icon {
    width: 26px;
    height: 26px;
    margin-right: 12px;
    stroke: #666666;
    flex-shrink: 0;
}

.edu-paragraf {
    font-size: 15px;
    line-height: 1.7;
    color: #444444;
    margin: 0 0 12px 0;
}

.edu-italic {
    font-style: italic;
    color: #666666;
}

.edu-boxed-list {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 25px 20px 10px;
    margin: 15px 0;
    background-color: #ffffff;
}

.edu-boxed-list ul, .edu-list {
    margin: 0;
    padding-left: 25px; 
}

.edu-boxed-list li, .edu-list li {
    font-size: 15px;
    line-height: 1.6;
    color: #444444;
    margin-bottom: 10px;
}

.edu-cta-box {
    background-color: #fcf8f2; 
    border: 1px solid #eadecb;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.edu-cta-title {
    font-family: 'Merriweather', 'Georgia', serif;
    font-size: 18px;
    font-weight: bold;
    color: #333333;
    margin: 0 0 15px 0;
}

.edu-btn {
    display: inline-block;
    background-color: #D4A017;
    color: #ffffff !important;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 15px;
    transition: background-color 0.2s, transform 0.2s;
    margin-top: 5px;
}

.edu-btn:hover {
    background-color: #b88a12;
    transform: translateY(-2px);
}

.edu-disclaimer {
    font-size: 12px;
    color: #999999;
    text-align: center;
    font-style: italic;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eeeeee;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .modal-header-edu { padding: 30px 20px; }
    .modal-body-edu { padding: 25px 20px; }
    .edu-judul { font-size: 22px; }
    .edu-subjudul {
        font-size: 18px;
        align-items: flex-start;
    }
    .edu-icon { margin-top: 2px; }
}