/*
Theme Name: Tahseen Ashrafi Theme
Theme URI: https://newsoftheday.com
Author: Tahseen Ashrafi
Author URI: https://newsoftheday.com
Description: A beautiful black and white news theme for WordPress
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tahseen-theme
*/

@import url('https://fonts.googleapis.com/css2?family=Georgia:wght@400;700&family=Open+Sans:wght@400;600;700&display=swap');

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

html {
    font-size: 16px;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: #fff;
    color: #1a1a1a;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: #1a1a1a;
}

a:hover {
    opacity: 0.7;
}

.container-80 {
    width: 80%;
    margin: 0 auto;
    max-width: 1200px;
}

.container-100 {
    width: 100%;
}

header {
    background: #fff;
    border-bottom: 1px solid #000;
}

.top-header {
    background: #fff;
    padding: 1.25rem 0;
    text-align: center;
    border-bottom: 1px solid #ddd;
    position: relative;
}

.top-header .social-icons {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 12px;
}

.top-header .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #1a1a1a;
}

.top-header h1 {
    font-family: 'Georgia', serif;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.main-menu {
    background: #fff;
    padding: 0.75rem 0;
    position: relative;
    border-bottom: 1px solid #ddd;
}

.main-menu nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.main-menu nav ul li {
    position: relative;
}

.main-menu nav ul li a {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.main-menu nav ul li ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    display: none;
    flex-direction: column;
    min-width: 200px;
    z-index: 100;
    margin-top: 0;
}

.main-menu nav ul li:hover ul.sub-menu {
    display: flex;
}

.main-menu nav ul li ul.sub-menu li {
    margin: 0;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.main-menu nav ul li ul.sub-menu li:last-child {
    border-bottom: none;
}

.main-menu nav ul li ul.sub-menu li a {
    font-size: 0.9rem;
}

.mobile-menu-toggle {
    display: none;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    padding: 20px;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-close {
    text-align: right;
    font-size: 32px;
    cursor: pointer;
    margin-bottom: 20px;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu ul li {
    padding: 15px 0;
    border-bottom: 1px solid #000;
}

.mobile-menu ul li a {
    font-size: 18px;
}

.breaking-news {
    background: #fff;
    padding: 0.75rem 0;
    border-bottom: 1px solid #ddd;
}

.breaking-news-container {
    display: flex;
    align-items: center;
    height: auto;
}

.breaking-label {
    background: #1a1a1a;
    color: #fff;
    padding: 0.5rem 1rem;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    flex-shrink: 0;
    margin-right: 1.5rem;
}

.breaking-content {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    flex: 1;
}

.breaking-content a {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    padding-right: 2rem;
    display: inline-block;
    animation: marquee 25s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.three-column {
    display: flex;
    gap: 2rem;
    margin: 2rem auto;
}

.column-25 {
    width: 25%;
}

.column-50 {
    width: 50%;
}

.recent-news h2 {
    font-family: 'Georgia', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #1a1a1a;
    padding-bottom: 0.75rem;
}

.news-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item h3 {
    font-family: 'Georgia', serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.news-item h3 a {
    color: #1a1a1a;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 0;
}

.featured-post img {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.featured-post h3 {
    font-family: 'Georgia', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.featured-post h3 a {
    color: #1a1a1a;
}

.featured-post p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #555;
}

.author-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.author-info img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 0.75rem;
}

.author-info span {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8rem;
    color: #999;
}

.section-title {
    font-family: 'Georgia', serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 3rem 0 2rem 0;
    border-bottom: 2px solid #1a1a1a;
    padding-bottom: 0.75rem;
}

.three-posts {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.post-card {
    width: 33.33%;
}

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 0.75rem;
}

.post-card h3 {
    font-family: 'Georgia', serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.post-card h3 a {
    color: #1a1a1a;
}

.post-card p {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    color: #777;
    line-height: 1.5;
}

.two-column {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.column-60 {
    width: 60%;
}

.column-40 {
    width: 40%;
}

.sports-main img {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.sports-main h3 {
    font-family: 'Georgia', serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.sports-main h3 a {
    color: #1a1a1a;
}

.sports-main p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

.sports-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sports-side-item {
    display: flex;
    gap: 1rem;
}

.sports-side-item img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    flex-shrink: 0;
}

.sports-side-item h4 {
    font-family: 'Georgia', serif;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.sports-side-item h4 a {
    color: #1a1a1a;
}

.sports-side-item p {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8rem;
    color: #777;
}

.five-posts {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.post-small {
    width: 20%;
}

.post-small img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    margin-bottom: 0.75rem;
}

.post-small h4 {
    font-family: 'Georgia', serif;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.post-small h4 a {
    color: #1a1a1a;
}

.post-small p {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.75rem;
    color: #888;
    line-height: 1.4;
}

footer {
    background: #f5f5f5;
    padding: 3rem 0 0 0;
    margin-top: 3rem;
    border-top: 1px solid #ddd;
}

.footer-columns {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col {
    width: 33.33%;
}

.footer-col h3 {
    font-family: 'Georgia', serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.footer-col p {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    line-height: 1.7;
    color: #555;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.footer-col ul li:last-child {
    border-bottom: none;
}

.footer-col ul li a {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    color: #555;
}

.footer-col form input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border: 1px solid #ddd;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    background: #fff;
}

.footer-col form button {
    width: 100%;
    padding: 0.75rem;
    background: #1a1a1a;
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.footer-col form button:hover {
    background: #333;
}

.copyright {
    background: #1a1a1a;
    color: #fff;
    text-align: center;
    padding: 1.5rem 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8rem;
}

.archive-layout {
    display: flex;
    gap: 2rem;
    margin: 2rem auto;
}

.archive-main {
    width: 60%;
}

.archive-post {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.archive-post:last-child {
    border-bottom: none;
}

.archive-post img {
    width: 220px;
    height: 160px;
    object-fit: cover;
    flex-shrink: 0;
}

.archive-post-content {
    flex: 1;
}

.archive-post-content h2 {
    font-family: 'Georgia', serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.archive-post-content h2 a {
    color: #1a1a1a;
}

.archive-post-meta {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 0.75rem;
}

.archive-post-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 0.75rem;
}

.read-more {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #1a1a1a;
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.read-more:hover {
    background: #333;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
}

.pagination a:hover {
    background: #f5f5f5;
}

.pagination .current {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.sidebar {
    width: 40%;
}

.search-box {
    margin-bottom: 2rem;
}

.search-box input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
}

.search-box input::placeholder {
    color: #bbb;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section h3 {
    font-family: 'Georgia', serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border-bottom: 2px solid #1a1a1a;
    padding-bottom: 0.5rem;
    color: #1a1a1a;
}

.sidebar-section ul {
    list-style: none;
}

.sidebar-section ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-section ul li:last-child {
    border-bottom: none;
}

.sidebar-section ul li a {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    color: #555;
}

.single-post {
    margin-bottom: 2rem;
}

.single-post img {
    width: 100%;
    max-width: 849px;
    height: auto;
    margin: 2rem 0;
}

.single-post h1 {
    font-family: 'Georgia', serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.single-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ddd;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    color: #999;
}

.single-content {
    font-family: 'Georgia', serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.single-content p {
    margin-bottom: 1.5rem;
}

.single-content h2,
.single-content h3,
.single-content h4 {
    font-weight: 700;
    margin: 2rem 0 1rem 0;
    color: #1a1a1a;
}

.single-content h2 {
    font-size: 1.5rem;
}

.single-content h3 {
    font-size: 1.25rem;
}

.single-content h4 {
    font-size: 1.1rem;
}

.single-content blockquote {
    font-style: italic;
    padding: 1.5rem;
    border-left: 4px solid #1a1a1a;
    margin: 2rem 0;
    background: #f9f9f9;
    color: #555;
}

.related-posts {
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

.related-posts h3 {
    font-family: 'Georgia', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #1a1a1a;
    padding-bottom: 0.75rem;
}

.related-posts-grid {
    display: flex;
    gap: 1.5rem;
}

.related-post-item {
    width: 33.33%;
}

.related-post-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    margin-bottom: 0.75rem;
}

.related-post-item h4 {
    font-family: 'Georgia', serif;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.related-post-item h4 a {
    color: #1a1a1a;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #000;
    color: #fff;
    text-align: center;
    line-height: 50px;
    cursor: pointer;
    display: none;
    z-index: 999;
}

.back-to-top.show {
    display: block;
}

@media (max-width: 768px) {
    .container-80 {
        width: 95%;
    }

    .top-header .social-icons {
        position: static;
        margin-bottom: 10px;
    }

    .main-menu nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .three-column,
    .two-column,
    .three-posts,
    .five-posts,
    .footer-columns,
    .archive-layout {
        flex-direction: column;
    }

    .column-25,
    .column-50,
    .column-60,
    .column-40,
    .post-card,
    .post-small,
    .footer-col,
    .archive-main,
    .sidebar {
        width: 100%;
    }

    .archive-post {
        flex-direction: column;
    }

    .archive-post img {
        width: 100%;
    }

    .sports-side-item img {
        width: 80px;
        height: 80px;
    }
}
