/* ==============================
   Program Archive Page CSS
   ============================== */


/* ✅ Make hero section fullwidth in Programs archive */
.post-type-archive-programs .ast-container {
    max-width: 100% !important;
    padding: 0 !important;
}

.program-archive-main {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: Helvetica, Arial, sans-serif;
}

/* Hero section fullwidth */
.post-type-archive-programs .program-archive-hero {
    width: 100%;
    margin-top: 120px;
    background: #f5f5f5;
    padding: 50px 19px;
    margin-bottom: 30px;
}

/* Heading fullwidth underline */
.post-type-archive-programs .program-archive-title {
    font-size: 40px;
    font-weight: bold;
    margin: 20px 0 15px 0;
    padding: 10px 0;
    margin: 20px 116px 15px 124px;
    border-bottom: 1px solid #000;  /* underline */
    font-family: Helvetica, Arial, sans-serif !important;
}

/* Subtitle */
.post-type-archive-programs .program-archive-subtitle {
    font-size: 18px;
    color: #555;
    margin: 2px 116px 15px 124px;
    font-family: Helvetica, Arial, sans-serif !important;
}


/* ==============================
   Program Archive Filter Form
   ============================== */
.program-filter-wrapper {
    margin-bottom: 40px;
    text-align: left;
}

.program-filter-wrapper .program-filter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

/* Search Group */
.program-filter-wrapper .search-group {
    display: flex;
    align-items: stretch;
    border: 2px solid #007A09;
    border-radius: 30px;
    overflow: hidden;
    background: #fff;
    width: 60%;
    max-width: 720px;
    min-width: 300px;
}

.program-filter-wrapper .search-group input[type="text"] {
    flex: 1;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
    background: transparent;
}

.program-filter-wrapper .search-group button {
    background: #007A09;
    color: #fff;
    border: none;
    padding: 10px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    border-radius: 0 30px 30px 0;
    margin: 0 !important;
    font-family: Helvetica, Arial, sans-serif !important;
}

.program-filter-wrapper .search-group button:hover {
    background-color: #005f08;
}

/* Dropdown Row */
.program-filter-wrapper .dropdown-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 60%;
    max-width: 720px;
    min-width: 300px;
    justify-content: flex-start;
    margin-top: 10px;
}

.program-filter-wrapper .dropdown-row select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
}

/* Reset Link */
.program-filter-wrapper .reset-group {
    margin-top: 10px;
    width: 60%;
    max-width: 720px;
    min-width: 300px;
    text-align: left;
}

.program-filter-wrapper .reset-link {
    color: #007A09;
    text-decoration: underline;
    font-size: 14px;
}


/* ==============================
   Program Grid
   ============================== */
.program-grid-wrapper {
    padding: 4px 2px;
    margin: 0px 116px 15px 124px;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
    gap: 40px;
}

.program-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* Entrance Animation */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUpIn 0.5s forwards ease-out;
}

@keyframes fadeUpIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

/* Feature Image */
.program-card .program-thumb {
    position: relative;
    border-radius: 6px 6px 0 0;
}

/* Image Shimmer while loading */
.program-thumb.shimmer-active {
    animation: shimmer 1.5s infinite linear;
    background: #f6f7f8;
    background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-repeat: no-repeat;
    background-size: 800px 100%;
}
.program-thumb.shimmer-active img {
    opacity: 0;
}

.program-card .program-thumb img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    border-radius: 6px 6px 0 0;
}

/* Program Category Overlay */
.program-card .program-category {
    position: absolute;
    bottom: -18px;;
    left: 10px;
    right:10px;
    background-color: #007A09;
    color: #fff;
    padding: 5px 15px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    box-sizing: border-box;
    font-family: HELVETICA;
    margin-bottom:8px;
}

/* Title and Button */
.program-card .program-title {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 13px;
    padding: 0 15px;
    font-weight: bold;
    font-family: Helvetica, Helvetica, Arial, sans-serif;
}

.program-card .program-title a {
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    font-family: Helvetica, Helvetica, Arial, sans-serif;
}

.program-card .program-title a:hover {
    color: #007A09;
    font-weight: bold;
    font-family: Helvetica, Helvetica, Arial, sans-serif;
     
}

/* Program Card Footer */
.program-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 16px;
}

/* Read More Button */
.program-card-footer .read-more-btn {
    background: #fff;
    color: #007A09;
    border: 1px solid #007A09;
    border-radius: 3px;
    padding: 3px 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
    font-family: Helvetica, Arial, sans-serif;
}

.program-card-footer .read-more-btn:hover {
    background-color: #005f08;
    color: #fff;
    font-family: Helvetica, Helvetica, Arial, sans-serif;
}

/* Project Status */
.program-status {
    display: flex;
    align-items: center;
    font-weight: bold;
    color: #007A09;
    gap: 3px;
    font-size:12px;
    font-family: Helvetica, Arial, sans-serif;
}

/* Indicator for ongoing */
.status-indicator {
    width: 10px;
    height: 10px;
    background-color: #FFD700;
    border-radius: 50%;
    animation: blink-indicator 1s infinite;
}

/* Blinking animation */
@keyframes blink-indicator {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0; }
}
/* ==============================
   Skeleton Loading Animation
   ============================== */
@keyframes shimmer {
    0% { background-position: -468px 0; }
    100% { background-position: 468px 0; }
}

.skeleton-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 380px; /* Approximate height of program card */
}

.skeleton-anim {
    animation: shimmer 1.5s infinite linear;
    background: #f6f7f8;
    background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-repeat: no-repeat;
    background-size: 800px 100%;
}

.skeleton-img {
    height: 250px;
    width: 100%;
    border-radius: 6px 6px 0 0;
}

.skeleton-category {
    height: 30px;
    width: 60%;
    margin: -15px auto 10px;
    border-radius: 4px;
    position: relative;
    z-index: 2;
}

.skeleton-title {
    height: 20px;
    margin: 15px;
    border-radius: 4px;
}

.skeleton-footer {
    height: 30px;
    margin: auto 15px 15px;
    border-radius: 4px;
    width: 40%;
}

/* Hide grid container when loading */
#program-skeleton-grid {
    display: none !important;
}
.program-grid-wrapper.is-loading #program-grid-content {
    opacity: 0.5;
    pointer-events: none;
}

/* ==============================
   Professional Pagination
   ============================== */
.program-pagination {
    margin-top: 50px;
    text-align: center;
    font-family: Helvetica, Arial, sans-serif;
}

.program-pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    background: #fff;
}

.program-pagination .page-numbers:hover,
.program-pagination .page-numbers:focus {
    background: #007A09;
    color: #fff;
    border-color: #007A09;
}

.program-pagination .page-numbers.current {
    background: #007A09;
    color: #fff;
    border-color: #007A09;
    cursor: default;
}

.program-pagination .page-numbers.next,
.program-pagination .page-numbers.prev {
    font-weight: bold;
}

/* No Programs */
.no-programs {
    text-align: center;
    padding: 50px 0;
}


/* ==============================
   Responsive Adjustments
   ============================== */

/* Tablet */
@media(max-width: 992px) {
    .program-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .post-type-archive-programs .program-archive-title,
    .post-type-archive-programs .program-archive-subtitle,
    .program-grid-wrapper {
        margin-left: 5%;
        margin-right: 5%;
    }
}

/* Mobile */
@media(max-width: 768px) {

    /* Heading & Subtitle center align */
    .post-type-archive-programs .program-archive-title {
        font-size: 28px;
        text-align: center;
        margin: 10px auto;
        border-bottom: none;
    }

    .post-type-archive-programs .program-archive-subtitle {
        font-size: 16px;
        text-align: center;
        margin: 5px auto 20px;
    }

    /* Search box full width stacked */
    .program-filter-wrapper .search-group {
        flex-direction: column;
        width: 90%;
        border-radius: 12px;
    }

    .program-filter-wrapper .search-group input {
        width: 100%;
        border-radius: 12px 12px 0 0;
    }

    .program-filter-wrapper .search-group button {
        width: 100%;
        border-radius: 0 0 12px 12px;
    }

    /* Dropdown full width */
    .program-filter-wrapper .dropdown-row {
        flex-direction: column;
        width: 90%;
        gap: 10px;
    }

    .program-filter-wrapper .dropdown-row select {
        width: 100%;
        min-width: auto;
    }

    .program-filter-wrapper .reset-group {
        width: 90%;
        text-align: center;
    }

    /* Grid 1 column */
    .program-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .program-grid-wrapper {
        margin: 0 5%;
    }

    .program-card .program-thumb img {
        height: 180px;
    }
}