/* General Body Styles */
body {
    font-family: 'Roboto', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-display: swap;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
    contain: layout style;
}

/* Header */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    contain: layout style;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none;
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: -1px;
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    contain: layout style;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
}

.hamburger-menu .bar {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 2px;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: #333;
    transform-origin: center;
}

.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.main-nav li {
    margin-left: 20px;
}

@media (min-width: 769px) {
    .main-nav li:first-child {
        margin-left: 0;
    }
}

.main-nav a {
    text-decoration: none;
    color: #34495e;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.main-nav a:hover, .main-nav a.active {
    background-color: #f0f0f0;
    color: #2c3e50;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #3498db;
    transition: width 0.3s ease;
}

.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}







/* Main Content */
.site-main {
    flex-grow: 1;
    padding: 30px 0;
}

.page-content h1 {
    font-size: 36px;
    margin-bottom: 25px;
    color: #2c3e50;
    position: relative;
    padding-bottom: 15px;
}

.page-content h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2c3e50);
    border-radius: 2px;
}

.page-content h2 {
    font-size: 28px;
    margin: 30px 0 20px;
    color: #34495e;
}

.page-content h3 {
    font-size: 22px;
    margin: 25px 0 15px;
    color: #34495e;
}

.page-content p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.page-content a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.page-content a:hover {
    color: #2980b9;
    text-decoration: underline;
}

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

.blog-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    contain: layout style;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2c3e50);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.12);
    will-change: auto;
}

.blog-card:hover::before {
    transform: scaleX(1);
}

.blog-card a {
    text-decoration: none;
    color: inherit;
}

.blog-card-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
    backface-visibility: hidden;
    border-radius: 6px 6px 0 0;
    contain: layout style;
}

.blog-card:hover .blog-card-thumbnail img {
    transform: scale(1.03);
}

.blog-card-content {
    padding: 25px;
    flex-grow: 1;
}

.blog-card-content h2 {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
}

.blog-card-content p {
    margin: 0 0 15px;
    font-size: 15px;
    color: #666666;
    line-height: 1.6;
}

.blog-card-meta {
    font-size: 13px;
    color: #999999;
    font-weight: 500;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

/* Pagination */
.pagination {
    text-align: center;
    margin-top: 50px;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 12px 18px;
    margin: 0 5px;
    text-decoration: none;
    color: #34495e;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    min-width: 45px;
}

.pagination a {
    background-color: #ffffff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.pagination a:hover {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
}

.pagination .current {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    border: none;
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

/* Single Blog Post */
.blog-post-header h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: #2c3e50;
    line-height: 1.3;
}

.featured-image img {
    width: 100%;
    height: auto;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.post-meta {
    font-size: 15px;
    color: #777777;
    margin-bottom: 25px;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.toc {
    background: #f9f9f9;
    border: 1px solid #e9e9e9;
    padding: 25px;
    margin-bottom: 35px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.toc h3 {
    margin-top: 0;
    color: #2c3e50;
}

.toc ul {
    list-style-type: none;
    padding-left: 0;
}

.toc li {
    margin-bottom: 10px;
}

.toc li a {
    text-decoration: none;
    color: #3498db;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 0;
    display: block;
}

.toc li a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.post-content h2, .post-content h3 {
    margin-top: 40px;
}

.share-buttons {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.share-buttons a {
    display: inline-block;
    margin: 0 8px 10px;
    padding: 12px 20px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 6px;
    transition: all 0.3s ease;
    background-color: #fff;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    min-width: 100px;
}

.share-buttons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Platform-specific styling */
.share-buttons a[aria-label*='Facebook'] {
    color: #fff;
    background-color: #3b5998;
    border-color: #3b5998;
}

.share-buttons a[aria-label*='Facebook']:hover {
    background-color: #344e86;
    border-color: #344e86;
}

.share-buttons a[aria-label*='Twitter'] {
    color: #fff;
    background-color: #1da1f2;
    border-color: #1da1f2;
}

.share-buttons a[aria-label*='Twitter']:hover {
    background-color: #0d8bd9;
    border-color: #0d8bd9;
}

.share-buttons a[aria-label*='LinkedIn'] {
    color: #fff;
    background-color: #0077b5;
    border-color: #0077b5;
}

.share-buttons a[aria-label*='LinkedIn']:hover {
    background-color: #00669c;
    border-color: #00669c;
}

.share-buttons a[aria-label*='WhatsApp'] {
    color: #fff;
    background-color: #25d366;
    border-color: #25d366;
}

.share-buttons a[aria-label*='WhatsApp']:hover {
    background-color: #1da851;
    border-color: #1da851;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 25px;
}

.post-navigation a {
    text-decoration: none;
    color: #3498db;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.post-navigation a:hover {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background-color: #fff;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
        z-index: 999;
        margin-top: 0;
        overflow-y: auto;
        padding-top: 70px;
    }

    .main-nav.active {
        left: 0;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        padding: 0;
    }

    .main-nav li {
        margin: 0;
        text-align: left;
    }

    .main-nav a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid #f0f0f0;
    }

    .main-nav li:last-child a {
        border-bottom: none;
    }

    .hamburger-menu {
        display: flex;
        order: 2;
    }

    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 998;
        display: none;
    }

    .overlay.active {
        display: block;
    }

    .blog-post-header h1 {
        font-size: 32px;
    }
}

/* Footer */
.site-footer {
    background-color: #ffffff;
    border-top: 1px solid #eeeeee;
    padding: 50px 0 30px;
    font-size: 15px;
    color: #666666;
}

.site-footer .container {
    text-align: center;
}

.footer-nav {
    margin-bottom: 20px;
}

.footer-nav a {
    color: #666666;
    text-decoration: none;
    margin: 0 15px;
    position: relative;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #3498db;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #3498db;
    transition: width 0.3s ease;
}

.footer-nav a:hover::after {
    width: 100%;
}

.site-footer p {
    margin: 20px 0 0;
    font-size: 14px;
    color: #999999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .site-header .container {
        flex-direction: row;
        position: relative;
    }
    
    .logo a {
        font-size: 24px;
    }
    
    .main-nav ul {
        flex-direction: column;
        width: 100%;
        text-align: left;
        margin-top: 0;
    }
    
    .main-nav li {
        margin: 0;
    }
    
    .page-content h1 {
        font-size: 28px;
    }
    
    .blog-post-header h1 {
        font-size: 32px;
    }
    
    .blog-card-content h2 {
        font-size: 18px;
    }
    
    .blog-card-content p {
        font-size: 14px;
    }
    
    .pagination a, .pagination span {
        padding: 10px 14px;
        margin: 0 3px;
        font-size: 14px;
    }
    
    .share-buttons a {
        padding: 10px 15px;
        margin: 0 5px 10px;
        min-width: 80px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 98%;
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .page-content h1 {
        font-size: 26px;
    }
    
    .blog-post-header h1 {
        font-size: 28px;
    }
    
    .blog-card {
        border-radius: 8px;
    }
    
    .blog-card-content {
        padding: 20px;
    }
    
    .blog-card-content h2 {
        font-size: 17px;
    }
    
    .blog-card-thumbnail img {
        border-radius: 4px 4px 0 0;
    }
    
    .pagination {
        margin-top: 30px;
    }
    
    .pagination a, .pagination span {
        padding: 8px 12px;
        margin: 0 2px;
        font-size: 13px;
    }
    
    .site-header {
        padding: 12px 0;
    }
    
    .logo a {
        font-size: 22px;
    }
    
    .share-buttons a {
        padding: 8px 12px;
        margin: 0 3px 8px;
        min-width: 70px;
        font-size: 13px;
    }
}
/* End of responsive styles */




@media (max-width: 480px) {
    .container {
        width: 98%;
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .page-content h1 {
        font-size: 26px;
    }
    
    .blog-post-header h1 {
        font-size: 28px;
    }
    
    .blog-card {
        border-radius: 8px;
    }
    
    .blog-card-content {
        padding: 20px;
    }
    
    .blog-card-content h2 {
        font-size: 17px;
    }
    
    .blog-card-thumbnail img {
        border-radius: 4px;
    }
    
    .pagination {
        margin-top: 30px;
    }
    
    .pagination a, .pagination span {
        padding: 8px 12px;
        margin: 0 2px;
        font-size: 13px;
    }
    
    .site-header {
        padding: 12px 0;
    }
    
    .logo a {
        font-size: 22px;
    }
}