/* Blog Page Styles */

/* Blog Hero */
.blog-hero {
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    color: white;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.blog-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Featured Article */
.featured-article {
    padding: 5rem 0 3rem;
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.featured-image {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-badge {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
}

.featured-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 0.875rem;
}

.article-meta i {
    color: var(--primary-color);
}

.featured-content h2 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-content p {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--text-color);
}

/* Blog Categories */
.blog-categories {
    padding: 2rem 0;
    background: var(--light-color);
    border-bottom: 1px solid var(--border-color);
}

.category-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 2rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.category-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.category-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Blog Grid */
.blog-grid-section {
    padding: 4rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.blog-image {
    height: 220px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.blog-category {
    color: var(--secondary-color);
    font-weight: 600;
}

.blog-date {
    color: var(--text-color);
}

.blog-content h3 {
    font-size: 1.25rem;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-content p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-info img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info span {
    font-weight: 500;
    color: var(--dark-color);
    font-size: 0.875rem;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
}

.read-more:hover {
    gap: 0.75rem;
}

/* Load More */
.load-more-container {
    text-align: center;
    margin-top: 3rem;
}

/* Newsletter CTA */
.blog-newsletter {
    padding: 5rem 0;
    background: var(--light-color);
}

.newsletter-card {
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    color: white;
    padding: 4rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(30, 64, 175, 0.2);
}

.newsletter-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.newsletter-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.newsletter-card p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.blog-newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.blog-newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    color: white;
    font-size: 1rem;
}

.blog-newsletter-form input::placeholder {
    color: rgba(255,255,255,0.7);
}

.blog-newsletter-form input:focus {
    outline: none;
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
}

.blog-newsletter-form button {
    white-space: nowrap;
}

/* Student Success Stories Page */
.success-hero {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.success-grid {
    display: grid;
    gap: 3rem;
    margin-bottom: 3rem;
}

.success-story-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.success-story-card:nth-child(even) {
    grid-template-columns: 1fr 300px;
}

.success-story-card:nth-child(even) .story-image {
    grid-column: 2;
}

.success-story-card:nth-child(even) .story-content {
    grid-column: 1;
    grid-row: 1;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

.story-content h3 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.story-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    background: var(--light-color);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
}

.stat-item strong {
    display: block;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.stat-item span {
    font-size: 0.875rem;
    color: var(--text-color);
}

.story-quote {
    background: #f0f9ff;
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    font-size: 1.125rem;
    color: var(--dark-color);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-box {
    text-align: center;
}

.stat-box h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat-box p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Success Stories Section */
.success-stories-section {
    padding: 5rem 0;
}

.story-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-color);
}

.story-meta i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.achievement-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.achievement-badges .badge {
    background: var(--light-color);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    color: var(--dark-color);
    border: 2px solid var(--primary-color);
}

.achievement-badges .badge i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Video Testimonials */
.video-testimonials-section {
    margin-top: 5rem;
    text-align: center;
}

.video-testimonials-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.video-testimonial {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-testimonial h4 {
    padding: 1.5rem;
    font-size: 1.125rem;
    color: var(--dark-color);
}

/* Success Numbers */
.success-numbers {
    background: var(--light-color);
    padding: 5rem 0;
}

.success-numbers h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.number-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
}

.number-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.number-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.number-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.number-card ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.number-card ul li:last-child {
    border-bottom: none;
}

/* Success CTA */
.success-cta {
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.success-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.success-cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .featured-card {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        min-height: 300px;
    }
    
    .success-story-card,
    .success-story-card:nth-child(even) {
        grid-template-columns: 1fr;
    }
    
    .success-story-card:nth-child(even) .story-image,
    .success-story-card:nth-child(even) .story-content {
        grid-column: 1;
    }
}

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-newsletter-form {
        flex-direction: column;
    }
    
    .story-stats {
        flex-wrap: wrap;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}
