/*
Theme Name: Tax Journal
Theme URI: https://example.com
Description: A professional journal-style theme for tax and financial content
Version: 1.0
Author: Your Name
Author URI: https://example.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tax-journal
*/

/* ===================================
   RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #2c3e50;
    background-color: #f8f9fa;
}

/* ===================================
   TYPOGRAPHY
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: #1a2332;
    margin-bottom: 1.2rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1d4ed8;
}

/* ===================================
   HEADER
   =================================== */
.site-header {
    background-color: #1a2332;
    padding: 1.5rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    margin: 0;
    font-size: 1.8rem;
}

.site-title a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.site-description {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* ===================================
   NAVIGATION
   =================================== */
.main-navigation {
    position: relative;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: #e2e8f0;
    font-weight: 500;
    padding: 0.5rem 1rem;
    display: block;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    color: #ffffff;
    background-color: #2563eb;
}

/* Dropdown Menus */
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 99999;
    display: none;
    flex-direction: column;
    gap: 0;
    background-color: #1a2332;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 220px;
    padding: 0.5rem 0;
    border-radius: 4px;
    margin-top: 0.5rem;
}

.main-navigation ul ul li {
    width: 100%;
}

.main-navigation ul ul a {
    padding: 0.75rem 1.5rem;
    color: #e2e8f0;
    border-radius: 0;
}

.main-navigation ul ul a:hover {
    background-color: #2563eb;
    color: #ffffff;
}

.main-navigation li:hover > ul,
.main-navigation li.focus > ul {
    display: flex;
}

/* Sub-sub menus */
.main-navigation ul ul ul {
    left: 100%;
    top: 0;
    margin-top: 0;
    margin-left: 0.5rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.menu-toggle:hover {
    background-color: #1d4ed8;
}

.menu-toggle:focus {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}

/* ===================================
   MAIN CONTENT CONTAINER
   =================================== */
.site-content {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
}

/* ===================================
   POSTS & ARTICLES
   =================================== */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

article {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

article:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.post-thumbnail {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

article:hover .post-thumbnail img {
    transform: scale(1.05);
}

.entry-content {
    padding: 2.5rem;
}

.entry-header {
    margin-bottom: 1.5rem;
}

.entry-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.entry-title a {
    color: #1a2332;
    transition: color 0.3s ease;
}

.entry-title a:hover {
    color: #2563eb;
}

.entry-meta {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.entry-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.entry-summary {
    color: #475569;
    margin-bottom: 1.5rem;
}

.entry-summary p:last-child {
    margin-bottom: 0;
}

.read-more {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #2563eb;
    color: #ffffff;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: #1d4ed8;
    color: #ffffff;
}

/* ===================================
   SINGLE POST
   =================================== */
.single-post .entry-content {
    padding: 3rem;
}

.single-post .entry-content p {
    margin-bottom: 1.8rem;
}

.single-post .entry-content ul,
.single-post .entry-content ol {
    margin-bottom: 1.8rem;
    padding-left: 2rem;
}

.single-post .entry-content li {
    margin-bottom: 0.8rem;
}

.single-post .entry-content blockquote {
    border-left: 4px solid #2563eb;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background-color: #f1f5f9;
    font-style: italic;
    color: #475569;
}

/* ===================================
   SIDEBAR
   =================================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widget {
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
    color: #1a2332;
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: #475569;
    transition: color 0.3s ease;
}

.widget a:hover {
    color: #2563eb;
}

/* ===================================
   FOOTER
   =================================== */
.site-footer {
    background-color: #1a2332;
    color: #94a3b8;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widget h3 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.site-info {
    padding-top: 2rem;
    border-top: 1px solid #334155;
    font-size: 0.9rem;
}

/* ===================================
   PAGINATION
   =================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    padding: 0.75rem 1.25rem;
    background-color: #ffffff;
    border-radius: 4px;
    color: #475569;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pagination a:hover {
    background-color: #2563eb;
    color: #ffffff;
}

.pagination .current {
    background-color: #2563eb;
    color: #ffffff;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 968px) {
    .site-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sidebar {
        order: 2;
    }
    
    .header-container {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    /* Mobile Menu */
    .menu-toggle {
        display: block;
        align-self: flex-end;
        margin-top: -3rem;
    }
    
    .main-navigation {
        width: 100%;
    }
    
    .main-navigation ul {
        display: none;
        flex-direction: column;
        gap: 0;
        background-color: #0f172a;
        margin-top: 1rem;
        border-radius: 4px;
        padding: 0.5rem 0;
    }
    
    .main-navigation.toggled ul {
        display: flex;
    }
    
    .main-navigation li {
        width: 100%;
    }
    
    .main-navigation a {
        padding: 1rem 1.5rem;
        border-radius: 0;
    }
    
    /* Mobile Dropdowns */
    .main-navigation ul ul {
        position: static;
        box-shadow: none;
        background-color: #1e293b;
        margin-top: 0;
        padding: 0;
        border-radius: 0;
    }
    
    .main-navigation ul ul a {
        padding-left: 2.5rem;
    }
    
    .main-navigation ul ul ul a {
        padding-left: 3.5rem;
    }
    
    .main-navigation li:hover > ul,
    .main-navigation li.focus > ul {
        display: flex;
    }
    
    .post-thumbnail {
        height: 300px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

@media (max-width: 640px) {
    .header-container,
    .site-content,
    .footer-container {
        padding: 0 1rem;
    }
    
    .entry-content,
    .single-post .entry-content {
        padding: 1.5rem;
    }
    
    .post-thumbnail {
        height: 200px;
    }
    
    .entry-title {
        font-size: 1.5rem;
    }
    
    .menu-toggle {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Custom Comments Form */
/* Bizsutra custom comment form styling */
.bizsutra-comment-form {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 1.5rem;
  font-family: "Hind Siliguri", "Noto Sans Bengali", sans-serif;
}

.bizsutra-comment-form label {
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
  color: #111;
}

.bizsutra-comment-form input,
.bizsutra-comment-form textarea {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0.6rem;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.bizsutra-comment-form input:focus,
.bizsutra-comment-form textarea:focus {
  border-color: #0b74de;
  outline: none;
  box-shadow: 0 0 0 2px rgba(11,116,222,0.1);
}

.bizsutra-comment-submit {
  background: #0b74de;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease;
}
.bizsutra-comment-submit:hover {
  background: #094e9c;
}
