/*
Theme Name: Custom Theme
Theme URI: http://icones-gratuites.com
Description: Simple theme matching the original Archivarix website design
Version: 1.0
Author: Custom
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: #18ba5d;
    text-decoration: none;
}

a:hover {
    color: #2c8853;
}

/* Header Styles */
#header {
    background: #fff;
}

#mainmenu-block-bg {
    background: #18ba5d;
    position: relative;
    z-index: 100;
}

.navigation {
    padding: 0;
}

#menu {
    width: 100%;
}

#menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

#menu ul li {
    margin: 0;
    padding: 0;
}

#menu ul li a {
    display: block;
    padding: 13px 10px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s;
}

#menu ul li a:hover {
    background-color: #2c8853;
}

#menu ul li.logo-item a {
    padding: 0;
}

#menu ul li.logo-item img {
    height: 48px;
    width: auto;
    display: block;
}

/* Container and Layout */
.container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

.row-fluid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.span12 {
    width: 100%;
    padding: 0 15px;
}

.span8 {
    width: 66.66666667%;
    padding: 0 15px;
}

.span4 {
    width: 33.33333333%;
    padding: 0 15px;
}

/* Content Area */
#content {
    padding: 40px 0;
}

/* Blog Entry Styles */
#blog-entry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.masonry-box {
    background: #fff;
    overflow: hidden;
}

.post-block {
    border: 1px solid #eee;
    transition: box-shadow 0.3s;
}

.post-block:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.entry-header {
    background: #fff;
    padding: 15px;
}

.entry-header h1.entry-title {
    font-size: 18px;
    line-height: 1.3;
    margin: 0;
    font-weight: bold;
}

.entry-header h1.entry-title a {
    color: #333;
}

.entry-header h1.entry-title a:hover {
    color: #18ba5d;
}

.entry-thumb {
    overflow: hidden;
}

.entry-thumb img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.post-block:hover .entry-thumb img {
    transform: scale(1.05);
}

.entry-meta {
    padding: 15px;
    font-size: 12px;
    color: #999;
    border-top: 1px solid #f5f5f5;
}

.entry-meta span {
    margin-right: 15px;
}

.entry-meta i {
    margin-right: 5px;
}

/* Single Post Styles */
.single-post-content {
    background: #fff;
    padding: 30px;
    margin-bottom: 30px;
}

.single-post-content h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

.single-post-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.single-post-meta span {
    margin-right: 15px;
}

.single-post-content .entry-content {
    font-size: 16px;
    line-height: 1.8;
}

.single-post-content .entry-content p {
    margin-bottom: 20px;
}

.single-post-content .entry-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

/* Sidebar Styles */
#secondary {
    padding-left: 15px;
}

.widget {
    margin-bottom: 30px;
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #eee;
}

.widget h3.widget-title {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: bold;
    color: #333;
}

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

.widget ul li {
    padding: 5px 0;
}

.widget ul li a {
    color: #666;
}

.widget ul li a:hover {
    color: #18ba5d;
}

/* Pagination Styles */
.container-pagination {
    background: #f9f9f9;
    padding: 30px 0;
    border-top: 1px solid #eee;
}

.pagination {
    text-align: center;
    font-size: 14px;
}

.pagination span,
.pagination a {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 3px;
    background: #fff;
    border: 1px solid #ddd;
    color: #666;
}

.pagination a:hover {
    background: #18ba5d;
    color: #fff;
    border-color: #18ba5d;
}

.pagination span.current {
    background: #18ba5d;
    color: #fff;
    border-color: #18ba5d;
}

/* Footer Styles */
#footer {
    background: #333;
    color: #999;
    padding: 40px 0;
    margin-top: 40px;
}

#footer a {
    color: #18ba5d;
}

#footer a:hover {
    color: #2c8853;
}

.copyright-info {
    font-size: 13px;
}

.copyright-info a {
    margin: 0 10px 0 0;
}

.add-info {
    font-size: 13px;
    text-align: right;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .span8, .span4 {
        width: 100%;
    }

    #secondary {
        padding-left: 15px;
        margin-top: 30px;
    }

    #blog-entry {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 767px) {
    #menu ul {
        flex-direction: column;
    }

    #blog-entry {
        grid-template-columns: 1fr;
    }

    .add-info {
        text-align: left;
        margin-top: 20px;
    }
}

/* Utility Classes */
.clear {
    clear: both;
}

.clearfix:after {
    content: "";
    display: table;
    clear: both;
}
