/**
 * Custom styles to match Drupal linuxpathfinder.com design
 * Linux Pathfinder WordPress Theme
 */

/* ========================================
   Header Styling
   ======================================== */
.site-header {
    background-color: #2c3e50;
    padding: 20px 0;
}

.site-branding .logo-link {
    display: inline-block;
}

.site-branding .site-logo {
    max-height: 80px;
    width: auto;
    display: block;
}

/* ========================================
   Navigation Styling
   ======================================== */
.main-navigation {
    background-color: #34495e;
    border-bottom: 3px solid #e67e22;
}

.main-navigation .container {
    position: relative;
}

.nav-menu-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.main-navigation #primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation #primary-menu > li {
    margin: 0;
    padding: 0;
}

.main-navigation #primary-menu > li:first-child > a {
    background-color: #e67e22;
    color: #fff;
}

.main-navigation #primary-menu > li > a {
    display: block;
    padding: 15px 20px;
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.main-navigation #primary-menu > li > a:hover,
.main-navigation #primary-menu > li.current-menu-item > a,
.main-navigation #primary-menu > li.current_page_item > a,
.main-navigation #primary-menu > li.current-menu-ancestor > a,
.main-navigation #primary-menu > li.current_page_ancestor > a {
    background-color: #2c3e50;
    color: #fff;
}

.main-navigation #primary-menu > li:first-child.current-menu-item > a,
.main-navigation #primary-menu > li:first-child.current_page_item > a {
    background-color: #e67e22;
    color: #fff;
}

.nav-search {
    margin-left: auto;
}

.nav-search input[type="search"] {
    padding: 8px 15px;
    border: 1px solid #bdc3c7;
    border-radius: 3px;
    width: 200px;
}

/* ========================================
   Tagline and Social Share Section
   ======================================== */
.site-tagline-wrapper {
    background-color: #ecf0f1;
    padding: 15px 0;
    border-bottom: 1px solid #bdc3c7;
}

.site-tagline-wrapper .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-tagline {
    font-size: 16px;
    color: #2c3e50;
}

.site-tagline .site-name {
    font-weight: bold;
}

.social-share {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-share .share-label {
    font-weight: bold;
    margin-right: 10px;
}

.social-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #2c3e50;
    color: #fff;
    border-radius: 3px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.social-share a:hover {
    background-color: #e67e22;
}

.social-share i {
    font-size: 14px;
}

/* ========================================
   Container & Layout
   ======================================== */
.container {
    max-width: 1290px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ========================================
   Posts Grid Layout
   ======================================== */
.content-sidebar-wrap {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.content-area {
    flex: 1;
    min-width: 0;
}

.single-post.content-area {
    max-width: calc(100% - 330px);
}

.widget-area {
    width: 300px;
    flex-shrink: 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.posts-grid article {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.posts-grid article:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.posts-grid .post-thumbnail {
    margin: 0;
    overflow: hidden;
    height: 300px;
    display: block;
    position: relative;
}

.posts-grid .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.posts-grid article:hover .post-thumbnail img {
    transform: scale(1.05);
}

.posts-grid .entry-header,
.posts-grid .entry-summary,
.posts-grid .entry-footer {
    padding: 0 20px;
}

.posts-grid .entry-header {
    padding-top: 20px;
}

.posts-grid .entry-title {
    font-size: 20px;
    margin: 0 0 10px;
    line-height: 1.4;
}

.posts-grid .entry-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.posts-grid .entry-title a:hover {
    color: #e67e22;
}

.posts-grid .entry-meta {
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.posts-grid .entry-summary {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.posts-grid .entry-footer {
    padding-bottom: 20px;
    border-top: 1px solid #ecf0f1;
    padding-top: 15px;
    margin-top: 15px;
}

.posts-grid .entry-footer .cat-links {
    font-size: 13px;
}

.posts-grid .entry-footer .cat-links a {
    display: inline-block;
    padding: 4px 10px;
    background-color: #ecf0f1;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 3px;
    margin-right: 5px;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

.posts-grid .entry-footer .cat-links a:hover {
    background-color: #e67e22;
    color: #fff;
}

/* ========================================
   Sidebar Styling
   ======================================== */
.widget-area {
    background-color: #fff;
}

.widget-area .widget {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 30px;
}

.widget-area .widget-title {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e67e22;
}

.widget-area ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget-area ul li {
    padding: 8px 0;
    border-bottom: 1px solid #ecf0f1;
}

.widget-area ul li:last-child {
    border-bottom: none;
}

.widget-area ul li a {
    color: #2c3e50;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.widget-area ul li a:hover {
    color: #e67e22;
}

.widget-area ul li .post-count {
    background-color: #e67e22;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
}

/* ========================================
   Tabbed Widget (Popular/Recent Posts) - Elegant Design
   ======================================== */
.tabbed-widget {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.tab-nav {
    display: flex;
    border-bottom: 3px solid #e0e0e0;
    background: #f8f9fa;
}

.tab-nav button {
    flex: 1;
    padding: 18px 20px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    color: #7f8c8d;
    transition: all 0.3s ease;
    position: relative;
}

.tab-nav button:hover {
    color: #ff6633;
    background: rgba(255, 102, 51, 0.05);
}

.tab-nav button.active {
    background-color: #fff;
    color: #ff6633;
}

.tab-nav button.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: #ff6633;
}

.tab-content {
    padding: 0;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Elegant post list styling */
.tabbed-widget .tab-pane ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tabbed-widget .tab-pane ul li {
    border-bottom: 1px solid #f0f0f0;
    padding: 18px 20px;
    transition: all 0.3s ease;
}

.tabbed-widget .tab-pane ul li:last-child {
    border-bottom: none;
}

.tabbed-widget .tab-pane ul li:hover {
    background: #fff5f0;
    padding-left: 28px;
}

.tabbed-widget .tab-pane ul li a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    display: block;
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.tabbed-widget .tab-pane ul li a:hover {
    color: #ff6633;
}

.tabbed-widget .tab-pane ul li .post-date {
    font-size: 13px;
    color: #95a5a6;
    display: block;
    font-weight: 400;
}

/* ========================================
   Pagination
   ======================================== */
.pagination {
    margin-top: 40px;
    
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    background-color: #ecf0f1;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: #e67e22;
    color: #fff;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 992px) {
    .content-sidebar-wrap {
        flex-direction: column;
    }

    .content-area {
        max-width: 100%;
    }

    .widget-area {
        width: 100%;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .site-tagline-wrapper .container {
        flex-direction: column;
        gap: 15px;
        
    }

    .social-share {
        justify-content: center;
    }

    .nav-menu-wrapper {
        flex-direction: column;
    }

    .main-navigation #primary-menu {
        flex-direction: column;
        width: 100%;
    }

    .main-navigation #primary-menu > li {
        width: 100%;
    }

    .nav-search {
        margin: 15px 0;
        width: 100%;
    }

    .nav-search input[type="search"] {
        width: 100%;
    }
}

/* ========================================
   Author/Post Meta Styling
   ======================================== */
.entry-meta a,
.entry-footer a {
    color: #7f8c8d;
    text-decoration: none;
}

.entry-meta a:hover,
.entry-footer a:hover {
    color: #e67e22;
}

.posted-on,
.byline,
.comments-link {
    margin-right: 15px;
}

/* ========================================
   Single Post - Social Share Buttons
   ======================================== */
.post-share-buttons {
    margin: 30px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

.post-share-buttons h4 {
    margin: 0 0 15px;
    font-size: 16px;
    color: #2c3e50;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.share-btn:hover {
    opacity: 0.8;
    color: #fff;
}

.share-btn.facebook {
    background-color: #3b5998;
}

.share-btn.google {
    background-color: #dd4b39;
}

.share-btn.twitter {
    background-color: #1da1f2;
}

/* ========================================
   Single Post - Author Bio Box
   ======================================== */
.author-bio-box {
    display: flex;
    gap: 20px;
    margin: 30px 0;
    padding: 30px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px;
    color: #2c3e50;
}

.author-description {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

.author-description p {
    margin: 0;
}

/* ========================================
   Single Post - Featured Image
   ======================================== */
.single .post-thumbnail {
    margin: 30px 0 30px 0;
    
    display: block;
    text-align: center;
    
}

.single .post-thumbnail img {
    width: auto !important;
    height: auto !important;
    max-width: 850px !important;
    
    object-fit: contain !important;
    display: inline-block !important;
}

/* ========================================
   Single Post - Optimized Post Navigation with Thumbnails
   ======================================== */
.post-navigation-optimized {
    margin: 50px 0;
}

.post-navigation-optimized .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.post-navigation-optimized .nav-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.post-navigation-optimized .nav-item:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
    border-color: #e67e22;
}

.post-navigation-optimized .nav-item a {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 20px;
    gap: 15px;
    height: 100%;
}

.post-navigation-optimized .nav-previous a {
    flex-direction: row;
}

.post-navigation-optimized .nav-next a {
    flex-direction: row-reverse;
}

.post-navigation-optimized .nav-thumb {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.post-navigation-optimized .nav-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-navigation-optimized .nav-item:hover .nav-thumb img {
    transform: scale(1.1);
}

.post-navigation-optimized .nav-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.post-navigation-optimized .nav-previous .nav-content {
    align-items: flex-start;
    text-align: left;
}

.post-navigation-optimized .nav-next .nav-content {
    align-items: flex-end;
    text-align: right;
}

.post-navigation-optimized .nav-label {
    font-size: 13px;
    color: #7f8c8d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-navigation-optimized .nav-label i {
    font-size: 12px;
}

.post-navigation-optimized .nav-title {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.4;
    margin: 0;
    transition: color 0.3s ease;
}

.post-navigation-optimized .nav-item:hover .nav-title {
    color: #e67e22;
}

/* ========================================
   Single Post - Related Posts
   ======================================== */
.related-posts {
    margin: 40px 0;
}

.related-posts h3 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 25px;
    color: #2c3e50;
    padding-bottom: 12px;
    border-bottom: 3px solid #e67e22;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.related-post-item {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.related-post-item:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.related-post-thumbnail {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

.related-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-item:hover .related-post-thumbnail img {
    transform: scale(1.08);
}

.related-post-title {
    padding: 20px;
    margin: 0;
    font-size: 17px;
    line-height: 1.5;
    font-weight: 600;
}

.related-post-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-post-title a:hover {
    color: #e67e22;
}

/* ========================================
   Responsive - Single Post
   ======================================== */
@media (max-width: 768px) {
    .author-bio-box {
        flex-direction: column;
        
    }

    .author-avatar {
        display: flex;
        justify-content: center;
    }

    .post-navigation-optimized .nav-links {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .post-navigation-optimized .nav-thumb {
        width: 80px;
        height: 80px;
    }

    .post-navigation-optimized .nav-item a {
        padding: 15px;
    }

    .post-navigation-optimized .nav-title {
        font-size: 14px;
    }

    .post-navigation-optimized .nav-label {
        font-size: 11px;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        justify-content: center;
    }
}


/* ========================================
   Elegant Categories Widget Styling
   ======================================== */
.widget_categories {
    background-color: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    padding: 25px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.widget_categories .widget-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #2c3e50 !important;
    margin: 0 0 20px !important;
    padding-bottom: 12px !important;
    border-bottom: 3px solid #e67e22 !important;
}

.widget_categories ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.widget_categories ul li {
    padding: 12px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

.widget_categories ul li:last-child {
    border-bottom: none !important;
}

.widget_categories ul li:hover {
    padding-left: 8px !important;
    background-color: #f8f9fa !important;
    border-radius: 4px !important;
}

.widget_categories ul li a {
    color: #2c3e50 !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    transition: color 0.3s ease !important;
}

.widget_categories ul li a:hover {
    color: #e67e22 !important;
}

.widget_categories ul li a::before {
    content: '\f07b' !important;
    font-family: 'Font Awesome 5 Free' !important;
    font-weight: 400 !important;
    margin-right: 12px !important;
    color: #95a5a6 !important;
    font-size: 20px !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
}

.widget_categories ul li a:hover::before {
    color: #e67e22 !important;
    transform: scale(1.1) !important;
}

/* Elegant badge style for post counts - removes parentheses */
.widget_categories ul li .count {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%) !important;
    color: #fff !important;
    padding: 4px 10px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    min-width: 28px !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 4px rgba(230, 126, 34, 0.3) !important;
    transition: all 0.3s ease !important;
}

.widget_categories ul li:hover .count {
    transform: scale(1.05) !important;
    box-shadow: 0 3px 6px rgba(230, 126, 34, 0.4) !important;
}

/* ========================================
   Category-Specific Icons
   ======================================== */
/* Remove default folder icon */
.widget_categories ul li a::before {
    content: '' !important;
    font-family: 'Font Awesome 5 Brands', 'Font Awesome 5 Free' !important;
}

/* Docker */
.widget_categories ul li a[href*="docker"]::before {
    content: '\f395' !important;
    font-family: 'Font Awesome 5 Brands' !important;
}

/* Kubernetes / GKE / Google Kubernetes Engine */
.widget_categories ul li a[href*="kubernetes"]::before,
.widget_categories ul li a[href*="gke"]::before {
    content: '\f1b8' !important;
}

/* DevOps */
.widget_categories ul li a[href*="devops"]::before {
    content: '\f013' !important;
}

/* Git / GitHub */
.widget_categories ul li a[href*="git"]::before {
    content: '\f1d3' !important;
    font-family: 'Font Awesome 5 Brands' !important;
}

.widget_categories ul li a[href*="github"]::before {
    content: '\f09b' !important;
    font-family: 'Font Awesome 5 Brands' !important;
}

/* Google Cloud / GCP / Google Cloud SDK */
.widget_categories ul li a[href*="google-cloud"]::before,
.widget_categories ul li a[href*="gcp"]::before {
    content: '\f1a0' !important;
    font-family: 'Font Awesome 5 Brands' !important;
}

/* Apache */
.widget_categories ul li a[href*="apache"]::before {
    content: '\f1ad' !important;
}

/* CentOS / Linux */
.widget_categories ul li a[href*="centos"]::before,
.widget_categories ul li a[href*="linux"]::before {
    content: '\f17c' !important;
    font-family: 'Font Awesome 5 Brands' !important;
}

/* Automation */
.widget_categories ul li a[href*="automation"]::before {
    content: '\f013' !important;
    font-family: 'Font Awesome 5 Free' !important;
    font-weight: 900 !important;
}

/* Security / Secure */
.widget_categories ul li a[href*="security"]::before,
.widget_categories ul li a[href*="secure"]::before {
    content: '\f023' !important;
}

/* Database */
.widget_categories ul li a[href*="database"]::before,
.widget_categories ul li a[href*="mysql"]::before,
.widget_categories ul li a[href*="mariadb"]::before {
    content: '\f1c0' !important;
}

/* Network / Networking */
.widget_categories ul li a[href*="network"]::before {
    content: '\f6ff' !important;
}

/* Server */
.widget_categories ul li a[href*="server"]::before {
    content: '\f233' !important;
}

/* Code / Programming */
.widget_categories ul li a[href*="code"]::before,
.widget_categories ul li a[href*="programming"]::before {
    content: '\f121' !important;
}

/* Terminal / Command */
.widget_categories ul li a[href*="terminal"]::before,
.widget_categories ul li a[href*="command"]::before {
    content: '\f120' !important;
}

/* Default for other categories */
.widget_categories ul li a::before {
    content: '\f07b' !important;
    font-family: 'Font Awesome 5 Free' !important;
}

/* ========================================
   Page Content Styling - Elegant Design
   ======================================== */
.page article.page {
    background: #fff;
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.page .entry-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #e67e22;
}

.page .entry-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.3;
}

.page .post-thumbnail {
    margin: 0 0 30px 0;
    border-radius: 4px;
    overflow: hidden;
}

.page .post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.page .entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.page .entry-content h2 {
    font-size: 26px;
    font-weight: 700;
    color: #2c3e50;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
}

.page .entry-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #34495e;
    margin: 25px 0 15px;
}

.page .entry-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #34495e;
    margin: 20px 0 10px;
}

.page .entry-content p {
    margin-bottom: 20px;
}

.page .entry-content ul,
.page .entry-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.page .entry-content ul li,
.page .entry-content ol li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.page .entry-content a {
    color: #e67e22;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page .entry-content a:hover {
    color: #d35400;
    text-decoration: underline;
}

.page .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 20px 0;
}

.page .entry-content blockquote {
    background-color: #f8f9fa;
    border-left: 4px solid #e67e22;
    padding: 20px 30px;
    margin: 30px 0;
    font-style: italic;
    color: #555;
}

.page .entry-content code {
    background-color: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 14px;
    color: #c7254e;
}

.page .entry-content pre {
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 20px 0;
}

.page .entry-content pre code {
    background: transparent;
    padding: 0;
    color: #333;
}

.page .entry-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

.page .entry-footer .edit-link a {
    color: #7f8c8d;
    text-decoration: none;
    font-size: 14px;
}

.page .entry-footer .edit-link a:hover {
    color: #e67e22;
}

/* Responsive Page Styling */
@media (max-width: 768px) {
    .page article.page {
        padding: 20px;
    }

    .page .entry-title {
        font-size: 26px;
    }

    .page .entry-content {
        font-size: 15px;
    }

    .page .entry-content h2 {
        font-size: 22px;
    }

    .page .entry-content h3 {
        font-size: 19px;
    }
}

/* ==========================================================================
   SINGLE POST - ELEGANT CONTENT STYLING (DRUPAL STYLE)
   ========================================================================== */

/* Main content wrapper for single posts */
.single article.post {
    background: #fff;
    padding: 0;
    border: none;
    box-shadow: none;
}

.single .entry-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #e67e22;
}

.single .entry-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
    margin: 0 0 15px;
}

.single .entry-meta {
    font-size: 14px;
    color: #7f8c8d;
}

/* Content styling matching Drupal */
.single .entry-content {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

/* Heading styles matching Drupal hierarchy */
.single .entry-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 40px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0e0e0;
    line-height: 1.3;
}

.single .entry-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: #e67e22;
    margin: 35px 0 18px;
    line-height: 1.4;
}

.single .entry-content h4 {
    font-size: 19px;
    font-weight: 600;
    color: #34495e;
    margin: 28px 0 15px;
    line-height: 1.4;
}

.single .entry-content h5 {
    font-size: 17px;
    font-weight: 600;
    color: #555;
    margin: 24px 0 12px;
}

/* Paragraph spacing */
.single .entry-content p {
    margin-bottom: 22px;
    line-height: 1.8;
}

/* List styling matching Drupal */
.single .entry-content ul,
.single .entry-content ol {
    margin: 25px 0;
    padding-left: 0;
    list-style-position: outside;
}

.single .entry-content ul {
    list-style-type: disc;
    padding-left: 25px;
}

.single .entry-content ol {
    list-style-type: decimal;
    padding-left: 25px;
}

.single .entry-content ul li,
.single .entry-content ol li {
    margin-bottom: 12px;
    line-height: 1.7;
    padding-left: 8px;
}

/* Nested lists */
.single .entry-content ul ul,
.single .entry-content ol ol,
.single .entry-content ul ol,
.single .entry-content ol ul {
    margin: 12px 0;
}

/* Bold text in lists (like "Debian/Ubuntu:") */
.single .entry-content li strong {
    color: #2c3e50;
    font-weight: 700;
}

/* Links */
.single .entry-content a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.single .entry-content a:hover {
    color: #e67e22;
    border-bottom-color: #e67e22;
}

/* Code blocks - Dark theme with HIGH CONTRAST visible text */
.single .entry-content pre {
    background: #37474f !important;
    padding: 25px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 30px 0;
    border-left: 4px solid #ff6633;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.single .entry-content pre code {
    background: transparent !important;
    padding: 0 !important;
    color: #ffffff !important;
    font-family: 'Courier New', Courier, monospace;
    font-size: 15px;
    line-height: 1.6;
    display: block;
}

/* Inline code */
.single .entry-content code {
    background-color: #455a64 !important;
    color: #ffffff !important;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
}

.single .entry-content pre code {
    background: transparent !important;
    padding: 0 !important;
    color: #ffffff !important;
}

/* Force all text in code blocks to be white */
.single .entry-content pre,
.single .entry-content pre *,
.single .entry-content pre code,
.single .entry-content pre code * {
    color: #ffffff !important;
}

/* Code syntax highlighting colors (basic) */
.single .entry-content pre code {
    white-space: pre;
}

/* Blockquotes */
.single .entry-content blockquote {
    background-color: #f8f9fa;
    border-left: 5px solid #e67e22;
    padding: 20px 30px;
    margin: 30px 0;
    font-style: italic;
    color: #555;
    font-size: 16px;
}

.single .entry-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Images */
.single .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 25px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Tables */
.single .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.single .entry-content table th {
    background: #34495e;
    color: #fff;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
}

.single .entry-content table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.single .entry-content table tr:hover {
    background-color: #f8f9fa;
}

/* Horizontal rule */
.single .entry-content hr {
    border: none;
    border-top: 2px solid #e0e0e0;
    margin: 40px 0;
}

/* Entry footer (categories/tags) - Hidden in single posts */
.single .entry-footer {
    display: none !important;
}

/* Hide all category displays on single posts */
.single-post .entry-footer,
.single-post .cat-links,
.single-post .entry-footer .cat-links,
.single article .entry-footer,
.single article .cat-links,
body.single .entry-footer,
body.single .cat-links {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}





/* COMPREHENSIVE: Hide categories on home page - All possible selectors */

/* Home page - all variations */
.home .cat-links,
.home .entry-footer .cat-links,
.home article .cat-links,
.home .entry-footer,
body.home .cat-links,
body.home .entry-footer .cat-links,
body.home article .cat-links,
body.home article .entry-footer,

/* Blog page */
.blog .cat-links,
.blog .entry-footer .cat-links,
.blog article .cat-links,
body.blog .cat-links,
body.blog article .cat-links,

/* Archive pages */
.archive .cat-links,
.archive .entry-footer .cat-links,
.archive article .cat-links,
body.archive .cat-links,
body.archive article .cat-links,

/* Post listings/grids */
.posts-grid .cat-links,
.posts-grid .entry-footer,
.post-card .cat-links,
.post-card .entry-footer,

/* Any article on non-single pages */
body:not(.single) article .cat-links,
body:not(.single) .entry-footer .cat-links,

/* Specific footer category links */
footer.entry-footer .cat-links,
.entry-footer > .cat-links,

/* Make absolutely sure - nuclear option for home/archive/blog */
.home footer.entry-footer,
.archive footer.entry-footer,
.blog footer.entry-footer {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .single .entry-title {
        font-size: 26px;
    }

    .single .entry-content {
        font-size: 16px;
    }

    .single .entry-content h2 {
        font-size: 24px;
    }

    .single .entry-content h3 {
        font-size: 20px;
    }

    .single .entry-content pre {
        padding: 20px;
        font-size: 14px;
    }

    .single .entry-content code {
        font-size: 14px;
    }
}

/* ==========================================================================
   FOOTER - ADDED TO OVERRIDE ALL OTHER CSS
   ========================================================================== */

footer.site-footer-new {
    background: #3a4d5c !important;
    padding: 0 !important;
    margin: 60px 0 0 0 !important;
    width: 100% !important;
    display: block !important;
    position: relative !important;
}

footer.site-footer-new .footer-container {
    max-width: 1290px !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
}

footer.site-footer-new .footer-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 60px !important;
    padding: 60px 0 50px !important;
    width: 100% !important;
}

footer.site-footer-new .footer-col {
    display: block !important;
    width: 100% !important;
}

/* Headings with orange underline */
footer.site-footer-new .footer-heading {
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    margin: 0 0 20px 0 !important;
    padding: 0 0 12px 0 !important;
    border-bottom: 3px solid #ff6633 !important;
    display: inline-block !important;
    line-height: 1.2 !important;
}

footer.site-footer-new .footer-heading-space {
    margin-top: 40px !important;
}

footer.site-footer-new .footer-text {
    color: #b8c5d0 !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    margin: 0 0 25px 0 !important;
}

/* Newsletter Form */
footer.site-footer-new .footer-email-input {
    width: 100% !important;
    padding: 12px 15px !important;
    background: #2d3e4d !important;
    border: 1px solid #4a5f70 !important;
    border-radius: 4px !important;
    color: #ffffff !important;
    font-size: 14px !important;
    margin-bottom: 15px !important;
    display: block !important;
}

footer.site-footer-new .footer-email-input::placeholder {
    color: #8a9ba8 !important;
}

footer.site-footer-new .footer-subscribe-btn {
    width: 100% !important;
    padding: 13px 20px !important;
    background: #ff6633 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: block !important;
}

footer.site-footer-new .footer-subscribe-btn:hover {
    background: #ff7744 !important;
}

/* Recent Posts */
footer.site-footer-new .footer-posts-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

footer.site-footer-new .footer-posts-list li {
    margin: 0 0 18px 0 !important;
    padding: 0 0 18px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

footer.site-footer-new .footer-posts-list li:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

footer.site-footer-new .footer-posts-list a {
    color: #b8c5d0 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

footer.site-footer-new .footer-posts-list a:hover {
    color: #ffffff !important;
}

/* Social Icons */
footer.site-footer-new .footer-social-icons {
    display: flex !important;
    gap: 12px !important;
    margin-bottom: 0 !important;
}

footer.site-footer-new .footer-social-link {
    width: 50px !important;
    height: 50px !important;
    background: #2d3e4d !important;
    border: 1px solid #4a5f70 !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #b8c5d0 !important;
    font-size: 20px !important;
    text-decoration: none !important;
}

footer.site-footer-new .footer-social-link:hover {
    background: #ff6633 !important;
    border-color: #ff6633 !important;
    color: #ffffff !important;
}

footer.site-footer-new .footer-social-link svg {
    width: 22px !important;
    height: 22px !important;
    fill: currentColor !important;
}

/* Useful Links */
footer.site-footer-new .footer-links-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

footer.site-footer-new .footer-links-list li {
    margin: 0 0 14px 0 !important;
}

footer.site-footer-new .footer-links-list a {
    color: #b8c5d0 !important;
    text-decoration: none !important;
    font-size: 14px !important;
}

footer.site-footer-new .footer-links-list a:hover {
    color: #ffffff !important;
}

/* Copyright */
footer.site-footer-new .footer-copyright {
    background: #2d3e4d !important;
    padding: 25px 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

footer.site-footer-new .footer-copyright p {
    margin: 0 !important;
    text-align: center !important;
    color: #8a9ba8 !important;
    font-size: 14px !important;
}

footer.site-footer-new .footer-copyright a {
    color: #b8c5d0 !important;
    text-decoration: none !important;
    margin-left: 5px !important;
}

footer.site-footer-new .footer-copyright a:hover {
    color: #ff6633 !important;
}

/* Responsive */
@media (max-width: 992px) {
    footer.site-footer-new .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 40px !important;
    }
    footer.site-footer-new .footer-col:last-child {
        grid-column: 1 / -1 !important;
    }
}

@media (max-width: 768px) {
    footer.site-footer-new .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        padding: 40px 0 !important;
    }
}


/* Reading Time Styling */
.reading-time {
    display: inline-block;
    color: #666;
    font-size: 14px;
    font-weight: 400;
}

.reading-time i {
    color: #ff6633;
    margin-right: 4px;
}



/* Hover effect for reading time */
.reading-time:hover {
    color: #ff6633;
}

/* Reading time on home/archive pages */
.home .reading-time,
.archive .reading-time,
.blog .reading-time {
    font-size: 13px;
}

/* Reading time on single posts */
.single .reading-time {
    font-size: 14px;
    color: #777;
}

/* Responsive */
@media (max-width: 768px) {
    .reading-time {
        font-size: 12px;
    }

    
}


/* Meta separator styling - consistent pipe separators */
.entry-meta .separator,
.entry-meta .meta-separator {
    color: #999;
    margin: 0 8px;
    font-weight: 300;
}

/* Reduce spacing for cleaner look */
.entry-meta {
    display: flex;
    align-items: center;
    gap: 0;
}

.entry-meta > * {
    display: inline-block;
}

.entry-meta .byline,
.entry-meta .posted-on,
.entry-meta .reading-time {
    margin: 0;
}
