/* Main Styles for Newspaper Pro Template */
:root {
    --primary-color: #2271b1;
    --secondary-color: #444;
    --light-gray: #f8f8f8;
    --dark-gray: #333;
    --text-color: #444;
    --border-color: #eee;
    --hover-color: #1a5a8e;
    --accent-color: #ff6b35;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--hover-color);
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark-gray);
    transition: color 0.3s ease;
}

h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* Top Bar Styles */
.top-bar {
    background-color: var(--dark-gray);
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
}

.date {
    margin-right: 20px;
}

.trending span {
    font-weight: 700;
    margin-right: 10px;
}

.trending a {
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
}

.trending a:hover {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.social-icons a {
    color: #fff;
    margin-left: 15px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.search-icon {
    margin-left: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-icon:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Header Styles */
.main-header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -1px;
    transition: all 0.3s ease;
}

.logo h1:hover {
    color: var(--primary-color);
}

.logo span {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.logo:hover span {
    color: var(--hover-color);
}

/* Navigation Styles */
.main-nav {
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu {
    display: flex;
    list-style: none;
}

.menu li {
    position: relative;
}

.menu li a {
    display: block;
    padding: 15px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.menu li a:hover {
    color: var(--primary-color);
    background-color: rgba(34, 113, 177, 0.1);
}

.menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.menu li a:hover::after {
    width: 80%;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Featured Section Styles */
.featured-section {
    padding: 30px 0;
    background-color: var(--light-gray);
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-gap: 20px;
}

.featured-large {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.featured-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.featured-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

.featured-double {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 15px;
}

.featured-post-left, .featured-post-right {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    height: 100%;
}

.featured-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-post-left img, .featured-post-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-item:hover img, 
.featured-post-left:hover img,
.featured-post-right:hover img {
    transform: scale(1.05);
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    color: #fff;
}

.featured-content h3 {
    margin-bottom: 10px;
}

.featured-content h3 a {
    color: #fff;
    font-size: 18px;
}

.featured-large .featured-content h3 a {
    font-size: 24px;
}

.featured-post-left .featured-content h3 a,
.featured-post-right .featured-content h3 a {
    font-size: 16px;
}

.featured-content a:hover {
    color: var(--primary-color);
}

.featured-content .post-meta {
    font-size: 12px;
}

.featured-content .post-meta span {
    margin-right: 15px;
}

/* Main Content Area */
.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 30px auto;
}

.content-area {
    flex: 1;
    min-width: 0;
}

/* Tab Styles */
.tabs-container {
    margin-bottom: 30px;
}

.tabs-nav {
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
}

.tabs-nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tabs-nav li {
    margin-right: 20px;
    padding: 10px 0;
    position: relative;
}

.tabs-nav li a {
    font-weight: 700;
    font-size: 16px;
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.tabs-nav li a:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.tabs-nav li.active a {
    color: var(--primary-color);
}

.tabs-nav li.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

/* Tab Content Layout */
.tab-content-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 30px;
}

.main-article {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.main-article img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.main-article:hover img {
    transform: scale(1.05);
}

.main-article h3 {
    margin: 15px 0 10px;
    font-size: 22px;
}

.main-article .post-excerpt {
    margin-top: 15px;
}

.category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 3px;
    text-transform: uppercase;
    z-index: 1;
    transition: all 0.3s ease;
}

.category-tag:hover {
    background-color: var(--hover-color);
    transform: scale(1.05);
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.list-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    grid-gap: 15px;
    align-items: center;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.list-item:hover {
    background-color: rgba(34, 113, 177, 0.05);
    transform: translateX(5px);
}

.list-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.list-item:hover img {
    transform: scale(1.05);
}

.list-content h4 {
    margin: 5px 0;
    font-size: 16px;
    line-height: 1.4;
}

.list-content .category-tag {
    position: static;
    display: inline-block;
    margin-bottom: 5px;
    font-size: 10px;
    padding: 3px 8px;
}

.list-content .post-meta {
    font-size: 12px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.post-item {
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.post-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

.post-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.post-item:hover img {
    transform: scale(1.05);
}

.post-item h3 {
    margin: 10px 0;
    font-size: 20px;
    line-height: 1.4;
}

.post-meta {
    color: #777;
    font-size: 14px;
    margin-bottom: 10px;
}

.post-meta span {
    margin-right: 15px;
}

.post-excerpt p {
    color: #555;
    line-height: 1.6;
}

/* Sidebar Styles */
.sidebar {
    padding: 20px;
    background-color: var(--light-gray);
    border-radius: 5px;
}

.widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.popular-posts .post-item {
    display: flex;
    margin-bottom: 15px;
}

.popular-posts .post-thumb {
    flex: 0 0 80px;
    margin-right: 15px;
}

.popular-posts h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.categories ul {
    list-style: none;
}

.categories li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.categories li:last-child {
    border-bottom: none;
}

/* Footer Styles */
.footer {
    background-color: var(--dark-gray);
    color: #fff;
    padding: 50px 0 20px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 30px;
    margin-bottom: 30px;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-widget h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    margin-bottom: 10px;
}

.footer-widget a {
    color: #ccc;
}

.footer-widget a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    font-size: 14px;
    color: #ccc;
}