/* Latest Articles: Grid Style (Card) */
/* Latest Articles: Grid Style (Card) */
#arte-t6-t.hd-layout-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 20px;
}

/* Latest Articles: Two Column Layout */
/* Only apply grid layout if NOT list style */
#arte-t6-t.hd-layout-two-column:not(.hd-layout-list) {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 20px;
}

/* Two column + List style: use grid layout with 2 columns, but each item is list style */
#arte-t6-t.hd-layout-two-column.hd-layout-list {
display: grid !important;
grid-template-columns: repeat(2, 1fr) !important;
gap: 20px;
}

#arte-t6-t.hd-layout-two-column.hd-layout-list .postcard.ex {
display: flex !important;
flex-direction: row !important;
width: 100%;
margin-bottom: 0;
background: #fff;
border: none;
border-radius: 0;
box-shadow: none;
padding: 0 0 20px 0;
}

/* Two column layout: ensure proper spacing and alignment */
#arte-t6-t.hd-layout-two-column {
padding: 0 !important; /* Remove padding for two-column layout */
}

#arte-t6-t.hd-layout-two-column .postcard.ex {
margin-bottom: 0;
width: 100%;
box-sizing: border-box;
}

/* Two column: content alignment */
/* Only apply card-like padding when NOT in list layout */
#arte-t6-t.hd-layout-two-column:not(.hd-layout-list) .postcard_content {
width: 100%;
text-align: left; /* Text left aligned */
padding: 15px;
box-sizing: border-box;
}

/* Two column + List: use list content styles */
#arte-t6-t.hd-layout-two-column.hd-layout-list .postcard_content {
flex: 1;
min-width: 0;
text-align: left !important;
padding: 0 15px;
box-sizing: border-box;
width: 100%;
max-width: 100%;
}

/* Two column layout: image alignment and sizing */
/* Only apply card-like styles when NOT in list layout */
#arte-t6-t.hd-layout-two-column:not(.hd-layout-list) .postcard_thumbnail {
position: relative;
width: 100%;
height: 200px; /* Fixed height for consistent sizing */
overflow: hidden;
display: flex;
align-items: center;
justify-content: center; /* Center align */
background: #f5f5f5;
}

#arte-t6-t.hd-layout-two-column:not(.hd-layout-list) .postcard_thumbnail img {
width: 100%;
height: 100%;
max-width: 100%;
object-fit: cover;
object-position: center;
border-radius: 5px;
}

/* Two column + List: use list thumbnail styles */
#arte-t6-t.hd-layout-two-column.hd-layout-list .postcard_thumbnail {
flex: 0 0 200px !important;
width: 200px !important;
max-width: 200px !important;
height: auto !important;
min-height: 150px;
margin-right: 15px;
margin-bottom: 0;
position: relative;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
background: #f5f5f5;
}

#arte-t6-t.hd-layout-two-column.hd-layout-list .postcard_thumbnail img {
width: 100%;
height: auto;
min-height: 150px;
max-width: 100%;
object-fit: cover;
object-position: center;
border-radius: 5px;
}

/* Center small images - detected via JavaScript */
#arte-t6-t.hd-layout-two-column .postcard_thumbnail img.small-image {
object-fit: contain;
object-position: center;
}

/* Card layout: image alignment */
.hd-layout-card .postcard_thumbnail,
.postcard--card-style .postcard_thumbnail {
position: relative;
width: 100%;
height: 200px; /* Fixed height for consistent sizing */
overflow: hidden;
display: flex;
align-items: center;
justify-content: center; /* Center align */
background: #f5f5f5;
}

/* Card layout: content alignment */
.hd-layout-card .postcard_content,
.postcard--card-style .postcard_content {
width: 100%;
text-align: left !important; /* Text left aligned */
padding: 20px; /* Increased desktop padding */
box-sizing: border-box;
}

.hd-layout-card .postcard_thumbnail img,
.postcard--card-style .postcard_thumbnail img {
width: 100%;
height: 100%;
max-width: 100%;
object-fit: cover;
object-position: center;
border-radius: 5px;
aspect-ratio: 16/9; /* Enforce desktop ratio */
}

/* 99. Mobile Optimizations for Latest Articles */
@media (max-width: 767px) {
    .hd-layout-card .postcard_thumbnail img,
    .postcard--card-style .postcard_thumbnail img {
        aspect-ratio: 3/2; /* Mobile ratio */
    }
    .hd-layout-card .postcard_content,
    .postcard--card-style .postcard_content {
        padding: 15px !important;
    }
    .postcard_title h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
}

/* Center small images in card layout */
.hd-layout-card .postcard_thumbnail img.small-image,
.postcard--card-style .postcard_thumbnail img.small-image {
object-fit: contain;
object-position: center;
}

/* Two column: title should span full width */
.tab-wrap .tab-group .tab.is-active {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
}

.tab-wrap .tab-group .tab.is-active h3 {
margin: 0;
display: flex;
align-items: center;
}

.tab-wrap .tab-group .tab.is-active .tab-header-link {
margin-left: auto;
}

/* Latest Articles: More Link Button Styling - Improved */
.main-layout-more-link,
.tab-header-link.main-layout-more-link,
.main-layout-more-button {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
gap: 6px !important;
padding: 8px 18px !important;
font-size: 14px !important;
font-weight: 500 !important;
text-decoration: none !important;
color: #2271b1 !important;
background-color: transparent !important;
border: 1.5px solid #2271b1 !important;
border-radius: 6px !important;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
cursor: pointer !important;
box-shadow: none !important;
white-space: nowrap !important;
}

.main-layout-more-link:hover,
.tab-header-link.main-layout-more-link:hover,
.main-layout-more-button:hover {
background-color: var(--more-btn-color, #2271b1) !important;
border-color: var(--more-btn-color, #2271b1) !important;
color: #fff !important;
transform: translateY(-1px) !important;
box-shadow: 0 2px 8px rgba(34, 113, 177, 0.25) !important;
}

/* Main Layout Header Improvements */
.main-layout-header {
/* border-bottom: 2px solid #e5e5e5 !important;*/
}

.main-layout-title {
font-size: 1.5rem !important;
font-weight: 600 !important;
color: #333 !important;
letter-spacing: -0.02em !important;
}

.main-layout-more-link:active,
.tab-header-link.main-layout-more-link:active,
.main-layout-more-button:active {
transform: translateY(0) !important;
box-shadow: none !important;
}

.main-layout-more-link .more-link-text,
.tab-header-link.main-layout-more-link .more-link-text,
.main-layout-more-button .more-link-text {
display: inline-block;
}

.main-layout-more-link .more-link-arrow,
.tab-header-link.main-layout-more-link .more-link-arrow,
.main-layout-more-button .more-link-arrow {
display: inline-block !important;
width: auto !important;
height: auto !important;
font-size: 14px !important;
font-weight: normal !important;
line-height: 1 !important;
background: none !important;
color: inherit !important;
box-shadow: none !important;
border-radius: 0 !important;
transform: none !important;
margin-left: 2px !important;
}

.main-layout-more-link:hover .more-link-arrow,
.tab-header-link.main-layout-more-link:hover .more-link-arrow,
.main-layout-more-button:hover .more-link-arrow {
transform: none !important;
background: none !important;
box-shadow: none !important;
}

/* Remove previous pseudo-element arrow */
.main-layout-more-button .more-link-arrow::before {
content: none !important;
}

/* Remove animation */
.main-layout-more-button:hover .more-link-arrow::before {
animation: none !important;
}

@media (max-width: 767px) {
#arte-t6-t.hd-layout-two-column {
grid-template-columns: 1fr;
}
}

/* =============================================================================
   Latest Articles: Responsive Layout Settings (Desktop/Tablet/Mobile)
   ============================================================================= */

/* Desktop Layout Override (≥1025px) */
@media (min-width: 1025px) {
#arte-t6-t[data-layout-desktop="list"] {
/* List layout for desktop */
}

#arte-t6-t[data-layout-desktop="grid"] {
display: grid !important;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
gap: 20px !important;
}

#arte-t6-t[data-layout-desktop="masonry"] {
column-count: 3 !important;
column-gap: 20px !important;
}

#arte-t6-t[data-layout-desktop="card"] {
display: grid !important;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
gap: 20px !important;
}
}

/* Tablet Layout Override (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
#arte-t6-t[data-layout-tablet="list"] {
/* List layout for tablet */
}

#arte-t6-t[data-layout-tablet="grid"] {
display: grid !important;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
gap: 15px !important;
}

#arte-t6-t[data-layout-tablet="masonry"] {
column-count: 2 !important;
column-gap: 15px !important;
}

#arte-t6-t[data-layout-tablet="card"] {
display: grid !important;
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
gap: 15px !important;
}

/* Tablet List: Thumbnail */
.hd-layout-list .postcard_thumbnail {
flex: 0 0 180px;
width: 180px;
max-width: 180px;
min-height: 120px;
}

/* Tablet Content padding */
.postcard_content {
padding: 18px;
}

/* Tablet Title */
.postcard_title h3 {
font-size: 1.05rem;
margin-bottom: 10px;
}
}

/* Mobile Layout Override (≤767px) */
@media (max-width: 767px) {
#arte-t6-t[data-layout-mobile="list"] {
/* List layout for mobile */
}

#arte-t6-t[data-layout-mobile="grid"] {
display: grid !important;
grid-template-columns: 1fr !important;
gap: 15px !important;
}

#arte-t6-t[data-layout-mobile="masonry"] {
column-count: 1 !important;
column-gap: 15px !important;
}

#arte-t6-t[data-layout-mobile="card"] {
display: grid !important;
grid-template-columns: 1fr !important;
gap: 15px !important;
}
}
.hd-layout-grid .postcard.ex.hd-grid-item {
background: #fff;
border: 1px solid #eee;
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0,0,0,0.05);
overflow: hidden;
transition: transform 0.2s;
/*height: 100%;*/
display: flex;
flex-direction: column;
}
.hd-layout-grid .postcard.ex.hd-grid-item:hover {
transform: translateY(-5px);
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
/* Grid layout: image container */
.hd-layout-grid .postcard_thumbnail {
position: relative;
width: 100%;
height: 200px;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center; /* Center align */
background: #f5f5f5;
}

/* Ensure images fill width */
.hd-layout-grid .postcard_thumbnail img {
width: 100%;
height: 100%;
max-width: 100%;
object-fit: cover;
object-position: center;
}

/* Center small images in grid layout */
.hd-layout-grid .postcard_thumbnail img.small-image {
object-fit: contain;
object-position: center;
}
.hd-layout-grid .postcard_content {
padding: 15px;
flex: 1;
display: flex;
flex-direction: column;
text-align: left; /* Text left aligned */
width: 100%;
box-sizing: border-box;
}
.hd-layout-grid .postcard_title h3 {
font-size: 1.1em;
margin-top: 0;
}
.hd-layout-grid .postcard_meta {
margin-top: auto;
font-size: 0.85em;
color: #999;
text-align: left !important; /* Force left align */
width: 100%;
box-sizing: border-box;
}

/* Latest Articles: List Style */
.hd-layout-list .postcard.ex {
display: flex !important; /* Force flex layout for list style */
margin-bottom: 20px;
background: #fff;
/* border-bottom: 1px solid #f0f0f0; - Removed per user request */
width: 100%;
box-sizing: border-box;
max-width: 100%;
flex-direction: row; /* Ensure horizontal layout */
}

/* Ensure image/text gap applies to inner flex container */
.hd-layout-list .postcard.ex > a {
display: flex;
gap: 20px;
align-items: stretch;
width: 100%;
}

/* Latest Articles (Homepage) - Modern spacing */
#arte-t6-t.hd-layout-list .postcard.ex {
gap: 20px;
align-items: stretch;
margin-bottom: 20px;
padding: 0px;
}

/* List style: override any card/grid styles */
.hd-layout-list .postcard.ex.hd-split-item {
display: flex !important;
flex-direction: row !important;
background: #fff;
border: none;
border-radius: 0;
box-shadow: none;
padding: 0 0 20px 0;
}

/* List layout: content alignment */
.hd-layout-list .postcard_content {
flex: 1;
min-width: 0;
text-align: left ; /* Force left align */
padding: 0 15px;
box-sizing: border-box;
width: 100%;
max-width: 100%;
display: flex ;
flex-direction: column ;
}

/* Latest Articles (Homepage) - Typography + spacing */
#arte-t6-t.hd-layout-list .postcard_content {
padding: 8px 24px 8px 0px;
display: flex ;
flex-direction: column ;
justify-content: center ;
}

#arte-t6-t.hd-layout-list .postcard_thumbnail {
margin-right: 0;
}

#arte-t6-t.hd-layout-list .postcard_title h3 {
font-size: 1.15rem;
line-height: 1.55;
margin-bottom: 12px;
}

#arte-t6-t.hd-layout-list .postcard_excerpt {
font-size: 1rem;
line-height: 1.65;
}

#arte-t6-t.hd-layout-list .postcard_meta {
font-size: 0.9rem;
}

/* List layout with split item: ensure proper thumbnail sizing */
.hd-layout-list .postcard.ex.hd-split-item .postcard_thumbnail {
flex: 0 0 200px !important;
width: 200px !important;
max-width: 200px !important;
height: auto !important;
min-height: 150px;
margin-right: 15px;
margin-bottom: 0;
}

.hd-layout-list .postcard.ex.hd-split-item .postcard_thumbnail img {
width: 100%;
height: auto;
min-height: 150px;
object-fit: cover;
}
.hd-layout-list .postcard_thumbnail {
flex: 0 0 200px;
width: 200px;
max-width: 200px;
margin-right: 15px;
position: relative;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center; /* Center align by default */
background: #f5f5f5;
height: auto;
min-height: 180px;
}

#arte-t6-t.hd-layout-list .postcard_thumbnail,
#arte-t6-t.hd-layout-list .postcard_thumbnail img {
border-radius: 0;
}

.hd-layout-list .postcard_thumbnail img {
border-radius: 5px;
width: 100%;
height: auto;
min-height: 180px;
max-width: 100%;
object-fit: cover;
object-position: center;
}

/* Center small images in list layout */
.hd-layout-list .postcard_thumbnail img.small-image {
object-fit: contain;
object-position: center;
}

/* Two column split item: image alignment */
.hd-split-item {
width: 100%;
box-sizing: border-box;
}

.hd-split-item .postcard_thumbnail {
position: relative;
width: 100%;
min-height: 200px;
height: 200px; /* Fixed height for consistent sizing */
overflow: hidden;
display: flex;
align-items: center;
justify-content: center; /* Center align */
background: #f5f5f5;
}

/* Split item: content alignment */
.hd-split-item .postcard_content {
width: 100%;
text-align: left; /* Text left aligned */
padding: 15px;
box-sizing: border-box;
}

.hd-split-item .postcard_thumbnail img {
width: 100%;
height: 100%;
max-width: 100%;
object-fit: cover;
object-position: center;
border-radius: 5px;
}

/* Center small images in split item */
.hd-split-item .postcard_thumbnail img.small-image {
object-fit: contain;
object-position: center;
}
@media (max-width: 767px) {
/* 列表模式 - 手機版維持左圖右文布局 */
.hd-layout-list .postcard.ex,
.hd-layout-list .postcard.ex > a {
display: flex;
flex-direction: row;
}
.hd-layout-list .postcard_thumbnail {
flex: 0 0 200px;
width: 200px;
max-width: 200px;
margin-right: 15px;
margin-bottom: 0;
min-height: 180px;
height: 180px;
}
.hd-layout-list .postcard_thumbnail img {
width: 100%;
height: 100% !important;
object-fit: cover;
display: block;
}
.hd-layout-list .postcard_content {
flex: 1;
min-width: 0;
}
.hd-layout-list .postcard_title h3 {
font-size: 0.95em;
line-height: 1.4;
}
.hd-layout-list .postcard_meta {
font-size: 0.8em;
}
}

/* Latest Articles (Homepage) - Mobile layout: reduce cramped text */
@media (max-width: 767px) {
#arte-t6-t.hd-layout-list .postcard.ex,
#arte-t6-t.hd-layout-list .postcard.ex > a {
flex-direction: row;
gap: 20px !important;
align-items: stretch !important;
height: 150px !important;
min-height: 150px !important;
}
#arte-t6-t.hd-layout-list .postcard_thumbnail {
flex: 0 0 150px !important;
width: 150px !important;
max-width: 150px !important;
height: 150px !important;
min-height: 150px !important;
margin-right: 0;
margin-bottom: 0;
}
#arte-t6-t.hd-layout-list .postcard_thumbnail img {
width: 100%;
height: 100% !important;
object-fit: cover;
display: block;
}
#arte-t6-t.hd-layout-list .postcard_content {
padding: 12px 20px 9px 0 !important;
width: 100% !important;
flex-direction: column !important;
justify-content: flex-start;
height: 150px !important;
}
#arte-t6-t.hd-layout-list .postcard_excerpt,
#arte-t6-t.hd-layout-list .postcard_meta {
display: none !important;
}
#arte-t6-t.hd-layout-list .postcard_title h3 {
font-size: 1.15rem;
line-height: 1.55;
}
}

/* Item Layout: Right Image */
.hd-layout-list .postcard--right-image > a,
.postcard--right-image > a {
display: flex;
flex-direction: row-reverse !important;
gap: 20px;
}

.hd-layout-list .postcard--right-image .postcard_thumbnail,
.postcard--right-image .postcard_thumbnail {
margin-right: 0 !important;
margin-left: 0;
flex: 0 0 200px;
}

.hd-layout-list .postcard--right-image .postcard_content,
.postcard--right-image .postcard_content {
padding-left: 0 !important;
padding-right: 15px !important;
}

/* Item Layout: Top Image */
.postcard--top-image > a {
flex-direction: column !important;
}

.postcard--top-image .postcard_thumbnail {
width: 100% !important;
max-width: 100% !important;
flex: 0 0 auto !important;
height: 200px !important;
margin-right: 0 !important;
margin-bottom: 15px !important;
}

.postcard--top-image .postcard_content {
padding: 0 15px 15px 15px !important;
width: 100%;
}

@media (max-width: 767px) {
/* On mobile, adjust layouts if needed, but often top-image is good for mobile */
.postcard--right-image > a {
/* Keep right image on mobile? Or stack? */
/* If user wants responsive, maybe stack */
/* But for now preserving structure requested */
}
}


.hd-layout-list .postcard--right-image .postcard_thumbnail {
margin-right: 0;
margin-left: 20px;
justify-content: center; /* Center align */
}

.hd-layout-list .postcard--right-image .postcard_thumbnail img {
object-position: center;
}

@media (max-width: 767px) {
.hd-layout-list .postcard--right-image,
.hd-layout-list .postcard--right-image > a {
flex-direction: row-reverse;
}
.hd-layout-list .postcard--right-image .postcard_thumbnail {
margin-right: 0;
margin-left: 12px;
}
}

/* Card Style Modifier for Latest Articles */
/* Only apply card styles when NOT in list layout */
.postcard--card-style:not(.hd-layout-list .postcard.ex) {
background: #fff;
border: 1px solid #eee;
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0,0,0,0.05);
padding: 15px !important;
margin-bottom: 20px;
}

.postcard--card-style:not(.hd-layout-list .postcard.ex):hover {
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* List layout: override card styles */
.hd-layout-list .postcard.ex.postcard--card-style {
background: #fff !important;
border: none !important;
border-radius: 0 !important;
box-shadow: none !important;
padding: 0 0 20px 0 !important;
margin-bottom: 20px;
}

/* Block Titles */
.feature-block-title, .main-layout-title, .widget-title {
font-size: 1.5rem !important;
font-weight: bold !important;
margin-bottom: 20px;
display: flex;
align-items: center;
}
.feature-block-title i, .main-layout-title i, .widget-title i {
margin-right: 10px;
}

/* Ensure title spans full width in grid container */
.hd-layout-grid .main-layout-title,
.hd-layout-grid .sticky-post {
grid-column: 1 / -1;
}

/* Fix sticky post container in grid */
.hd-layout-grid .sticky-post {
display: flex; /* Or block depending on design */
margin-bottom: 20px;
background: #fff;
border: 1px solid #ffd700; /* Gold border for sticky */
padding: 15px;
}

/* Latest Articles: Masonry Style */
#arte-t6-t.hd-layout-masonry {
column-count: 3;
column-gap: 20px;
display: block; /* Override default if needed */
}

#arte-t6-t.hd-layout-masonry .hd-masonry-item {
break-inside: avoid;
margin-bottom: 20px;
background: #fff;
border: 1px solid #eee;
border-radius: 8px;
overflow: hidden;
/* Use flex for content alignment inside card */
display: flex;
flex-direction: column;
}

#arte-t6-t.hd-layout-masonry .postcard_thumbnail {
position: relative;
width: 100%;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center; /* Center align */
background: #f5f5f5;
}

#arte-t6-t.hd-layout-masonry .postcard_thumbnail img {
width: 100%;
height: auto;
max-width: 100%;
object-fit: cover;
object-position: center;
display: block;
}

/* Center small images in masonry layout */
#arte-t6-t.hd-layout-masonry .postcard_thumbnail img.small-image {
object-fit: contain;
object-position: center;
}

#arte-t6-t.hd-layout-masonry .postcard_content {
padding: 15px;
text-align: left !important; /* Text left aligned */
width: 100%;
box-sizing: border-box;
}

#arte-t6-t.hd-layout-masonry .main-layout-title,
#arte-t6-t.hd-layout-masonry .sticky-post {
column-span: all;
margin-bottom: 20px;
width: 100%;
}

@media (max-width: 900px) {
#arte-t6-t.hd-layout-masonry {
column-count: 2;
}
}

@media (max-width: 600px) {
#arte-t6-t.hd-layout-masonry {
column-count: 1;
}
}

/* Excerpt Styling */
.postcard_excerpt {
color: #333 !important; /* Force override link color */
text-align: left !important; /* Force left align */
/*margin-top: 10px;*/
font-size: 0.95em;
line-height: 1.5;
text-decoration: none !important; /* Remove underline */
width: 100%;
box-sizing: border-box;
}
/* Ensure link doesn't underline the excerpt on hover */
.postcard:hover .postcard_excerpt {
text-decoration: none;
}

/* Line clamp for title and excerpt */
.postcard_title {
text-align: left !important; /* Force left align */
width: 100%;
box-sizing: border-box;
}

.postcard_title h3 {
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
line-height: 1.4;
max-height: 2.8em; /* Fallback */
text-align: left !important; /* Force left align */
margin: 0 0 12px 0; /* Updated margin-bottom */
}

.postcard_excerpt {
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}

/* ============================================
   Enhanced RWD (Responsive Web Design) Rules
   ============================================ */

/* Tablet Portrait (768px - 991px) */
@media (max-width: 991px) {
.hd-layout-grid {
grid-template-columns: repeat(2, 1fr);
}

#arte-t6-t.hd-layout-masonry {
column-count: 2;
}

/* NOTE: category-cards-grid layout-specific rules are in lines 73-93 */
/* Do not override here with general rules */

.main-layout-wrapper {
padding-left: 10px;
padding-right: 10px;
}

/* Tabs with sidebar - stack on tablet */
.tabs-with-sidebar-container {
flex-direction: column;
}
.tabs-with-sidebar-container .tabs-section {
flex: 1 1 100%;
max-width: 100%;
}
.tabs-with-sidebar-container .latest-section {
flex: 1 1 100%;
max-width: 100%;
}
}

/* Mobile Landscape (576px - 767px) */
@media (max-width: 767px) {
/* NOTE: hd-layout-list mobile styles are consolidated above (lines 216-248) */

.feature-block-title, .main-layout-title {
font-size: 1.25rem;
}

/* NOTE: category-cards-grid mobile rules are in lines 82-93 (layout-specific) */
/* Only override auto layout here */
.category-cards-block.layout-auto .category-cards-grid {
grid-template-columns: 1fr;
gap: 15px;
}
}

/* Mobile Portrait (< 576px) */
@media (max-width: 575px) {
.hd-layout-grid {
grid-template-columns: 1fr;
gap: 15px;
}

#arte-t6-t.hd-layout-masonry {
column-count: 1;
}

.hd-layout-grid .postcard_thumbnail img {
height: 180px;
}

.postcard_title h3 {
font-size: 1em;
}

.postcard_excerpt {
font-size: 0.9em;
-webkit-line-clamp: 2;
}

.main-layout-wrapper {
padding-left: 8px;
padding-right: 8px;
}

/* Pagination buttons mobile sizing */
.hd-load-more-btn {
width: 100%;
padding: 12px 20px;
font-size: 1em;
}
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
.hd-layout-grid .postcard.ex.hd-grid-item:hover {
transform: none;
box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
}

/* =============================================================================
   New Layout Styles: Latest Articles
   ============================================================================= */

/* Style: Featured Grid */
.hd-layout-featured-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 20px;
}

.hd-layout-featured-grid .postcard:first-child {
grid-column: span 2;
display: flex;
flex-direction: column;
}

.hd-layout-featured-grid .postcard:first-child .postcard_thumbnail {
height: 400px;
width: 100%;
}

.hd-layout-featured-grid .postcard:first-child .postcard_title h3 {
font-size: 1.8rem;
margin-top: 15px;
}

.hd-layout-featured-grid .postcard:not(:first-child) {
background: #fff;
padding: 15px;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Style: Compact List */
.hd-layout-compact-list .postcard {
display: flex;
align-items: center;
padding: 8px 0;
border-bottom: 1px dashed #eee;
}

.hd-layout-compact-list .postcard_thumbnail {
flex: 0 0 60px !important;
width: 60px !important;
height: 60px !important;
border-radius: 4px;
margin-right: 15px !important;
}

.hd-layout-compact-list .postcard_content {
padding: 0 !important;
}

.hd-layout-compact-list .postcard_title h3 {
font-size: 0.95rem;
margin: 0;
line-height: 1.3;
}

.hd-layout-compact-list .postcard_excerpt {
display: none;
}

.hd-layout-compact-list .postcard_meta {
font-size: 0.8rem;
margin-top: 2px;
}

@media (max-width: 767px) {
.hd-layout-featured-grid {
grid-template-columns: 1fr;
}
.hd-layout-featured-grid .postcard:first-child {
grid-column: span 1;
}
.hd-layout-featured-grid .postcard:first-child .postcard_thumbnail {
height: 250px;
}
}
/* Style: Featured Grid */
.hd-layout-featured-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 20px;
}

.hd-layout-featured-grid .postcard:first-child {
grid-column: span 2;
display: flex;
flex-direction: column;
}

.hd-layout-featured-grid .postcard:first-child .postcard_thumbnail {
height: 400px;
width: 100%;
}

.hd-layout-featured-grid .postcard:first-child .postcard_title h3 {
font-size: 1.8rem;
margin-top: 15px;
}

.hd-layout-featured-grid .postcard:not(:first-child) {
background: #fff;
padding: 15px;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Style: Compact List */
.hd-layout-compact-list .postcard {
display: flex;
align-items: center;
padding: 8px 0;
border-bottom: 1px dashed #eee;
}

.hd-layout-compact-list .postcard_thumbnail {
flex: 0 0 60px !important;
width: 60px !important;
height: 60px !important;
border-radius: 4px;
margin-right: 15px !important;
}

.hd-layout-compact-list .postcard_content {
padding: 0 !important;
}

.hd-layout-compact-list .postcard_title h3 {
font-size: 0.95rem;
margin: 0;
line-height: 1.3;
}

.hd-layout-compact-list .postcard_excerpt {
display: none;
}

.hd-layout-compact-list .postcard_meta {
font-size: 0.8rem;
margin-top: 2px;
}

@media (max-width: 767px) {
.hd-layout-featured-grid {
grid-template-columns: 1fr;
}
.hd-layout-featured-grid .postcard:first-child {
grid-column: span 1;
}
.hd-layout-featured-grid .postcard:first-child .postcard_thumbnail {
height: 250px;
}
}
/* =============================================================================
   Elegant List Layout (Re-introduced & Optimized)
   ============================================================================= */
.hd-layout-elegant-list .postcard.ex {
    border-bottom: 1px solid #eee;
    padding: 25px 0;
    transition: all 0.3s ease;
}

.hd-layout-elegant-list .postcard.ex:last-child {
    border-bottom: none;
}

.hd-layout-elegant-list .postcard.ex:hover {
    background: #fafafa;
}

.hd-layout-elegant-list .postcard_content {
    padding-top: 5px;
}

.hd-layout-elegant-list .postcard_title h3 {
    font-size: 20px;
    font-weight: 600;
    color: #332d28;
    margin-bottom: 10px;
}

.hd-layout-elegant-list .postcard_excerpt {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
}

/* Category Tag Above Title */
.tag-above-title {
    margin-bottom: 12px;
}

.tag-above-title .hd-cat-tag {
    position: static;
    display: inline-block;
}

/* Elegant List Meta Styling */
.hd-layout-elegant-list .postcard_meta {
    margin-top: 15px;
    font-size: 13px;
    color: #9a9084;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 0.4px;
}

.hd-layout-elegant-list .postcard_meta .meta-tags {
    color: #a79e92;
}

@media (max-width: 767px) {
    .hd-layout-elegant-list .postcard.ex {
        padding: 20px 15px;
    }
    .hd-layout-elegant-list .postcard_title h3 {
        font-size: 18px;
    }
}
