/*
 * Theme Name: MTYY Theme
 * Description: MTYY Theme
 * Theme URI: https://ophim.cc
 * Version: 1.0
 * Theme Author: oPhim
 * Author URI: https://oPhim.com
 * Tags: starter theme, framework theme, two-columns, customize
 * Textdomain: oPhim
 */

/* Common Utility Classes */
.hidden {
    display: none;
}

.text-white {
    color: #FFF !important;
}

.content-padding-right {
    padding-right: 20px;
}

.content-padding-left {
    padding-left: 20px;
}

.archive-content-padding {
    padding-right: 20px;
    padding-top: 20px;
}

/* Single Post Styling */
.single-post-title {
    margin: 20px 0;
    line-height: 30px;
}

.single-post-featured-image {
    margin: 20px;
    margin-top: 10px;
}

.featured-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.featured-image:hover {
    transform: scale(1.02);
}

/* Sidebar Widget Styling */
.sidebar-widget-title {
    color: #00cc4c;
    margin-bottom: 20px;
    font-size: 18px;
    border-bottom: 2px solid #00cc4c;
    padding-bottom: 10px;
}

.sidebar-widget-spacing {
    margin-top: 30px;
}

/* Recent Posts Styling */
.recent-post-item-spacing {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.recent-post-thumb {
    width: 100%;
    height: 120px;
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 6px;
}

.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-title {
    margin: 0 0 8px 0;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
}

.recent-post-title-link {
    color: #fff;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.recent-post-title-link:hover {
    color: #00cc4c;
}

.recent-post-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.recent-post-meta-icon {
    color: #00cc4c;
    margin-right: 5px;
}

.recent-post-excerpt {
    font-size: 13px;
    color: #bbb;
    line-height: 1.5;
    margin-bottom: 12px;
}

.recent-post-readmore {
    color: #00cc4c;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.recent-post-readmore:hover {
    color: #00ff5c;
}

/* Categories Widget Styling */
.category-item-link {
    display: block;
    padding: 10px 15px;
    margin-bottom: 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-item-link:hover {
    background: rgba(0,204,76,0.1);
    border-left: 3px solid #00cc4c;
}

.category-count {
    float: right;
    color: #999;
    font-size: 12px;
}

.clear-float {
    clear: both;
}

/* No Posts Found Styling */
.no-posts-icon {
    font-size: 48px;
    color: #666;
    margin-bottom: 20px;
}

/* Single Post Featured Image */
.post-featured-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    text-align: center;
}

.post-featured-image img {
    display: block;
    object-fit: cover;
    border: 2px solid rgba(0, 204, 76, 0.2);
    margin: 0 auto;
}

.post-featured-image:hover img {
    border-color: rgba(0, 204, 76, 0.4);
}

/* Responsive for featured image */
@media (max-width: 767px) {
    .post-featured-image {
        margin: 15px !important;
        margin-top: 10px !important;
    }
    
    .post-featured-image img {
        border-radius: 8px !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
    }
}

@media (max-width: 480px) {
    .post-featured-image {
        margin: 10px !important;
    }
    
    .post-featured-image img {
        max-width: 100% !important;
        border-radius: 6px !important;
    }
}

/* Archive Page Styling */
.archive-posts-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.archive-post-item {
    background: rgba(35, 37, 43, 0.4);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.archive-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 204, 76, 0.1);
    border-color: rgba(0, 204, 76, 0.3);
}

.post-item-wrapper {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    gap: 20px;
}

.post-thumbnail {
    flex: 0 0 220px;
    height: 160px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.post-thumb-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.post-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.no-thumb {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2a2d35, #1a1d25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 40px;
}

.post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.archive-post-item:hover .post-overlay {
    opacity: 1;
}

.archive-post-item:hover .post-thumb-img {
    transform: scale(1.1);
}

.read-more-btn {
    background: #00cc4c;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.post-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #999;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-meta i {
    color: #00cc4c;
    font-size: 12px;
}

.post-title {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
}

.post-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #00cc4c;
}

.post-excerpt {
    color: #ccc;
    line-height: 1.6;
    font-size: 15px;
    flex: 1;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.read-more-link {
    color: #00cc4c;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more-link:hover {
    color: #00ff5c;
    transform: translateX(5px);
}

.post-stats {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #666;
}

.post-views {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-views i {
    color: #00cc4c;
}

/* No Posts Found */
.no-posts-found {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-posts-found h3 {
    margin: 20px 0 10px;
    color: #ccc;
    font-size: 24px;
}

.no-posts-found p {
    font-size: 16px;
    line-height: 1.6;
}

/* Archive Pagination */
.archive-pagination {
    margin-top: 40px;
    text-align: center;
}

/* Categories Widget */
.categories-list {
    display: flex;
    flex-direction: column;
}

.category-item {
    position: relative;
    overflow: hidden;
}

.category-item:before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 204, 76, 0.1), transparent);
    transition: left 0.5s;
}

.category-item:hover:before {
    left: 100%;
}

/* Responsive Design for Archive */
@media (max-width: 991px) {
    .archive-content.l-70,
    .sidebar.l-30 {
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .sidebar {
        margin-top: 40px;
    }
    
    .post-item-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    .post-thumbnail {
        flex: none;
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 767px) {
    .archive-posts-grid {
        gap: 20px;
    }
    
    .archive-post-item {
        margin: 0 -10px;
        border-radius: 8px;
    }
    
    .post-item-wrapper {
        padding: 15px;
    }
    
    .post-thumbnail {
        height: 180px;
    }
    
    .post-title {
        font-size: 18px;
    }
    
    .post-excerpt {
        font-size: 14px;
    }
    
    .post-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .post-thumbnail {
        flex: 0 0 120px;
        height: 120px;
    }
    
    .post-item-wrapper {
        flex-direction: row;
        gap: 12px;
    }
    
    .post-title {
        font-size: 16px;
    }
    
    .post-excerpt {
        font-size: 13px;
        -webkit-line-clamp: 3;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* Sidebar Styling */
.sidebar {
    background: rgba(35, 37, 43, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.sidebar-widget h3 {
    position: relative;
    padding-left: 15px;
}

.sidebar-widget h3:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: #00cc4c;
    border-radius: 2px;
}

.recent-post-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
    transition: all 0.3s ease;
}

.recent-post-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.recent-post-item:hover {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 15px;
    margin: -5px;
    margin-bottom: 15px;
}

.recent-post-content {
    display: block;
    width: 100%;
}

.post-thumb {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.post-thumb img {
    transition: transform 0.3s ease;
}

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

.post-content h4 a {
    transition: color 0.3s ease;
}

.post-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive cho sidebar */
@media (max-width: 991px) {
    .group-film.l-70,
    .sidebar.l-30,
    .archive-content.l-70 {
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .sidebar {
        margin-top: 30px;
    }
    
    .recent-post-item {
        display: flex;
        gap: 15px;
        align-items: flex-start;
    }
    
    .recent-post-content {
        display: flex;
        gap: 15px;
        width: 100%;
    }
    
    .post-thumb {
        flex: 0 0 120px;
        width: 120px !important;
        height: 90px !important;
        margin-bottom: 0 !important;
    }
    
    .post-content {
        flex: 1;
    }
}

@media (max-width: 767px) {
    .sidebar {
        padding: 15px;
    }
    
    .sidebar-widget h3 {
        font-size: 16px;
    }
    
    .recent-post-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .recent-post-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .post-thumb {
        flex: none;
        width: 100% !important;
        height: 140px !important;
        margin-bottom: 10px !important;
    }
    
    .post-content h4 {
        font-size: 14px !important;
    }
    
    .post-meta {
        font-size: 11px !important;
    }
    
    .post-excerpt {
        font-size: 12px !important;
        margin-bottom: 10px !important;
    }
}

@media (max-width: 480px) {
    .recent-post-item:hover {
        margin: -5px;
        padding: 10px;
    }
    
    .post-thumb {
        height: 120px !important;
    }
}

ol.breadcrumb {
	margin-top: 15px;
	margin-bottom: 15px;
}
ol.breadcrumb li {
	float: left;
}
ol.breadcrumb li:first-child {
	margin: 0px
}
ol.breadcrumb li a {
	background: none;
	padding-left: 0px;
	padding-right: 0px;
}
ol.breadcrumb li a:hover span {
	color: #00cc4c !important;
}
ol.breadcrumb li span {
	color: white;
	font-size : 13px;
	line-height: 36px;
	margin-right: 5px;
}
ol.breadcrumb li.active span {
	color: #00cc4c !important;
}

.articleContent {
    line-height: 26px;
}
.articleContent h1, .articleContent h2, .articleContent h3, .articleContent h4, .articleContent h5, .articleContent h6 {
	margin-top: 0.5rem;
	margin-bottom: 1rem;
}
.articleContent p {
	margin-bottom: 1.5rem;
}