/*
Theme Name:     Newspaper Child theme
Theme URI: 		http://themeforest.net/user/tagDiv/portfolio
Description:    Child theme made by tagDiv
Author:         tagDiv
Author URI: 	http://themeforest.net/user/tagDiv/portfolio
Template:       Newspaper
Version:        9.0c
*/


/*  ----------------------------------------------------------------------------
    This file will load automatically when the child theme is active. You can use it
    for custom CSS.
*/
/* Style for wrapper containing child posts */
.dang-nhap {background: #b71010; padding: 10px; border-radius:10px;}
.child-post-wrapper {
    display: flex;
    flex-wrap: wrap;
}

/* Style for each child post */

.child-post {
    width: 100%; /* Display 4 columns on large screens, can be adjusted according to your layout */
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
	margin: 5px 0px 5px 0px;
	border-bottom: 1px dashed #ccc;
	height: 120px;
	color: #FFF;
}
.child-post:nth-last-child(1) {border-bottom: 0px !important;}	
.child-post h2 > a {color: #FFF;}

/* Style for thumbnail */
.child-post-thumbnail img {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
    display: block;
}

/* Style for title */
.child-post-title {
    font-size: 18px;
    padding-left: 20px;
    flex: 2;
    border-right: 1px solid #ccc;
    margin-top: 0;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    height: 38px;
	font-weight:500;
	color: #FFF !important;
}
/* Style for Format/Size */
.child-post-meta {
    font-size: 14px;
    flex: 1;
    text-align: center;
	border-right: 1px solid #ccc;
	line-height: 38px;
}

/* Style for Download button */
.child-post-download {flex: 1;text-align: center; line-height: 38px;}
.download-button {
    display: inline-block;
    background-color: #b71010;
    color: #fff;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 5px;
}

.download-button:hover {
    background-color: #0056b3;
}
.post-content-thumbnail {
    height: 500px;
	position: relative; /* To use absolute positioning */
	overflow: hidden;
	border: 5px solid #FFF;
}
.post-content-thumbnail img {
	width: 100%; /* Ensure image width is 100% of parent */
    height: auto; /* Ensure auto height based on image aspect ratio */
    position: absolute; /* Place image in absolute position */
    top: 50%; /* Set top to 50% of parent */
    left: 50%; /* Set left to 50% of parent */
    transform: translate(-50%, -50%);
}

.product_link_download {width: 100%; margin-top: 20px;}
.download_premium {height: auto;width:100%;}
.download_premium a {padding: 12px 30px;
	background-color: #b71010;
	border:none;
	width: 100%;
	height:auto;
	text-align:center;
	color: #ffffff;
	vertical-align: middle;
	font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
	border-radius: 10px;
	display: block;
	}
.download_premium_2 {
         display: none;
      }
.download_button {height: auto;
    padding: 12px 30px;
	background-color: #219304;
	border:none;
	width: 100%;
	color: #ffffff;
	vertical-align: middle;
	font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
	border-radius: 10px;}
	
/* Content class hidden when collapsed */
.post-content {
    max-height: 400px;
    overflow: hidden;
    position: relative; /* Needed so .read-more-overlay can be relative to .post-content */
}

/* Content when expanded */
.post-content.collapsed {
    max-height: none;
}

/* Ensure elements in .post-content are not pushed out */
.post-content > * {
    margin-bottom: 10px;
}

/* Decorative styling */
.read-more-container {
    position: relative;
}

.read-more-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px; /* Height only 50-100px */
    background-color: #000000;
    background-image: linear-gradient(to top, #000000 , #FFFFFF);
    opacity: 0.8; /* Opacity 60% (code uses 0.8) */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Read More and Collapse buttons */
.read-more-link, .read-less-link {
    color: yellow;
    opacity: 1;
    text-decoration: none;
	font-size:20px;
	text-transform: uppercase;
}

/* Down arrow */
.read-more-link::after {
    content: '\25BC';
    margin-left: 5px;
}

/* Up arrow */
.read-less-link::after {
    content: '\25B2';
    margin-left: 5px;
}

/* Collapsed state */
.post-content.collapsed {
    max-height: 400px;
    overflow: hidden;
}

/* Menu Sidebar */
.menu-sidebar .td-ct-item-name {line-height: 50px !important;}
.menu-sidebar .td-ct-item-no {line-height: 50px !important;}
.menu-sidebar .td-ct-item:hover {background:#004bbc;}
.menu-sidebar .td-ct-wrap a:hover {color: #FFF !important;}
/* List Premium Download */
.list-premium-download .td-block-title {line-height: 50px !important; margin-bottom: 0px !important;}

/*css post download */
.thumbnail-download img {width: 100%; padding: 10px;}
.thong-tin-san-pham .tdb_single_post_views {line-height: 20px !important; vertical-align: top !important; font-size: 14px;}
/*Categories */
.cate-post .td-module-title {height: 50px;
    display: flex;
    align-items: center;
    text-align: center;
    flex-direction: row-reverse;
    flex-wrap: nowrap;
    align-content: stretch;
    justify-content: center;}
.cate-post .td-module-meta-info {
	box-shadow: 0px 3px 5px 0px #969696 }

.post-checkout .woocommerce-checkout-review-order-table {background-color: #FFF;}
.post-checkout .coupon-form {background-color: #FFF !important;}
.post-checkout .woocommerce-checkout-payment {background-color: #FFF !important;padding: 10px;}
.post-checkout .woocommerce-checkout-payment button {background-color: #004bbc !important;}
.post-checkout .woocommerce-cart-form {background-color: #FFF; padding: 20px;}
.post-checkout .td-cart-actions {background-color: #FFF !important;}
.post-checkout .td-woo-default table.cart td {border-top: 1px solid rgba(0,0,0,.1);}
.post-checkout .checkout-button {background-color: #004bbc !important;}

/* Support */
.support {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
	width: 100%
}

.column {
    text-align: center;
    flex: 1;
}

.column a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.column img {
    width: 100px;
    height: 100px;
    margin-bottom: 5px;
}

.column span {
    display: block;
}

.custom-pagination {
    text-align: center;
    margin: 30px 0;
}

.custom-pagination a {
    margin: 0 4px;
    padding: 8px 16px;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
}

.custom-pagination a:hover, .custom-pagination a:active {
    background-color: #b71010;
    color: #fff;
}

.custom-pagination .current {
    background-color: #b71010;
    color: #fff;
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid #b71010;
}
.woocommerce-checkout .quantity input {
    pointer-events: none !important;
}
/* Customize background and text color for all notifications */
.woocommerce .td-woo-default .woocommerce-info {
    background-color: #004bbc !important;
    color: #ffffff !important;
	margin-top: 20px;
}

/* Customize highlight color for button */
.woocommerce-page .woocommerce-info .button,
 {
    background-color: #ff9900 !important; /* Button background color */
    color: #ffffff !important; /* Button text color */
    border: none !important; /* Remove border */
}

/* Customize MyAccount */
.all-text .myaccount-menu {background: #FFF;}
.all-text .myaccount-menu:before {border-right: none !important; padding: 0 !important;border-bottom: none !important; }
.all-text .myaccount-menu:after {border-right: none !important; padding: 0 !important;}
.all-text .myaccount-menu li {background-color: #FFF !important; padding-left: 21px; margin:0; border-bottom: 1px solid #999 !important;}
.all-text .myaccount-menu li a {border-right: none !important; }
.all-text .user-profile {background: #FFF; padding: 10px;}
.all-text .woocommerce-MyAccount-content {background: #FFF; padding: 10px;}

/* Woocommerce order */
.woocommerce-order {padding: 10px !important; background-color: #FFF !important;padding-top: 30px !important;}
.woocommerce-order button {background-color: #bd0000 !important;
    color: #FFF !important;
    padding: 10px !important;
    border: none !important;
    border-radius: 10px !important;
}
.woocommerce form.login {background-color: #FFF;}

/* Custom Search */
.custom-search-form {
    display: flex; /* Use flexbox to arrange elements */
    align-items: center; /* Align elements vertically */
    justify-content: flex-start; /* Align elements left to right */
    background-color: transparent; /* Transparent background */
    padding: 0; /* No padding */
    width: 100%;
}

.custom-search-form select.search-category,
.custom-search-form input.search-field,
.custom-search-form button.search-submit {
    flex: 0 0 25%;
    float: left; /* Elements float left */
    height: 60px; /* Uniform height */
    line-height: 60px; /* Line height equals element height */
    border: 1px solid #ddd; /* Border for each element */

    width: 25%;
}

.custom-search-form select.search-category {
    border-top-left-radius: 5px; /* Round top-left corner */
    border-bottom-left-radius: 5px; /* Round bottom-left corner */
	padding-left: 10px;
	
	
}
.custom-search-form select.search-category option {
    background-color: #b71010;
    color: white;
}


/* .option-category {background-color: #b71010; color: white;} */
.custom-search-form .form-search {width: 100%;padding: 20px;}

.custom-search-form input.search-field {
    flex-grow: 1; /* Input takes remaining space */
    border-top-right-radius: 0; /* No border radius */
    border-bottom-right-radius: 0; /* No border radius */
    border-left: none; /* Remove left border */
    width: 60%;
}

.custom-search-form button.search-submit {
    background-color: #b71010;
    color: white;
    border-top-right-radius: 5px; /* Round top-right corner */
    border-bottom-right-radius: 5px; /* Round bottom-right corner */
    border-left: none; /* Remove left border to avoid gap between button and input */
    padding: 0 8px; /* Horizontal padding for button */
    cursor: pointer; /* Cursor pointer on hover */
    box-shadow: none; /* Remove shadow */
    width: 15%;
}

.custom-search-form button.search-submit:hover {
    background-color: #e69500; /* Color on hover */
}

/* Category Shortcode */
.custom-category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 0; /* Create 10px gap between rows */
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-category-list .category-item {
    padding: 8px 15px;
    margin-bottom: 10px; /* Bottom margin 10px */
    border-right: 1px solid #ddd;
    background-color: #f9f9f9;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
	
}

.custom-category-list .category-item:last-child {
    border-right: none;
}

.custom-category-list .category-item:hover {
    background-color: #007bff;
    color: #fff;
}

.custom-category-list .category-item.current-category {
    background-color: #007bff; /* Blue background for current category */
    color: #fff;
	
}

.home-header .td-block-title {margin-bottom: 0px !important; line-height: 30px !important;}
.home-cate {border: 1px solid #7b7b7b; }
.home-cate .td_module_flex_1 {border-bottom: 1px solid #ccc; padding-right: 20px; padding-left: 20px; padding-top: 18px !important; padding-bottom: 18px !important; margin-bottom:0px !important;}
.home-cate .td_block_inner {margin-left: 0px !important; margin-right: 0px !important;}
.home-cate .td-next-prev-wrap {position: absolute !important; right: 0; top: -60px;}
.home-cate  .td-next-prev-wrap a {border: 1px solid #FFF !important; color: #FFF !important;}

/* Call child posts to homepage */
.pinterest-style-posts {
    column-count: 6;
    column-gap: 10px;
}


.pinterest-post {
    break-inside: avoid; /* Avoid post splitting between columns */
    margin-bottom: 20px; /* Spacing between posts */
	padding: 5px;
    border: 1px solid #e3e3e3;
    text-align: center;
	background: #f9f9f9;
}

.pinterest-post img {
    width: 100%;
    height: auto;
}
.pinterest-post h2 {font-size: 20px;
    line-height: 25px;
    margin-top: 10px;
    margin-bottom: 10px;}
	
	
/* CSS to center pagination */
.custom-pagination {
    text-align: center;
    margin-top: 20px;
}

.custom-pagination .page-numbers {
    display: inline-block;
    margin: 0 5px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #666;
}

.custom-pagination .current {
    background-color: #b71010;
    color: #fff;
    border-color: #b71010;
}

.custom-pagination a:hover {
    border-color: #b71010;
}
.woocommerce form .form-row .input-checkbox {
	margin: 5px 8px 0 0 !important;
    width: 20px; /* Set checkbox width */
    height: 20px; /* Set checkbox height */
    cursor: pointer; /* Add pointer cursor for better usability */
    -webkit-transform: scale(1.5); /* Scale for Webkit browsers */
    -moz-transform: scale(1.5); /* Scale for Firefox */
    -ms-transform: scale(1.5); /* Scale for Microsoft */
    -o-transform: scale(1.5); /* Scale for Opera */
    transform: scale(1.5); /* Scale for other browsers */
}



/* Customize more if needed */
.translate select {padding: 10px; font-weight: bold; border: 2px solid #f94500;}

@media (min-width: 1018px) and (max-width: 1173px) {
.pinterest-style-posts {column-count: 4;}
.pinterest-post h2 {font-size: 15px;}	
}
@media (max-width: 1024px) {
.home-cate .td_module_flex_1:nth-last-child(1) {border-bottom: 0px !important;}	
.pinterest-style-posts {column-count: 4;}
.pinterest-post h2 {font-size: 15px;}
}


}

@media (min-width: 768px) and (max-width: 1018px) {
.button-top {width: 110px; height: 90px !important}	
.button-top .tds-icon-box .tds-icon {font-size: 40px !important;line-height: 200px !important;}
.button-top .tdm-title-sm {margin-bottom: 80px !important;    font-size: 15px;}
.custom-search-form input.search-field { width: 100% !important; border-left: 1px solid #ddd !important;}
.custom-search-form button.search-submit {width: 20% !important; font-size: 12px !important;}
.pinterest-style-posts {column-count: 4;}
.pinterest-post h2 {font-size: 13px;}

}


/* CSS for tablet and mobile versions */
@media (max-width: 768px) {
    .child-post {
        flex-direction: row;
        align-items: center;
		margin-left: 20px;
    margin-right: 20px;
    }
	.child-post-title {
		flex: 2;		
		line-height: 28px;
		font-size: 13px;
		font-weight: 500;
		padding-left: 10px;
	}
    .child-post-meta {
        flex: 1;
        text-align: center;
        margin-left: 5px;
		border-right: none;
		line-height: 20px;
		font-size: 10px;
    }

    .download-button {
        margin-top: 0;

    }
	.child-post-download {
		display:none; 
		flex: 0;	
	}
	.post-content-thumbnail {
    max-height: 350px;
    overflow: hidden; /* To hide excess image content */
	}
	.read-more-content {width: 120%; margin-left: -10%;}
	
	.post-checkout .woocommerce-checkout-review-order-table {padding: 10px;}
	.post-checkout h3 {padding-left: 10px;}
	.post-checkout .woocommerce-cart-form {margin-bottom: 30px;
    margin-left: -25px;
    margin-right: -25px}
    
  /* Search tool */
    
  .custom-search-form {
        flex-direction: column; /* Arrange elements vertically for small screens */
    }

    .custom-search-form select.search-category,
    .custom-search-form input.search-field,
    .custom-search-form button.search-submit {
        width: 100%; /* Full width */
        border-radius: 4px; /* Border radius */
        margin-bottom: 5px; /* Margin between elements when vertical */
        border-right: 1px solid #ddd; /* Add back right border */
		border-left: 1px solid #ddd;
    }
.home-cate .td_module_flex_1:nth-last-child(1) {border-bottom: 0px !important;}
.pinterest-style-posts {column-count: 2;}
.pinterest-post h2 {font-size: 13px; line-height: 18px;}

}

	
@media (max-width: 500px) {
	
	}

/* ====================================================================== */
/* EXTRA CUSTOM STYLES (Provided in Prompt 2) */
/* ====================================================================== */

.resource-download-panel {
    background-color: #ffffff;
    border-radius: 16px; 
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9e9e9;
    margin: 40px 0;
    overflow: hidden; 
}

.resource-download-panel > * {
    padding: 30px 35px;
    border-bottom: 1px solid #f0f0f0; 
}

.resource-download-panel > *:last-child {
    border-bottom: none;
}
.resource-download-panel .vip-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
}
.resource-download-panel .vip-block h3,
.resource-download-panel .vip-block p {
    margin: 0;
}
.resource-download-panel .vip-block .premium-download-button {
    background-color: #b71010;
    color: #fff;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(183, 16, 16, 0.25);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.resource-download-panel .vip-block .premium-download-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(183, 16, 16, 0.3);
}

.resource-download-panel .meta-info-block {
    background-color: #fff;
}
.resource-download-panel .meta-info-block .meta-grid {
    display: grid;
    grid-template-columns: 130px 1fr; 
    gap: 15px 20px;
}
.resource-download-panel .meta-info-block .meta-label {
    font-weight: 600;
    color: #555;
}
.resource-download-panel .meta-info-block .meta-value {
    font-weight: 500;
    color: #111;
}

.resource-download-panel .guidance-block {
    background-color: #1a2a45;
    color: #e0e0e0;
}
.resource-download-panel .guidance-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.resource-download-panel .guidance-block li {
    padding-left: 30px;
    position: relative;
    line-height: 1.8;
}
.resource-download-panel .guidance-block li::before {
    content: '★';
    position: absolute;
    left: 0;
    top: 2px;
    color: #ffc107; 
    font-size: 18px;
}
/* --- UPGRADED CSS FOR PINTEREST LAYOUT --- */

/* 1. Main Container */
.pinterest-style-posts {
    column-count: 10;
    column-gap: 16px; /* Slightly increased spacing */
    padding: 20px 0;
}

/* 2. Post Card */
.pinterest-post {
    display: inline-block;
    width: 100%;
    break-inside: avoid;
    margin-bottom: 24px;
    background-color: #fff;
    border-radius: 14px; /* Increased border radius */
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06); /* Softer shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    isolation: isolate;
}

/* Upgraded Hover */
.pinterest-post:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

/* Thumbnail Image */
.pinterest-post img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Prevent image distortion */
}

/* Content Area */
.pinterest-post-content {
    padding: 18px 22px 22px 22px;
    text-align: left;
}

/* Title */
.pinterest-post h2 {
    font-size: 19px;
    line-height: 1.5;
    font-weight: 600;
    margin: 0;
}

.pinterest-post h2 a {
    color: #111;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pinterest-post:hover h2 a {
    color: #b71010;
}

/* Responsive columns */
@media (max-width: 1200px) {
    .pinterest-style-posts {
        column-count: 4;
    }
}

@media (max-width: 991px) {
    .pinterest-style-posts {
        column-count: 3;
    }
}

@media (max-width: 767px) {
    .pinterest-style-posts {
        column-count: 2;
        column-gap: 16px;
    }

    .pinterest-post h2 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .pinterest-style-posts {
        column-count: 1;
    }
}


/* --- UPGRADED PAGINATION --- */

.custom-pagination {
    text-align: center;
    margin: 50px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap; /* Better for responsive */
}

.custom-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background-color: #fff;
    color: #444;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.custom-pagination .current {
    background-color: #b71010;
    border-color: #b71010;
    color: #fff;
    box-shadow: 0 6px 18px rgba(183, 16, 16, 0.3);
    cursor: default;
    pointer-events: none;
}

.custom-pagination a.page-numbers:hover {
    border-color: #b71010;
    background-color: #fff3f3;
    color: #b71010;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.custom-s .dots {
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0 6px;
    color: #aaa;
}
/* --- EXTRA CLASS: UPGRADED POSTS LOOP "PREMIUM CATEGORY GRID" --- */

/* 1. Refine the entire block for smooth effects */
.premium-category-grid .td-module-container {
    border-radius: 16px; /* Large rounded corners, modern */
    overflow: hidden; /* Important for border-radius and effects */
    
    /* Subtle shadow to make block pop */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    
    position: relative; /* Required for overlay and title */
    
    /* Smooth transition effect on hover */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}


/* 2. INTERACTIVE EFFECT ON HOVER */
.premium-category-grid .td-module-container:hover {
    /* Lift block and deepen shadow for depth */
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}


/* 3. Upgrade internal image */
.premium-category-grid .td-image-wrap img {
    /* Smooth zoom effect on hover */
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.premium-category-grid .td-module-container:hover .td-image-wrap img {
    /* Slightly zoom all images inside collage block */
    transform: scale(1.08);
}


/* 4. MINIMAL Gradient Overlay (just to highlight text) */
.premium-category-grid .td-module-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%; /* Overlay only takes bottom half, keeping image beauty */
    
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    
    z-index: 1;
    opacity: 0; /* Hidden by default */
    
    /* Smooth appearance effect */
    transition: opacity 0.4s ease;
}

/* Overlay only appears when user hovers */
.premium-category-grid .td-module-container:hover::after {
    opacity: 0;
    z-index: 4;
}


/* 5. RESTORE AND BEAUTIFY TITLE */
.premium-category-grid .td-module-title {
    position: absolute; /* Place title over image */
    bottom: -100%; /* Default hidden below */
    left: 25px;
    right: 25px;
    
    z-index: 2; /* Always above overlay */
    margin: 0;
    padding: 0;
    text-align: center; /* Center title */
    
    /* Ultra smooth slide up effect */
    transition: bottom 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* On hover, title slides up from bottom to center */
.premium-category-grid .td-module-container:hover .td-module-title {
    bottom: 25px;
}

.premium-category-grid .td-module-title a {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffff00 !important; /* Standout yellow */
    line-height: 1.4;
    text-decoration: none;

    /* Create background box */
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent black */
    padding: 10px 20px;
    border-radius: 8px;

    /* Text shadow */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);

    /* Ensure display on all layers */
    position: relative;
    z-index: 9999;

    /* Glow effect around box */
    box-shadow: 0 0 10px rgba(255, 255, 0, 0.6);
}



/* 6. Ensure other components are unaffected */
.premium-category-grid .td_block_inner {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.premium-category-grid .td-block-span-7 { /* Adjust for your 2 column layout */
    width: 48%; /* May need slight adjustment */
    margin-right: 4%;
}
.premium-category-grid .td-block-span-7:last-child {
    margin-right: 0;
}
/* --- [START] OVERRIDE CSS CLASS FOR HOMEPAGE MODULE --- */

/* --- 1. Override .home-cate (Category Box) --- */

/* Add parent class to increase priority, e.g., .td-main-content-wrap */
.td-main-content-wrap .home-cate {
    /* Override old "border: 1px solid #7b7b7b;" */
    border: 1px solid #f0f0f0 !important;
    border-radius: 0px 16px 16px 16px !important;
    box-shadow: 0 10px 35px rgba(0,0,0,0.07) !important;
    
    /* New styles */
    background-color: #ffffff;
    padding: 0 !important; /* Remove old padding if any */
    overflow: hidden;
    margin-bottom: 40px;
}


/* --- 2. Override .Home-header (Title) --- */

/* Increase priority by adding parent class */
.td-main-content-wrap .Home-header {
    /* Override old .home-header styles */
    padding: 20px 30px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

/* Style for Title Text (override old .td-block-title) */
.td-main-content-wrap .Home-header .td-block-title span {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #111 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    line-height: 1.4 !important; /* Override old line-height: 30px */
    
    /* Unique underline effect */
    position: relative !important;
    padding-bottom: 8px !important;
    margin-bottom: 0 !important;
}

/* Create underline */
.td-main-content-wrap .Home-header .td-block-title span::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 40px !important;
    height: 3px !important;
    background-color: #b71010 !important;
}


/* --- 3. Override post list inside .home-cate --- */

/* Override .td_module_flex_1 */
.td-main-content-wrap .home-cate .td_module_flex_1 {
    /* Override old styles */
    border-bottom: 1px solid #f2f2f2 !important;
    padding: 20px 0 !important;
    margin: 0 30px !important; /* Use horizontal margin instead of parent padding */
    width: auto !important; /* For margin to work */
}
/* Remove border on last item */
.td-main-content-wrap .home-cate .td_module_flex_1:last-child {
    border-bottom: none !important;
    padding-bottom: 20px !important; /* Keep padding for last item */
}

/* Reset padding for .td_block_inner container */
.td-main-content-wrap .home-cate .td_block_inner {
    padding: 0 !important;
    margin: 0 !important; /* Override old margin: 0 */
}


/* Style for post thumbnail and title (add effect) */
.td-main-content-wrap .home-cate .td-image-wrap {
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.td-main-content-wrap .home-cate .td_module_flex_1:hover .td-image-wrap {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.td-main-content-wrap .home-cate .td-module-title a {
    color: #333;
    transition: color 0.3s ease;
}
.td-main-content-wrap .home-cate .td_module_flex_1:hover .td-module-title a {
    color: #b71010;
}


/* --- [END] OVERRIDE CSS CLASS --- */
/* --- EXTRA CLASS: BREADCRUMB "PREMIUM-BREADCRUMB-NAV" (Final, Stylish Version) --- */

/* 1. Reset and main layout setup */
.premium-breadcrumb-nav {
    /* Remove all old styles */
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    
    padding: 10px 0 !important;
    margin-bottom: 40px !important;
    
    /* Use Flexbox to create "chips" */
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px; /* Space between chips */
}

/* 2. Common style for all "Chips" (both link and text) */
.premium-breadcrumb-nav a,
.premium-breadcrumb-nav .tdb-bread-cur-page {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px; /* Large padding for clear chips */
    border-radius: 50px; /* Full rounded pill shape */
    
    font-family: 'Montserrat', sans-serif;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: 0;
    
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1); /* Premium motion effect */
}

/* 3. Style for clickable "Chips" (parent items) */
.premium-breadcrumb-nav a {
    background-color: #f0f2f5; /* Very modern light grey bg */
    color: #555 !important;
}

/* 4. Style for current page "Chip" (last item) - MAIN HIGHLIGHT */
.premium-breadcrumb-nav .tdb-bread-cur-page {
    background-color: #b71010 !important; /* Main red bg */
    color: #fff !important;
    font-weight: 700 !important; /* Bolder to stand out */
    
    /* Red shadow glow effect */
    box-shadow: 0 5px 15px rgba(183, 16, 16, 0.25);
}

/* 5. Separator - Turn into a subtle icon */
.premium-breadcrumb-nav .td-icon-right {
    color: #ccc !important;
    font-size: 20px !important;
    /* Use theme font icon, usually FontAwesome or similar */
    /* If default icon is '>', try changing with icon class if possible */
}


/* --- 6. TOP NOTCH INTERACTIVE EFFECT --- */

/* When hovering a grey "Chip"... */
.premium-breadcrumb-nav a:hover {
    /* ...it turns into a red "Chip", like current chip */
    background-color: #b71010 !important;
    color: #fff !important;
    box-shadow: 0 5px 15px rgba(183, 16, 16, 0.25);
    
    /* And moves slightly up for physical interaction feel */
    transform: translateY(-3px);
}


/* 7. Upgrade Home Icon */
.premium-breadcrumb-nav .tdb-bread-sep-first a {
    gap: 8px;
}
.premium-breadcrumb-nav .tdb-bread-sep-first a::before {
    /* Use SVG for sharp icon and easy color change */
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23555' viewBox='0 0 16 16'%3E%3Cpath d='M8.707 1.5a1 1 0 0 0-1.414 0L.646 8.146a.5.5 0 0 0 .708.708L8 2.207l6.646 6.647a.5.5 0 0 0 .708-.708L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.707 1.5z'/%3E%3Cpath d='M13 7.207V13.5a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 1 13.5V7.207l5-5 5 5z'/%3E%3C/svg%3E");
    transition: all 0.3s ease;
}
/* On hover, home icon also turns white */
.premium-breadcrumb-nav .tdb-bread-sep-first a:hover::before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath d='M8.707 1.5a1 1 0 0 0-1.414 0L.646 8.146a.5.5 0 0 0 .708.708L8 2.207l6.646 6.647a.5.5 0 0 0 .708-.708L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.707 1.5z'/%3E%3Cpath d='M13 7.207V13.5a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 1 13.5V7.207l5-5 5 5z'/%3E%3C/svg%3E");
}

/* --- EXTRA CLASS: "PREMIUM-GUIDANCE-LIST" --- */

/* 1. Reset Default Style of List Block */
/* Apply directly to selected List block */
.tdc-video-inner-post .premium-guidance-list {
    background: none !important; /* Remove dark blue bg */
    padding: 0 !important;
}

/* 2. Style for Main Container of list (UL Tag) */
.premium-guidance-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    
    /* Create a subtle container */
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden; /* Important for border-radius */
    background-color: #fff;
}

/* 3. Style for each list item (LI Tag) */
.premium-guidance-list li {
    position: relative; /* Mandatory for positioning icon */
    
    /* Large Padding: 55px left to make space for icon */
    padding: 20px 25px 20px 55px !important;
    
    border-bottom: 1px solid #f0f0f0; /* Ultra thin separator */
    
    /* Premium motion effect */
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Remove separator on last item */
.premium-guidance-list li:last-child {
    border-bottom: none;
}

/* 4. Upgrade Icon (replace yellow star) */
.premium-guidance-list li::before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='%23b71010' class='bi bi-arrow-right-circle-fill' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zM4.5 7.5a.5.5 0 0 0 0 1h5.793l-2.147 2.146a.5.5 0 0 0 .708.708l3-3a.5.5 0 0 0 0-.708l-3-3a.5.5 0 1 0-.708.708L10.293 7.5H4.5z'/%3E%3C/svg%3E");
    
    position: absolute;
    left: 25px;
    top: 50%;
    
    /* Center icon vertically */
    transform: translateY(-50%);
    
    transition: transform 0.3s ease;
}

/* 5. Style for Link (A Tag) */
.premium-guidance-list li a {
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

/* --- 6. PREMIUM INTERACTIVE EFFECT ON HOVER --- */
.premium-guidance-list li:hover {
    background-color: #fdf2f2; /* Subtle pinkish bg */
    
    /* On hover, icon moves slightly right */
    /* This is a very modern micro-interaction */
}

.premium-guidance-list li:hover::before {
    transform: translateY(-50%) translateX(4px);
}

.premium-guidance-list li:hover a {
    color: #b71010 !important; /* Change text color to main red */
}

/* --- EXTRA CLASS: "PREMIUM-ACCOUNT-HUB" --- */

/* 1. Main Layout Setup */
/* WooCommerce usually wraps everything in class .woocommerce */
.premium-account-hub .woocommerce {
    display: flex;
    gap: 30px; /* Gap between menu and content */
    align-items: flex-start; /* Align columns vertically */
}


/* --- 2. Navigation Menu (Dashboard, Orders...) --- */
.premium-account-hub .woocommerce-MyAccount-navigation {
    flex: 0 0 250px; /* Fixed width 250px */
    background-color: #f9f9f9;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.premium-account-hub .woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.premium-account-hub .woocommerce-MyAccount-navigation ul li {
    margin: 0;
}

.premium-account-hub .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 14px 20px;
    color: #333 !important;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    
    /* Add icon before (if you can add class to HTML) */
    position: relative;
    padding-left: 45px;
}

/* Style for selected item (Active) */
.premium-account-hub .woocommerce-MyAccount-navigation ul li.is-active > a {
    background-color: #b71010;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(183, 16, 16, 0.25);
}

/* Hover effect for other items */
.premium-account-hub .woocommerce-MyAccount-navigation ul li:not(.is-active) > a:hover {
    background-color: #e9e9e9;
    color: #111 !important;
}


/* --- 3. Content Area (Form, Table...) --- */
.premium-account-hub .woocommerce-MyAccount-content {
    flex-grow: 1; /* Take remaining space */
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    padding: 35px 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}


/* --- 4. Restyle Form for "Premium" Look --- */
.premium-account-hub form .form-row {
    padding: 0; /* Remove default padding */
}

/* Label */
.premium-account-hub form label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

/* Input field */
.premium-account-hub form input.input-text,
.premium-account-hub form select {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

/* Focus effect on input */
.premium-account-hub form input.input-text:focus,
.premium-account-hub form select:focus {
    border-color: #b71010;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(183, 16, 16, 0.1);
}

/* Button */
.premium-account-hub form .button,
.premium-account-hub form button[type="submit"] {
    background-color: #b71010 !important;
    color: #fff !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    padding: 14px 30px !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(183, 16, 16, 0.25) !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.premium-account-hub form .button:hover,
.premium-account-hub form button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(183, 16, 16, 0.3) !important;
}


/* --- 5. Responsive for Mobile --- */
@media (max-width: 991px) {
    .premium-account-hub .woocommerce {
        flex-direction: column; /* Stack menu and content */
    }
    .premium-account-hub .woocommerce-MyAccount-navigation {
        width: 100%;
        flex-basis: auto;
    }
}


/* 2. Always visible part (Avatar and Name) */
.user-profile{
    display: flex;
    align-items: center;
    gap: 12px; /* Gap between avatar and name */
    padding: 5px 10px 5px 5px;
    border-radius: 50px; /* Full rounded pill */
    transition: background-color 0.3s ease;
}
.premium-user-widget:hover .widget-trigger {
    background-color: #f9f9f9; /* Light grey bg on hover */
}

/* 3. Avatar */
 .user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%; /* Circle avatar */
    overflow: hidden;
    border: 2px solid #ddd;
    transition: border-color 0.3s ease;
}
.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevent distortion */
}
/* On hover, avatar border turns red */
.user-avatar:hover {
    border-color: #b71010;
}

/* 4. Display Name */
.username {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #333;
    transition: color 0.3s ease;
}
.username:hover {
    color: #b71010;
}

/* --- 6. STANDOUT LOGOUT BUTTON --- */
.logout a {
    font-weight: 600;
    background-color: #fdf2f2; /* Pinkish bg */
    color: #b71010 !important; /* Main red text */
}
.logout a:hover {
    background-color: #b71010; /* Dark red bg on hover */
    color: #fff !important;
}
/* Add Logout icon using pseudo-element */
.logout a::before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23b71010' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M10 12.5a.5.5 0 0 1-.5.5h-8a.5.5 0 0 1-.5-.5v-9a.5.5 0 0 1 .5-.5h8a.5.5 0 0 1 .5.5v2a.5.5 0 0 0 1 0v-2A1.5 1.5 0 0 0 9.5 2h-8A1.5 1.5 0 0 0 0 3.5v9A1.5 1.5 0 0 0 1.5 14h8a1.5 1.5 0 0 0 1.5-1.5v-2a.5.5 0 0 0-1 0v2z'/%3E%3Cpath fill-rule='evenodd' d='M15.854 8.354a.5.5 0 0 0 0-.708l-3-3a.5.5 0 0 0-.708.708L14.293 7.5H5.5a.5.5 0 0 0 0 1h8.793l-2.147 2.146a.5.5 0 0 0 .708.708l3-3z'/%3E%3C/svg%3E");
    transition: filter 0.2s ease;
}
.logout a:hover::before {
    /* Change SVG icon color to white on hover */
    filter: brightness(0) invert(1);
}
/* --- PREMIUM HEADER STYLE --- */

/* 1. Main Container */
.premium-page-header {
    background: #fff; /* Elegant white bg */
    padding: 40px 0;
    margin-bottom: 60px;
    text-align: left;
    border-bottom: 1px solid #ddd; /* Light, elegant border */
    position: relative;
}

/* 2. Main Title */
.premium-page-header .td-page-title {
    font-family: 'Playfair Display', 'Georgia', serif; /* Premium serif font */
    font-size: 3rem;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
    letter-spacing: -0.5px;
    margin: 0;
}

/* 3. Highlight Line */
.premium-page-header .td-title-line {
    display: block;
    height: 3px;
    width: 80px;
    background-color: #c62828; /* Luxurious dark red */
    margin-top: 20px;
    margin-left: 0;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* 4. Effect on header hover (optional) */
.premium-page-header:hover .td-title-line {
    width: 100px;
    background-color: #b71c1c; /* Emphasize on hover */
}

/* 5. Responsive */
@media (max-width: 767px) {
    .premium-page-header {
        padding: 30px 0;
        margin-bottom: 40px;
    }

    .premium-page-header .td-page-title {
        font-size: 2.2rem;
    }

    .premium-page-header .td-title-line {
        width: 60px;
    }
}
/* --- ADDITIONAL CSS FOR INTRO POST --- */

/* 1. Highlight Storytelling Box */
.story-highlight-box {
    background-color: #f9f9f9;
    border-left: 5px solid #b71010;
    padding: 30px 35px;
    margin: 40px 0;
    border-radius: 0 8px 8px 0;
}
.story-highlight-box h3 {
    margin-top: 0;
    color: #b71010;
}
.story-highlight-box blockquote {
    font-style: italic;
    color: #555;
    border-left: 3px solid #ddd;
    padding-left: 20px;
    margin: 20px 0;
}

/* 2. Payment Notice Box */
.payment-notice-box {
    background-color: #fff;
    border: 2px dashed #b71010;
    border-radius: 16px;
    padding: 30px 35px;
    margin: 40px 0;
    text-align: center;
}
.payment-notice-box h3 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #b71010;
}
.payment-details {
    background-color: #fdf2f2;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 1.1rem;
    line-height: 1.8;
}
.payment-notice-box .note {
    font-size: 0.9rem;
    color: #777;
}

/* 3. Centered Call To Action Section */
.cta-centered-section {
    background-color: #fafafa;
    border-radius: 16px;
    padding: 50px 30px;
    text-align: center;
    margin: 40px 0;
}
.cta-centered-section h2 {
    margin-top: 0;
}
.cta-centered-section p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 4. Contact Info Footer */
.contact-info-footer {
    background-color: #1a2a45; /* Use existing color */
    color: #e0e0e0;
    border-radius: 16px;
    padding: 30px 35px;
    margin-top: 40px;
}
.contact-info-footer h3 {
    color: #fff;
    border-bottom: 2px solid #b71010;
    padding-bottom: 10px;
}
.contact-info-footer ul {
    list-style: none;
    padding-left: 0;
}
body.home .pv-grid {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 16px;
}
body.home .pv-grid .pv-item {
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
body.home .pv-grid .pv-item h2 {
    font-size: 14px;
    line-height: 1.4;
}
@media (max-width: 1800px) {
    body.home .pv-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

@media (max-width: 1600px) {
    body.home .pv-grid {
        grid-template-columns: repeat(7, 1fr);
    }
}

@media (max-width: 1400px) {
    body.home .pv-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 1200px) {
    body.home .pv-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 991px) {
    body.home .pv-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    body.home .pv-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    body.home .pv-grid {
        grid-template-columns: 1fr;
    }
}


/* ===== RESET + STANDARD ALIGNMENT FOR VC_ROW ===== */
.vc_row {
    margin: auto !important;
    padding-left: 20px;
    padding-right: 20px;
    max-width: 1400px;
    box-sizing: border-box;
}


/* ===== DESKTOP LARGE ===== */
@media (min-width: 1400px) {
    .vc_row {
        max-width: 1400px;
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* ===== TABLET ===== */
@media (max-width: 1024px) {
    .vc_row {
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ===== MOBILE ===== */
@media (max-width: 767px) {
    .vc_row {
        padding-left: 12px;
        padding-right: 12px;
    }
}
/* Fix for Online Members only */
/* ===== AUTO FIX HOME-HEADER OUTSIDE VC_ROW ===== */
.td_block_wrap.home-header:not(.vc_row_inner .td_block_wrap.home-header) {
    padding-left: 50px;
    padding-right: 50px;
    box-sizing: border-box;
}
.td-auto-tags a {
    display: inline-block;
    background: #b71010;
    color: #fff;
    padding: 6px 12px;
    margin: 0 6px 6px 0;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1;
    transition: all .2s ease;
}

.td-auto-tags a:hover {
    background: #ff5a5f;
    color: #fff;
}
/* 
🦊 POSTERFREE.NET FINAL FIXES
Apply to style.css (bottom of file)
*/

/* ===== 1. FIX SYNTAX ERROR ===== */
/* Remove extra } from line ~102 */
/* Change: } }  →  } */

/* ===== 2. CONTAINER ALIGNMENT ===== */
.td-container,
.container,
.wrapper,
#main {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
}

/* ===== 3. TAG/CATEGORY ALIGNMENT ===== */
.td-post-source-tags,
.td-category,
.td-tags,
.td-post-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin: 15px 0 !important;
}

.td-tag,
.td-category,
.td-post-tag {
    display: inline-block !important;
    padding: 5px 12px !important;
    margin: 5px !important;
    background: #f0f0f0 !important;
    border-radius: 3px !important;
    text-align: center !important;
}

/* ===== 4. TEXT ALIGNMENT ===== */
.td-post-content,
.entry-content,
.post-content {
    text-align: justify !important;
    line-height: 1.6 !important;
}

/* ===== 5. SEARCH FORM FIX ===== */
.custom-search-form {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    margin: 0 auto !important;
    max-width: 1200px !important;
}

/* ===== 6. PINTEREST POSTS ===== */
.pinterest-style-posts {
    margin: 0 auto !important;
    max-width: 1200px !important;
    padding: 0 15px !important;
}

.pinterest-post {
    text-align: center !important;
}

/* ===== 7. CHILD POSTS MOBILE ===== */
@media (max-width: 768px) {
    .child-post {
        flex-direction: column !important;
        height: auto !important;
        padding: 15px !important;
    }
    
    .child-post-title,
    .child-post-meta,
    .child-post-download {
        width: 100% !important;
        text-align: center !important;
        padding: 10px 0 !important;
        border-right: none !important;
        border-bottom: 1px solid #ccc !important;
    }
}

/* ===== 8. RESPONSIVE FIXES ===== */
@media (max-width: 768px) {
    .td-container,
    .container {
        padding: 0 10px !important;
    }
    
    .td-tags,
    .td-category {
        justify-content: center !important;
    }
    
    .custom-search-form {
        flex-direction: column !important;
    }
    
    .custom-search-form select.search-category,
    .custom-search-form input.search-field,
    .custom-search-form button.search-submit {
        width: 100% !important;
        margin-bottom: 10px !important;
    }
}

/* ===== 9. CLEARFIX ===== */
.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

/* ===== 10. EMERGENCY OVERRIDE ===== */
.fix-alignment {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    float: none !important;
    display: block !important;
}
