/*
Theme Name: Breezi Blog
Author: Noruzzaman
Author URI: https://profiles.wordpress.org/noruzzaman/
Description: Breezi Blog is a lightweight, fast WordPress block theme built for full site editing. Create modern blogs, business sites, or portfolios with flexible block patterns, clean design, and great performance.
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 7.4
Version: 1.0.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: breezi-blog
Tags: one-column, custom-colors, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, blog, portfolio, news
*/

/* =========================================
   1. Variables & Resets
   ========================================= */
:root {
    --color-orange: #ff9900;
    --color-orange-dark: #e68a00;
    --color-dark-blue: #0B2640;
    --color-text-body: #555E72;
    --color-text-heading: #111111;
    --color-white: #ffffff;
    --color-light-gray: #f9f9f9;
    --color-border: #eaeaea;

    --font-heading: 'Crimson Text', serif;
    --font-body: 'Open Sans', sans-serif;

    --spacing-section: 5rem;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

    --transition-base: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    font-family: var(--font-body);
    color: var(--color-text-body);
    line-height: 1.7;
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-heading);
    font-weight: 700;
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

/* =========================================
   2. Header Styling
   ========================================= */
/* Top Bar */
.site-top-bar {
    border-bottom: 1px solid var(--color-border);
    background-color: var(--color-white);
}

.site-top-bar .info-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--color-light-gray);
    border-radius: 50%;
    color: var(--color-orange);
    font-size: 14px;
    margin-right: 10px;
    transition: var(--transition-base);
}

.site-top-bar p:hover .info-circle {
    background: var(--color-orange);
    color: var(--color-white);
}

.site-top-bar p {
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-dark-blue);
    letter-spacing: 0.3px;
}

/* Nav Bar */
.site-nav-bar {
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 1000;
    background: linear-gradient(90deg, #ff9900 0%, #ffaa33 100%);
    /* Subtle gradient */
}

.site-nav-bar ul.wp-block-navigation__container {
    padding-left: 0;
    margin-bottom: 0;
}

.site-nav-bar .wp-block-navigation-item__content {
    color: var(--color-white) !important;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 14px;
    padding: 22px 18px;
    display: block;
    letter-spacing: 0.5px;
}

.site-nav-bar .wp-block-navigation-item:hover .wp-block-navigation-item__content,
.site-nav-bar .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content {
    background-color: rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu Fixes */
.wp-block-navigation__responsive-container {
    background-color: var(--color-orange) !important;
}

/* =========================================
   3. Content Styling
   ========================================= */
.wp-block-post-content {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero & Sections */
.wp-block-group.alignfull {
    margin-top: 0;
    margin-bottom: 0;
}

/* About Us / Features Patterns */
.wp-block-columns {
    margin-bottom: var(--spacing-section);
}

.wp-block-column {
    margin-bottom: 2rem;
}

/* Buttons */
.wp-block-button__link {
    background-color: var(--color-orange);
    color: var(--color-white);
    border-radius: var(--border-radius-lg);
    /* Softer corners */
    font-weight: 700;
    text-transform: uppercase;
    padding: 14px 28px;
    border: none;
    box-shadow: 0 4px 10px rgba(255, 153, 0, 0.25);
    /* Colored shadow */
    transition: var(--transition-base);
    letter-spacing: 0.5px;
}

.wp-block-button__link:hover {
    background-color: var(--color-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 153, 0, 0.35);
    color: var(--color-white) !important;
}

/* Cards/Posts Grid */
.wp-block-post-template {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.wp-block-post-template li {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.wp-block-post-template li:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

/* Featured Image in Cards */
.wp-block-post-featured-image {
    margin-bottom: 0;
}

.wp-block-post-featured-image img {
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.wp-block-post-template li:hover .wp-block-post-featured-image img {
    transform: scale(1.03);
    /* Subtle zoom */
}

/* Card Content */
.wp-block-post-template li .wp-block-group {
    padding: 24px;
}

.wp-block-post-title {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.wp-block-post-title a:hover {
    color: var(--color-orange);
}

.wp-block-post-date {
    color: #999;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

/* =========================================
   4. Footer Styling
   ========================================= */
.site-footer {
    background: linear-gradient(180deg, #2a2a2a 0%, #222222 100%);
    color: #bbb;
    font-size: 15px;
    border-top: 5px solid var(--color-orange);
}

.footer-widgets h5 {
    color: var(--color-white);
    font-family: var(--font-body);
    font-weight: 700;
    margin-bottom: 24px;
    text-transform: uppercase;
    font-size: 15px;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 12px;
}

.footer-widgets h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--color-orange);
}

.footer-widgets a {
    color: #bbb;
    text-decoration: none;
    display: inline-block;
}

.footer-widgets ul {
    list-style: none;
    padding: 0;
}

.footer-widgets li {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-widgets li:last-child {
    border-bottom: none;
}

/* List Hover Effects */
.footer-widgets li a {
    transition: var(--transition-base);
}

.footer-widgets li a:hover {
    color: var(--color-orange);
    transform: translateX(5px);
}

.footer-bottom {
    background-color: #151515;
    color: #777;
    font-size: 13px;
    padding-top: 30px !important;
    padding-bottom: 30px !important;
}

/* Footer Socials */
.footer-bottom .wp-block-social-links .wp-social-link {
    background-color: #333;
    color: #fff;
    border-radius: 50%;
    transition: var(--transition-base);
    transform: scale(0.9);
}

.footer-bottom .wp-block-social-links .wp-social-link:hover {
    background-color: var(--color-orange);
    transform: scale(1.1);
}

/* Accessibility */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: 20px 0;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* =========================================
   5. New Design Implementation
   ========================================= */
:root {
    --primary-color: #212D3A;
    --secondary-color: #f0b224;
    --text-color: #707070;
    --heading-color: #252525;
    --light-bg: #f8f9fa;
    --border-color: #e5e5e5;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 40px;
    --spacing-xxl: 64px;
    --spacing-xxxl: 96px;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Crimson Text', serif;
    color: var(--heading-color);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #d89c1a;
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Header Styles */
header#header {
    background: var(--primary-color);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
}

.main-navigation a:hover,
.main-navigation a.current {
    color: var(--secondary-color);
}

/* Header Top Bar with Contact Info */
.header-top {
    background: #1a222d;
    padding: 10px 0;
    color: #fff;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.company-name {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    font-family: 'Crimson Text', serif;
}

.contact-top {
    display: flex;
    gap: 20px;
}

.contact-top-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-top-item i {
    color: var(--secondary-color);
}

.contact-top-item a {
    color: #fff;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 250px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    max-height: 400px;
    overflow-y: auto;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--heading-color);
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.dropdown-menu a:hover {
    background: var(--light-bg);
    color: var(--secondary-color);
}

.nav-dropdown>a:after {
    content: ' ▾';
    font-size: 12px;
    margin-left: 5px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Footer Styles */
footer#footer {
    background: var(--primary-color);
    color: white;
    padding: 60px 0 30px;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.footer-column p,
.footer-column a {
    color: #d4d4d4;
    line-height: 1.6;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.contact-info i {
    color: var(--secondary-color);
    margin-top: 3px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #d4d4d4;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background: var(--primary-color);
        padding: 80px 30px 30px;
        transition: right 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }

    .main-navigation.active {
        right: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation li {
        width: 100%;
    }

    .main-navigation a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        display: none;
        max-height: none;
    }

    .nav-dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        color: #d4d4d4;
        border-color: rgba(255, 255, 255, 0.1);
        padding-left: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .contact-top {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Single Post Specifics */
.single-post-container {
    max-width: 900px;
    /* Optimal reading width */
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
}

.single-post-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.single-post-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.single-post-meta {
    color: #999;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.single-post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #444;
}

.single-post-content p {
    margin-bottom: 24px;
}

.single-post-content h2 {
    font-size: 2rem;
    margin-top: 40px;
    margin-bottom: 20px;
}

.single-post-content h3 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.single-post-content img {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.read-more::after {
    content: "\f061";
    font-family: "Font Awesome 6 Free";
    margin-left: 5px;
    font-weight: 900;
}


/* =========================================
   6. Blog Card Styling
   ========================================= */

/* Blog Grid */
.blog-grid {
    display: grid !important;
    /* Force grid over default block styles if needed */
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    /* Ensure full height in grid */
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.featured-image {
    height: 220px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .featured-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-date {
    font-size: 14px;
    color: #999;
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-date i {
    color: var(--secondary-color);
}

.post-title {
    font-size: 20px;
    margin: var(--spacing-md) 0;
    line-height: 1.4;
    min-height: 60px;
}

.post-title a {
    color: var(--heading-color);
}

.post-title a:hover {
    color: var(--secondary-color);
}

.post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--secondary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    /* Push to bottom if flex column */
}

/* Responsive */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}