/* --- Modern Blog/Programs Design --- */
.blog-container {
    padding: 80px 5%;
    background-color: #f0f4f8;
    font-family: 'Segoe UI', sans-serif;
}

.blog-intro {
    text-align: center;
    margin-bottom: 60px;
}

.main-heading {
    font-size: 2.8rem;
    color: #0d3b66;
    margin-bottom: 10px;
}

.heading-underline {
    width: 80px;
    height: 4px;
    background: #f4d35e;
    margin: 0 auto 20px;
}

.sub-text {
    color: #555;
    font-size: 1.1rem;
}

/* Grid Layout */
.blog-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Program Card Styling */
.program-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Image Decoration */
.card-img-box {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.program-card:hover .card-img-box img {
    transform: scale(1.1);
}

.tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #27ae60;
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Info Section */
.card-info {
    padding: 30px;
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-info h3 {
    font-size: 1.5rem;
    color: #0d3b66;
    margin-bottom: 15px;
}

.card-info p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* Button Styling */
.enroll-btn {
    text-decoration: none;
    background: transparent;
    border: 2px solid #27ae60;
    color: #27ae60;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: 0.3s;
}

.enroll-btn:hover {
    background: #27ae60;
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .main-heading { font-size: 1.8rem; }
    .blog-layout { grid-template-columns: 1fr; }
}