/* ==========================================
   BLOG PAGE STYLES
   ========================================== */

.page-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    padding: 60px 20px 40px;
    text-align: center;
    margin-bottom: 40px;
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.page-hero h1 i {
    color: var(--warning-orange);
    margin-right: 15px;
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.95;
}

.blog-content {
    padding: 20px 0 50px;
}

.blog-grid {
    display: grid;
    gap: 35px;
}

.blog-card {
    background: white;
    border-radius: 16px;
    padding: 35px;
    box-shadow: var(--shadow-md);
    border-left: 5px solid var(--light-blue);
    transition: all 0.3s ease;
}

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

.blog-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
}

.blog-icon.urgent {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.blog-icon.safety {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
}

.blog-icon.maintenance {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.blog-icon.cost {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.blog-icon.winter {
    background: linear-gradient(135deg, #5dade2 0%, #3498db 100%);
    color: white;
}

.blog-icon.carbon {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
}

.blog-card h2 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
}

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

.blog-meta span {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-meta i {
    color: var(--light-blue);
}

.blog-card > p {
    color: var(--text-medium);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.blog-list {
    margin: 25px 0;
}

.blog-list h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.blog-list ul,
.blog-list ol {
    margin-left: 20px;
    color: var(--text-medium);
}

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

.blog-list ul li {
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
}

.blog-list ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-green);
    font-weight: 700;
    font-size: 1.2rem;
}

.blog-list ol li {
    margin-bottom: 12px;
    line-height: 1.6;
    padding-left: 10px;
}

.blog-list ul ul {
    margin-top: 10px;
    margin-bottom: 10px;
}

.blog-list ul ul li::before {
    content: "→";
    color: var(--light-blue);
}

.blog-list strong {
    color: var(--text-dark);
    font-weight: 600;
}

.alert-box {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 20px;
    margin: 25px 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.alert-box.danger {
    background: #f8d7da;
    border-color: #dc3545;
}

.alert-box i {
    color: #856404;
    font-size: 1.5rem;
    margin-top: 2px;
}

.alert-box.danger i {
    color: #721c24;
}

.alert-box strong {
    color: var(--text-dark);
    font-weight: 700;
}

.blog-cta {
    margin-top: 25px;
    text-align: center;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 1.8rem;
    }

    .page-hero p {
        font-size: 1rem;
    }

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

    .blog-card h2 {
        font-size: 1.4rem;
    }

    .blog-icon {
        width: 60px;
        height: 60px;
        font-size: 1.7rem;
    }

    .blog-list ul li,
    .blog-list ol li {
        font-size: 0.95rem;
    }

    .alert-box {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 40px 15px 30px;
    }

    .page-hero h1 {
        font-size: 1.5rem;
    }

    .blog-card h2 {
        font-size: 1.2rem;
    }

    .blog-meta {
        gap: 10px;
    }
}

/* ==========================================
   GLOSSARY STYLES
   ========================================== */

.glossary-search {
    max-width: 600px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 5px 25px;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.glossary-search:focus-within {
    border-color: var(--light-blue);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.glossary-search i {
    color: var(--light-blue);
    font-size: 1.2rem;
    margin-right: 12px;
}

.glossary-search input {
    flex: 1;
    border: none;
    background: none;
    padding: 15px 10px;
    font-size: 1rem;
    outline: none;
    font-family: inherit;
}

.alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.alphabet-nav button {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    min-width: 45px;
}

.alphabet-nav button:hover {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

.alphabet-nav button.active {
    background: var(--light-blue);
    color: white;
    border-color: var(--light-blue);
}

.glossary-grid {
    display: grid;
    gap: 20px;
}

.glossary-term {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    border-left: 4px solid var(--light-blue);
}

.glossary-term:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.term-letter {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    flex-shrink: 0;
}

.term-content {
    flex: 1;
}

.term-title {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-weight: 700;
}

.term-definition {
    color: var(--text-medium);
    line-height: 1.7;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .alphabet-nav button {
        padding: 6px 12px;
        font-size: 0.85rem;
        min-width: 40px;
    }

    .glossary-term {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .term-title {
        font-size: 1.2rem;
    }

    .term-definition {
        font-size: 0.95rem;
    }
}

/* ==========================================
   LEGAL PAGES STYLES
   ========================================== */

.legal-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    max-width: 900px;
    margin: 0 auto;
}

.legal-content section {
    margin-bottom: 35px;
}

.legal-content h2 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-weight: 700;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--bg-light);
}

.legal-content h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin: 25px 0 15px;
    font-weight: 600;
}

.legal-content p {
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.legal-content ul,
.legal-content ol {
    margin: 15px 0 15px 25px;
    color: var(--text-medium);
    line-height: 1.8;
}

.legal-content ul li,
.legal-content ol li {
    margin-bottom: 10px;
}

.legal-content a {
    color: var(--light-blue);
    text-decoration: none;
    font-weight: 600;
}

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

.legal-content strong {
    color: var(--text-dark);
    font-weight: 600;
}

.legal-notice {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.legal-notice i {
    color: #856404;
    font-size: 1.5rem;
    margin-top: 2px;
}

.legal-notice p {
    margin: 0;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .legal-content {
        padding: 30px 25px;
    }

    .legal-content h2 {
        font-size: 1.5rem;
    }

    .legal-content h3 {
        font-size: 1.2rem;
    }

    .legal-content p,
    .legal-content ul,
    .legal-content ol {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .legal-content {
        padding: 25px 20px;
    }

    .legal-content h2 {
        font-size: 1.3rem;
    }

    .legal-notice {
        flex-direction: column;
        text-align: center;
    }
}