/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
.header-img {
    width: 100%;
    height: 250px;
    position: relative;
    display: block;
    z-index: 1;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: inset 0px -84px 239px -20px rgba(58, 119, 76, 0.8) !important;
    overflow: hidden;
}

.dotted {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1111111;
    background-repeat: repeat;
    background-image: url('/wp-content/uploads/2025/06/dot.png');
}

.site-branding {
    position: relative;
    top: 30%;
    color: #fff;
    width: 100%;
    text-align: center;
    display: block;
    z-index: 999;
}

.site-title {
    position: relative;
    margin: 3px 0 0 0;
    z-index: 1003;
    display: inline-block;
    font-family: 'Roboto', sans-serif;
    font-size: 3em;
    font-weight: 700;
}

.site-title a {
    color: #fff;
    text-decoration: none;
}

.site-description {
    font-size: 0.8em;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1003;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    text-shadow: -1px 0 black, 0 1px black, 2px 0 black, 0 -2px black;
}

.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.bounceInDown {
    animation-name: bounceInDown;
}

.bounceInUp {
    animation-name: bounceInUp;
}

@keyframes bounceInDown {
    0% {
        opacity: 0;
        transform: translateY(-2000px);
    }
    60% {
        opacity: 1;
        transform: translateY(30px);
    }
    80% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes bounceInUp {
    0% {
        opacity: 0;
        transform: translateY(2000px);
    }
    60% {
        opacity: 1;
        transform: translateY(-30px);
    }
    80% {
        transform: translateY(10px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Custom styles for My Custom Style */
.box-my-custom-style {
    background: #111111; /* Dark background as per provided CSS */
    padding: 20px; /* Padding as per provided CSS */
    box-shadow: none !important;
    border: none !important;
    margin-bottom: 30px; /* Space between posts if in a grid/list */
    display: block; /* Ensure it behaves like a block element */
}

/* Header and Title styling */
.box-my-custom-style .entry-header {
    height: auto;
    margin-bottom: 10px; /* Space between header (title+date) and image */
}

.box-my-custom-style .entry-title {
    padding: 0; /* Remove padding, let margins handle spacing */
    text-transform: none; /* Changed to match new image (mixed case title) */
    font-family: 'Jockey One', sans-serif;
    font-size: 2.5em; /* Large title */
    font-weight: 700; /* Bold title */
    line-height: 1.2;
    color: #eee;
    margin-top: 0;
    margin-bottom: 5px; /* Smaller space below title, before date */
}

.box-my-custom-style .entry-title a {
    color: inherit;
    text-decoration: none;
}

/* Entry Meta styling (for Post Date) */
.box-my-custom-style .entry-meta {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 20px; /* Space between date and image */
}

.box-my-custom-style .entry-meta .fa {
    color: #C61717;
    padding: 3px;
}

/* Image container styling */
.box-my-custom-style .app-img-effect {
    display: block;
    width: 100%; /* Ensure it takes full width of the padded box */
    height: auto;
    margin-bottom: 20px; /* Space below image */
}

.box-my-custom-style .app-first,
.box-my-custom-style .app-sub,
.box-my-custom-style .app-basic {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.box-my-custom-style .app-basic img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 0;
}

/* Excerpt styling */
.box-my-custom-style > p { /* Target direct child p for excerpt */
    line-height: 1.5em;
    font-size: 14px;
    color: #ccc;
    word-wrap: break-word;
    margin-top: 0; /* No margin-top if the image margin-bottom handles spacing */
    margin-bottom: 0; /* No margin below excerpt, as it's the last element */
}

/* Hide the read more button */
.box-my-custom-style .read-more {
    display: none;
}

/* General article p styling - to catch any other p tags inside, if any */
.box-my-custom-style p {
    line-height: 1.5em;
    font-size: 14px;
    color: #ccc;
    word-wrap: break-word;
}

.box-my-custom-style .post-title a {
    color: #eee;
}

.box-my-custom-style .post-title a:hover {
    color: #eee;
}

.box-my-custom-style .post-title {
    font-weight: bold;
}

.box-my-custom-style .post-meta .posted-on {
    color: #eee;
    font-size: 12px;
}

html {
    background-image: url('/wp-content/uploads/2025/06/background.jpg');
    background-size: cover; /* Đảm bảo ảnh bao phủ toàn bộ */
    background-repeat: no-repeat; /* Không lặp lại ảnh */
    background-position: center center; /* Căn giữa ảnh */
    background-attachment: fixed; /* Giữ ảnh cố định khi cuộn */
}

body, #main, .page-wrapper, .site-wrapper {
    background-color: transparent !important;
}

#main, #wrapper {
    background-color: transparent;
    position: relative;
}

.nav-pagination>li>.current, .nav-pagination>li>a:hover, .nav-pagination>li>span:hover, span.page-number.dots {
    background-color: #C61717;
    border-color: #C61717;
    color: #fff;
}
.nav-pagination>li>a, .nav-pagination>li>span {
    border: none;
    border-radius: unset;
    display: block;
    font-size: 1.1em;
    font-weight: bolder;
    height: 2.25em;
    line-height: 2em;
    min-width: 2.25em;
    padding: 0 7px;
    text-align: center;
    transition: all .3s;
    vertical-align: top;
    width: auto;
    background-color: #111111;
}

ul.links li a {
    color: #fff;
}

.widget {
    background-color: #111111;
}

.widget .is-divider {
    display: none;
}

.widget .widget-title {
    background-color: #C61717;
    width: 100%;
    display: block;
    padding: 10px 20px 10px 20px;
    color: white;
    font-size: 17px;
}

.badge.post-date {
    border: 1px solid #EEE !important;
    padding: 2px;
}

.post-meta .fa-solid {
    color: #C61717;
}

.recent-blog-posts-li .flex-col.flex-grow a {
    font-size: 12px;
    line-height: 1.5em;
    font-weight: 400;
}

.widget_archive ul {
    padding: 10px 20px 10px 20px;
}

aside a {
    line-height: 1.5em;
    font-size: 14px;
    font-weight: 400;
}

.widget .icon-search:before {
    content: "Search";
    font-family: 'Roboto';
}

.widget .ux-search-submit {
    background-color: #333;
}

#masthead .nav-left {
    justify-content: center;
}

.blog-archive article {
    background-color: #111111;
    padding: 20px;
    color: #eee;
}

.blog-archive article a {
    color: #eee;
}

.blog-archive article a:hover {
    color: #C61717;
}


.blog-archive article .entry-header-text {
    padding-top: 0;
}


.blog-archive .entry-header .entry-divider, .blog-archive article .more-link.button, .blog-archive article .entry-category, .blog-archive article footer  {
    display: none;
}

.blog-archive article .entry-image-float {
    max-width: 30%;
}


.custom-archive-title {
    font-size: 2em;
    font-weight: 700;
    color: #eee;
    margin-bottom: 20px;
}

.footer {
    display: none;
}

.blog-wrapper {
    background-color: #111111 !important;
    color: #eee;
}

/* Responsive adjustments for smaller screens */
@media screen and (max-width: 768px) {
    .box-my-custom-style .entry-title {
        font-size: 1.8em;
    }
}

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
    .page-left-sidebar .row {
        flex-direction: column-reverse;
    }

    .col {
        padding: 0;
    }

    .blog-archive article .entry-image-float {
        max-width: 100%;
    }
}

@media screen and (max-width: 849px) {
    .medium-logo-center .flex-left {
        flex: unset;
    }
}