/* Galvitech Blog Styles */

/* Global Blog Styles */
:root {
    --galvitech-blue: #0056b3;
    --galvitech-dark: #333;
    --galvitech-light: #f8f9fa;
    --galvitech-accent: #00a0e9;
    --galvitech-text: #333;
    --galvitech-border: #ddd;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--galvitech-text);
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.site-header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 10px 0;
}

.logo {
    display: inline-block;
}

.logo img {
    max-height: 60px;
}

.main-nav {
    display: block;
    float: right;
    margin-top: 15px;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.main-nav a {
    color: var(--galvitech-dark);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    transition: color 0.3s;
}

.main-nav a:hover,
.main-nav li.active a {
    color: var(--galvitech-blue);
}

/* Blog Header */
.blog-header {
    background-color: var(--galvitech-blue);
    color: white;
    padding: 40px 0;
    text-align: center;
    margin-bottom: 30px;
}

.blog-header h1 {
    font-size: 36px;
    margin: 0 0 10px;
}

.blog-description {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
}

/* Blog Categories */
.blog-categories {
    padding: 30px 0;
    background-color: white;
    margin-bottom: 30px;
}

.blog-categories h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--galvitech-dark);
}

.category-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.category-card {
    background-color: white;
    border: 1px solid var(--galvitech-border);
    border-radius: 5px;
    padding: 20px;
    width: calc(25% - 20px);
    text-align: center;
    text-decoration: none;
    color: var(--galvitech-text);
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.category-icon {
    margin-bottom: 15px;
}

.category-icon img {
    width: 50px;
    height: 50px;
}

.category-card h3 {
    color: var(--galvitech-blue);
    margin: 0 0 10px;
}

/* Latest Posts */
.latest-posts {
    padding: 30px 0;
}

.latest-posts h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--galvitech-dark);
}

.posts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.post-card {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    width: calc(33.333% - 20px);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.post-card.featured {
    width: 100%;
    display: flex;
    margin-bottom: 30px;
}

.post-card.featured .post-image {
    width: 50%;
}

.post-card.featured .post-content {
    width: 50%;
}

.post-image {
    display: block;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s;
}

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

.post-content {
    padding: 20px;
}

.post-meta {
    margin-bottom: 10px;
    font-size: 14px;
    color: #777;
}

.post-category {
    color: var(--galvitech-blue);
    font-weight: bold;
    margin-right: 10px;
}

.post-date {
    color: #777;
}

.post-content h3 {
    margin: 0 0 15px;
    font-size: 20px;
}

.post-content h3 a {
    color: var(--galvitech-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.post-content h3 a:hover {
    color: var(--galvitech-blue);
}

.post-content p {
    margin: 0 0 15px;
    color: #555;
}

.read-more {
    display: inline-block;
    color: var(--galvitech-blue);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
}

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

.coming-soon {
    display: inline-block;
    color: #777;
    font-style: italic;
}

/* Newsletter */
.newsletter {
    background-color: var(--galvitech-blue);
    color: white;
    padding: 40px 0;
    margin-top: 30px;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter h2 {
    margin-top: 0;
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 3px 0 0 3px;
    font-size: 16px;
}

.newsletter-form button {
    background-color: var(--galvitech-dark);
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background-color: #222;
}

/* Blog Post Page */
.blog-post {
    padding: 30px 0;
}

.post-header {
    background-color: var(--galvitech-blue);
    color: white;
    padding: 40px 0;
    margin-bottom: 30px;
}

.post-header h1 {
    font-size: 36px;
    margin: 0 0 15px;
}

.post-header .post-meta {
    color: rgba(255,255,255,0.8);
}

.post-header .post-category {
    color: white;
}

.featured-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 20px 0;
}

.post-content {
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.post-content h2 {
    color: var(--galvitech-blue);
    margin: 30px 0 15px;
}

.post-content h3 {
    color: var(--galvitech-dark);
    margin: 25px 0 10px;
}

.post-content ul, 
.post-content ol {
    margin-bottom: 20px;
}

.post-content li {
    margin-bottom: 8px;
}

.cta-box {
    background-color: #f8f9fa;
    border-left: 4px solid var(--galvitech-blue);
    padding: 20px;
    margin: 30px 0;
    border-radius: 5px;
}

.cta-box h3 {
    margin-top: 0;
    color: var(--galvitech-blue);
}

.cta-button {
    display: inline-block;
    background-color: var(--galvitech-blue);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #004494;
}

.post-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--galvitech-border);
}

.share-buttons {
    margin-bottom: 20px;
}

.share-buttons a {
    display: inline-block;
    margin-right: 10px;
    color: var(--galvitech-blue);
    text-decoration: none;
}

.related-posts h3 {
    margin-bottom: 15px;
}

.related-posts ul {
    padding-left: 20px;
}

.related-posts li {
    margin-bottom: 10px;
}

.related-posts a {
    color: var(--galvitech-blue);
    text-decoration: none;
}

/* Category Page */
.category-header {
    background-color: var(--galvitech-blue);
    color: white;
    padding: 40px 0;
    margin-bottom: 30px;
}

.category-header h1 {
    font-size: 36px;
    margin: 0 0 10px;
}

.breadcrumbs {
    margin-top: 15px;
    color: rgba(255,255,255,0.8);
}

.breadcrumbs a {
    color: white;
    text-decoration: none;
}

.category-posts {
    padding: 30px 0;
}

/* Footer */
.site-footer {
    background-color: var(--galvitech-dark);
    color: white;
    padding: 40px 0 20px;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h3 {
    color: white;
    margin-top: 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 10px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .category-card {
        width: calc(50% - 15px);
    }
    
    .post-card {
        width: calc(50% - 15px);
    }
    
    .post-card.featured {
        flex-direction: column;
    }
    
    .post-card.featured .post-image,
    .post-card.featured .post-content {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .main-nav {
        float: none;
        display: block;
        text-align: center;
        margin-top: 10px;
    }
    
    .logo {
        display: block;
        text-align: center;
    }
    
    .post-card {
        width: 100%;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input[type="email"] {
        border-radius: 3px;
        margin-bottom: 10px;
    }
    
    .newsletter-form button {
        border-radius: 3px;
    }
}

@media (max-width: 576px) {
    .category-card {
        width: 100%;
    }
}
