/* ============================================
   BLOGS & ARTICLES - FULL WIDTH DESIGN
   100% Matching Reference Design
   ============================================ */

/* === RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
#page.drawers .main-inner{
    margin: 0;
}
.container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}
#page-header {
    display: none;
}
.main-area-bg:not(.pagelayout-login) div[role="main"] {
    padding: 0;
}
/* === REMOVE MOODLE CONTAINER PADDING === */
#page-content,
#region-main,
.container-fluid {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
}

/* === FULL WIDTH WRAPPER === */
.blog-fullwidth-wrapper {
    width: 100%;
    min-height: 100vh;
    /* background: linear-gradient(180deg, #1a3a52 0%, #0d1f2d 100%); */
    padding: 0;
    margin: 0;
    position: relative;
    font-family: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
}

/* Optional: Add background image if provided */
.blog-fullwidth-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background-image: url('../blog/images/background.jpg'); */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.8;
    pointer-events: none;
    z-index: 0;
    background-image: url(/local/blog/images/cat-bg.png);
}

.blog-content-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 60px;
}

/* === TITLE === */
.blog-page-title {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 50px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* === SEARCH AND SORT ROW === */
.blog-search-sort-row {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 60px;
}

.blog-search-form {
    flex: 1;
    max-width: 600px;
}

.search-field-wrapper {
    position: relative;
    width: 100%;
}

.search-icon-svg {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666666;
    pointer-events: none;
}

.search-field-input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: none;
    border-radius: 30px;
    background: #ffffff;
    font-size: 15px;
    color: #333333;
    outline: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-field-input::placeholder {
    color: #888888;
}

/* === SORT DROPDOWN === */
.blog-sort-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.sort-by-label {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sort-dropdown-container {
    position: relative;
}

.sort-dropdown-trigger {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.sort-dropdown-trigger:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.sort-dropdown-trigger svg {
    transition: transform 0.3s ease;
}

.sort-dropdown-trigger:hover svg {
    transform: rotate(180deg);
}

.sort-dropdown-list {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: linear-gradient(135deg, #1e3a5f 0%, #2a4a6f 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 100;
}

.sort-dropdown-list.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sort-option-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.sort-option-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, rgba(66, 165, 245, 0.3) 0%, transparent 100%);
    transition: width 0.3s ease;
}

.sort-option-item:last-child {
    border-bottom: none;
}

.sort-option-item:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-left: 28px;
    color: #42a5f5;
}

.sort-option-item:hover::before {
    width: 4px;
}

/* === CATEGORIES GRID === */
.blog-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    width: 100%;
}

/* === ADMIN MANAGEMENT BUTTONS === */
.blog-admin-buttons {
    display: flex;
    gap: 15px;
    margin-left: 20px;
}

.blog-admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    white-space: nowrap;
}

.blog-admin-btn svg {
    flex-shrink: 0;
}

.blog-admin-btn:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.blog-admin-btn.btn-articles {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.blog-admin-btn.btn-articles:hover {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    box-shadow: 0 6px 16px rgba(33, 150, 243, 0.4);
}

/* === CATEGORY BOX === */
.category-box-link {
    display: block;
    background: rgba(20, 40, 60, 0.3);
    backdrop-filter: blur(2px);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-box-link:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
    text-decoration: auto;
}

/* Disable clicking when not logged in */
.disabled-section {
    pointer-events: none !important;
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

.disabled-section * {
    pointer-events: none !important;
    cursor: not-allowed !important;
}

.disabled-link {
    pointer-events: none !important;
    cursor: not-allowed !important;
}

.search-field-input:disabled {
    background-color: rgba(255, 255, 255, 0.5) !important;
    cursor: not-allowed !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

.sort-dropdown-trigger:disabled {
    cursor: not-allowed !important;
    opacity: 0.7 !important;
}

.blog-wrapper:has(.blog-signup-overlay) .category-box-link {
    pointer-events: none;
    opacity: 0.6;
}

.blog-wrapper:has(.blog-signup-overlay) .blog-search-sort-row {
    pointer-events: none;
    opacity: 0.6;
}

/* === CATEGORY IMAGE === */
.category-image-container {
    width: 100%;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.category-main-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.category-image-placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* === CATEGORY NAME BAR === */
.category-name-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.category-title-text {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.category-arrow-svg {
    color: #ffffff;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    margin-left: 12px;
}

.category-box-link:hover .category-arrow-svg {
    transform: translateX(8px);
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .blog-content-inner {
        padding: 60px 40px;
    }
    
    .blog-page-title {
        font-size: 42px;
    }
    
    .blog-admin-buttons {
        gap: 12px;
        margin-left: 15px;
    }
    
    .blog-admin-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .blog-categories-grid {
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .blog-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-content-inner {
        padding: 50px 30px;
    }
    
    .blog-page-title {
    font-size: 36px;
    margin-bottom: 40px;
}

    .blog-search-sort-row {
    flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .blog-search-form {
        max-width: none;
    }
    
    .blog-admin-buttons {
        flex-wrap: wrap;
        margin-left: 0;
        gap: 10px;
        width: 100%;
    }
    
    .blog-admin-btn {
        flex: 1 1 auto;
        min-width: calc(50% - 5px);
        justify-content: center;
        font-size: 12px;
        padding: 10px 15px;
    }
    
    .blog-sort-wrapper {
        justify-content: flex-start;
    }
    
    .blog-categories-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .category-image-container {
        height: 240px;
    }
}

@media (max-width: 480px) {
    .blog-content-inner {
        padding: 40px 20px;
    }
    
    .blog-page-title {
        font-size: 28px;
        letter-spacing: 1px;
    }
    
    .search-field-input {
        padding: 14px 18px 14px 45px;
        font-size: 14px;
    }
    
    .category-image-container {
        height: 200px;
        padding: 20px;
    }
    
    .category-title-text {
        font-size: 16px;
    }
}

/* === REMOVE WHITE BACKGROUNDS FROM MOODLE === */
body.path-local-blog #page {
    background: transparent !important;
}

body.path-local-blog #page-wrapper {
    background: transparent !important;
}

body.path-local-blog .container-fluid {
    background: transparent !important;
}

body.path-local-blog #region-main {
    background: transparent !important;
}

/* ============================================
   BLOG POSTS LIST PAGE - Category/Search Results
   Matching reference design with blue artistic background
   ============================================ */

/* === POSTS PAGE WRAPPER === */
.posts-fullwidth-wrapper {
    width: 100%;
    min-height: 100vh;
    /* background: linear-gradient(135deg, #e3f2fd 0%, #90caf9 50%, #bbdefb 100%); */
    background-image: url(/local/blog/images/article-list-bg.png);
    position: relative;
    padding: 0;
    margin: 0;
}

/* Blue artistic paint effects overlay */
.posts-fullwidth-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 10% 10%, rgba(33, 150, 243, 0.4) 0%, transparent 40%),
        radial-gradient(ellipse at 90% 90%, rgba(100, 181, 246, 0.3) 0%, transparent 35%),
        radial-gradient(ellipse at 50% 0%, rgba(66, 165, 245, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 0% 100%, rgba(144, 202, 249, 0.35) 0%, transparent 40%),
        radial-gradient(ellipse at 100% 50%, rgba(33, 150, 243, 0.3) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
}

.posts-content-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 60px 80px 60px;
}

/* === BACK NAVIGATION === */
.back-navigation {
    margin-bottom: 30px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1976d2;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.7);
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateX(-3px);
}

/* === PAGE TITLE === */
.posts-page-title {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 40px 0;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

/* === CONTROLS BAR === */
.posts-controls-bar {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
}

.posts-search-form {
    flex: 1;
    max-width: 600px;
}

.posts-search-wrapper {
    position: relative;
    width: 100%;
}

.posts-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666666;
    pointer-events: none;
}

.posts-search-input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: none;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 15px;
    color: #333333;
    outline: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.posts-search-input::placeholder {
    color: #888888;
}

/* === SORT DROPDOWN === */
.posts-sort-section {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.posts-sort-label {
    color: #1e3a5f;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
}

.posts-sort-dropdown {
    position: relative;
}

.posts-sort-btn {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1e3a5f;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.posts-sort-btn:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(66, 165, 245, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.posts-sort-btn svg {
    transition: transform 0.3s ease;
}

.posts-sort-btn:hover svg {
    transform: rotate(180deg);
}

.posts-sort-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: linear-gradient(135deg, #1e3a5f 0%, #2a4a6f 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 100;
}

.posts-sort-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.posts-sort-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.posts-sort-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, rgba(66, 165, 245, 0.3) 0%, transparent 100%);
    transition: width 0.3s ease;
}

.posts-sort-item:last-child {
    border-bottom: none;
}

.posts-sort-item:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-left: 28px;
    color: #42a5f5;
}

.posts-sort-item:hover::before {
    width: 4px;
}

/* === BLOG POSTS LIST === */
.blog-posts-list {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

/* === BLOG POST CARD === */
.blog-post-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.blog-post-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.blog-post-inner {
    display: flex;
    align-items: stretch;
    gap: 0;
}

/* === POST TEXT CONTENT (LEFT SIDE) === */
.blog-post-text {
    flex: 1;
    padding: 50px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* Bottom shadow fade effect */
.blog-post-excerpt::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.9) 100%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
    z-index: 1;
}

.blog-post-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    line-height: 1.3;
    position: relative;
    z-index: 2;
}

.blog-post-excerpt {
    font-size: 16px;
    color: #666666;
    line-height: 1.7;
    margin: 0 0 30px 0;
    position: relative;
    z-index: 2;
}

/* === READ MORE BUTTON === */
.blog-read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #a0d7ff 0%, #a0d7ff 100%);
    color: #000000;
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    align-self: flex-start;
    box-shadow: 0 2px 10px rgba(144, 202, 249, 0.3);
    position: relative;
    z-index: 3;
}

.blog-read-more-btn:hover {
    background: linear-gradient(135deg, #a0d7ff 0%, #a0d7ff 100%);
    box-shadow: 0 4px 15px rgba(144, 202, 249, 0.5);
    transform: translateX(5px);
    color: #000000;
}

.blog-read-more-btn svg {
    transition: transform 0.3s ease;
}

.blog-read-more-btn:hover svg {
    transform: translateX(4px);
}

/* === POST IMAGE (RIGHT SIDE) === */
.blog-post-image {
    flex: 0 0 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    padding: 30px;
}

.blog-post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.blog-post-placeholder {
    color: rgba(0, 0, 0, 0.2);
}

/* === NO POSTS MESSAGE === */
.no-posts-message {
    text-align: center;
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.no-posts-message p {
    font-size: 18px;
    color: #666666;
    margin: 0;
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .posts-content-container {
        padding: 50px 40px 70px 40px;
    }
    
    .posts-page-title {
        font-size: 36px;
    }
    
    .blog-post-inner {
        flex-direction: column;
    }
    
    .blog-post-text {
        padding: 40px 35px;
    }
    
    .blog-post-image {
        flex: 0 0 auto;
        height: 300px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .posts-content-container {
        padding: 40px 30px 60px 30px;
    }
    
    .posts-page-title {
        font-size: 30px;
        margin-bottom: 30px;
    }
    
    .posts-controls-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .posts-search-form {
        max-width: none;
    }
    
    .posts-sort-section {
        justify-content: flex-start;
    }
    
    .blog-posts-list {
        gap: 25px;
    }
    
    .blog-post-text {
        padding: 30px 25px;
    }
    
    .blog-post-title {
        font-size: 24px;
    }
    
    .blog-post-excerpt {
        font-size: 15px;
    }
    
    .blog-post-image {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .posts-content-container {
        padding: 30px 20px 50px 20px;
    }
    
    .posts-page-title {
        font-size: 24px;
        letter-spacing: 1px;
    }
    
    .blog-post-text {
        padding: 25px 20px;
    }
    
    .blog-post-title {
        font-size: 20px;
    }
    
    .blog-post-excerpt {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    .blog-read-more-btn {
        padding: 12px 28px;
        font-size: 15px;
    }
    
    .blog-post-image {
        height: 220px;
        padding: 20px;
    }
}

/* ============================================
   ARTICLE DETAIL PAGE
   Matching reference design with dark card
   ============================================ */

/* === ARTICLE PAGE WRAPPER === */
.article-fullwidth-wrapper {
    width: 100%;
    min-height: 100vh;
    /* background: linear-gradient(135deg, #e3f2fd 0%, #90caf9 50%, #bbdefb 100%); */
    position: relative;
    padding: 0;
    margin: 0;
    background-image: url(/local/blog/images/article-bg.png);
    background-position: center;
    background-repeat: repeat;
    background-size: cover;
}

/* Blue artistic paint effects */
.article-fullwidth-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: 
        radial-gradient(ellipse at 10% 10%, rgba(33, 150, 243, 0.4) 0%, transparent 40%),
        radial-gradient(ellipse at 90% 90%, rgba(100, 181, 246, 0.3) 0%, transparent 35%),
        radial-gradient(ellipse at 50% 0%, rgba(66, 165, 245, 0.25) 0%, transparent 50%); */
    pointer-events: none;
    z-index: 0;
}

.article-content-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 60px 80px 60px;
}

/* === BREADCRUMB === */
.article-breadcrumb {
    margin-bottom: 30px;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.breadcrumb-link-item {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-link-item:hover {
    color: #1976d2;
}

.breadcrumb-separator-icon {
    margin: 0 12px;
    color: #1a1a1a;
}

.breadcrumb-current {
    color: #1a1a1a;
    font-weight: 700;
}

/* === ARTICLE DETAIL CARD === */
.article-detail-card {
    background: #2a2a2a;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 60px 70px;
}

/* === ARTICLE HEADER === */
.article-detail-header {
    margin-bottom: 30px;
}

.article-detail-title {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.article-detail-date {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #ffa726;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

/* === FEATURED IMAGE === */
.article-detail-image-wrapper {
    margin: 40px 0;
    border-radius: 12px;
    overflow: hidden;
}

.article-detail-image {
    width: 100%;
    height: auto;
    display: block;
}

/* === ARTICLE BODY === */
.article-detail-body {
    color: #e0e0e0;
    font-size: 17px;
    line-height: 1.8;
    font-weight: 400;
}

.article-detail-body p {
    margin: 0 0 25px 0;
    color: #e0e0e0;
}

.article-detail-body p:last-child {
    margin-bottom: 0;
}

.article-detail-body h2 {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 40px 0 20px 0;
}

.article-detail-body h3 {
    font-size: 26px;
    font-weight: 600;
    color: #ffffff;
    margin: 30px 0 15px 0;
}

.article-detail-body ul,
.article-detail-body ol {
    margin: 0 0 25px 30px;
    color: #e0e0e0;
}

.article-detail-body li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.article-detail-body a {
    color: #64b5f6;
    text-decoration: underline;
}

.article-detail-body a:hover {
    color: #90caf9;
}

.article-detail-body strong {
    color: #ffffff;
    font-weight: 700;
}

.article-detail-body em {
    font-style: italic;
    color: #f0f0f0;
}

/* === BACK BUTTON === */
.article-back-button-wrapper {
    margin-top: 40px;
}

.article-back-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 100%);
    color: #ffffff;
    padding: 16px 36px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(66, 165, 245, 0.4);
}

.article-back-button:hover {
    background: linear-gradient(135deg, #42a5f5 0%, #1e88e5 100%);
    box-shadow: 0 6px 20px rgba(66, 165, 245, 0.6);
    transform: translateX(-5px);
    color: #ffffff;
}

.article-back-button svg {
    transition: transform 0.3s ease;
}

.article-back-button:hover svg {
    transform: translateX(-5px);
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .article-content-wrapper {
        padding: 50px 40px 70px 40px;
    }
    
    .article-detail-card {
        padding: 50px 60px;
    }
    
    .article-detail-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .article-content-wrapper {
        padding: 40px 30px 60px 30px;
    }
    
    .article-detail-card {
        padding: 40px 35px;
    }
    
    .article-breadcrumb {
        font-size: 14px;
    }
    
    .article-detail-title {
        font-size: 28px;
        letter-spacing: 1px;
    }
    
    .article-detail-date {
        font-size: 14px;
    }
    
    .article-detail-body {
    font-size: 16px;
}

    .article-detail-body h2 {
        font-size: 26px;
    }
    
    .article-detail-body h3 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .article-content-wrapper {
        padding: 30px 20px 50px 20px;
    }
    
    .article-detail-card {
        padding: 30px 25px;
    }
    
    .article-breadcrumb {
        font-size: 12px;
    }
    
    .article-detail-title {
        font-size: 24px;
    }
    
    .article-detail-date {
        font-size: 13px;
    }
    
    .article-detail-body {
        font-size: 15px;
    }
    
    .article-back-button {
        padding: 14px 28px;
        font-size: 14px;
    }
}

/* ============================================
   SIGN UP OVERLAY FOR NON-LOGGED-IN USERS
   Matching reference design
   ============================================ */

/* Disable scrolling when overlay is present */
body:has(.blog-signup-overlay) {
    overflow: hidden !important;
    height: 100vh !important;
}

html:has(.blog-signup-overlay) {
    overflow: hidden !important;
    height: 100vh !important;
}

/* Limit content height to viewport */
.blog-fullwidth-wrapper:has(.blog-signup-overlay),
.posts-fullwidth-wrapper:has(.blog-signup-overlay),
.article-fullwidth-wrapper:has(.blog-signup-overlay) {
    max-height: 100vh !important;
    overflow: hidden !important;
}

.blog-signup-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 20%, rgba(0, 0, 0, 0.95) 100%);
    padding: 80px 40px 60px 40px;
    z-index: 100;
    pointer-events: all;
}

.blog-signup-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.signup-heading {
    font-size: 72px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 30px 0;
    font-style: italic;
    line-height: 1.1;
}

.signup-highlight {
    color: #42a5f5;
}

.signup-text {
    font-size: 48px;
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 50px 0;
}

.signup-button {
    display: inline-flex;
    align-items: center;
        gap: 20px;
    background: #ffffff;
    color: #1976d2;
    padding: 24px 50px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 700;
    font-size: 32px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.signup-button:hover {
    background: #f5f5f5;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(-3px);
    color: #1565c0;
}

.signup-arrow {
    stroke: #1976d2;
    transition: transform 0.3s ease;
}

.signup-button:hover .signup-arrow {
    transform: translateX(10px);
}

/* Responsive for signup overlay */
@media (max-width: 1200px) {
    .signup-heading {
        font-size: 60px;
    }
    
    .signup-text {
        font-size: 40px;
    }
    
    .signup-button {
        font-size: 28px;
        padding: 22px 45px;
    }
}

@media (max-width: 768px) {
    .blog-signup-overlay {
        padding: 60px 30px 50px 30px;
    }
    
    .signup-heading {
        font-size: 48px;
    }
    
    .signup-text {
        font-size: 32px;
        margin-bottom: 40px;
    }
    
    .signup-button {
        font-size: 24px;
        padding: 20px 40px;
    }
}

@media (max-width: 480px) {
    .blog-signup-overlay {
        padding: 50px 20px 40px 20px;
    }
    
    .signup-heading {
        font-size: 36px;
    }
    
    .signup-text {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .signup-button {
        font-size: 20px;
        padding: 18px 35px;
        gap: 15px;
    }
    
    .signup-arrow {
        width: 60px;
        height: 12px;
    }
}
