/* =========================================
   Program Page Specific Styles 
   ========================================= */

/* Page Header (Matches About Us) */
.page-header {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.page-header .overlay {
    z-index: -1;
}

/* Vertical Cards Redesign */
.vertical-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    text-align: left;
}

.vertical-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-color: var(--theme-color-2);
}

.vertical-card .number {
    font-size: 40px;
    font-weight: 800;
    color: var(--body-color);
    opacity: 0.2;
    position: absolute;
    top: 20px;
    right: 25px;
    line-height: 1;
}

.vertical-card h4 {
    color: var(--theme-color-3);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 20px;
}

.vertical-card p {
    color: var(--body-color);
    line-height: 1.6;
    margin-bottom: 0;
    font-size: 15px;
}

/* Kit Grid */
.kit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
}

.kit-item {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.kit-item:hover {
    background: var(--theme-color-3);
    border-color: var(--theme-color-3);
    transform: translateY(-5px);
}

.kit-item:hover .kit-icon {
    background: rgba(255, 255, 255, 0.1);
    color: var(--theme-color-2);
}

.kit-item:hover h5 {
    color: #fff;
}

.kit-icon {
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 30px;
    color: var(--theme-color-3);
    transition: all 0.3s ease;
}

.kit-item h5 {
    font-size: 16px;
    margin-bottom: 0;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Achievement Table specific styling */
.achievement-table-container {
    max-width: 600px;
    margin: 0 auto;
}

.achievement-table-container th {
    text-align: center !important;
}

.program-section {
    padding: 60px 0;
}


/* About Section */
.about-program-text {
    font-size: 17px;
    line-height: 1.8;
    color: var(--body-color);
}

.about-program-text ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.about-program-text ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-weight: 500;
}

.about-program-text ul li i {
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--theme-color-2);
    font-size: 20px;
}

/* Stats Box */
.stat-box {
    background: #ededed;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease;
    border-bottom: 4px solid var(--theme-color-2);
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--theme-color-3);
    margin-bottom: 10px;
    font-family: var(--outfit-font);
}

.stat-label {
    font-size: 18px;
    color: var(--body-color);
    font-weight: 500;
}

.circle-stat {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: conic-gradient(var(--theme-color-2) 74%, #e2e8f0 0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-stat::before {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    background: #fff;
    border-radius: 50%;
}

.circle-stat-value {
    position: relative;
    font-size: 48px;
    font-weight: 700;
    color: var(--theme-color-3);
    z-index: 1;
}

/* Data Tables */
.table-responsive-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    /* padding: 20px; */
    margin-bottom: 40px;
    overflow-x: auto;
}

.program-table {
    width: 100%;
    border-collapse: collapse;
}

.program-table th {
    background-color: var(--theme-color-3);
    color: #fff;
    padding: 15px 20px;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
}

.program-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #edf2f7;
    color: var(--body-color);
}

.program-table tr:last-child td {
    border-bottom: none;
}

.program-table tbody tr:hover {
    background-color: #f8f9fa;
}

.program-table .total-row td {
    font-weight: 700;
    background-color: #f1f8ff;
    color: var(--theme-color-3);
}

/* Impact Stories */
.impact-story-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.impact-story-img {
    flex: 0 0 40%;
    position: relative;
    overflow: hidden;
}

.impact-story-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.impact-story-content {
    flex: 0 0 60%;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.impact-story-title {
    font-size: 24px;
    color: var(--theme-color-3);
    margin-bottom: 15px;
    font-weight: 700;
}

.impact-story-location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f8ff;
    padding: 6px 12px;
    border-radius: 20px;
    color: var(--theme-color-3);
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 20px;
}

.impact-story-location i {
    color: var(--theme-color-2);
    font-size: 20px !important;
}

.impact-story-text {
    color: var(--body-color);
    line-height: 1.8;
}

@media (max-width: 991px) {

    .impact-story-img,
    .impact-story-content {
        flex: 0 0 100%;
    }

    .impact-story-img {
        height: auto;
        aspect-ratio: 1/1;
    }

    .impact-story-content {
        padding: 30px 20px;
    }
}

/* Glimpse / Image Grid */
.glimpse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.glimpse-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.glimpse-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.glimpse-item:hover img {
    transform: scale(1.05);
}

.glimpse-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(37, 49, 80, 0.9));
    padding: 20px;
    color: #fff;
}

.glimpse-overlay h4 {
    color: #fff;
    margin: 0;
    font-size: 20px;
}

/* CTA Section specific to Program */
.program-cta {
    background: var(--theme-color-3);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 40px;
}

.program-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: var(--theme-color-2);
    border-radius: 50%;
    opacity: 0.1;
}

.program-cta h2 {
    color: #fff;
    font-size: 36px;
    margin-bottom: 20px;
}

.program-cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Premium Responsive Image-Based Study Kit Cards */
.study-kit-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(37, 49, 80, 0.08);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
}

.study-kit-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.study-kit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 49, 80, 0.85), rgba(37, 49, 80, 0.55));
    z-index: -1;
    transition: background 0.4s ease;
}

/* Diagonal gloss effect */
.study-kit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.25) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: left 0.8s ease;
    z-index: 2;
}

.study-kit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(37, 49, 80, 0.2);
    border-color: rgba(254, 189, 17, 0.4);
}

.study-kit-card:hover .study-kit-bg {
    transform: scale(1.08);
}

.study-kit-card:hover .study-kit-overlay {
    background: linear-gradient(135deg, rgba(37, 49, 80, 0.9), rgba(37, 49, 80, 0.6));
}

.study-kit-card:hover::before {
    left: 150%;
}

.study-kit-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.study-kit-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.study-kit-card:hover .study-kit-badge {
    background: var(--theme-color-2, #febd11);
    border-color: var(--theme-color-2, #febd11);
    color: var(--theme-color-3, #253150);
    box-shadow: 0 4px 10px rgba(254, 189, 17, 0.3);
}

.study-kit-title {
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    margin: 0;
    font-family: var(--outfit-font, sans-serif);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
}

@media (max-width: 991px) {
    .study-kit-card {
        min-height: 200px;
        padding: 25px 20px;
    }

    .study-kit-title {
        font-size: 18px;
    }
}

/* Why Literacy Matters Item Box Styles */
.why-literacy-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 49, 80, 0.02);
}

.why-literacy-item:hover {
    transform: translateY(-5px);
    border-color: var(--theme-color-2);
    box-shadow: 0 10px 25px rgba(37, 49, 80, 0.08);
}