* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header.header-hidden {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand a {
    width: 300px;
    display: block;
}

.nav-brand a img {
    width: 100%;
    height: 100%;
}

.nav-brand img {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

.header.scrolled .nav-brand img {
    height: 35px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #0066cc;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    position: relative;
    z-index: 1001;
    transition: all 0.3s ease;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.main-content {
    margin-top: 70px;
    min-height: calc(100vh - 140px);
}

.hero {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: #ff6b35;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding: 40px 0;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.post-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 25px;
}

.post-category {
    background: #0066cc;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}

.post-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.post-title a:hover {
    color: #0066cc;
}

.post-excerpt {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #888;
}

.read-more {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

.sidebar {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar h3 {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #0066cc;
    padding-bottom: 10px;
}

.sidebar-posts {
    list-style: none;
}

.sidebar-posts li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.sidebar-posts li:last-child {
    border-bottom: none;
}

.sidebar-posts a {
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.4;
}

.sidebar-posts a:hover {
    color: #0066cc;
}

.post-header {
    text-align: center;
    padding: 40px 0;
    background: white;
    margin-bottom: 30px;
}

.post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

.post-header .post-meta {
    justify-content: center;
    gap: 20px;
}

.post-body {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.post-body img {
    width: 100%;
}

.post-body h2 {
    color: #333;
    margin: 30px 0 20px 0;
    font-size: 1.8rem;
}

.post-body h3 {
    color: #444;
    margin: 25px 0 15px 0;
    font-size: 1.4rem;
}

.post-body p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.post-body ul,
.post-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.post-body li {
    margin-bottom: 10px;
}

.related-posts {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.related-posts h3 {
    margin-bottom: 25px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background: white;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 5px;
}

.pagination a:hover {
    background: #0066cc;
    color: white;
}

.pagination .current {
    background: #0066cc;
    color: white;
}

.footer {
    background: #333;
    color: white;
    padding: 40px 0 20px 0;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: #0066cc;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #ccc;
}

.error-page {
    text-align: center;
    padding: 4rem 1rem;
}

.error-page h1 {
    font-size: 6rem;
    color: #d9534f;
    margin-bottom: 1rem;
}

.error-page h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.error-page p {
    margin-bottom: 2rem;
    color: #666;
}

.btn-primary {
    background: #007bff;
    color: white;
    padding: 0.7rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.post-tags .tag,
.tags .tag {
    display: inline-block;
    background: #f2f2f2;
    padding: 3px 8px;
    margin: 0 4px 4px 0;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #333;
    text-decoration: none;
}

.post-tags .tag:hover,
.tags .tag:hover {
    background: #007bff;
    color: white;
}

.post-toc {
    background: #f8f9fa;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 6px;
    border: 1px solid #e1e1e1;
}

.post-toc h3 {
    margin-bottom: 0.5rem;
}

.post-toc ul {
    padding-left: 1.2rem;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #004499;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.btn-quote {
    transition: all 0.3s ease;
}

.btn-quote:hover {
    transform: translateY(-2px);
}

.btn-quote:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

a,
button,
.nav-menu,
.nav-toggle span {
    transition: all 0.3s ease;
}

.page-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.page-header .lead {
    font-size: 1.2rem;
    color: #6c757d;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-content section {
    margin-bottom: 40px;
}

.page-content h2 {
    color: #2c3e50;
    border-bottom: 2px solid #0066cc;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.page-content h3 {
    color: #495057;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-content ul,
.page-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.page-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.toc {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 40px;
    border-left: 4px solid #0066cc;
}

.toc h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
}

.toc ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.toc li {
    margin-bottom: 8px;
}

.toc a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.toc a:hover {
    text-decoration: underline;
}

.important-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.important-notice h3 {
    color: #856404;
    margin-top: 0;
    margin-bottom: 10px;
}

.important-notice p {
    color: #856404;
    margin: 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
    line-height: 1.5;
}

.contact-info-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    height: fit-content;
}

.contact-method {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f1f3f4;
}

.contact-method:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.contact-method h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.contact-method address {
    font-style: normal;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.service-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #0066cc;
}

.service-item h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.benefits-list {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.benefits-list li {
    margin-bottom: 15px;
    line-height: 1.6;
}

.contact-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #0066cc;
}

.faq-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #dee2e6;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.faq-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-item h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        height: calc(100vh - 70px);
        overflow-y: auto;
        padding: 20px 0;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu a {
        padding: 20px 30px;
        border-bottom: 1px solid #f1f3f4;
        font-size: 1.1rem;
        transition: all 0.3s ease;
    }

    .nav-menu a:hover {
        background: #f8f9fa;
        color: #0066cc;
        padding-left: 40px;
    }

    body.menu-open {
        overflow: hidden;
    }

    .navbar {
        height: 60px;
    }

    .main-content {
        margin-top: 60px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .post-header h1 {
        font-size: 1.8rem;
    }

    .post-body {
        padding: 20px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        padding: 40px 0;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 40px 0;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .post-card {
        border-radius: 5px;
    }

    .post-content {
        padding: 20px;
    }
}

@media print {

    .header,
    .footer,
    .nav-toggle,
    .back-to-top,
    .sidebar {
        display: none !important;
    }

    .main-content {
        margin-top: 0 !important;
    }
}