/**
 * Blog & Glossary MicrositesXYZ - Styles
 * 
 * @package Blog_Glossary_MicrositesXYZ
 * @version 1.0.0
 */

/* ============================================
   Blog Grid Styles
   ============================================ */

.bgm-blog-grid {
    margin: 30px 0;
}

.bgm-blog-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.bgm-blog-card {
    flex: 0 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
}

@media (max-width: 992px) {
    .bgm-blog-card {
        flex: 0 0 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 576px) {
    .bgm-blog-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.bgm-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    border: none;
    display: flex;
    flex-direction: column;
}

.bgm-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.bgm-card-image {
    height: 200px;
    overflow: hidden;
}

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

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

.bgm-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.bgm-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.875rem;
    color: #6c757d;
}

.bgm-date,
.bgm-views {
    display: flex;
    align-items: center;
    gap: 5px;
}

.bgm-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #0A1752;
    line-height: 1.4;
}

.bgm-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 10px 20px;
    background: transparent;
    color: #0A1752;
    border: 2px solid #0A1752;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.bgm-read-more:hover {
    background: #0A1752;
    color: #ffffff;
}

.bgm-no-articles {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

/* ============================================
   Blog View Styles
   ============================================ */

.bgm-article-view {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.bgm-breadcrumb {
    margin-bottom: 30px;
}

.bgm-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.bgm-breadcrumb .breadcrumb-item a {
    color: #0A1752;
    text-decoration: none;
}

.bgm-breadcrumb .breadcrumb-item a:hover {
    text-decoration: underline;
}

.bgm-article-header {
    margin-bottom: 30px;
}

.bgm-article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0A1752;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .bgm-article-title {
        font-size: 1.8rem;
    }
}

.bgm-article-meta {
    display: flex;
    gap: 20px;
    color: #6c757d;
    font-size: 1rem;
}

.bgm-published,
.bgm-views {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bgm-featured-image {
    width: 100%;
    height: 60vh;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.bgm-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .bgm-featured-image {
        height: 30vh;
    }
}

.bgm-separator {
    border: none;
    border-top: 1px solid #dee2e6;
    margin: 30px 0;
}

.bgm-article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.bgm-article-content h2 {
    color: #0A1752;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 1.75rem;
}

.bgm-article-content h3 {
    color: #0A1752;
    margin-top: 25px;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 1.5rem;
}

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

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

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

.bgm-article-content strong {
    color: #0A1752;
    font-weight: 600;
}

.bgm-article-content a {
    color: #0A1752;
    text-decoration: underline;
}

.bgm-article-content a:hover {
    color: #0d2a8a;
}

/* ============================================
   CTA Section Styles
   ============================================ */

.bgm-cta-section {
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin: 40px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(10, 23, 82, 0.25);
}

.bgm-cta-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0A1752;
    margin: 0 0 15px 0;
}

.bgm-cta-text {
    font-size: 1.125rem;
    color: #6c757d;
    margin: 0 0 25px 0;
}

.bgm-cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: #0A1752;
    color: #ffffff;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.bgm-cta-button:hover {
    background: #0d2a8a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(10, 23, 82, 0.3);
}

/* ============================================
   Glossary Styles
   ============================================ */

.bgm-glossary {
    margin: 30px 0;
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.bgm-glossary-header {
    text-align: center;
    margin-bottom: 30px;
}

.bgm-glossary-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0A1752;
    margin: 0 0 10px 0;
}

.bgm-glossary-subtitle {
    font-size: 1rem;
    color: #6c757d;
    margin: 0;
}

.bgm-glossary-list {
    display: grid;
    gap: 15px;
}

.bgm-glossary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #6c757d;
    transition: all 0.3s ease;
}

.bgm-glossary-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.bgm-priority-high {
    border-left-color: #dc3545;
}

.bgm-priority-medium {
    border-left-color: #ffc107;
}

.bgm-priority-low {
    border-left-color: #28a745;
}

.bgm-term-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.bgm-term-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0A1752;
}

.bgm-term-volume {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.875rem;
    color: #6c757d;
}

.bgm-term-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.bgm-badge-high {
    background: #dc3545;
    color: #ffffff;
}

.bgm-badge-medium {
    background: #ffc107;
    color: #000000;
}

.bgm-badge-low {
    background: #28a745;
    color: #ffffff;
}

.bgm-no-terms {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.bgm-glossary-footer {
    text-align: center;
    margin-top: 30px;
}

.bgm-load-more {
    padding: 12px 30px;
    background: transparent;
    color: #0A1752;
    border: 2px solid #0A1752;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bgm-load-more:hover {
    background: #0A1752;
    color: #ffffff;
}

/* ============================================
   Error Messages
   ============================================ */

.bgm-error {
    padding: 15px 20px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
    margin: 20px 0;
}
