/* Hero Card Component */
.hero-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 3rem;
}

.hero-card__decoration-1,
.hero-card__decoration-2 {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
}

.hero-card__decoration-1 {
    width: 300px;
    height: 300px;
    background: rgba(66, 133, 244, 0.1);
    top: -100px;
    right: -100px;
}

.hero-card__decoration-2 {
    width: 200px;
    height: 200px;
    background: rgba(52, 168, 83, 0.1);
    bottom: -80px;
    left: -80px;
}

.hero-card__tag {
    display: inline-block;
    background: #4285f4;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.hero-card__title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.hero-card__description {
    color: #666666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.hero-card__image {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-card__image img {
    max-width: 100%;
    height: auto;
}

/* Information Card Component */
.info-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.info-card__header {
    margin-bottom: 1rem;
}

.info-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.info-card__subtitle {
    color: #666666;
    font-size: 0.875rem;
}

.info-card__content {
    color: #333333;
    font-size: 1rem;
    line-height: 1.5;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 1rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: #666666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-card {
        padding: 1.5rem;
    }

    .hero-card__title {
        font-size: 1.5rem;
    }

    .hero-card__description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }
}

/* Utility Classes */
.text-primary {
    color: #4285f4;
}

.text-success {
    color: #34a853;
}

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

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

/* Recent Posts Section Styles */
.recent-posts-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    position: relative;
    overflow: hidden;
}

/* Animated Background */
.recent-posts-section::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: backgroundMove 30s linear infinite;
    z-index: 1;
}

@keyframes backgroundMove {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.section-title {
    color: #ffffff;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* Container Layout */
.recent-posts-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

/* Featured Post Card */
.post-featured {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    text-decoration: none !important;
    display: block;
}

.post-featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Sidebar Post Cards */
.post-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    position: relative;
    margin-bottom: 1.5rem;
    text-decoration: none !important;
    align-items: center;
}

.post-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Post Content Styling */
.post-content {
    padding: 1.5rem 2rem;
    position: relative;
    z-index: 1;
    color: #ffffff;
}

.post-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.post-content p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Post Item Content */
.post-item-content {
    padding: 1.25rem;
    flex: 1;
}

.post-item-content h4 {
    font-size: 1.1rem;
    color: #ffffff;
    margin: 0.5rem 0;
    line-height: 1.4;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* Image Styling */
.post-featured img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Meta Information Styling */
.post-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-meta i {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

/* Read More Button */
.read-more {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

.read-more:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Category Tags */
.post-category {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-featured {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.post-item {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.posts-sidebar .post-item:nth-child(1) {
    animation-delay: 0.3s;
}

.posts-sidebar .post-item:nth-child(2) {
    animation-delay: 0.5s;
}

.posts-sidebar .post-item:nth-child(3) {
    animation-delay: 0.7s;
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.post-featured::before,
.post-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-featured:hover::before,
.post-item:hover::before {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .recent-posts-container {
        grid-template-columns: 1fr;
        max-width: 800px;
    }
    
    .post-featured img {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .post-item {
        flex-direction: row;
    }

    .post-item img {
        width: 100px;
        height: 100px;
    }

    .post-content {
        padding: 1.25rem;
    }

    .post-content h3 {
        font-size: 1.25rem;
    }

    .post-item-content h4 {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .post-item {
        flex-direction: column;
    }

    .post-item img {
        width: 100%;
        height: 180px;
    }

    .post-meta {
        flex-wrap: wrap;
        gap: 1rem;
    }
} 