/* 
    Shared CSS for CMS-driven pages:
    /blog, /news, /video-guides, /tutorials
*/

/* News & Blog UI Styles */
.news-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}
.badge-security { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.badge-update { background: rgba(56, 189, 248, 0.1); color: #0284c7; }
.badge-company { background: rgba(16, 185, 129, 0.1); color: #059669; }

/* Featured News Card (Magazine Split Style) */
.featured-news {
    display: flex;
    flex-direction: row;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    text-decoration: none;
    color: inherit;
    min-height: 400px;
}
.featured-news:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(79, 70, 229, 0.2);
}
.featured-news .img-container {
    width: 50%;
    position: relative;
    overflow: hidden;
}
.featured-news img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}
.featured-news:hover img {
    transform: scale(1.04);
}
.featured-content {
    width: 50%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}
.featured-content h2 {
    color: var(--bg-dark) !important;
}
.featured-content p {
    color: var(--text-muted) !important;
}
.news-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}
.featured-news .badge-critical {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    box-shadow: none;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
}
.news-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}
.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(79, 70, 229, 0.2);
}
.news-card .img-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
}
.news-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.news-card:hover img {
    transform: scale(1.05);
}
.news-card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.news-card-title {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    color: var(--bg-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
    font-weight: 700;
}
.news-card-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    /* Clamp text to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 5rem;
}
.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--bg-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}
.page-link:hover, .page-link.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Responsive */
@media (max-width: 992px) {
    .featured-news { 
        flex-direction: column; 
    }
    .featured-news .img-container {
        width: 100%;
        height: 250px;
    }
    .featured-content { 
        width: 100%; 
        padding: 2rem; 
    }
    .featured-content h2 {
        font-size: clamp(1.4rem, 4vw, 1.8rem) !important;
    }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .news-grid { grid-template-columns: 1fr; }
    .video-grid { grid-template-columns: 1fr; }
    .category-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 1rem; justify-content: flex-start; }
}
/* ==========================================================================
   VIDEO GUIDES UI STYLES (STREAMING PLATFORM PARADIGM)
   ========================================================================== */

/* Category Shelves (Rows) */
.video-shelf {
    margin-bottom: 4rem;
}
.video-shelf-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bg-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Category Filters (Premium Segmented Look) */
.category-filters-container {
    width: 100%;
    margin-bottom: 4rem;
    display: flex;
    justify-content: center;
}
.category-filters {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    background: #f1f5f9;
    border-radius: 100px;
    border: 1px solid #e2e8f0;
    max-width: 100%;
    overflow-x: auto;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.category-filters::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}
.filter-pill {
    padding: 0.6rem 1.25rem;
    border-radius: 100px;
    background: transparent;
    border: none;
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}
.filter-pill:hover {
    color: var(--bg-dark);
    background: rgba(255,255,255,0.5);
}
.filter-pill.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

/* Video Library Hero (Text Focused + Animated Effect) */
.video-library-hero {
    background: #090e17; /* Very deep slate/black */
    padding-top: 150px;
    padding-bottom: 5rem;
    position: relative;
    overflow: hidden;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.video-library-hero::before {
    content: "";
    position: absolute;
    top: -50%; left: 50%;
    transform: translateX(-50%);
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, rgba(6, 182, 212, 0.05) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: pulseGlow 8s infinite alternate;
}
@keyframes pulseGlow {
    0% { transform: translateX(-50%) scale(1); opacity: 0.8; }
    100% { transform: translateX(-50%) scale(1.1); opacity: 1; }
}
.hero-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}
.hero-title span {
    background: linear-gradient(to right, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-desc {
    font-size: 1.25rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Borderless Video Grid (YouTube Style) */
.video-grid-large {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.video-grid-standard {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.video-card-borderless {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.video-card-borderless .thumbnail-wrapper {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    background: #e2e8f0;
}
.video-card-borderless .thumbnail-wrapper::before {
    content: "";
    display: block;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}
.video-card-borderless img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.video-card-borderless:hover img {
    transform: scale(1.03);
}

/* Duration Badge */
.duration-badge {
    position: absolute;
    bottom: 8px; right: 8px;
    background: rgba(0,0,0,0.85);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 4px;
    z-index: 2;
}

/* Hover Play Button (Small) */
.play-btn-small {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 40px; height: 40px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 1rem;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 3;
}
.video-card-borderless:hover .play-btn-small {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    background: var(--primary);
}
.play-btn-small i { margin-left: 3px; }

/* Video Info Below Thumbnail */
.video-info-borderless h3 {
    font-size: 1rem;
    color: var(--bg-dark);
    line-height: 1.3;
    margin-bottom: 0.4rem;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.video-grid-large .video-info-borderless h3 {
    font-size: 1.2rem;
}
.video-info-borderless p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .video-grid-standard { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .video-grid-large { grid-template-columns: 1fr; }
    .video-grid-standard { grid-template-columns: repeat(2, 1fr); }
    .video-library-hero { padding-top: 120px; padding-bottom: 4rem; }
}
@media (max-width: 480px) {
    .video-grid-standard { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SINGLE VIDEO PAGE STYLES
   ========================================================================== */

/* Light Theme Player Wrapper */
.single-video-top {
    background: #f8fafc;
    padding-top: 110px;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}
.btn-back-strategic {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}
.btn-back-strategic:hover {
    background: var(--bg-dark);
    color: white;
    border-color: var(--bg-dark);
    transform: translateX(-3px);
}
.main-player-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.1);
}
.main-player-wrapper::before {
    content: "";
    display: block;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}
.main-player-wrapper img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.85;
}
.main-player-wrapper .premium-play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

/* Split Layout */
.single-video-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

/* Lesson Content */
.lesson-header {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}
.lesson-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--bg-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}
.lesson-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}
.lesson-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.lesson-meta-item i {
    color: var(--primary);
}

.lesson-section {
    margin-bottom: 3rem;
}
.lesson-section h3 {
    font-size: 1.25rem;
    color: var(--bg-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}
.lesson-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #475569;
}

/* Code Box */
.code-box {
    background: #0f172a;
    border-radius: 12px;
    border: 1px solid #1e293b;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.code-header {
    background: #1e293b;
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #334155;
    position: relative;
}
.code-header::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f56;
    box-shadow: 20px 0 0 #ffbd2e, 40px 0 0 #27c93f;
}
.code-lang {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.copy-btn {
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(255,255,255,0.05);
    border: 1px solid transparent;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s;
}
.copy-btn:hover {
    color: white;
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}
.code-box pre {
    padding: 1.5rem 1.25rem;
    margin: 0;
    overflow-x: auto;
}
.code-box code {
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    color: #e2e8f0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Materials List */
.materials-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.material-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--bg-dark);
    font-weight: 500;
    transition: all 0.2s ease;
}
.material-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    color: var(--primary);
}
.material-item-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.material-icon {
    width: 40px;
    height: 40px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* Sidebar */
.yt-subscribe-block {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-sm);
}
.yt-subscribe-block i.fa-youtube {
    font-size: 2.5rem;
    color: #ff0000;
    margin-bottom: 0.75rem;
    display: block;
}
.yt-subscribe-block h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--bg-dark);
}
.yt-subscribe-block p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}
.yt-subscribe-btn {
    display: block;
    background: #ff0000;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
}
.yt-subscribe-btn:hover {
    background: #cc0000;
    color: white;
}

.sidebar-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--bg-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
}
.related-videos-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.related-video-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}
.related-video-item:hover {
    transform: translateX(4px);
}
.related-video-item .thumbnail-wrapper {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}
.related-video-item .thumbnail-wrapper::before {
    content: "";
    display: block;
    padding-top: 56.25%;
}
.related-video-item img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.9;
}
.related-video-info h4 {
    font-size: 0.95rem;
    color: var(--bg-dark);
    margin-bottom: 0.25rem;
    line-height: 1.3;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-video-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* Comments Section */
.comments-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}
.comment-form {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.comment-input-wrapper {
    flex: 1;
}
.comment-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
    font-size: 1rem;
    color: var(--bg-dark);
    font-family: inherit;
    background: transparent;
    transition: border-color 0.3s;
}
.comment-input:focus {
    outline: none;
    border-bottom-color: var(--bg-dark);
}
.comment-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.comment-content h5 {
    font-size: 0.95rem;
    color: var(--bg-dark);
    margin-bottom: 0.25rem;
    font-weight: 700;
}
.comment-content h5 span {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-left: 0.5rem;
}
.comment-content p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}
.comment-actions {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.comment-actions button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.comment-actions button:hover {
    color: var(--bg-dark);
}

/* Responsive */
@media (max-width: 992px) {
    .single-video-layout { grid-template-columns: 1fr; }
    .related-video-item { grid-template-columns: 160px 1fr; }
}
@media (max-width: 576px) {
    .related-video-item { grid-template-columns: 120px 1fr; }
    .comment-form { flex-direction: column; gap: 1rem; }
    .comment-avatar { display: none; }
}

/* ==========================================================================
   CATEGORY ARCHIVE STYLES
   ========================================================================== */

.category-archive-hero {
    background: #f8fafc;
    padding-top: 130px;
    padding-bottom: 3rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}
.category-archive-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--bg-dark);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}
.category-archive-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Pagination */
.video-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 5rem;
}
.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: white;
    border: 1px solid var(--border-color);
    color: var(--bg-dark);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.page-btn:hover {
    background: #f1f5f9;
}
.page-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.page-btn-wide {
    width: auto;
    padding: 0 1rem;
}

/* ==========================================================================
   TECHNICAL BLOG UI STYLES (SAAS PARADIGM)
   ========================================================================== */

/* Blog Hero */
.tech-blog-hero {
    background: #f8fafc;
    padding: 130px 0 4rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}
.tech-blog-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--bg-dark);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    letter-spacing: -1px;
}
.tech-blog-hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Tech Blog Grids */
.tech-grid-featured {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}
.tech-grid-standard {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}
@media (max-width: 768px) {
    .tech-grid-featured, .tech-grid-standard {
        grid-template-columns: 1fr;
    }
    .tech-blog-hero {
        padding: 4rem 0 2.5rem;
    }
    
    .desktop-filters {
        display: none !important;
    }
    .desktop-filters {
        display: none !important;
    }
    .custom-mobile-dropdown {
        display: block !important;
    }
}

/* Mobile Category Custom Dropdown Styles */
.custom-mobile-dropdown {
    display: none;
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}
.custom-mobile-dropdown .dropdown-trigger {
    width: 100%;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}
.custom-mobile-dropdown.open .dropdown-trigger {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
.custom-mobile-dropdown .dropdown-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    list-style: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 50;
    max-height: 280px;
    overflow-y: auto;
}
.custom-mobile-dropdown.open .dropdown-options {
    display: block;
    animation: fadeInDropdown 0.2s ease;
}
@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.custom-mobile-dropdown .dropdown-options li {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    color: var(--bg-dark);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-weight: 500;
}
.custom-mobile-dropdown .dropdown-options li:hover {
    background: #f8fafc;
    color: var(--primary);
}
.custom-mobile-dropdown .dropdown-options li.active {
    background: #eff6ff;
    color: var(--primary);
    font-weight: 600;
}

/* Technical Article Card */
.tech-blog-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.tech-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    border-color: #cbd5e1;
}

/* Card Header Image */
.tech-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}
.tech-grid-featured .tech-card-image {
    aspect-ratio: 21 / 9;
}

/* Card Body */
.tech-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.tech-card-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.tech-badge {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tech-badge.cloudlinux { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.tech-badge.nodejs { background: rgba(245, 158, 11, 0.1); color: #d97706; }
.tech-badge.magento { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

.tech-reading-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tech-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bg-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}
.tech-grid-featured .tech-card-title {
    font-size: 1.5rem;
}

.tech-card-excerpt {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Card Author/Footer */
.tech-card-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}
.tech-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.tech-author-info {
    display: flex;
    flex-direction: column;
}
.tech-author-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--bg-dark);
}
.tech-post-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

@media (max-width: 576px) {
    .tech-card-image, .tech-grid-featured .tech-card-image {
        aspect-ratio: 16 / 7;
    }
    .tech-card-body {
        padding: 1rem;
    }
    .tech-card-title, .tech-grid-featured .tech-card-title {
        font-size: 1.15rem;
        margin-bottom: 0.5rem;
    }
    .tech-card-excerpt {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 1rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .tech-card-footer {
        padding-top: 0.75rem;
    }
}

/* View All Category Button */
.tech-view-all-container {
    text-align: center;
    margin-top: 2rem;
}
.tech-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    background: white;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid var(--primary);
    text-decoration: none;
    transition: all 0.2s;
}
.tech-view-all-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
}

/* ==========================================================================
   BLOG CATEGORY LAYOUT (2 COLUMNS)
   ========================================================================== */

.blog-category-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

@media (max-width: 992px) {
    .blog-category-layout {
        grid-template-columns: 1fr;
    }
}

/* Horizontal List Item (Left Image, Right Text) */
.tech-blog-list-item {
    display: flex;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    margin-bottom: 2rem;
}
.tech-blog-list-item:hover {
    transform: translateX(5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    border-color: #cbd5e1;
}
.tech-list-image {
    width: 35%;
    min-width: 250px;
    object-fit: cover;
    border-right: 1px solid var(--border-color);
}
.tech-list-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

@media (max-width: 576px) {
    .tech-blog-list-item {
        flex-direction: column;
    }
    .tech-list-image {
        width: 100%;
        min-width: 100%;
        aspect-ratio: 16/9;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

/* Sidebar Promo CTA */
.sidebar-promo-cta {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1e293b 100%);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    color: white;
    text-align: center;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
    position: relative;
    overflow: hidden;
}
.sidebar-promo-cta::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(79,70,229,0.15) 0%, transparent 60%);
    z-index: 1;
}
.sidebar-promo-cta > * {
    position: relative;
    z-index: 2;
}
.sidebar-promo-cta i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}
.sidebar-promo-cta h4 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    color: white;
}
.sidebar-promo-cta p {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}
.sidebar-promo-btn {
    display: block;
    background: var(--primary);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
}
.sidebar-promo-btn:hover {
    background: #4338ca;
    color: white;
}

/* ==========================================================================
   SINGLE ARTICLE (RICH TYPOGRAPHY & LAYOUT)
   ========================================================================== */

/* Article Header */
.article-header {
    background: white;
    padding: 130px 0 4rem;
    border-bottom: 1px solid var(--border-color);
}
.article-header-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Article Body Typography */
.article-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #334155;
    max-width: 800px;
}
.article-body h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--bg-dark);
    margin: 3.5rem 0 1.5rem;
    letter-spacing: -0.5px;
}
.article-body h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bg-dark);
    margin: 2.5rem 0 1rem;
}
.article-body p {
    margin-bottom: 1.5rem;
}
.article-body ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
.article-body li {
    margin-bottom: 0.5rem;
}

/* Featured Image */
.article-featured-image {
    width: 100%;
    aspect-ratio: 21 / 9;
    max-height: 500px;
    object-fit: cover;
    border-radius: 16px;
    margin: -2rem 0 3rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}

/* Alert Boxes (Pro-Tips) */
.article-alert {
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2.5rem 0;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .single-post-wrapper {
        display: flex;
        flex-direction: column;
    }
    
    .single-post-wrapper > .container {
        /* The container holding the image */
        order: -1;
        padding-top: 1.5rem;
    }
    
    .article-header {
        padding: 1.5rem 0 2rem;
    }
    
    .article-featured-image {
        margin: 0 0 1rem;
        aspect-ratio: 16 / 9;
        border-radius: 12px;
    }
    
    .article-main-title {
        font-size: 2rem !important;
        margin-bottom: 1.5rem;
    }
    
    .article-header-meta {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem 1rem;
        width: 100%;
    }
    
    .meta-author {
        grid-column: span 2;
    }
    
    .meta-divider {
        display: none !important;
    }
    
    .meta-date, .meta-time {
        display: block;
    }
    .meta-date span:first-child, .meta-time span:first-child {
        margin-bottom: 0.25rem !important;
    }
    
    .article-body {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .code-box {
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
    .code-header {
        padding: 0.5rem 1rem;
    }
    .code-box pre {
        padding: 1rem;
    }
    .code-box code {
        font-size: 0.8rem;
    }
    
    .widget-toc {
        display: none !important;
    }
}
.article-alert-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}
.article-alert.info {
    background: rgba(59, 130, 246, 0.05);
    border-left: 4px solid var(--primary);
}
.article-alert.info .article-alert-icon { color: var(--primary); }
.article-alert.warning {
    background: rgba(245, 158, 11, 0.05);
    border-left: 4px solid #f59e0b;
}
.article-alert.warning .article-alert-icon { color: #f59e0b; }
.article-alert-content h4 {
    font-weight: 700;
    color: var(--bg-dark);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}
.article-alert-content p {
    margin: 0;
    font-size: 1.05rem;
}

/* Sticky TOC Widget */
.widget-toc {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    position: sticky;
    top: 100px;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-sm);
}
.widget-toc-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.toc-list li {
    margin-bottom: 0.75rem;
}
.toc-list a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
    display: block;
    line-height: 1.4;
}
.toc-list a:hover, .toc-list a.active {
    color: var(--primary);
    font-weight: 600;
}
.toc-list ul {
    padding-left: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
    border-left: 2px solid #e2e8f0;
}

/* Author Box */
.article-author-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    margin: 4rem 0;
    align-items: center;
}
.author-box-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}
.author-box-content h4 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--bg-dark);
    margin-bottom: 0.25rem;
}
.author-box-content span {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.75rem;
}
.author-box-content p {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Related Text Posts */
.article-related-text {
    margin-top: 3rem;
}
.related-text-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.related-text-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--bg-dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    line-height: 1.4;
}
.related-text-item i {
    color: var(--primary);
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.related-text-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    color: var(--primary);
}
.related-text-item:hover i {
    transform: translateX(3px);
}
@media (max-width: 600px) {
    .related-text-grid {
        grid-template-columns: 1fr;
    }
}

/* Comment System Overrides */
.btn-comment {
    background: transparent;
    color: var(--bg-dark);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}
.btn-comment:hover {
    border-color: var(--bg-dark);
    background: var(--bg-dark);
    color: white;
}
.btn-comment i {
    font-size: 0.95rem;
}

/* Share Buttons */
.article-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}
.share-label {
    font-weight: 700;
    color: var(--bg-dark);
    font-size: 0.9rem;
}
.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.2s;
}
.share-btn:hover {
    transform: translateY(-3px);
}
.share-twitter { background: #1DA1F2; }
.share-linkedin { background: #0077B5; }
.share-facebook { background: #1877F2; }
