/*
Theme Name: Zono Bootstrap
Theme URI: https://pixelstrap.com/zono
Author: Pixelstrap
Author URI: https://pixelstrap.com
Description: A responsive WordPress theme based on Bootstrap 5.3.0 with clean design, standard header navigation, and footer layout. Features include dark mode, RTL support, and extensive customization options.
Version: 1.0
License: GPL v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zono-bootstrap
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks, accessibility-ready, responsive-layout, full-width-template

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* Bootstrap CSS will be enqueued via functions.php */

/* Custom Theme Styles */
:root {
    --bs-primary: #308e87;
    --bs-secondary: #6c757d;
    --bs-success: #28a745;
    --bs-info: #17a2b8;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-light: #f8f9fa;
    --bs-dark: #343a40;
}

/* Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
}

/* Site Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    border-bottom: 1px solid #dee2e6;
}

.navbar-brand {
    font-weight: 600;
    color: var(--bs-primary) !important;
}

.navbar-brand:hover {
    color: var(--bs-dark) !important;
}

/* Navigation */
.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--bs-dark) !important;
    padding: 0.75rem 1rem;
    transition: color 0.15s ease-in-out;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--bs-primary) !important;
}

.navbar-nav .nav-link.active {
    color: var(--bs-primary) !important;
}

/* Search Form */
.search-form {
    min-width: 200px;
}

.search-form .form-control {
    border-radius: 20px;
    border: 1px solid #ced4da;
    padding: 0.375rem 1rem;
}

.search-form .btn {
    border-radius: 20px;
    margin-left: -1px;
}

/* Main Content */
.site-main {
    background-color: #fff;
    min-height: 70vh;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.card-title a {
    color: var(--bs-dark);
    text-decoration: none;
}

.card-title a:hover {
    color: var(--bs-primary);
}

/* Blog Category Cards */
.category-card {
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    position: relative;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15) !important;
}

.category-card .category-icon {
    text-align: center;
}

.category-card .category-icon i {
    transition: all 0.3s ease-in-out;
}

.category-card:hover .category-icon i {
    transform: scale(1.1);
    color: var(--bs-primary) !important;
}

.category-card .stretched-link::before {
    z-index: 1;
}

/* Post Cards */
.post-card {
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.12) !important;
}

.post-card .card-img-top {
    overflow: hidden;
    height: 200px;
}

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

.post-card:hover .card-img-top img {
    transform: scale(1.05);
}

.post-card .stretched-link::before {
    z-index: 1;
}

/* Post Tags */
.post-tags .badge {
    font-size: 0.7rem;
    font-weight: normal;
}

/* Category Badge on Posts */
.post-card .position-absolute .badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0 0 0.5rem 0;
}

/* Page Cards */
.page-header-card {
    overflow: hidden;
    position: relative;
}

.page-header-card .card-img-top {
    height: 300px;
    overflow: hidden;
}

.page-header-card .card-img-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-content-card {
    transition: all 0.3s ease-in-out;
}

.page-content-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.page-actions-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.comments-card .card-header {
    background: var(--bs-primary);
    color: white;
}

/* Pages Grid */
.page-card {
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.page-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15) !important;
}

.page-card .card-img-top {
    overflow: hidden;
    height: 200px;
}

.page-card .card-img-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.page-card:hover .card-img-top img {
    transform: scale(1.05);
}

.page-card .stretched-link::before {
    z-index: 1;
}

/* Parent Page Cards */
.parent-page-card {
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.parent-page-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.parent-page-card .page-icon i {
    transition: all 0.3s ease-in-out;
}

.parent-page-card:hover .page-icon i {
    transform: scale(1.1);
    color: var(--bs-primary) !important;
}

.parent-page-card .page-arrow i {
    transition: all 0.3s ease-in-out;
}

.parent-page-card:hover .page-arrow i {
    transform: translateX(5px);
    color: var(--bs-primary) !important;
}

/* Page Type Badge */
.page-card .position-absolute .badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0 0 0.5rem 0;
}

/* Page Content Styling */
.page-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--bs-dark);
}

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

.page-content blockquote {
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    border-left: 4px solid var(--bs-primary);
    background-color: var(--bs-light);
    font-style: italic;
}

/* Page Links Navigation */
.page-links-nav {
    padding: 1rem;
    background-color: var(--bs-light);
    border-radius: 0.5rem;
}

.page-links .btn {
    margin: 0.25rem;
}

/* Post Meta */
.card-meta,
.entry-meta {
    font-size: 0.875rem;
}

.card-meta i,
.entry-meta i {
    color: var(--bs-primary);
}

/* Buttons */
.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #2a7a73;
    border-color: #2a7a73;
}

/* Pagination */
.pagination-wrapper .pagination {
    margin-bottom: 0;
}

.page-numbers {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    margin: 0 0.125rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--bs-primary);
    text-decoration: none;
    background-color: transparent;
    border: 1px solid var(--bs-primary);
    border-radius: 0.25rem;
    transition: all 0.15s ease-in-out;
}

.page-numbers:hover,
.page-numbers.current {
    color: #fff;
    background-color: var(--bs-primary);
}

/* Footer */
.site-footer {
    margin-top: auto;
}

.site-footer a {
    color: var(--bs-primary);
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.social-links a {
    font-size: 1.2rem;
    transition: color 0.15s ease-in-out;
}

.social-links a:hover {
    color: var(--bs-primary) !important;
}

/* Comments */
.comment-form .form-control {
    margin-bottom: 1rem;
}

.comment-list {
    list-style: none;
    padding-left: 0;
}

.comment-list .comment {
    margin-bottom: 1.5rem;
}

.comment-author img {
    margin-right: 0.75rem;
}

/* WordPress Specific Styles */
.wp-block-image img {
    max-width: 100%;
    height: auto;
}

.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignwide {
    margin-left: -5%;
    margin-right: -5%;
    max-width: 110%;
}

.alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
    width: 100vw;
}

/* Back to Top Button */
.btn-back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
}

/* Entry Content Styling */
.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--bs-dark);
}

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

.entry-content blockquote {
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    border-left: 4px solid var(--bs-primary);
    background-color: var(--bs-light);
    font-style: italic;
}

.entry-content code {
    padding: 0.2rem 0.4rem;
    background-color: var(--bs-light);
    border-radius: 0.25rem;
    font-size: 0.9em;
}

.entry-content pre {
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    overflow-x: auto;
}

/* Dark Mode Support */
body.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .site-header {
    background-color: #2a2a2a !important;
    border-color: #444;
}

body.dark-mode .navbar-light .navbar-nav .nav-link {
    color: #e0e0e0 !important;
}

body.dark-mode .site-main {
    background-color: #1a1a1a;
}

body.dark-mode .card {
    background-color: #2a2a2a;
    color: #e0e0e0;
}

body.dark-mode .card-title a {
    color: #e0e0e0;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .search-form {
        min-width: 150px;
        margin-top: 1rem;
    }
    
    .navbar-nav {
        padding-top: 1rem;
    }
    
    .entry-content {
        font-size: 1rem;
    }
}

/* Blog Sections */
.blog-categories {
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 1rem;
    margin-bottom: 3rem;
}

.blog-categories h2 {
    color: var(--bs-dark);
    font-weight: 600;
}

.recent-posts h2 {
    color: var(--bs-dark);
    font-weight: 600;
    position: relative;
}

.recent-posts h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--bs-primary);
    border-radius: 2px;
}

/* Category Filter Buttons */
.category-filter {
    margin-bottom: 2rem;
}

.category-filter .btn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 2rem;
}

.category-filter .btn.active {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card,
.post-card {
    animation: fadeInUp 0.6s ease-out;
}

.category-card:nth-child(2) {
    animation-delay: 0.1s;
}

.category-card:nth-child(3) {
    animation-delay: 0.2s;
}

.post-card:nth-child(2) {
    animation-delay: 0.1s;
}

.post-card:nth-child(3) {
    animation-delay: 0.2s;
}

.post-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* Category Pages */
.category-header-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
    position: relative;
}

.category-header-card .category-icon i {
    transition: all 0.3s ease-in-out;
}

.category-post-card {
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

.category-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.12) !important;
}

.category-post-card .card-img-top {
    overflow: hidden;
    height: 200px;
}

.category-post-card .card-img-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.category-post-card:hover .card-img-top img {
    transform: scale(1.05);
}

.category-post-card .stretched-link::before {
    z-index: 1;
}

/* Related Categories */
.related-categories .btn {
    transition: all 0.3s ease-in-out;
}

.related-categories .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.375rem 0.75rem rgba(0, 0, 0, 0.12);
}

/* Category Statistics */
.category-stats .card {
    transition: all 0.3s ease-in-out;
}

.category-stats .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.category-stats .card i {
    transition: all 0.3s ease-in-out;
}

.category-stats .card:hover i {
    transform: scale(1.1);
}

/* Archive Pages */
.archive-header-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
    position: relative;
}

.archive-header-card .archive-icon i {
    transition: all 0.3s ease-in-out;
}

@media (max-width: 575.98px) {
    .site-main {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .search-form {
        width: 100%;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .btn-back-to-top {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    .blog-categories {
        padding: 1rem;
        margin-bottom: 2rem;
    }
    
    .category-card,
    .post-card {
        animation: none;
    }
    
    .post-card .card-img-top,
    .category-post-card .card-img-top {
        height: 150px;
    }
    
    .page-header-card .card-img-top {
        height: 200px;
    }
    
    .page-card .card-img-top {
        height: 150px;
    }
    
    .page-content {
        font-size: 1rem;
    }
    
    .parent-page-card .card-body {
        padding: 1rem;
    }
    
    .category-header-card .card-body,
    .archive-header-card .card-body {
        padding: 2rem 1rem;
    }
    
    .category-stats .card {
        margin-bottom: 1rem;
    }
    
    .related-categories .btn {
        margin-bottom: 0.75rem;
    }
}