Template:IndexPage/styles.css
From AbhiprayaVedi
/* ===== Global ===== */
.index-container {
max-width: 1200px;
margin: 0 auto;
font-family: 'Noto Sans', 'Noto Sans Malayalam', sans-serif;
padding: 20px 15px;
}
.section-title {
font-size: 1.8em;
margin: 40px 0 20px;
padding-bottom: 8px;
border-bottom: 3px solid #3498db;
color: #2c3e50;
}
/* ===== Featured Section ===== */
.featured-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 25px;
}
.featured-card {
background: #fff;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 4px 12px rgba(0,0,0,0.08);
transition: transform 0.2s;
}
.featured-card:hover {
transform: translateY(-3px);
}
.featured-image {
height: 300px;
overflow: hidden;
}
.featured-image img {
width: 100%;
height: 100%;
object-fit: cover;
}
.featured-text {
padding: 20px;
}
.featured-text h3 {
margin: 0 0 8px;
font-size: 1.5em;
line-height: 1.3;
}
.featured-text h3 a {
color: #2c3e50;
text-decoration: none;
}
.featured-meta {
font-size: 0.9em;
color: #7f8c8d;
margin-bottom: 10px;
}
.featured-intro {
color: #555;
line-height: 1.6;
}
/* ===== Top Stories ===== */
.top-stories-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 25px;
}
.story-card {
background: #fff;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 3px 10px rgba(0,0,0,0.06);
transition: transform 0.2s;
}
.story-card:hover {
transform: translateY(-2px);
}
.story-image img {
width: 100%;
height: 180px;
object-fit: cover;
}
.story-card h4 {
margin: 15px 15px 5px;
font-size: 1.2em;
}
.story-card h4 a {
color: #2c3e50;
text-decoration: none;
}
.story-meta {
margin: 0 15px 15px;
font-size: 0.85em;
color: #7f8c8d;
}
.lang-badge {
display: inline-block;
background: #3498db;
color: #fff;
padding: 2px 6px;
border-radius: 4px;
font-size: 0.8em;
text-transform: uppercase;
}
/* ===== Recent Articles ===== */
.recent-list {
list-style: none;
padding: 0;
margin: 0;
}
.recent-item {
padding: 12px 0;
border-bottom: 1px solid #eee;
display: flex;
justify-content: space-between;
align-items: baseline;
flex-wrap: wrap;
}
.recent-title {
font-weight: bold;
}
.recent-title a {
color: #2c3e50;
text-decoration: none;
}
.recent-meta {
font-size: 0.85em;
color: #7f8c8d;
}
/* ===== Category Directory ===== */
.category-grid {
columns: 3;
column-gap: 30px;
margin-top: 15px;
}
.category-grid ul {
list-style: none;
padding: 0;
margin: 0;
}
.category-grid li {
break-inside: avoid;
margin-bottom: 8px;
}
.category-grid a {
text-decoration: none;
color: #2980b9;
}
/* ===== Responsive ===== */
@media (max-width: 768px) {
.featured-grid {
grid-template-columns: 1fr;
}
.top-stories-grid {
grid-template-columns: 1fr;
}
.category-grid {
columns: 2;
}
}