* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c5aa0;
    --secondary-color: #1e3a5f;
    --accent-color: #4a90e2;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 20px rgba(0,0,0,0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-header {
    background: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navigation-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.brand-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
}

.brand-logo img {
    border-radius: 50%;
    margin-right: 12px;
}

.brand-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.hero-banner {
    position: relative;
    height: 500px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.main-content {
    padding: 60px 0;
}

.editor-note {
    margin-bottom: 60px;
}

.editor-card {
    background: var(--bg-light);
    border-left: 5px solid var(--accent-color);
    padding: 30px;
    border-radius: 8px;
    display: flex;
    gap: 25px;
}

.editor-icon {
    font-size: 48px;
    color: var(--accent-color);
}

.editor-content h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.editor-signature {
    margin-top: 15px;
    font-style: italic;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.header-divider {
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 0 auto;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.post-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.post-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.post-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.post-body {
    padding: 25px;
}

.post-body h3 {
    margin-bottom: 15px;
}

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

.post-body h3 a:hover {
    color: var(--primary-color);
}

.post-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s;
}

.read-more:hover {
    gap: 10px;
}

.statistics-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 60px 20px;
    margin: 60px 0;
    border-radius: 10px;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item i {
    font-size: 48px;
    margin-bottom: 15px;
}

.stat-item h3 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.header-content h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.blog-listing {
    margin-top: 40px;
}

.blog-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.blog-item {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 30px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.blog-image-wrapper {
    position: relative;
    overflow: hidden;
}

.blog-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-item:hover .blog-image-wrapper img {
    transform: scale(1.05);
}

.category-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    color: white;
}

.category-tag.tech { background: #6c5ce7; }
.category-tag.review { background: #00b894; }
.category-tag.infra { background: #fd79a8; }
.category-tag.guide { background: #fdcb6e; color: #333; }
.category-tag.maint { background: #e17055; }

.blog-details {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-details h2 {
    margin-bottom: 15px;
}

.blog-details h2 a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s;
}

.blog-details h2 a:hover {
    color: var(--primary-color);
}

.article-metadata {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.article-metadata span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-read {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s, gap 0.3s;
    align-self: flex-start;
    margin-top: 15px;
}

.btn-read:hover {
    background: var(--primary-color);
    gap: 12px;
}

.team-section {
    margin: 60px 0;
}

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

.team-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.team-photo {
    height: 350px;
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info {
    padding: 25px;
}

.team-info h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.team-role {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.about-intro {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 60px;
}

.about-intro h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.values-section {
    margin: 60px 0;
}

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

.value-item {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.value-icon {
    font-size: 48px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.value-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-section {
    margin-top: 40px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info-box,
.contact-form-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-info-box h2,
.contact-form-box h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-details {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-icon {
    font-size: 24px;
    color: var(--accent-color);
    width: 40px;
}

.contact-text h3 {
    color: var(--text-color);
    font-size: 16px;
    margin-bottom: 5px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.checkbox-group label {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    font-weight: normal;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

.submit-btn {
    padding: 15px 30px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: var(--primary-color);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 50px;
    border-radius: 10px;
    text-align: center;
    max-width: 500px;
}

.modal-icon {
    font-size: 64px;
    color: var(--success-color);
    margin-bottom: 20px;
}

.modal-btn {
    margin-top: 30px;
    padding: 12px 40px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.modal-btn:hover {
    background: var(--primary-color);
}

.post-single {
    background: white;
}

.post-header-image {
    height: 500px;
    overflow: hidden;
}

.post-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-header-content {
    padding: 40px 0 20px;
}

.post-category {
    display: inline-block;
    padding: 8px 20px;
    background: var(--accent-color);
    color: white;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 20px;
}

.post-header-content h1 {
    font-size: 42px;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.post-metadata {
    display: flex;
    gap: 25px;
    font-size: 14px;
    color: var(--text-light);
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    flex-wrap: wrap;
}

.post-metadata span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-content {
    padding: 40px 0;
    font-size: 18px;
    line-height: 1.8;
}

.post-content .lead {
    font-size: 22px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 30px;
}

.post-content h2 {
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 32px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-footer {
    border-top: 2px solid var(--border-color);
    padding-top: 40px;
}

.post-share {
    text-align: center;
    margin-bottom: 50px;
}

.post-share h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

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

.share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    transition: transform 0.3s;
}

.share-btn:hover {
    transform: scale(1.1);
}

.share-btn:nth-child(1) { background: #3b5998; }
.share-btn:nth-child(2) { background: #1da1f2; }
.share-btn:nth-child(3) { background: #0077b5; }

.related-posts {
    margin-top: 50px;
}

.related-posts h3 {
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.related-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.related-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-card h4 {
    padding: 20px;
    color: var(--primary-color);
}

.site-footer {
    background: var(--secondary-color);
    color: white;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    margin-bottom: 20px;
}

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

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

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

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

.footer-reg {
    margin-top: 15px;
    font-size: 14px;
    opacity: 0.8;
}

.contact-info li {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.contact-info i {
    margin-top: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
    padding: 30px 20px;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.cookie-banner.active {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-text h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.cookie-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
}

.cookie-btn:hover {
    transform: translateY(-2px);
}

.cookie-btn.accept {
    background: var(--success-color);
    color: white;
}

.cookie-btn.customize {
    background: var(--warning-color);
    color: var(--text-color);
}

.cookie-btn.reject {
    background: var(--border-color);
    color: var(--text-color);
}

.cookie-policy-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--accent-color);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 76px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background: white;
        padding: 20px;
        box-shadow: var(--shadow);
        transition: left 0.3s;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-item {
        grid-template-columns: 1fr;
    }
    
    .blog-image-wrapper {
        height: 250px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .editor-card {
        flex-direction: column;
        text-align: center;
    }
    
    .post-header-content h1 {
        font-size: 28px;
    }
    
    .post-content {
        font-size: 16px;
    }
    
    .post-content h2 {
        font-size: 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}