/* Apple-inspired Design System */
:root {
    --primary-color: #1B4B75;  /* Rich, trustworthy blue */
    --secondary-color: #E67E22; /* Warm, inviting orange */
    --accent-color: #2ECC71;   /* Success green for trust signals */
    --text-color: #2C3E50;     /* Deep blue-gray for text */
    --light-text: #7F8C8D;     /* Softer gray for secondary text */
    --background-white: #ffffff;
    --light-bg: #F9FAFB;
    --dark-bg: #2C3E50;        /* Dark background for contrast */
    --section-spacing: 100px;
    --content-width: 1200px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --side-padding: 20px;
    scroll-padding-top: 100px;
}

/* Blog Styles */
.blog-hero {
    position: relative;
    background: linear-gradient(rgba(27, 75, 117, 0.8), rgba(230, 126, 34, 0.9)), url('/images/blog/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 160px 0 120px;
    margin-top: 0;
    text-align: center;
    color: var(--background-white);
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/pattern.png');
    opacity: 0.1;
}

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

.blog-hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--background-white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    font-weight: 700;
    letter-spacing: -1px;
}

.blog-hero p {
    font-size: 1.25em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.9);
}

.featured-post-section {
    padding: 100px 0 80px;
    background-color: var(--dark-bg);
    position: relative;
    color: var(--background-white);
}

.featured-post-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--dark-bg);
    transform: skewY(-2deg);
    transform-origin: 0;
}

.featured-post {
    background: linear-gradient(135deg, rgba(27, 75, 117, 0.9), rgba(44, 62, 80, 0.9));
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    margin-bottom: 60px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-post:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.featured-content {
    padding: 50px;
}

.post-category {
    display: inline-block;
    padding: 8px 20px;
    background: var(--secondary-color);
    color: var(--background-white);
    border-radius: 30px;
    font-size: 0.9em;
    font-weight: 500;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.post-category i {
    margin-right: 8px;
}

.featured-content h2 {
    font-size: 2.2em;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--background-white);
    font-weight: 700;
}

.post-meta {
    color: rgba(255,255,255,0.8);
    font-size: 0.95em;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.post-meta i {
    color: var(--secondary-color);
    margin-right: 5px;
}

.blog-posts-section {
    padding: 100px 0;
    background: var(--light-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 20px;
    color: var(--text-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.blog-card {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-bg));
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    color: var(--background-white);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.card-image {
    position: relative;
    overflow: hidden;
    padding-top: 60%;
}

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

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

.card-content {
    padding: 30px;
    position: relative;
}

.card-content h3 {
    margin: 15px 0;
    color: var(--background-white);
    font-size: 1.5em;
    line-height: 1.4;
    font-weight: 700;
}

.card-content p {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.read-more i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: var(--accent-color);
}

.read-more:hover i {
    transform: translateX(5px);
}

.cta-section {
    background: var(--primary-color);
    padding: 100px 0;
    color: var(--background-white);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/pattern.png');
    opacity: 0.1;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-section .cta-button {
    background: var(--secondary-color);
    color: var(--background-white);
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    border: 2px solid transparent;
}

.cta-section .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: transparent;
    border-color: var(--background-white);
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 120px 0 80px;
    }

    .blog-hero h1 {
        font-size: 2.5em;
    }

    .featured-content {
        padding: 30px;
    }

    .featured-content h2 {
        font-size: 1.8em;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .card-content {
        padding: 20px;
    }

    .cta-section {
        padding: 60px 0;
    }

    .cta-section h2 {
        font-size: 2em;
    }
}
