* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Noto Sans Sinhala', sans-serif;
    background: #f8f9fa;
    color: #202124;
    line-height: 1.6;
}

.briefing-header {
    background: white;
    border-bottom: 1px solid #dadce0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    gap: 16px;
}

.header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    height: 32px;
    width: auto;
}

.header-search {
    flex: 1;
    max-width: 600px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: #f1f3f4;
    border-radius: 24px;
}

.search-icon {
    font-size: 20px;
    color: #5f6368;
    flex-shrink: 0;
}

.search-form-inline {
    flex: 1;
}

.briefing-search-input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 14px;
    color: #202124;
    background: transparent;
}

.briefing-search-input::placeholder {
    color: #5f6368;
}

.header-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.icon-btn:hover {
    background: #f1f3f4;
}

.icon-btn .material-icons {
    font-size: 20px;
    color: #5f6368;
}

.briefing-nav {
    display: flex;
    gap: 8px;
    padding: 0 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.briefing-nav::-webkit-scrollbar {
    display: none;
}

.briefing-nav-link {
    padding: 12px 16px;
    color: #5f6368;
    text-decoration: none;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.briefing-nav-link:hover,
.briefing-nav-link.active {
    color: #1a73e8;
    border-bottom-color: #1a73e8;
}

.briefing-main {
    min-height: calc(100vh - 200px);
}

.briefing-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px;
}

.briefing-hero {
    margin-bottom: 24px;
}

.briefing-title {
    font-size: 28px;
    font-weight: 400;
    color: #202124;
    margin-bottom: 4px;
}

.briefing-date {
    font-size: 14px;
    color: #5f6368;
}

.briefing-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
}

.briefing-main-col {
    min-width: 0;
}

.briefing-section {
    margin-bottom: 32px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-title {
    font-size: 18px;
    font-weight: 500;
    color: #202124;
}

.arrow-icon {
    font-size: 20px;
    color: #5f6368;
}

.story-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid #dadce0;
}

.story-card.story-featured {
    padding: 0;
    overflow: hidden;
}

.story-featured .story-content {
    display: block;
}

.story-featured .story-info {
    padding: 20px;
}

.story-image-large {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.story-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-content {
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.story-info {
    flex: 1;
    min-width: 0;
}

.story-source {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.source-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.source-name {
    font-size: 13px;
    color: #5f6368;
    font-weight: 500;
}

.story-title {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 12px;
}

.story-title a {
    color: #202124;
    text-decoration: none;
}

.story-title a:hover {
    text-decoration: underline;
}

.story-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #5f6368;
    margin: 12px 0;
}

.source-icon-sm {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.source-name-sm {
    font-size: 12px;
    color: #5f6368;
}

.story-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.story-time {
    font-size: 12px;
    color: #5f6368;
}

.story-image-thumb {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.story-image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-card-compact {
    background: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #dadce0;
}

.compact-content {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin: 8px 0;
}

.compact-text {
    flex: 1;
    min-width: 0;
}

.compact-title {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 8px;
}

.compact-title a {
    color: #202124;
    text-decoration: none;
}

.compact-title a:hover {
    text-decoration: underline;
}

.compact-excerpt {
    font-size: 13px;
    line-height: 1.5;
    color: #5f6368;
}

.compact-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.compact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.briefing-sidebar {
    position: sticky;
    top: 180px;
    height: fit-content;
}

.sidebar-section {
    background: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #dadce0;
}

.sidebar-card {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8eaed;
}

.sidebar-card:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.sidebar-source {
    font-size: 12px;
    color: #5f6368;
}

.sidebar-category {
    font-size: 12px;
    color: #1a73e8;
    background: #e8f0fe;
    padding: 2px 6px;
    border-radius: 4px;
}

.sidebar-title {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 8px;
}

.sidebar-title a {
    color: #202124;
    text-decoration: none;
}

.sidebar-title a:hover {
    text-decoration: underline;
}

.sidebar-image {
    width: 100%;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

.sidebar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-time {
    font-size: 12px;
    color: #5f6368;
}

.sidebar-card-mini {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8eaed;
}

.sidebar-card-mini:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.mini-content {
    display: flex;
    gap: 12px;
}

.mini-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.mini-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-info {
    flex: 1;
    min-width: 0;
}

.mini-source {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

.source-icon-xs {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.mini-source span {
    font-size: 11px;
    color: #5f6368;
}

.mini-title {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 4px;
}

.mini-title a {
    color: #202124;
    text-decoration: none;
}

.mini-title a:hover {
    text-decoration: underline;
}

.mini-time {
    font-size: 11px;
    color: #5f6368;
}

.article-full {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    padding: 32px;
}

.article-header {
    margin-bottom: 24px;
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
    font-size: 14px;
}

.article-breadcrumb a {
    color: #1a73e8;
    text-decoration: none;
}

.article-breadcrumb a:hover {
    text-decoration: underline;
}

.article-breadcrumb .material-icons {
    font-size: 18px;
    color: #5f6368;
}

.article-title {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 16px;
}

.article-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.article-source {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #5f6368;
}

.info-icon {
    font-size: 18px;
}

.separator {
    color: #dadce0;
}

.article-image-hero {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
}

.article-image-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #202124;
}

.article-body p {
    margin-bottom: 16px;
}

.article-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e8eaed;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1a73e8;
    text-decoration: none;
    font-size: 14px;
}

.back-link:hover {
    text-decoration: underline;
}

.search-results {
    max-width: 800px;
}

.search-title {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 8px;
}

.search-count {
    font-size: 14px;
    color: #5f6368;
    margin-bottom: 24px;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.result-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #dadce0;
    display: flex;
    gap: 16px;
}

.result-content {
    flex: 1;
    min-width: 0;
}

.result-category {
    font-size: 12px;
    color: #1a73e8;
}

.result-title {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    margin: 8px 0;
}

.result-title a {
    color: #202124;
    text-decoration: none;
}

.result-title a:hover {
    text-decoration: underline;
}

.result-excerpt {
    font-size: 14px;
    color: #5f6368;
    line-height: 1.6;
    margin-bottom: 8px;
}

.result-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #5f6368;
}

.result-image {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.briefing-footer {
    background: white;
    border-top: 1px solid #dadce0;
    padding: 24px;
    text-align: center;
    color: #5f6368;
    font-size: 14px;
}

@media (max-width: 1024px) {
    .briefing-layout {
        grid-template-columns: 1fr;
    }

    .briefing-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .briefing-container {
        padding: 16px;
    }

    .header-top,
    .header-search {
        padding: 8px 16px;
    }

    .briefing-nav {
        padding: 0 16px;
    }

    .article-full {
        padding: 20px;
    }

    .article-title {
        font-size: 24px;
    }

    .article-image-hero {
        height: 240px;
    }

    .story-image-large {
        height: 200px;
    }
}