:root {
    --primary-orange: #ff6b00;
    --text-dark: #1a1a1a;
    --text-gray: #777777;
}

.blog-section {
    padding: 70px 5%;
    background-color: #ffffff;
    font-family: 'FiraGO', sans-serif;
    text-align: center;
    padding-bottom: 20px;
}

.programs-header {
    background-color: #032475;
    padding: 50px 50px;
    color: #ffffff;
    text-align: center;
}

.programs-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
    display: inline-block;
    margin-left: 15px;
    margin-right: 10px;
    position: relative;
    top: 70%;
    transform: translateY(-70%);
}

.blog-header h1 {
    color: var(--primary-orange);
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.blog-header p {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
}

/* merged with service-card logic */
.blog-card {
    background: #ffffff;
    border-radius: 25px;
    overflow: visible; /* Needed for the floating icon */
    text-align: center;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); 
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.image-wrapper {
    position: relative;
    height: 250px;
    width: 100%;
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Curved bottom design */
    border-bottom-left-radius: 50% 20px;
    border-bottom-right-radius: 50% 20px;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
}

/* The floating icon from the services design */
.card-icon {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    z-index: 2;
}

.card-icon img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.blog-content {
    padding: 50px 20px 30px; /* Top padding increased to make room for icon */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.blog-category {
    color: var(--primary-orange);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-title {
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 800;
}

.blog-description {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.blog-button {
    display: inline-block;
    background-color: var(--primary-orange);
    color: #ffffff;
    padding: 14px 35px;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s ease;
    width: 100%;
}

.card-button:hover {
    background-color: #e66d00;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .blog-header h1 { font-size: 2.5rem; }
    .blog-grid { grid-template-columns: 1fr; }
}

.hero-logo {
    position: relative;
    display: inline-block;
    height: 100px;
}

@media screen and (max-width: 768px) {
    .sponsors-header {
        height: 200px;
    }

    .section-header {
        top: 50%;
        transform: translateY(-50%);
        position: relative;
    }

    .hero-logo {
        display: none;
    }

    .programs-header h1 {
        font-size: 2.5rem;
        top: 0;
        transform: translateY(0);
    }
}

@media screen and (max-width: 480px) {
    .programs-header h1 {
        font-size: 1.6rem;
    }
}