/*
Theme Name: Credible Content Blog Theme
Theme URI: https://credible-content.com/blog
Author: Amrit Hallan
Author URI: https://credible-content.com
Description: Professional blog theme for Credible Content Blog
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: credible-content-blog
*/

/* Google Fonts are loaded in header.php */

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

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.15rem;
    color: #000000;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* General Link Styling */
a {
    color: #DC2626;
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
}

a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #DC2626;
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

a:hover {
    color: #B91C1C;
}

a:hover::after {
    background-color: #B91C1C;
}

/* Disable all hover effects for image links */
a:has(img)::after {
    display: none;
}

a:has(img) {
    transition: none;
}

a:has(img):hover {
    color: inherit;
}

/* Disable animated underline for navigation links */
nav a::after {
    display: none;
}

/* Disable animated underline for buttons */
.cta-button::after,
.testimonial-btn::after {
    display: none;
}

/* Header */
header {
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    position: relative;
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    width: 50px;
    height: 50px;
}

.logo-text {
    font-family: 'Aladin', cursive;
    font-size: 1.75rem;
    color: #000000;
    text-decoration: none;
}

.logo-text::after {
    display: none;
}

.logo-text:hover {
    color: #000000;
}

/* Blog-Specific Logo Styling */
.logo-slash {
    margin: 0 0.25rem;
    color: #000000;
}

.logo-blog {
    font-style: italic;
    transform: rotate(-5deg);
    display: inline-block;
    color: #DC2626;
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s;
}

nav a:hover {
    color: #666666;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: #000000;
    transition: all 0.3s ease;
    display: block;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.cta-button {
    background: #DC2626;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: box-shadow 0.3s, transform 0.3s;
}

.cta-button:hover {
    background: #DC2626;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background-color: #ffde59;
    background-size: 1400px 500px;
    background-position: center top;
    background-repeat: no-repeat;
    min-height: 650px;
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 100%;
}

.hero.single-hero {
    min-height: 500px;
}

.hero .container {
    width: 100%;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    padding: 6rem 0;
    width: 100%;
}

.single-hero .hero-content {
    padding: 4rem 0 2rem 0;
}

.hero-text {
    flex: 1;
    max-width: 650px;
    padding-right: 2rem;
}

.single-hero .hero-text {
    max-width: 70%;
    padding-right: 3rem;
}

.hero-text h1 {
    font-family: 'Noto Serif', serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #000000;
    line-height: 1.2;
}

.single-hero .hero-text h1 {
    font-size: 3rem;
}

.hero-text .tagline {
    font-family: 'Noto Serif', serif;
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 2.5rem;
    color: #1a1a1a;
}

.single-hero .hero-text .tagline {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero-text h2 {
    font-family: 'Noto Serif', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #000000;
    line-height: 1.3;
}

.hero-text .post-title {
    font-family: 'Noto Serif', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #000000;
    line-height: 1.3;
}

.hero-text p {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    color: #1a1a1a;
    line-height: 1.7;
}

.hero-text .post-excerpt {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    line-height: 1.7;
}

.hero-image {
    flex: 0 0 auto;
    text-align: right;
    position: relative;
}

.hero-image img {
    max-width: 350px;
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

/* Breadcrumbs */
.breadcrumbs {
    background: #F9FAFB;
    padding: 1rem 0;
    border-bottom: 1px solid #E5E7EB;
}

.breadcrumbs-inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #666666;
}

.breadcrumbs a {
    color: #DC2626;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs-separator {
    color: #999999;
}

/* Post Meta */
.post-meta {
    background: #F9FAFB;
    padding: 1rem 0;
    border-bottom: 1px solid #E5E7EB;
}

.post-meta-inner {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: #666666;
}

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

.meta-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.meta-item a {
    color: #DC2626;
    text-decoration: none;
}

.meta-item a:hover {
    text-decoration: underline;
}

/* Main Content Layout (Single Post) */
.content-area {
    padding: 3rem 0;
    background: white;
}

.content-wrapper {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.main-content {
    flex: 0 0 65%;
    max-width: 65%;
    min-width: 0;
    overflow: hidden;
}

.sidebar-area {
    flex: 0 0 35%;
    max-width: 35%;
}

/* Blog Posts List (index.php) */
.blog-posts-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.blog-post-item {
    background: #F9FAFB;
    padding: 2.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s;
}

.blog-post-item:hover {
    box-shadow: 0 8px 12px rgba(0,0,0,0.1);
}

.blog-post-item .post-title {
    font-family: 'Noto Serif', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.blog-post-item .post-title a {
    color: #000000;
    text-decoration: none;
}

.blog-post-item .post-title a::after {
    display: none;
}

.blog-post-item .post-title a:hover {
    color: #DC2626;
}

.post-meta-line {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: #666666;
    margin-bottom: 1.5rem;
}

.post-meta-line .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-meta-line .meta-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.meta-author {
    color: #666666;
}

.meta-date {
    color: #666666;
}

.meta-separator {
    color: #999999;
}

.meta-category a {
    color: #DC2626;
    text-decoration: none;
}

.meta-category a::after {
    display: none;
}

.meta-category a:hover {
    color: #B91C1C;
    text-decoration: underline;
}

.post-excerpt-text {
    color: #374151;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.read-more-btn {
    display: inline-block;
    color: #DC2626;
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    border: 2px solid #DC2626;
    border-radius: 0.375rem;
    transition: all 0.3s;
}

.read-more-btn::after {
    display: none;
}

.read-more-btn:hover {
    background: #DC2626;
    color: white;
}

/* Post Content Styling */
.post-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #374151;
    overflow: hidden;
    width: 100%;
}

.post-content * {
    max-width: 100%;
}

.post-content h2 {
    font-family: 'Noto Serif', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #000000;
}

.post-content h3 {
    font-family: 'Noto Serif', serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #000000;
}

.post-content h4 {
    font-family: 'Noto Serif', serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: #000000;
}

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

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

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content a {
    color: #DC2626;
    text-decoration: none;
}

.post-content a:hover {
    color: #B91C1C;
}

.post-content img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block;
    border-radius: 0.5rem;
    margin: 2rem 0;
}

.post-content figure {
    max-width: 100% !important;
    width: 100% !important;
    margin: 2rem 0;
}

.post-content figure img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block;
}

.post-content .wp-caption {
    max-width: 100% !important;
    width: 100% !important;
}

.post-content .wp-caption img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
}

.post-content .alignnone,
.post-content .aligncenter,
.post-content .alignleft,
.post-content .alignright {
    max-width: 100% !important;
}

.post-content .alignnone img,
.post-content .aligncenter img,
.post-content .alignleft img,
.post-content .alignright img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
}

.post-content blockquote {
    border-left: 4px solid #DC2626;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #666666;
}

.post-content code {
    background: #F3F4F6;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
}

.post-content pre {
    background: #1F2937;
    color: #F9FAFB;
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 2rem 0;
    max-width: 100%;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Latest Blog Posts Section */
.latest-posts {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #E5E7EB;
}

.latest-posts h2 {
    font-family: 'Noto Serif', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: #000000;
}

.latest-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.latest-post-card {
    background: #F9FAFB;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s;
}

.latest-post-card:hover {
    box-shadow: 0 10px 15px rgba(0,0,0,0.15);
}

.latest-post-content {
    padding: 1.5rem;
}

.latest-post-date {
    font-size: 0.875rem;
    color: #666666;
    margin-bottom: 0.5rem;
}

.latest-post-content h3 {
    font-family: 'Noto Serif', serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.latest-post-content h3 a {
    color: #000000;
    text-decoration: none;
}

.latest-post-content h3 a:hover {
    color: #DC2626;
}

.latest-post-excerpt {
    color: #374151;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
}

.latest-post-link {
    color: #DC2626;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
}

.latest-post-link:hover {
    color: #B91C1C;
}

/* Sidebar Widgets */
.widget {
    background: #F9FAFB;
    padding: 2rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.widget h3 {
    font-family: 'Noto Serif', serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #000000;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    margin-bottom: 0.75rem;
}

.widget ul li a {
    color: #DC2626;
    text-decoration: none;
    border-bottom: 1px dotted #DC2626;
    transition: color 0.3s;
    display: inline;
}

.widget ul li a::after {
    display: none;
}

.widget ul li a:hover {
    color: #B91C1C;
    border-bottom-color: #B91C1C;
}

.widget a {
    color: #DC2626;
    border-bottom: 1px dotted #DC2626;
    text-decoration: none;
}

.widget a::after {
    display: none;
}

.widget a:hover {
    color: #B91C1C;
    border-bottom-color: #B91C1C;
}

/* Sitemap Styles */
.sitemap-content {
    font-size: 1.15rem;
    line-height: 1.8;
}

.sitemap-category {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #E5E7EB;
}

.sitemap-category:last-child {
    border-bottom: none;
}

.category-heading {
    font-family: 'Noto Serif', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #000000;
}

.category-description {
    color: #666666;
    margin-bottom: 1rem;
    font-style: italic;
}

.sitemap-posts {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.sitemap-posts li {
    margin-bottom: 1.25rem;
    padding-left: 2rem;
    position: relative;
}

.sitemap-posts li:before {
    content: "◆";
    position: absolute;
    left: 0;
    color: #DC2626;
    font-size: 1.2rem;
}

.sitemap-posts li a {
    color: #DC2626;
    text-decoration: none;
    border-bottom: 1px dotted #DC2626;
}

.sitemap-posts li a::after {
    display: none;
}

.sitemap-posts li a:hover {
    color: #B91C1C;
    border-bottom-color: #B91C1C;
}

/* Pagination */
.pagination {
    margin-top: 3rem;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    padding: 0.5rem 1rem;
    background: #F9FAFB;
    color: #374151;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.3s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #DC2626;
    color: white;
}

.no-posts {
    text-align: center;
    padding: 3rem;
}

.no-posts h2 {
    font-family: 'Noto Serif', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #000000;
}

/* Footer */
footer {
    background: #000000;
    color: white;
    padding: 3rem 0;
}

.simple-footer {
    background: #F9FAFB;
    padding: 2rem 0;
}

.simple-footer .footer-bottom {
    border-top: none;
    padding-top: 0;
    color: #666666;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3,
.footer-column h4 {
    font-family: 'Noto Serif', serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-column p {
    color: #9CA3AF;
}

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

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: #DC2626;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #B91C1C;
}

.footer-column a {
    color: #DC2626;
}

.footer-column a:hover {
    color: #B91C1C;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #9CA3AF;
}

/* Mobile Sidebar in Footer */
.mobile-sidebar {
    display: none;
}

.mobile-sidebar .footer-bottom {
    display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .latest-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-wrapper {
        flex-direction: column;
    }
    
    .main-content,
    .sidebar-area {
        flex: 1;
        max-width: 100%;
    }
    
    .sidebar-area {
        margin-top: 2rem;
    }
    
    .hero {
        background-size: 100% auto;
        min-height: 500px;
    }
}

@media (max-width: 768px) {
    /* Fix header positioning for mobile */
    header {
        position: sticky;
    }
    
    .header-content {
        position: static;
    }
    
    /* Mobile Menu Button */
    .mobile-menu-btn {
        display: flex;
        position: relative;
        z-index: 1002;
    }
    
    /* Mobile Navigation */
    nav {
        display: flex;
        position: fixed;
        top: 82px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    nav.active {
        max-height: 400px;
        opacity: 1;
        visibility: visible;
    }
    
    nav a {
        padding: 0.75rem 0;
        border-bottom: 1px solid #E5E7EB;
    }
    
    nav a:last-child {
        border-bottom: none;
    }
    
    .cta-button {
        text-align: center;
        margin-top: 0.5rem;
    }
    
    .hero {
        background-size: 100% auto;
        background-position: center top;
        min-height: 600px;
    }
    
    .hero.single-hero {
        min-height: 400px;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 3rem 0;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .single-hero .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text h2,
    .hero-text .post-title {
        font-size: 1.75rem;
    }
    
    .hero-text .tagline {
        font-size: 1.25rem;
    }
    
    .single-hero .hero-text .tagline {
        font-size: 1.1rem;
    }
    
    .hero-text .post-excerpt {
        font-size: 1.1rem;
    }
    
    .hero-image {
        text-align: center;
    }
    
    .hero-image img {
        max-width: 300px;
    }
    
    .post-meta-inner {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .latest-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    /* Blog posts list mobile styling */
    .blog-post-item {
        padding: 1.5rem;
    }
    
    .blog-post-item .post-title {
        font-size: 1.5rem;
    }
    
    .post-meta-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}