/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-purple: #2D2A5F;
    --secondary-purple: #3d3974;
    --accent-orange: #F5A623;
    --accent-orange-hover: #e69610;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --text-gray: #6c757d;
    --dark-text: #1a1a1a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-gray);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.blog-hero {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    padding: 120px 20px 100px;
    position: relative;
    overflow: hidden;
    text-align: center;
    color: var(--white);
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: var(--accent-orange);
    opacity: 0.1;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.hero-decoration {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(135deg, var(--accent-orange) 0%, transparent 50%);
    clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
    opacity: 0.8;
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-tag {
    display: inline-block;
    background: var(--accent-orange);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
    animation: fadeInDown 0.8s ease-out;
}

.hero-title {
    font-size: 56px;
    margin-bottom: 15px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    background: linear-gradient(to right, var(--white), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-btn {
    background: var(--accent-orange);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out 0.6s both;
    box-shadow: 0 10px 30px rgba(245, 166, 35, 0.3);
}

.hero-btn:hover {
    background: var(--accent-orange-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(245, 166, 35, 0.4);
}

/* Blog Section */
.blog-section {
    padding: 80px 20px;
    background: var(--light-gray);
}

/* Featured Blog Card */
.blog-card.featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.blog-card.featured:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.blog-card.featured .blog-image {
    height: 100%;
    min-height: 400px;
}

.blog-card.featured .blog-content {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-card.featured .blog-title {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--primary-purple);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* Blog Card */
.blog-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(45, 42, 95, 0.2);
}

.blog-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

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

.blog-card:hover .blog-image img {
    transform: scale(1.1) rotate(2deg);
}

.blog-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent-orange);
    color: var(--white);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.4);
}

.blog-content {
    padding: 30px;
}

.blog-title {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-purple);
    transition: color 0.3s ease;
    line-height: 1.4;
}

.blog-card:hover .blog-title {
    color: var(--accent-orange);
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--text-gray);
}

.blog-author {
    font-weight: 600;
}

.blog-date {
    position: relative;
    padding-left: 15px;
}

.blog-date::before {
    content: '•';
    position: absolute;
    left: 5px;
}

.blog-excerpt {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    color: var(--accent-orange);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.blog-read-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: width 0.3s ease;
}

.blog-card:hover .blog-read-more::after {
    width: 100%;
}

.blog-read-more:hover {
    color: var(--accent-orange-hover);
    transform: translateX(5px);
}



.cta-btn {
    background: var(--accent-orange);
    color: var(--white);
    border: none;
    padding: 15px 45px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(245, 166, 35, 0.3);
}

.cta-btn:hover {
    background: var(--accent-orange-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(245, 166, 35, 0.5);
}
.cta-section {
    margin-bottom: 80px !important;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .blog-card.featured {
        grid-template-columns: 1fr;
    }
    
    .blog-card.featured .blog-image {
        min-height: 300px;
    }
    
    .hero-title {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 20px 60px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .blog-section {
        padding: 60px 20px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-card.featured {
        margin-bottom: 40px;
    }
    
    .blog-card.featured .blog-content {
        padding: 30px 25px;
    }
    
    .blog-card.featured .blog-title {
        font-size: 26px;
    }
    
    .cta-section {
        padding: 60px 20px;
    }
    
    .cta-title {
        font-size: 30px;
    }
    
    .cta-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-btn {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    .blog-content {
        padding: 25px 20px;
    }
    
    .blog-title {
        font-size: 20px;
    }
    
    .blog-excerpt {
        font-size: 14px;
    }
    
    .cta-title {
        font-size: 24px;
    }
    
    .cta-btn {
        padding: 12px 35px;
        font-size: 14px;
    }
}

/* Scroll Animation */
.blog-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.blog-card:nth-child(1) {
    animation-delay: 0.1s;
}

.blog-card:nth-child(2) {
    animation-delay: 0.2s;
}

.blog-card:nth-child(3) {
    animation-delay: 0.3s;
}

.blog-card:nth-child(4) {
    animation-delay: 0.4s;
}

.blog-card:nth-child(5) {
    animation-delay: 0.5s;
}

.blog-card:nth-child(6) {
    animation-delay: 0.6s;
}

.blog-card.featured {
    animation-delay: 0s;
}
