/* Blog Styling CSS - Shared across all blog pages */

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

body {
    font-family: 'Arial', sans-serif;
    background-color: #f7f7f7;
    color: #333;
    line-height: 1.6;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #444, #666);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.header-content h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.header-content p {
    font-size: 1.2em;
    opacity: 0.9;
}

/* Navigation */
.back-link {
    display: inline-block;
    margin: 20px;
    color: #0073e6;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
}

.back-link:hover {
    text-decoration: underline;
}

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

/* Blog Index Page Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.blog-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

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

.blog-card-header {
    background: linear-gradient(135deg, #0073e6, #005bb5);
    color: white;
    padding: 20px;
    position: relative;
}

.blog-category {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    display: inline-block;
    margin-bottom: 15px;
}

.blog-card h2 {
    font-size: 1.4em;
    margin-bottom: 10px;
    line-height: 1.3;
}

.blog-excerpt {
    font-size: 0.95em;
    opacity: 0.9;
    line-height: 1.5;
}

.blog-card-body {
    padding: 25px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #666;
}

.blog-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    background-color: #f0f8ff;
    color: #0073e6;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    border: 1px solid #e0e8f0;
}

.blog-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.85em;
    color: #777;
}

.read-more-btn {
    background: #0073e6;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.read-more-btn:hover {
    background: #005bb5;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin: 40px 0;
    color: #333;
}

.section-title h2 {
    font-size: 2.2em;
    margin-bottom: 10px;
}

.section-title p {
    font-size: 1.1em;
    color: #666;
}

/* Coming Soon */
.coming-soon {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.coming-soon h3 {
    color: #666;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.coming-soon p {
    color: #888;
    font-size: 1.1em;
}

/* Newsletter Signup */
.newsletter-signup {
    background: linear-gradient(135deg, #0073e6, #005bb5);
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    margin: 40px 0;
}

.newsletter-signup h3 {
    margin-bottom: 15px;
    font-size: 1.8em;
}

.newsletter-signup p {
    margin-bottom: 25px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    gap: 10px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 25px;
    font-size: 1em;
}

.newsletter-btn {
    background: white;
    color: #0073e6;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.newsletter-btn:hover {
    opacity: 0.9;
}

/* Google AdSense Ad Containers */
.ad-container {
    margin: 30px 0;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    background: #fafafa;
    border-radius: 8px;
}

.ad-container .adsbygoogle {
    display: block !important;
    margin: 0 auto;
    max-width: 100%;
}

/* Responsive ad sizing */
@media (max-width: 768px) {
    .ad-container {
        margin: 20px 0;
        padding: 15px 0;
    }
}

/* Individual Blog Post Styles */
article {
    background-color: white;
    padding: 0;
    border-radius: 15px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.article-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 40px 40px 40px;
    margin: 0;
    margin-bottom: 40px;
    position: relative;
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.article-header * {
    position: relative;
    z-index: 2;
}

.article-title {
    color: white;
    margin-bottom: 20px;
    font-size: 2.4em;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.article-meta {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1em;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Content Styles */
.content {
    padding: 0 40px 40px 40px;
}

.content h2 {
    color: #444;
    margin-top: 35px;
    margin-bottom: 20px;
    font-size: 1.5em;
    border-bottom: 2px solid #0073e6;
    padding-bottom: 8px;
}

.content h3 {
    color: #555;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.content p {
    margin-bottom: 18px;
    text-align: justify;
}

.content ul, .content ol {
    margin-bottom: 18px;
    padding-left: 25px;
}

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

.content pre {
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.5;
}

.content code {
    background-color: #f4f4f4;
    padding: 3px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.content pre code {
    background-color: transparent;
    padding: 0;
}

.content a {
    color: #0073e6;
    text-decoration: none;
}

.content a:hover {
    text-decoration: underline;
}

.content strong {
    color: #333;
    font-weight: bold;
}

.content em {
    font-style: italic;
    color: #666;
}

/* Table Styles */
.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.content th,
.content td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.content th {
    background-color: #0073e6;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

.content tr:nth-child(even) {
    background-color: #f8f9fa;
}

.content tr:hover {
    background-color: #e8f4fd;
}

.content td:last-child {
    font-weight: bold;
    color: #0073e6;
}

/* Responsive tables */
@media (max-width: 768px) {
    .content table {
        font-size: 0.9em;
    }
    
    .content th,
    .content td {
        padding: 8px 10px;
    }
}

/* Highlight Box */
.highlight-box {
    background-color: #e8f4fd;
    border-left: 4px solid #0073e6;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

/* Author Bio */
.author-bio {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    margin: 40px 40px 0 40px;
    border: 1px solid #e0e0e0;
}

.author-bio h3 {
    margin-top: 0;
    color: #333;
}

/* Social Share */
.social-share {
    margin: 30px 40px;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 15px;
    text-align: center;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: opacity 0.3s;
}

.share-btn:hover {
    opacity: 0.8;
}

.share-linkedin { 
    background-color: #0077b5; 
}

.share-twitter { 
    background-color: #1da1f2; 
}

/* Footer */
footer {
    background-color: #444;
    color: white;
    text-align: center;
    padding: 30px;
    margin-top: 60px;
}

footer a {
    color: #ccc;
    text-decoration: none;
}

footer a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2em;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .container {
        padding: 10px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    article {
        padding: 20px;
    }
    
    .article-title {
        font-size: 1.8em;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
}
