/* ==============================
   Program Archive Page CSS
   ============================== */


/* ✅ Make hero section fullwidth in Programs archive */
.post-type-archive-programs .ast-container {
    max-width: 100% !important;
    padding: 0 !important;
}

/* 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 */
}

/* Subtitle */
.post-type-archive-programs .program-archive-subtitle {
    font-size: 18px;
    color: #555;
    margin: 2px 116px 15px 124px;
}


/* ==============================
   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: center;
    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;
}

.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(280px, 1fr));
    gap: 30px;
}

.program-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.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;
}

.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: 6px;
    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; }
}
/* Pagination */
.program-pagination {
    margin-top: 30px;
    text-align: center;
}

/* 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;
    }
}