

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2124b1;
    --primary-dark: #191c8a;
    --secondary-color: #4777f5;
    --text-color: #1d1d27;
    --text-light: #5f6480;
    --text-lighter: #8e94b3;
    --bg-color: #ffffff;
    --bg-light: #f7faff;
    --border-color: #e6e9f5;
    --success-color: #48bb78;
    --error-color: #f56565;
    --warning-color: #ecc94b;
    --shadow: 0 8px 24px rgba(33, 36, 177, 0.08);
    --shadow-lg: 0 18px 36px rgba(33, 36, 177, 0.14);
    --transition: all 0.3s ease;
    --border-radius: 4px;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: #ffffff;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Header */
.site-header {
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}



.main-nav button {
    margin-left: 12px !important;
}

.main-nav .btn-secondary {
    margin-left: 6px !important;
}


.main-nav .btn {
    margin-left: 2px !important;
}



.main-nav button {
    margin-left: 12px !important;
}

.main-nav .btn-secondary {
    margin-left: 6px !important;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 92px;
    padding: 10px 0;
}

.logo img {
    height: 74px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    padding: 6px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a.active {
    color: var(--primary-color);
}

/* Blog Hero Section */
.blog-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(130deg, var(--primary-color) 0%, #2b30cb 45%, var(--secondary-color) 100%);
    color: white;
    padding: 92px 0 120px;
    text-align: center;
}

.blog-hero h1 {
    color: white;
    font-size: 3.2rem;
    margin-bottom: 14px;
    letter-spacing: 0.2px;
}

.blog-hero .subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.12rem;
    max-width: 600px;
    margin: 0 auto;
}

.blog-hero::after {
    content: "";
    position: absolute;
    left: -4%;
    right: -4%;
    bottom: -85px;
    height: 180px;
    background: var(--bg-light);
    border-radius: 52% 48% 0 0 / 100% 100% 0 0;
}

/* Blog Grid */
.blog-grid-section {
    padding: 94px 0 84px;
    background: var(--bg-light);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

.blog-card {
    background: var(--bg-color);
    border: 1px solid rgba(71, 119, 245, 0.12);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(71, 119, 245, 0.32);
}

.card-image {
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 20px 18px 22px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-lighter);
    font-size: 0.875rem;
    margin-bottom: 15px;
}

.card-title {
    font-size: 1.08rem;
    margin-bottom: 12px;
    line-height: 1.45;
}

.card-title a {
    color: var(--text-color);
}

.card-title a:hover {
    color: var(--primary-color);
}

.card-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-block;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(71, 119, 245, 0.25);
    background: rgba(71, 119, 245, 0.08);
    font-weight: 500;
    color: var(--primary-color);
}

.read-more:hover {
    color: #fff;
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Single Blog Post */
.blog-post {
    padding: 60px 0;
}

.post-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.post-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.post-meta {
    color: var(--text-lighter);
    font-size: 1rem;
}

.post-meta span {
    margin: 0 10px;
}

.post-image {
    margin-bottom: 40px;
}

.post-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
}

.post-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.post-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content ul,
.post-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-content blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    font-style: italic;
}

.post-content pre {
    background: var(--text-color);
    color: var(--bg-color);
    padding: 20px;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin: 30px 0;
}

.post-content code {
    background: var(--bg-light);
    padding: 2px 5px;
    border-radius: 3px;
    font-family: monospace;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 30px 0;
}

/* Share Buttons */
.post-share {
    max-width: 800px;
    margin: 50px auto 0;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.post-share h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.share-buttons {
    display: flex;
    gap: 15px;
}

.share-btn {
    padding: 10px 20px;
    border-radius: var(--border-radius);
    color: white;
    font-weight: 500;
    transition: var(--transition);
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    color: white;
}

.share-btn.twitter { background: #1DA1F2; }
.share-btn.linkedin { background: #0077B5; }
.share-btn.facebook { background: #4267B2; }

/* Related Posts */
.related-posts {
    max-width: 1200px;
    margin: 60px auto 0;
}

.related-posts h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-card {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.related-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-card h4 {
    padding: 15px;
    font-size: 1rem;
    margin: 0;
}

.related-card .date {
    display: block;
    padding: 0 15px 15px;
    color: var(--text-lighter);
    font-size: 0.875rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
}

.page-numbers {
    display: flex;
    gap: 10px;
}

.page-number,
.page-link {
    padding: 10px 15px;
    border-radius: var(--border-radius);
    background: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.page-number:hover,
.page-link:hover,
.page-number.active {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* Footer */
.site-footer {
    background: var(--text-color);
    color: white;
    padding: 60px 0;
}

.footer-content {
    text-align: center;
}

.footer-info p {
    color: rgba(255,255,255,0.8);
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.alert-error {
    background: #fff5f5;
    color: var(--error-color);
    border: 1px solid #fed7d7;
}

.alert-success {
    background: #f0fff4;
    color: var(--success-color);
    border: 1px solid #c6f6d5;
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 60px 0;
}

.no-posts h2 {
    color: var(--text-lighter);
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .blog-grid,
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .logo img {
        height: 54px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        height: auto;
        padding: 20px 0;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .pagination {
        flex-direction: column;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .blog-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .blog-hero {
        padding: 70px 0 92px;
    }

    .blog-hero h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .card-meta {
        flex-direction: column;
        gap: 5px;
    }
}
