:root {
            --primary: #0266c8;
            --text-dark: #333333;
            --text-light: #666666;
            --bg-color: #f5f5f5;
            --border-color: #e5e5e5;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: 'Open Sans', sans-serif;
            background-color: var(--bg-color);
            background-image: radial-gradient(#d1d5db 1px, transparent 1px);
            background-size: 20px 20px;
            color: var(--text-dark);
            line-height: 1.6;
        }

        /* Navbar Styles */
        .main-navbar {
            background-color: #ffffff;
            width: 100%;
            border-bottom: 1px solid var(--border-color);
            position: sticky;
            top: 0;
            z-index: 1000;
        }
        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 2rem;
            height: 80px;
        }
        .nav-logo-img {
            max-height: 75px;
            width: auto;
        }
        .nav-links {
            list-style: none;
            display: flex;
            height: 100%;
        }
        .nav-links li {
            height: 100%;
        }
        .nav-links a {
            display: flex;
            align-items: center;
            height: 100%;
            padding: 0 1rem;
            text-decoration: none;
            color: var(--text-light);
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            position: relative;
            transition: color 0.2s;
            letter-spacing: 0.5px;
        }
        .nav-links a:hover {
            color: var(--primary);
        }
        .nav-links li.active a {
            color: var(--text-dark);
        }
        .nav-links li.active a::before {
            content: '';
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 30px;
            height: 3px;
            background-color: var(--primary);
        }

        /* Main Layout */
        .main-layout {
            max-width: 1200px;
            margin: 3rem auto 5rem;
            padding: 0 2rem;
            display: flex;
            gap: 30px;
            align-items: flex-start;
        }
        .content-area {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 40px;
        }
        .sidebar {
            width: 340px;
            flex-shrink: 0;
            display: flex;
            flex-direction: column;
            gap: 25px;
        }

        /* Post Card */
        .post-card {
            background: #ffffff;
            border: 1px solid var(--border-color);
            box-shadow: 0 2px 5px rgba(0,0,0,0.02);
        }
        .post-header {
            display: flex;
            padding: 20px 30px;
            align-items: center;
            border-bottom: 1px solid var(--border-color);
        }
        .post-date {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            border-right: 1px solid var(--border-color);
            padding-right: 25px;
            margin-right: 25px;
            min-width: 80px;
        }
        .post-date .day {
            font-size: 2.2rem;
            color: var(--primary);
            line-height: 1;
            font-weight: 400;
        }
        .post-date .month-year {
            font-size: 0.7rem;
            color: var(--text-light);
            text-transform: uppercase;
            text-align: center;
            margin-top: 5px;
            letter-spacing: 0.5px;
        }
        .post-title {
            font-family: 'Open Sans', sans-serif;
            font-size: 1.5rem;
            font-weight: 600;
            line-height: 1.3;
        }
        .post-title a {
            color: var(--primary);
            text-decoration: none;
        }
        .post-title a:hover {
            text-decoration: underline;
        }
        .post-image img {
            width: 100%;
            height: auto;
            display: block;
        }
        .post-content {
            font-family: 'Noto Sans', sans-serif;
            padding: 30px;
            color: var(--text-light);
            font-size: 0.95rem;
        }
        .post-excerpt {
            margin-bottom: 20px;
            line-height: 1.7;
        }
        .read-more-btn {
            display: inline-block;
            background: var(--primary);
            color: #ffffff;
            padding: 10px 24px;
            font-size: 0.8rem;
            font-weight: 700;
            text-decoration: none;
            text-transform: uppercase;
            border-radius: 2px;
            transition: background 0.2s;
        }
        .read-more-btn:hover {
            background: #014c99;
        }
        .post-meta {
            padding: 15px 30px;
            border-top: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            font-size: 0.8rem;
            color: var(--primary);
            gap: 20px;
        }
        /* Custom Post Meta */
        .post-meta-custom {
            padding: 15px 25px;
            border: 1px solid #e5e7eb;
            background: #ffffff;
            display: flex;
            align-items: center;
            font-size: 0.95rem;
            color: #007bff;
            gap: 20px;
            margin-bottom: 25px;
        }
        .meta-pin-icon {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            border: 2px solid #007bff;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #007bff;
        }
        .meta-divider {
            width: 1px;
            height: 24px;
            background-color: #e5e7eb;
        }
        .meta-item-custom {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .meta-item-custom a {
            color: #007bff;
            text-decoration: none;
        }

        /* Pagination Styles */
        .pagination-container {
            background: #ffffff;
            border: 1px solid var(--border-color);
            padding: 25px 30px;
            margin-top: 30px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.02);
            display: flex;
            gap: 8px;
            align-items: center;
        }
        .pagination-container a, .pagination-container span.current, .pagination-container span.dots {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 42px;
            height: 42px;
            padding: 0 12px;
            background: #f5f5f5;
            color: #555555;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.95rem;
            transition: all 0.2s;
            border: none;
        }
        .pagination-container a:hover {
            background: #e5e5e5;
        }
        .pagination-container span.current {
            background: var(--primary);
            color: #ffffff;
            cursor: default;
        }
        .pagination-container span.dots {
            background: #f5f5f5;
            color: #777777;
            padding: 0 10px;
        }

        /* Sidebar Widgets */
        .widget {
            background: #ffffff;
            border: 1px solid var(--border-color);
        }
        /* Search Widget */
        .search-widget-custom {
            background-color: #ffffff;
            border: 1px solid var(--border-color);
            padding: 30px;
            margin-bottom: 25px;
            display: flex;
        }
        .search-form-custom {
            width: 100%;
        }
        .search-input-wrapper {
            display: flex;
            align-items: center;
            background-color: #f4f4f4;
            padding: 12px 15px;
        }
        .search-icon {
            margin-right: 12px;
            opacity: 0.8;
            stroke: #5a7184;
            flex-shrink: 0;
        }
        .search-input-custom {
            flex-grow: 1;
            border: none;
            background: transparent;
            font-size: 0.95rem;
            color: #333;
            outline: none;
            width: 100%;
        }
        .search-input-custom::placeholder {
            color: #7a8b9a;
        }
        .ad-banner {
            width: 100%;
            display: block;
            background: #2a2a2a;
            color: #fff;
            text-align: center;
            padding: 40px 20px;
            text-decoration: none;
            border: 1px solid var(--border-color);
            margin-bottom: 25px;
        }
        .ad-banner h3 {
            font-size: 1.8rem;
            color: #f59e0b;
            margin-bottom: 10px;
        }
        .order-btn {
            display: block;
            width: 100%;
            background: var(--primary);
            color: #ffffff;
            text-align: center;
            padding: 18px;
            font-size: 1.1rem;
            font-weight: 600;
            text-decoration: none;
            transition: background 0.2s;
            margin-bottom: 10px;
        }
        .order-btn:hover {
            background: #014c99;
        }
        .recent-posts-widget {
            padding: 25px;
        }
        .widget-title {
            font-size: 0.95rem;
            font-weight: 700;
            margin-bottom: 20px;
            text-transform: uppercase;
            color: var(--text-dark);
        }
        .sidebar-list-widget {
            list-style: none;
        }
        .sidebar-list-widget li {
            padding: 12px 0 12px 20px;
            border-bottom: 1px solid #eaeaea;
            position: relative;
            line-height: 1.5;
        }
        .sidebar-list-widget li:last-child {
            border-bottom: none;
        }
        .sidebar-list-widget li::before {
            content: "";
            position: absolute;
            left: 0;
            top: 19px;
            width: 6px;
            height: 6px;
            background-color: #555;
        }
        .sidebar-list-widget a {
            text-decoration: none;
            color: #2c4762;
            display: block;
            transition: color 0.2s;
        }
        .recent-posts-list a:hover {
            color: var(--primary);
        }

        @media (max-width: 900px) {
            .main-layout { 
                flex-direction: column; 
                margin: 2rem auto 3rem;
                padding: 0 1rem;
            }
            .sidebar { width: 100%; }
            
            .nav-container {
                flex-direction: column;
                height: auto;
                padding: 15px 0 0 0;
            }
            .nav-logo-img {
                max-height: 55px;
                margin-bottom: 5px;
            }
            .nav-links {
                width: 100%;
                overflow-x: auto;
                justify-content: flex-start;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none; /* Firefox */
            }
            .nav-links::-webkit-scrollbar {
                display: none; /* Chrome/Safari */
            }
            .nav-links li {
                flex: 0 0 auto;
                height: 50px;
            }
            .nav-links a {
                padding: 0 15px;
                font-size: 0.8rem;
            }
            
            .post-header {
                padding: 15px 20px;
                flex-direction: column;
                align-items: flex-start;
                gap: 15px;
            }
            .post-date {
                border-right: none;
                border-bottom: 1px solid var(--border-color);
                padding-right: 0;
                padding-bottom: 15px;
                margin-right: 0;
                width: 100%;
                flex-direction: row;
                justify-content: flex-start;
                gap: 10px;
                align-items: baseline;
            }
            .post-date .day {
                font-size: 1.6rem;
            }
            .post-date .month-year {
                margin-top: 0;
                text-align: left;
            }
            .post-title {
                font-size: 1.3rem;
            }
            .single-title {
                font-size: 1.5rem !important;
            }
            .post-content {
                padding: 20px;
            }
            .post-meta {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
                padding: 15px 20px;
            }
            .pagination-container {
                flex-wrap: wrap;
                padding: 15px;
                justify-content: center;
            }
            .breadcrumb {
                padding: 12px 15px;
            }
        }

/* Breadcrumb */
.breadcrumb {
    background: #ffffff;
    padding: 15px 25px;
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 25px;
}
.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}

/* Secondary Ad Banner */
.ad-banner-secondary {
    width: 100%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    padding: 40px 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    color: #ffffff;
}

/* Single Post Layout Fixes */
.single-header {
    border-bottom: none !important;
}
.single-title {
    font-size: 1.8rem !important;
    color: var(--primary) !important;
}
.single-meta {
    border-bottom: 1px solid var(--border-color);
}
.post-content p {
    margin-bottom: 20px;
}
.post-content ul, .post-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}
.post-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    display: block;
}
