/* assets/css/home.css */

.home-section {
    padding: 20px 0;
    background-color: transparent;
}

.home-section-container {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px;
}

.home-section-card {
    background-color: var(--bg-section);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.home-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(40, 167, 69, 0.3); /* Greenish border */
    padding-bottom: 10px;
}

.home-section-title {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.home-section-subtitle {
    margin: 5px 0 0 25px; /* Indent to match icon */
    color: var(--text-muted);
    font-size: 0.85rem;
}

.home-section-action {
    text-decoration: none;
    color: var(--text-main);
    font-weight: normal;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    border-radius: 4px;
    transition: all 0.2s;
    background: transparent;
}

.home-section-action:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Grids */
.home-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.home-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.home-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* Responsive Grids */
@media (max-width: 1400px) {
    .home-grid-5 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1200px) {
    .home-grid-5, .home-grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .home-grid-5, .home-grid-4, .home-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .home-grid-5, .home-grid-4, .home-grid-3 { grid-template-columns: 1fr; }
}

/* Platzhalter / Empty State Card */
.empty-state-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 30px 15px;
    text-align: center;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}
.empty-state-card h3 {
    font-size: 1rem;
    margin: 10px 0 5px 0;
    color: var(--text-light);
}
.empty-state-card p {
    font-size: 0.85rem;
    margin: 0;
}

/* News Home Card (Overlay Style) */
.news-home-card {
    background-color: var(--bg-section);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    height: 180px; /* Set fixed height since content is inside image */
    background-size: cover;
    background-position: center;
    padding: 12px;
}
.news-home-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.dark-mode .news-home-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.news-home-category-badge {
    background: var(--primary-color);
    padding: 4px 10px;
    border-radius: 4px;
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.news-home-card-bottom {
    margin-top: auto;
}

.news-home-card-bottom h3 {
    font-size: 0.95rem;
    line-height: 1.3;
    margin: 0 0 6px 0;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.7);
}

.news-home-card-bottom p {
    font-size: 0.75rem;
    color: #e2e8f0;
    margin: 0;
    display: flex;
    gap: 12px;
    align-items: center;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}
.news-home-card-bottom p i {
    opacity: 0.8;
}

/* Showcase Slider (Placeholder CSS for now) */
.hero-section {
    background: linear-gradient(90deg, rgba(88,28,135,1) 0%, rgba(21,128,61,1) 100%);
    padding: 40px 20px 80px 20px; /* Extra padding bottom for slider overlap */
    color: white;
    text-align: center;
    position: relative;
    margin-bottom: 120px; /* Space for the slider overlapping */
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.hero-btn {
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
}
.hero-btn-primary {
    background: transparent;
    border: 1px solid white;
    color: white;
}
.hero-btn-primary:hover {
    background: rgba(255,255,255,0.1);
}
.hero-btn-secondary {
    background: white;
    border: 1px solid white;
    color: #111;
}
.hero-btn-secondary:hover {
    background: #e2e8f0;
}

.hero-slider-overlap {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    position: absolute;
    bottom: -80px;
    left: 0;
    right: 0;
    padding: 0 20px;
}

.hero-slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.slider-arrow {
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Basic Tables for OSCdb on Home */
.oscdb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.oscdb-table th {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.75rem;
}
.oscdb-table td {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
}
.oscdb-table tr:last-child td {
    border-bottom: none;
}

