/* * TelecomByte - Components Styles
 * Finalized: Date Top Bar, Dark Header, Hero Grid, and Card Layout
 */

/* --- 1. Top Bar (Date Display) --- */
.top-bar {
    background-color: #000000;
    color: #cccccc;
    padding: 0.5rem 0;
    font-size: 0.8rem;
    border-bottom: 1px solid #334155;
}

.top-bar .container {
    display: flex;
    justify-content: flex-end;
}

/* --- 2. Header & Navigation --- */
.site-header {
    background-color: #0F172A;
    color: #ffffff;
}

.header-main-row .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.site-logo img {
    max-width: 150px;
    height: auto;
    display: block;
}

.main-nav {
    flex: 0 1 auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 20px;
}

.nav-menu li a {
    color: #ffffff !important;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.nav-menu li a:hover {
    opacity: 0.7;
}

/* --- 3. Hero Grid (Top Section) --- */
.hero-grid-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

/* Large Hero Card */
.card-hero-large {
    position: relative;
    height: 450px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    display: flex;
    align-items: flex-end;
    padding: 40px;
    overflow: hidden;
}

.card-hero-large::before {
    content: '';
    position: absolute; top:0; left:0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 100%);
}

.card-hero-large .card-content { position: relative; z-index: 1; }

.card-hero-large h2 a {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    font-size: 2.2rem;
    line-height: 1.2;
}

.card-hero-large p {
    color: #f1f5f9;
    font-size: 1.1rem;
    margin-top: 15px;
}

/* Sidebar Hero Cards */
.hero-sidebar {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}

.card-hero-small {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.card-hero-small:hover {
    border-color: #0056D2;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.card-hero-small .img-wrapper {
    height: 120px;
    background-size: cover;
    background-position: center;
}

.card-hero-small .content { padding: 15px; }

.card-hero-small h3 {
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 0;
}

/* Badge Styling */
.badge {
    background: #0056D2;
    color: white;
    padding: 3px 8px;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
}

/* --- 4. News Feed Layout --- */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 0;
}

/* --- 5. Responsive Adjustments --- */
@media (max-width: 992px) {
    .hero-grid-wrapper {
        grid-template-columns: 1fr;
    }
    .header-main-row .container {
        flex-direction: column;
        gap: 15px;
    }
    .nav-menu {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}
/* Horizontal Card Layout */
.card-horizontal {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: transform 0.2s;
}

.card-horizontal:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Fixed width for the image to keep alignment clean */
.card-horizontal__media {
    flex: 0 0 280px; /* Width of the image */
}

.card-horizontal__media img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
}

.card-horizontal__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-horizontal__content h2 {
    font-size: 1.25rem;
    margin: 10px 0;
    line-height: 1.3;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .card-horizontal {
        flex-direction: column;
    }
    .card-horizontal__media {
        flex: 0 0 auto;
    }
}