/* Example CSS to add to your stylesheet (assets/css/main.css) */
.entry-content {
    line-height: 1.7;
    font-size: 1.1rem; /* Adjust as needed */
    max-width: 100%;
}

.entry-content h2, .entry-content h3, .entry-content h4 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 700;
}

.entry-content p {
    margin-bottom: 1.5em;
}

.entry-content ul, .entry-content ol {
    margin: 1em 0 1.5em 2em;
}

.entry-content ul li {
    list-style: disc;
    margin-bottom: 0.5em;
}

.entry-content blockquote {
    border-left: 5px solid #0073aa; /* Example WordPress blue */
    padding-left: 1em;
    margin: 2em 0;
    font-style: italic;
    color: #555;
}

/* Ensure images are responsive within the content */
.entry-content img {
    max-width: 100%;
    height: auto;
}

/* Add any other specific styling for things like captions, alignments, etc. */
/* Recent Thumbnail - Fixed 82x82 size */
.blog1-recent-box .recent-thumb {
    flex-shrink: 0;
    width: 82px;
    height: 82px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

/**
 * Search Styles
 * Custom styles for search functionality
 */

/* ============================================
   SEARCH FORM WIDGET (Sidebar & Search Page)
   ============================================ */

.sidebar-widget_1._search-area1 {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sidebar-widget_1._search-area1 h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.sidebar-search-form {
    position: relative;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.sidebar-search-form input[type="text"] {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: transparent;
    font-size: 15px;
    color: #1a1a1a;
    outline: none;
}

.sidebar-search-form input[type="text"]::placeholder {
    color: #999;
}

.search-submit-btn {
    padding: 15px 20px;
    background: #ff6b6b;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items
}

/* Custom CSS for the Google Ad Container */
.sidebar-adsense-container {
    /* Ensures the container takes up the sidebar width */
    width: 100%; 
    /* Centers the ad block if it is not full width */
    text-align: center; 
    /* You can add padding if needed */
    padding: 10px 0;
}

/**
 * Content Protection CSS
 * Additional styles for content protection system
 */

/* ===== BASE PROTECTION STYLES ===== */
.content-protected .details.content-area,
.content-protected .entry-content {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}

/* Prevent selection highlight */
.content-protected .details.content-area::selection,
.content-protected .entry-content::selection,
.content-protected .details.content-area *::selection,
.content-protected .entry-content *::selection {
    background: transparent !important;
    color: inherit !important;
}

.content-protected .details.content-area::-moz-selection,
.content-protected .entry-content::-moz-selection,
.content-protected .details.content-area *::-moz-selection,
.content-protected .entry-content *::-moz-selection {
    background: transparent !important;
    color: inherit !important;
}

/* ===== IMAGE PROTECTION ===== */
.content-protected img,
.img-protected {
    pointer-events: none !important;
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
    user-drag: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* Image wrapper protection */
.img-protection-wrapper {
    position: relative;
    display: inline-block;
}

.img-protection-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 10;
}

/* ===== VIDEO PROTECTION ===== */
.content-protected iframe,
.content-protected video {
    pointer-events: none;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    user-select: none !important;
}

/* ===== WATERMARK STYLES ===== */
.content-watermark {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    font-size: 48px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transform: rotate(-45deg);
    user-select: none;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 100px,
        rgba(0, 0, 0, 0.02) 100px,
        rgba(0, 0, 0, 0.02) 200px
    );
}

.mini-watermark {
    position: absolute;
    opacity: 0.05;
    font-size: 14px;
    color: #999;
    pointer-events: none;
    user-select: none;
    transform: rotate(-15deg);
    z-index: 1;
}

/* ===== PROTECTION NOTICE ===== */
.protection-notice {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 20px 40px;
    border-radius: 8px;
    z-index: 99999;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInOut 3s ease-in-out;
    display: flex;
    align-items: center;
    gap: 10px;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    10% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    90% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

/* ===== DISABLE PRINT STYLES ===== */
@media print {
    .content-protected .details.content-area,
    .content-protected .entry-content {
        display: none !important;
    }
    
    .content-protected::before {
        content: 'This content is protected and cannot be printed. Please visit bengvarna.com for more information.';
        display: block;
        padding: 40px;
        text-align: center;
        font-size: 18px;
        color: #333;
    }
}

/* ===== TABLE RESPONSIVE WRAPPER ===== */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

.table-responsive table {
    width: 100%;
    border-collapse: collapse;
}

/* ===== VIDEO RESPONSIVE WRAPPER ===== */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 1rem;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===== COPY BUTTON STYLES ===== */
.copy-link-btn {
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.copy-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.copy-link-btn:active {
    transform: translateY(0);
}

/* ===== SHARE BUTTONS ENHANCEMENT ===== */
.share-buttons-container {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.share-buttons-container a,
.share-buttons-container button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.share-buttons-container a:hover,
.share-buttons-container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* ===== CURSOR CHANGES FOR PROTECTED ELEMENTS ===== */
.content-protected .details.content-area,
.content-protected .entry-content {
    cursor: default;
}

.content-protected .details.content-area *,
.content-protected .entry-content * {
    cursor: default !important;
}

/* Override for links - they should still show pointer */
.content-protected a {
    cursor: pointer !important;
}

/* ===== MOBILE SPECIFIC PROTECTIONS ===== */
@media (max-width: 768px) {
    .content-protected .details.content-area,
    .content-protected .entry-content {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
    }
    
    .protection-notice {
        padding: 15px 25px;
        font-size: 14px;
        max-width: 90%;
    }
    
    .content-watermark {
        font-size: 32px;
    }
    
    .share-buttons-container {
        flex-direction: column;
    }
    
    .share-buttons-container a,
    .share-buttons-container button {
        width: 100%;
        justify-content: center;
    }
}

/* ===== TABLET SPECIFIC ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    .content-watermark {
        font-size: 40px;
    }
}

/* ===== ACCESSIBILITY - Screen Reader Support ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Keep content accessible for screen readers */
.content-protected[aria-hidden="false"] .details.content-area,
.content-protected[aria-hidden="false"] .entry-content {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* ===== LOADING STATE ===== */
.content-protection-loading {
    pointer-events: none;
    opacity: 0.5;
}

/* ===== NO-SCRIPT FALLBACK ===== */
noscript .content-protected {
    user-select: text !important;
}

/* ===== BROWSER SPECIFIC FIXES ===== */

/* Firefox */
@-moz-document url-prefix() {
    .content-protected .details.content-area,
    .content-protected .entry-content {
        -moz-user-select: none !important;
    }
}

/* Safari */
@supports (-webkit-appearance: none) {
    .content-protected .details.content-area,
    .content-protected .entry-content {
        -webkit-user-select: none !important;
    }
}

/* Edge */
@supports (-ms-ime-align: auto) {
    .content-protected .details.content-area,
    .content-protected .entry-content {
        -ms-user-select: none !important;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.content-protected {
    will-change: auto;
}

.content-watermark {
    will-change: transform;
    backface-visibility: hidden;
}

/* ===== ANIMATION SMOOTHING ===== */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== PREVENT INSPECT ELEMENT SELECTION ===== */
.content-protected * {
    outline: none !important;
}

.content-protected *:focus {
    outline: none !important;
}

/* ===== CODE BLOCK PROTECTION ===== */
.content-protected pre,
.content-protected code {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    user-select: none !important;
}

/* ===== BLOCKQUOTE PROTECTION ===== */
.content-protected blockquote {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    user-select: none !important;
}