new site
This commit is contained in:
@@ -0,0 +1,247 @@
|
||||
/* Card Layout Fixes v3 - CRITICAL FIX FOR DIRECTORY PAGES - Force Update 2025-08-08 */
|
||||
|
||||
/* CRITICAL: Force all article cards to display properly */
|
||||
body .articles-grid .article-card,
|
||||
body .articles-grid > .article-card,
|
||||
body .articles-grid a.article-card,
|
||||
.article-card {
|
||||
display: flex !important;
|
||||
flex-direction: column !important;
|
||||
min-height: 420px !important;
|
||||
height: 100% !important;
|
||||
background: var(--light-bg) !important;
|
||||
border: 2px solid rgba(255,107,53,0.3) !important;
|
||||
border-radius: 12px !important;
|
||||
overflow: hidden !important;
|
||||
transition: all 0.3s ease !important;
|
||||
text-decoration: none !important;
|
||||
position: relative !important;
|
||||
box-sizing: border-box !important;
|
||||
}
|
||||
|
||||
/* CRITICAL: Force grid to display properly */
|
||||
body .articles-grid,
|
||||
body .container .articles-grid,
|
||||
main .articles-grid,
|
||||
.articles-grid {
|
||||
display: grid !important;
|
||||
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)) !important;
|
||||
gap: 2rem !important;
|
||||
padding: 3rem 0 !important;
|
||||
width: 100% !important;
|
||||
box-sizing: border-box !important;
|
||||
}
|
||||
|
||||
/* Ensure cards stretch to fill grid cells */
|
||||
.articles-grid > .article-card {
|
||||
width: 100% !important;
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
||||
/* CRITICAL: Force image section to display */
|
||||
body .article-card .article-card-image,
|
||||
.article-card-image {
|
||||
width: 100% !important;
|
||||
height: 200px !important;
|
||||
min-height: 200px !important;
|
||||
max-height: 200px !important;
|
||||
background: linear-gradient(135deg, #FF6B35 0%, #FF8A50 100%) !important;
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
justify-content: center !important;
|
||||
position: relative !important;
|
||||
overflow: hidden !important;
|
||||
flex-shrink: 0 !important;
|
||||
}
|
||||
|
||||
/* CRITICAL: Force content wrapper to display */
|
||||
body .article-card .article-card-content,
|
||||
.article-card-content {
|
||||
padding: 1.8rem !important;
|
||||
flex: 1 !important;
|
||||
display: flex !important;
|
||||
flex-direction: column !important;
|
||||
box-sizing: border-box !important;
|
||||
}
|
||||
|
||||
/* Category section */
|
||||
.article-card-category {
|
||||
color: var(--primary-color) !important;
|
||||
font-size: 0.875rem !important;
|
||||
font-weight: 600 !important;
|
||||
text-transform: uppercase !important;
|
||||
letter-spacing: 1px !important;
|
||||
margin-bottom: 0.75rem !important;
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
gap: 0.5rem !important;
|
||||
flex-shrink: 0 !important;
|
||||
}
|
||||
|
||||
/* Title - prevent overflow */
|
||||
.article-card h3 {
|
||||
color: var(--white) !important;
|
||||
font-size: 1.35rem !important;
|
||||
margin-bottom: 1rem !important;
|
||||
line-height: 1.4 !important;
|
||||
font-weight: 600 !important;
|
||||
flex-shrink: 0 !important;
|
||||
overflow: hidden !important;
|
||||
display: -webkit-box !important;
|
||||
-webkit-line-clamp: 2 !important;
|
||||
-webkit-box-orient: vertical !important;
|
||||
}
|
||||
|
||||
/* Excerpt - flexible with line clamping */
|
||||
.article-card-excerpt {
|
||||
color: var(--text-color) !important;
|
||||
font-size: 0.95rem !important;
|
||||
line-height: 1.6 !important;
|
||||
margin-bottom: 1.5rem !important;
|
||||
flex: 1 !important;
|
||||
overflow: hidden !important;
|
||||
display: -webkit-box !important;
|
||||
-webkit-line-clamp: 3 !important;
|
||||
-webkit-box-orient: vertical !important;
|
||||
}
|
||||
|
||||
/* Meta section - always at bottom */
|
||||
.article-card-meta {
|
||||
display: flex !important;
|
||||
justify-content: space-between !important;
|
||||
align-items: center !important;
|
||||
color: var(--text-color) !important;
|
||||
font-size: 0.875rem !important;
|
||||
border-top: 1px solid rgba(255,107,53,0.2) !important;
|
||||
padding-top: 1rem !important;
|
||||
margin-top: auto !important;
|
||||
flex-shrink: 0 !important;
|
||||
}
|
||||
|
||||
/* Icon styling */
|
||||
.article-card-icon {
|
||||
font-size: 3.5rem !important;
|
||||
color: white !important;
|
||||
z-index: 1 !important;
|
||||
text-shadow: 0 2px 10px rgba(0,0,0,0.3) !important;
|
||||
}
|
||||
|
||||
/* Hover effects */
|
||||
.article-card:hover {
|
||||
transform: translateY(-8px) !important;
|
||||
border-color: var(--primary-color) !important;
|
||||
box-shadow: 0 15px 40px rgba(255,107,53,0.4) !important;
|
||||
}
|
||||
|
||||
/* Read more arrow animation */
|
||||
.article-card-readmore {
|
||||
color: var(--primary-color) !important;
|
||||
font-weight: 600 !important;
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
gap: 0.5rem !important;
|
||||
transition: all 0.3s ease !important;
|
||||
}
|
||||
|
||||
.article-card-readmore::after {
|
||||
content: '→' !important;
|
||||
transition: transform 0.3s ease !important;
|
||||
}
|
||||
|
||||
.article-card:hover .article-card-readmore::after {
|
||||
transform: translateX(5px) !important;
|
||||
}
|
||||
|
||||
/* Category badge styling */
|
||||
.category-badge {
|
||||
background: rgba(255,107,53,0.2) !important;
|
||||
padding: 0.25rem 0.75rem !important;
|
||||
border-radius: 15px !important;
|
||||
font-size: 0.75rem !important;
|
||||
border: 1px solid rgba(255,107,53,0.3) !important;
|
||||
}
|
||||
|
||||
/* Featured cards section */
|
||||
.featured-articles .articles-grid {
|
||||
margin-bottom: 0 !important;
|
||||
}
|
||||
|
||||
/* Category sections */
|
||||
.category-section {
|
||||
margin-bottom: 4rem !important;
|
||||
}
|
||||
|
||||
.category-section .articles-grid {
|
||||
padding-top: 2rem !important;
|
||||
}
|
||||
|
||||
/* Responsive adjustments */
|
||||
@media (max-width: 768px) {
|
||||
.articles-grid {
|
||||
grid-template-columns: 1fr !important;
|
||||
gap: 1.5rem !important;
|
||||
}
|
||||
|
||||
.article-card {
|
||||
min-height: 380px !important;
|
||||
}
|
||||
|
||||
.article-card h3 {
|
||||
font-size: 1.2rem !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Ensure all cards have consistent structure */
|
||||
.article-card > * {
|
||||
box-sizing: border-box !important;
|
||||
}
|
||||
|
||||
/* Fix for cut-off content */
|
||||
.article-card p {
|
||||
margin: 0 0 1rem 0 !important;
|
||||
}
|
||||
|
||||
/* Ensure proper link behavior */
|
||||
a.article-card,
|
||||
a.article-card:visited,
|
||||
a.article-card:hover,
|
||||
a.article-card:active {
|
||||
color: inherit !important;
|
||||
text-decoration: none !important;
|
||||
}
|
||||
|
||||
/* Animation for card entrance */
|
||||
@keyframes fadeInUp {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(20px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
.article-card {
|
||||
animation: fadeInUp 0.5s ease-out !important;
|
||||
animation-fill-mode: both !important;
|
||||
}
|
||||
|
||||
/* Stagger animation for cards */
|
||||
.article-card:nth-child(1) { animation-delay: 0.1s !important; }
|
||||
.article-card:nth-child(2) { animation-delay: 0.15s !important; }
|
||||
.article-card:nth-child(3) { animation-delay: 0.2s !important; }
|
||||
.article-card:nth-child(4) { animation-delay: 0.25s !important; }
|
||||
.article-card:nth-child(5) { animation-delay: 0.3s !important; }
|
||||
.article-card:nth-child(6) { animation-delay: 0.35s !important; }
|
||||
|
||||
/* Prevent layout shift during load */
|
||||
.articles-grid::before {
|
||||
content: '';
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Ensure smooth scrolling */
|
||||
html {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
Reference in New Issue
Block a user