/*
 Theme Name:   Școala Piatra Șoimului
 Theme URI:    https://diviextended.com/
 Description:  Este o temă care moștenește tema <strong>Twenty Twenty</strong> și nu va funcționa fără aceasta. În această temă vom seta particularitățile pentru școala <strong>Piatra Șoimului</strong> iar acestea se vor păstra chiar dacă tema <strong>Twenty Twenty</strong> va fi actualizată!
 Author:       Stachie Alexandru-Dan
 Template:     twentytwenty
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
    --header: #f2f7f7;
    --footer: #f2f7f7;
    --header-shadow: #D9DEDE;
    --body: #FBFCFC;
    --link: #d72756;
    --secondary: #5E6D6D;
}

a:hover {
    text-decoration: none !important;
}

body.home .post-inner {
    padding-top: 0 !important;
}

body.home .post-inner .wp-block-cover {
    box-shadow: 0 3px 2px -2px black;
    margin-bottom: 0 !important;
}

@media only screen and (min-width: 768px) {
    body.home .post-inner .wp-block-cover {
        min-height: 500px !important;
    }
}

header#site-header {
    background-color: var(--header);
}

footer#site-footer {
    background-color: var(--footer);
}

#site-header .primary-menu a {
    transition: all .1s ease-in-out;
}

#site-header .primary-menu .menu-item:not(.current-menu-item) a:hover {
    transform: scale(1.1);
    font-weight: bolder;
}

#site-header .primary-menu .current-menu-item {
    transform: scale(1.1);
    font-weight: bolder;
}

#site-header .primary-menu .current-menu-item a {
    text-decoration: none;
}

#site-header {
    box-shadow: 0 4px 2px -2px #D9DEDE;
}

#site-content header.entry-header {
    background: var(--body);
    padding: 2rem;
}

#site-content header.entry-header h1 {
    font-size: 4rem;
}

#site-footer .to-the-top {
    color: var(--link)
}

.wp-block-group.alignwide {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
}

.post-inner {
    padding-top: 1rem !important;
}

body.home .post-inner > .wp-block-group {
    margin: 0 !important;
}

.text-justified {
    text-align: justify;
}

.home-stack {
    margin: 2rem auto !important;
}

.red {
    color: var(--link);
}

.card {
    width: auto;
    display: flex;
    justify-content: baseline;
    margin: 0 !important;
    box-shadow: 0 3px 7px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.6%;
    padding-right: 1rem;
    background: var(--header);
    line-height: 1.4;
    font-family: sans-serif;
    border-radius: 5px;
    overflow: hidden;
    z-index: 0;
}

.card .card-heading,
.card .card-heading-image {
    max-width: 150px;
    min-width: 150px;
    background-color: white;
    margin: 0 !important;
    border-right: 1px solid #D9DEDE;
    width: max-content;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.card .card-heading-image {
    padding: 0 !important;
}

.card figure {
    margin: 0 !important;
}

.card .card-content {
    margin: 0 auto !important;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.hero-text {
    text-shadow: 2px 2px 4px #000000;
}

/* Blog template css */

.container-posts {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.row-post {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.post-card {
    position: relative;
    display: flex;
    flex-direction: row;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 600px;
    margin: 10px auto;
    text-decoration: none;
    color: inherit;
}

.post-card-image {
    flex: 0 0 30%;
    max-width: 30%;
    height: auto;
    overflow: hidden;
    box-shadow: 5px 0 5px -5px gainsboro;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-content-link {
    text-decoration: none;
    color: black;
}

.post-card-content {
    flex: 1;
    padding: 40px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-card-title {
    text-align: center;
    margin: 0;
    font-size: 1.5em;
}

.post-card-excerpt {
    margin-top: 10px;
    font-size: 1em;
    line-height: 1.5;
    max-height: 4.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--secondary);
    text-align: justify;
}

.post-card-category {
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
    background-color: var(--link);
    color: #fff;
    border-radius: 15px;
    padding: 5px 10px;
}

.post-card-category:hover {
    opacity: 0.8;
}

.post-card-category-link {
    color: #fff;
    text-decoration: none;
}

.post-card-date {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    color: var(--link);
}

.pagination {
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 1em 0;
    clear: both;
}

.pagination .next,
.pagination .prev {
    text-align: unset !important;
    margin: unset !important;
}

.pagination a,
.pagination span {
    padding: 0.5rem;
    font-weight: bold;
}
