/* Blog Layout Styles */
.blog-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.blog-hero {
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 4rem;
}

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

.blog-hero p {
    font-size: 1.2rem;
    color: #666;
}

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

/* Blog Card Styles */
.blog-card {
    background: #fff;
    margin: 10px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card.featured {
    grid-column: 1 / -1;
}

.card-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.card-content {
    padding: 1.5rem;
}

.card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.blog-card h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.blog-card h2 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card h2 a:hover {
    color: #007bff;
}

.blog-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.post-share {
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.post-share h4 {
    display: inline-block;
    margin: 0 15px 0 0;
    font-size: 16px;
    font-weight: 600;
    color: #fbbc05;
    vertical-align: middle;
}

.post-footer {
    margin: 0px;
    background-color: #1a73e8;
    border-radius: 6px;
    padding: 60px;
}

.post-footer p{
    color: #f5f5f5;
}
.tag {
    color: #fff;
    font-size: 10px;
}

.share-link {
    display: inline-block;
    margin-right: 12px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    color: white;
    border-radius: 4px;
    transition: all 0.3s ease;
    vertical-align: middle;
}

/* Twitter */
.share-link:nth-child(2) {
    background-color: #1DA1F2; /* Twitter blue */
}

/* LinkedIn */
.share-link:nth-child(3) {
    background-color: #0077B5; /* LinkedIn blue */
}

/* Facebook */
.share-link:nth-child(4) {
    background-color: #4267B2; /* Facebook blue */
}

/* Hover effects */
.share-link:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.post-header {
    background-color: #111;
    color: #fff;
    padding: 80px;
    height: 16vh;
}

.post-date{
    font-size: 10px;
    width:100%;
    display: inline-block;
}

.post-author {
    font-size: 14px;
    font-weight: 600;
    width:100%;
    display: inline-block;
    margin-bottom: 10px;
}

.post-category {
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 600;
    color:#FF8C42;
    width:100%;
    display: inline-block;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.read-more {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #0056b3;
}

/* Social Share Buttons */
.social-share {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn i {
    font-size: 1.2rem;
}

.fa-twitter {
    color: #1DA1F2;
}

.fa-linkedin {
    color: #0077B5;
}

.fa-facebook {
    color: #4267B2;
}

/* Testimonials Section */
.testimonials {
    margin-top: 4rem;
    padding: 2rem 0;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: #333;
}

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

.testimonial-card {
    position: relative;
    padding: 2rem;
    border-radius: 20px;
    color: #fff;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gradient-1 {
    background: linear-gradient(135deg, #FF8C42, #FF5733);
}

.gradient-2 {
    background: linear-gradient(135deg, #FF5733, #FF2E63);
}

.gradient-3 {
    background: linear-gradient(135deg, #FF2E63, #FF1493);
}

.quote-icon {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 2rem;
    opacity: 0.5;
}

.testimonial-text {
    margin: 2rem 0;
    font-size: 1rem;
    line-height: 1.6;
    z-index: 1;
}

.testimonial-rating {
    margin: 1rem 0;
}

.star {
    color: #FFD700;
    font-size: 1.2rem;
    margin-right: 2px;
}

.client-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* Featured Post Styles */
.featured .card-content {
    padding: 2rem;
}

.featured h2 {
    font-size: 2rem;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-hero h1 {
        font-size: 2rem;
    }

    .featured h2 {
        font-size: 1.6rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* Three.js 3D Background */
.blog-hero.has-three-bg,
.post-header.has-three-bg {
    position: relative;
    overflow: hidden;
}

.three-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.three-bg canvas.three-bg-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.blog-hero.has-three-bg {
    padding: 4rem 2rem;
}

.blog-hero.has-three-bg h1,
.blog-hero.has-three-bg p,
.post-header.has-three-bg h1,
.post-header.has-three-bg .post-meta {
    position: relative;
    z-index: 2;
}