/* ==========================================================
   Modern Blog CSS Theme for OpenCart
   ========================================================== */

/* Typography & Headings */
h1 {
    font-size: 24px;
    text-transform: uppercase;
    margin: 0 0 15px 0;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: 0.5px;
}

h2 {
    font-size: 24px !important;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    font-weight: 600;
    color: #34495e;
}

/* Listing Layout 2 */
.layout2 h3 {
    text-transform: uppercase;
    color: #23a1d1;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.layout2 h3:hover {
    color: #1b82a8;
}

.layout2 .post_date_blog {
    padding: 8px 0;
    margin: 0;
    text-transform: uppercase;
    font-size: 13px;
    color: #7f8c8d;
}

.layout2 .hr {
    margin: 10px 0;
    border-color: #eee;
}

.layout2 .view_like {
    padding: 10px 0;
    color: #23a1d1;
    font-size: 13px;
}

.layout2 .view_like span {
    margin-right: 15px;
}

.layout2 .view_like span i {
    margin-right: 5px;
}

.layout2 .description {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    height: 100px;
    overflow: hidden;
}

@media (max-width: 1200px) {
    .layout2 .description {
        height: 110px;
    }
}

@media (max-width: 990px) {
    .layout2 .description {
        height: auto;
    }
}

/* Listing Layout 4 (Card Style) */
.layout4 {
    margin-top: 20px;
}

.layout4 .blogs_post {
    margin-bottom: 25px;
}

.layout4 .blogs_post .blog_post4 {
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.layout4 .blogs_post .blog_post4:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.06);
}

.layout4 .blogs_post .blog_post4 h3 {
    font-size: 20px;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    font-weight: 700;
    color: #2c3e50;
}

.layout4 .blogs_post .blog_post4 .post_date_blog {
    font-size: 13px;
    font-weight: 600;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.layout4 .blogs_post .blog_post4 .post_date_blog .date_blog {
    font-weight: normal;
}

.layout4 .view_like {
    text-align: right;
    color: #23a1d1;
}

.layout4 .view_like span {
    margin-left: 10px;
}

/* Blog/Post Layout 1 */
.layout1 .author_like_comment {
    color: #7f8c8d;
    font-weight: 400;
    font-size: 14px;
    margin-bottom: 15px;
}

.layout1 .author_like_comment span {
    margin-right: 15px;
    font-weight: 600;
    color: #23a1d1;
}

.layout1 .author_like_comment span i {
    margin-right: 8px;
}

.layout1 .main_description {
    margin-top: 15px;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.layout1 .like_message {
    text-align: center;
    margin: 25px 0;
}

.layout1 .like_message i {
    display: inline-block;
    text-align: center;
    font-size: 32px;
    background-color: #23a1d1;
    padding: 14px 22px;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(35, 161, 209, 0.3);
}

.layout1 .like_message i:hover {
    background-color: #1b82a8;
    transform: scale(1.05);
}

.layout1 .like_messageocx a i {
    opacity: 0.4;
}

.layout1 .tags {
    margin-top: 20px;
}

.layout1 .tags a {
    background-color: #f1f2f6;
    color: #2f3640;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 5px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.layout1 .tags a:hover {
    background-color: #23a1d1;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 786px) {
    .layout1 .author_like_comment span span {
        display: none;
    }
}

/* Blog/Post Layout 2 */
.layout2 h1 {
    text-align: center;
    margin: 15px 0;
}

.layout2 .author_like_comment {
    text-align: center;
    margin-bottom: 20px;
}

.layout2 .author_like_comment span {
    margin-right: 12px;
    color: #23a1d1;
}

.layout2 .author_like_comment i {
    margin-right: 5px;
}

.layout2 .addthis_toolbox {
    text-align: center;
    margin: 20px auto;
}

.layout2 .like_message {
    text-align: center;
    margin: 20px 0;
}

.layout2 .like_message i {
    display: inline-block;
    font-size: 32px;
    background-color: #23a1d1;
    padding: 14px 22px;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(35, 161, 209, 0.3);
}

.layout2 .like_messageocx a i {
    opacity: 0.4;
}

/* Comments Section */
#review h2 {
    margin: 25px 0 15px 0;
    font-size: 18px;
    border-bottom: 2px solid #23a1d1;
    padding-bottom: 8px;
    display: inline-block;
}

.wcomments {
    background: #fafafa;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #eee;
}

.wcomments .author {
    font-size: 15px;
    color: #23a1d1;
    text-transform: uppercase;
    font-weight: 700;
}

.wcomments .author span {
    font-size: 12px;
    vertical-align: middle;
    color: #999;
    font-weight: normal;
    margin-left: 8px;
}

.wcomments .comment_text {
    line-height: 1.6;
    font-size: 14px;
    color: #444;
    margin-top: 8px;
}

.comment_fields input {
    border-radius: 4px !important;
    height: 42px;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 0 12px;
}

.comment_fields textarea {
    border-radius: 4px !important;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 12px;
}

.comment_fields button {
    background: none;
    padding: 10px 25px;
    border-radius: 4px !important;
    background-color: #23a1d1;
    border: none;
    font-size: 14px;
    text-transform: uppercase;
    color: #fff;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.comment_fields button:hover {
    background-color: #1b82a8;
}

.comment_fields .comment_box {
    margin-top: 25px;
}

/* Model Popup */
.modal-content {
    border-radius: 6px !important;
    background-color: #fff;
    border: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.modal-content input {
    border-radius: 4px !important;
}

/* Left Categories Widget */
.left_widget {
    background-color: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 15px;
  /*  margin-bottom: 25px; */
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.categorylisting {
    margin: 0;
    padding: 0;
}

.categorylisting li {
    border-bottom: 1px solid #f1f2f6;
    list-style-type: none;
    padding: 12px 5px;
}

.categorylisting li:last-child {
    border-bottom: none;
}

.categorylisting li i {
    margin-right: 8px;
    color: #23a1d1;
}

.categorylisting li a {
    color: #444;
    text-decoration: none;
    display: block;
    transition: color 0.2s ease;
}

.categorylisting li a:hover {
    color: #23a1d1;
}

.categorylisting li a i {
    transition: transform 0.3s ease;
}

.categorylisting li a:hover i {
    transform: translateX(5px);
}

/* Search & Subscribe Widgets */
#bsearch input, 
.bsubscribe input {
    height: 42px;
    border-radius: 4px !important;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    padding: 0 12px;
}

#latest_slider .blogs_post {
    margin-right: 20px;
}

.latest_blog {
    margin: 15px 0;
    border-bottom: 1px solid #f1f2f6;
    padding-bottom: 15px;
}

.owl-carousel {
    background: none !important;
}

.owl-wrapper-outer {
    border: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    -o-box-shadow: none !important;
}

/* Video Responsive Wrapper */
.videoWrapper {
    position: relative;
    padding-bottom: 56.25%; /* ปรับเป็นสัดส่วนมาตรฐาน 16:9 */
    height: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #000;
}

.videoWrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}