/* Custom CSS để tăng kích thước Hero Image */

/* ============================================
   Footer - Tăng độ dài phần thông tin
   ============================================ */
.footer-wrapper {
    display: block !important; /* Đảm bảo footer hiển thị */
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 2 !important;
}

.footer-wrapper .th-widget-about {
    max-width: 600px !important; /* Tăng từ mặc định lên 600px */
    width: 100%;
}

@media (min-width: 1200px) {
    .footer-wrapper .th-widget-about {
        max-width: 700px !important; /* Tăng lên 700px trên desktop lớn */
    }
}

@media (min-width: 1400px) {
    .footer-wrapper .th-widget-about {
        max-width: 800px !important; /* Tăng lên 800px trên màn hình rất lớn */
    }
}

/* ============================================
   About Page - Căn giữa các section dưới hero
   ============================================ */
.page-about .breadcumb-wrapper ~ section .container,
.page-about .breadcumb-wrapper ~ section .container .row {
    text-align: center !important;
}

/* Căn giữa nội dung trong các section */
.page-about .breadcumb-wrapper ~ section .container .row > * {
    text-align: center !important;
}

/* Căn giữa các feature cards */
.page-about .feature-card {
    text-align: center !important;
}

.page-about .feature-card .box-title,
.page-about .feature-card .box-text,
.page-about .feature-card .link-btn {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Căn giữa hero content trong các hero-image-section */
.page-about .hero-image-section .hero-content {
    text-align: center !important;
}

.page-about .hero-image-section .hero-title,
.page-about .hero-image-section .hero-description,
.page-about .hero-image-section .hero-btn-wrap {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Căn giữa title area trong các section */
.page-about .title-area {
    text-align: center !important;
}

.page-about .title-area .sub-title,
.page-about .title-area .sec-title {
    text-align: center !important;
}

/* Căn giữa slider area */
.page-about .slider-area {
    text-align: center !important;
}

/* Căn giữa các team cards */
.page-about .team-card3 {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Breadcumb Overlay */
.breadcumb-wrapper {
    position: relative;
}

/* Thêm overlay đen mờ cho breadcumb-wrapper để text nổi bật */
.breadcumb-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5); /* Overlay đen mờ opacity 0.5 */
    z-index: 1;
    pointer-events: none;
}

/* Loại bỏ overlay cho breadcumb-wrapper trong about.html */
.page-about .breadcumb-wrapper::before {
    display: none;
}

/* Tắt overlay đen mờ phần bên trái cho about.html */
.page-about .breadcumb-wrapper::after {
    display: none !important; /* Tắt overlay */
}

.breadcumb-wrapper .container {
    position: relative;
    z-index: 2;
}

.breadcumb-wrapper .breadcumb-content {
    position: relative;
    z-index: 10; /* Tăng z-index để đảm bảo content hiển thị trên background */
    text-align: center !important; /* Căn giữa description */
}

/* Đảm bảo content không bị giới hạn */
.page-about .breadcumb-wrapper .breadcumb-content {
    max-width: none !important; /* Bỏ giới hạn width */
    width: auto !important; /* Tự động width */
    padding-right: 0 !important; /* Bỏ padding bên phải */
    padding-left: 0 !important; /* Bỏ padding trái */
    margin-left: 0 !important; /* Bỏ margin trái */
    margin-right: 0 !important; /* Bỏ margin phải */
    position: relative;
}

/* Giảm padding của container và col để text căn sát viền trái */
.page-about .breadcumb-wrapper .container {
    padding-left: 0 !important; /* Bỏ padding trái của container */
    padding-right: 0 !important; /* Bỏ padding phải */
    margin-left: 0 !important; /* Bỏ margin trái */
    margin-right: 0 !important; /* Bỏ margin phải */
    max-width: 100% !important; /* Cho phép full width */
    width: 100% !important; /* Full width */
}

.page-about .breadcumb-wrapper .row {
    margin-left: 0 !important; /* Bỏ margin trái của row */
    margin-right: 0 !important; /* Bỏ margin phải */
    --bs-gutter-x: 0 !important; /* Bỏ gutter của Bootstrap */
}

.page-about .breadcumb-wrapper .col-lg-6 {
    padding-left: 0 !important; /* Bỏ padding trái của col */
    padding-right: 0 !important; /* Bỏ padding phải */
    margin-left: 0 !important; /* Bỏ margin trái */
}

.breadcumb-wrapper .breadcumb-content .breadcumb-title,
.breadcumb-wrapper .breadcumb-content .breadcumb-menu {
    text-align: center; /* Title và menu vẫn center */
}

/* Override cho about.html - title và menu vẫn center nhưng trong phạm vi 50% */
.page-about .breadcumb-wrapper .breadcumb-content .breadcumb-title,
.page-about .breadcumb-wrapper .breadcumb-content .breadcumb-menu {
    text-align: center;
}

/* Breadcumb Description Styling - Overlay trên ảnh */
.breadcumb-description {
    margin-top: 30px !important;
    margin-left: auto !important; /* Auto margin để center */
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    font-size: 28px !important; /* Tăng từ 22px lên 28px */
    line-height: 1.8 !important;
    color: #fff !important; /* Màu trắng để nổi bật trên ảnh */
    white-space: pre-line !important; /* Giữ nguyên line breaks */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important; /* Shadow để text dễ đọc hơn */
    max-width: none !important; /* Bỏ giới hạn width */
    width: auto !important; /* Tự động width */
    text-align: center !important; /* Căn giữa text */
    position: relative !important;
    z-index: 10 !important; /* Đảm bảo hiển thị trên background */
    display: block !important; /* Đảm bảo hiển thị */
    opacity: 1 !important; /* Đảm bảo không bị ẩn */
    visibility: visible !important; /* Đảm bảo visible */
    pointer-events: auto !important; /* Đảm bảo có thể tương tác */
}

.page-about .breadcumb-description {
    color: #fff !important;
}

/* Responsive adjustments for breadcumb description */
@media (max-width: 991px) {
    /* Trên mobile, overlay và content chiếm toàn bộ width */
    .page-about .breadcumb-wrapper::after {
        width: 100%; /* Overlay toàn bộ trên mobile */
    }
    
    .page-about .breadcumb-wrapper .breadcumb-content {
        max-width: none !important; /* Bỏ giới hạn trên mobile */
        width: auto !important;
        padding-left: 15px !important; /* Thêm padding trái nhỏ trên mobile để không sát quá */
        padding-right: 15px !important; /* Thêm padding phải trên mobile */
    }
    
    .page-about .breadcumb-wrapper .container {
        padding-left: 15px !important; /* Padding container trên mobile */
        padding-right: 15px !important;
    }
    
    .page-about .breadcumb-wrapper .col-lg-6 {
        padding-left: 15px !important; /* Padding col trên mobile */
        padding-right: 15px !important;
    }
    
    .breadcumb-description {
        font-size: 32px !important; /* Tăng từ 18px lên 20px cho mobile */
        margin-top: 20px;
        max-width: none !important; /* Bỏ giới hạn trên mobile */
        width: auto !important;
    }
}

/* Tăng chiều cao breadcumb section trong about.html để bằng với hero section của index.html */
.page-about .breadcumb-wrapper {
    min-height: 800px; /* Chiều cao tương đương với hero-2 */
    display: flex;
    align-items: center;
    padding: 180px 0 260px; /* Padding giống hero-style2 */
}

@media (max-width: 1500px) {
    .page-about .breadcumb-wrapper {
        padding: 180px 0 220px;
    }
}

@media (max-width: 1399px) {
    .page-about .breadcumb-wrapper {
        padding: 150px 0 200px;
        min-height: 700px;
    }
}

@media (max-width: 991px) {
    .page-about .breadcumb-wrapper {
        padding: 120px 0 180px;
        min-height: 600px;
    }
}

@media (max-width: 767px) {
    .page-about .breadcumb-wrapper {
        padding: 100px 0 150px;
        min-height: 500px;
    }
}

.breadcumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Tăng kích thước khung ảnh chính trong Hero section */
.hero-2-img {
    transform: scale(1.2); /* Tăng 20% */
    transform-origin: center center;
}

/* Tăng kích thước image bên trong */
.hero-2-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Điều chỉnh margin để image có không gian hơn */
@media (min-width: 992px) {
    .hero-2-img {
        margin: 0 -50px 70px 90px !important;
    }
}

@media (min-width: 1500px) {
    .hero-2-img {
        margin: 0 -50px 50px 90px !important;
    }
}

/* Đảm bảo hero-2-shape cũng scale theo */
.hero-2-img .hero-2-shape {
    transform: scale(1.2);
    transform-origin: center center;
}

/* Responsive - giảm scale trên mobile */
@media (max-width: 991px) {
    .hero-2-img {
        transform: scale(1.1);
    }
    
    .hero-2-img .hero-2-shape {
        transform: scale(1.1);
    }
}

/* Đảm bảo line breaks từ Sanity hiển thị đúng */
.hero-text,
.sub-title,
.sec-title,
.box-title,
.box-text,
.title-area .mt-30 {
    white-space: pre-line; /* Giữ line breaks và wrap text */
}

/* Tắt filter trắng đen cho ảnh trong About section (section 2) */
.img-box2 .img1 img,
.img-box2 .img2 img,
.img-box2 .img3 img {
    filter: none !important;
    -webkit-filter: none !important;
}

/* Tắt filter khi hover (không cần nữa vì đã tắt filter) */
.img-box2 .img1:hover img,
.img-box2 .img2:hover img,
.img-box2 .img3:hover img {
    filter: none !important;
    -webkit-filter: none !important;
}

/* Tăng kích thước ảnh chính trong About section */
.img-box2 .img1 {
    transform: scale(1.15); /* Tăng 15% */
    transform-origin: center center;
}

/* Responsive - giảm scale trên mobile */
@media (max-width: 991px) {
    .img-box2 .img1 {
        transform: scale(1.05); /* Tăng 5% trên mobile */
    }
}

/* Ẩn Feature Area giữa breadcumb và About section */
.breadcumb-wrapper + section.space-top {
    display: none !important;
}

/* Đảm bảo khung viền img-box1 không bị ảnh hưởng khi update ảnh từ Sanity */
/* Chỉ override khi cần, giữ nguyên CSS gốc */
.img-box1 .img1 img {
    /* Đảm bảo ảnh luôn giữ kích thước cố định, không scale theo tỉ lệ ảnh */
    /* CSS gốc đã có max-width: 690px và height: 690px, chỉ cần đảm bảo không bị override */
    object-fit: cover !important;
    /* Không thay đổi width/height để khung viền giữ nguyên */
}

/* Team Section - Đảm bảo các card ảnh cùng kích thước và có khoảng cách */
#team-sec .team-card3 {
    /* Đảm bảo mỗi card có cùng chiều cao */
    height: 100%;
    display: flex;
    flex-direction: column;
}

#team-sec .team-card3 .team-img {
    /* Tỉ lệ 3:4 (width:height) */
    width: 100%;
    aspect-ratio: 3 / 4; /* Tỉ lệ 3:4 */
    overflow: hidden;
    border-radius: 30px;
    margin-bottom: 0; /* Bỏ margin-bottom vì đã có spacing từ swiper */
}

#team-sec .team-card3 .team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fill khung, crop nếu cần */
    display: block;
}

#team-sec .team-card3 a.popup-image {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
    text-decoration: none;
}

#team-sec .team-card3 a.popup-image .team-img {
    width: 100%;
    height: 100%;
}

#team-sec .team-card3 a.popup-image:hover .team-img img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Spacing giữa các cards trong slider */
#team-sec .swiper-slide {
    height: auto;
    /* Khoảng cách được quản lý bởi Swiper spaceBetween, không cần padding */
}

#team-sec .swiper-wrapper {
    align-items: stretch; /* Đảm bảo tất cả slides cùng chiều cao */
}

/* Responsive - Tỉ lệ 3:4 được giữ nguyên trên tất cả màn hình */
/* aspect-ratio sẽ tự động tính toán height dựa trên width */

/* Căn giữa CTA button trong Team section */
#team-sec .title-area .team-cta-button {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hero Image Section (My Project / Mini Universe) */
.hero-image-section {
    position: relative;
    min-height: 1000px; /* Tăng chiều cao section thêm nữa */
    padding: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    display: flex;
    align-items: flex-end; /* Căn nội dung xuống dưới */
    padding-bottom: 120px; /* Tăng padding dưới */
}

.hero-image-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5); /* Overlay đen mờ opacity 0.5 */
    z-index: 1;
}

.hero-image-section .container {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-bottom: 0;
}

.hero-image-section .hero-content {
    position: relative;
    z-index: 2;
}

.hero-image-section .hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0;
}

.hero-image-section .hero-description {
    font-size: 18px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-image-section .hero-btn-wrap {
    display: flex;
    justify-content: center;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-image-section {
        min-height: 800px; /* Tăng chiều cao trên tablet thêm nữa */
        padding-bottom: 100px;
    }
    
    .hero-image-section .hero-title {
        font-size: 36px;
    }
    
    .hero-image-section .hero-description {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .hero-image-section {
        min-height: 600px; /* Tăng chiều cao trên mobile thêm nữa */
        padding-bottom: 80px;
    }
    
    .hero-image-section .hero-title {
        font-size: 28px;
    }
    
    .hero-image-section .hero-description {
        font-size: 14px;
    }
}

/* Ẩn tất cả các section phía dưới Mini Universe section */
#mini-universe-sec ~ * {
    display: none !important;
}

/* Ẩn Team section trên about.html */
.page-about #team-sec {
    display: none !important;
}

/* Donation Cards - Chiều cao bằng nhau và truncate description */
#donation-sec .row.gy-30 {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch; /* Đảm bảo các card có chiều cao bằng nhau */
}

#donation-sec .row.gy-30 > .col-xl-6 {
    display: flex;
    align-items: stretch;
}

#donation-sec .donation-card.style3 {
    display: flex;
    flex-direction: row; /* Giữ layout ngang: ảnh trái, text phải */
    height: 100%;
    width: 100%;
    align-items: stretch;
}

#donation-sec .donation-card.style3 .box-thumb {
    flex-shrink: 0;
    height: 100%;
    min-height: 200px;
    align-self: stretch;
}

#donation-sec .donation-card.style3 .box-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#donation-sec .donation-card.style3 .box-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between; /* Phân bố đều nội dung */
}

#donation-sec .donation-card.style3 .donation-card-description {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Giới hạn 3 dòng */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 20px;
    line-height: 1.6;
    flex: 1;
}

/* Xóa donation-card-shape overlay */
#donation-sec .donation-card.style3 .box-thumb .donation-card-shape {
    display: none !important;
}

/* Responsive */
@media (max-width: 575px) {
    #donation-sec .row.gy-30 > .col-xl-6 {
        display: block;
    }
    
    #donation-sec .donation-card.style3 {
        height: auto;
        flex-direction: column; /* Trên mobile: ảnh trên, text dưới */
    }
    
    #donation-sec .donation-card.style3 .box-thumb {
        min-height: 250px;
        height: auto;
    }
}

/* Common styles for all card sections (Donation, Community Services, Internship) */
/* Đảm bảo tất cả các cards có cùng chiều cao giống section đầu tiên */
#donation-sec .row.gy-30,
#community-services-sec .row.gy-30,
#internship-sec .row.gy-30 {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch; /* Đảm bảo các card có chiều cao bằng nhau */
}

#donation-sec .row.gy-30 > .col-xl-6,
#community-services-sec .row.gy-30 > .col-xl-6,
#internship-sec .row.gy-30 > .col-xl-6 {
    display: flex;
    align-items: stretch;
}

#donation-sec .donation-card.style3,
#community-services-sec .donation-card.style3,
#internship-sec .donation-card.style3 {
    display: flex;
    flex-direction: row; /* Giữ layout ngang: ảnh trái, text phải */
    height: 100%;
    width: 100%;
    align-items: stretch;
}

#donation-sec .donation-card.style3 .box-thumb,
#community-services-sec .donation-card.style3 .box-thumb,
#internship-sec .donation-card.style3 .box-thumb {
    flex-shrink: 0;
    height: 100%;
    min-height: 200px;
    align-self: stretch;
}

#donation-sec .donation-card.style3 .box-thumb img,
#community-services-sec .donation-card.style3 .box-thumb img,
#internship-sec .donation-card.style3 .box-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#donation-sec .donation-card.style3 .box-content,
#community-services-sec .donation-card.style3 .box-content,
#internship-sec .donation-card.style3 .box-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between; /* Phân bố đều nội dung */
}

#donation-sec .donation-card.style3 .donation-card-description,
#community-services-sec .donation-card.style3 .donation-card-description,
#internship-sec .donation-card.style3 .donation-card-description {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Giới hạn 3 dòng */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 20px;
    line-height: 1.6;
    flex: 1;
}

/* Responsive */
@media (max-width: 575px) {
    #donation-sec .row.gy-30 > .col-xl-6,
    #community-services-sec .row.gy-30 > .col-xl-6,
    #internship-sec .row.gy-30 > .col-xl-6 {
        display: block;
    }
    
    #donation-sec .donation-card.style3,
    #community-services-sec .donation-card.style3,
    #internship-sec .donation-card.style3 {
        height: auto;
        flex-direction: column; /* Trên mobile: ảnh trên, text dưới */
    }
    
    #donation-sec .donation-card.style3 .box-thumb,
    #community-services-sec .donation-card.style3 .box-thumb,
    #internship-sec .donation-card.style3 .box-thumb {
        min-height: 250px;
        height: auto;
    }
}

/* Simple Event Cards - Hình tứ giác nghiêng với góc bo tròn */
.simple-event-card {
    position: relative;
    width: 100%;
    padding-bottom: 133.33%; /* Tỉ lệ 3:4 (height/width = 4/3 = 133.33%) */
    overflow: hidden;
    height: 0; /* Để padding-bottom hoạt động */
}

.simple-event-card .event-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /* Đảm bảo mask được áp dụng */
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
}

.simple-event-card .event-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hover effect */
.simple-event-card:hover .event-card-img img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Đảm bảo Swiper slide có chiều cao phù hợp */
#eventSlider .swiper-slide {
    height: auto;
}

#eventSlider .swiper-wrapper {
    align-items: stretch;
}

/* Responsive */
@media (max-width: 991px) {
    .simple-event-card {
        padding-bottom: 130%; /* Tăng tỉ lệ trên tablet */
    }
}

@media (max-width: 767px) {
    .simple-event-card {
        padding-bottom: 120%; /* Tăng tỉ lệ trên mobile */
    }
}



/* ============================================
   Logo Text Styling - Amelia
   ============================================ */
.logo-text-amelia {
    font-size: 48px;
    font-weight: 900;
    color: #1A685B; /* Màu xanh theme */
    -webkit-text-stroke: 3px white; /* Viền trắng dày hơn */
    text-stroke: 3px white;
    text-decoration: none;
    display: inline-block;
    font-family: var(--title-font, 'Nunito', sans-serif);
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.logo-text-amelia:hover {
    color: #1A685B;
    -webkit-text-stroke: 3px white;
    text-stroke: 3px white;
    opacity: 0.9;
}

/* Fallback cho browser không support text-stroke */
@supports not (-webkit-text-stroke: 2px white) {
    .logo-text-amelia {
        color: #1A685B;
        text-shadow: 
            -1px -1px 0 white,
            1px -1px 0 white,
            -1px 1px 0 white,
            1px 1px 0 white,
            -2px -2px 0 white,
            2px -2px 0 white,
            -2px 2px 0 white,
            2px 2px 0 white;
    }
}

/* ============================================
   Content Blocks Styling
   ============================================ */

/* Content Blocks Section */
#content-blocks-sec {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Content Blocks Wrapper */
.content-blocks-wrapper {
    max-width: 100%;
    display: block !important;
    visibility: visible !important;
}

/* Content Block Base */
.content-block {
    margin-bottom: 40px;
}

.content-block:last-child {
    margin-bottom: 0;
}

/* Text Block */
.content-block-text {
    line-height: 1.8;
}

.content-block-text p {
    margin-bottom: 20px;
    color: #666;
    font-size: 18px; /* Tăng font size cho desktop */
}

.content-block-text p:last-child {
    margin-bottom: 0;
}

.content-block-title {
    margin-bottom: 20px;
    color: #1A685B;
}

.content-block-text h2.content-block-title {
    font-size: 36px; /* Tăng font size cho H2 trên desktop */
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-block-text h3.content-block-title {
    font-size: 30px; /* Tăng font size cho H3 trên desktop */
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-block-text h4.content-block-title {
    font-size: 24px; /* Tăng font size cho H4 trên desktop */
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-block-text h2.content-block-title:first-child,
.content-block-text h3.content-block-title:first-child,
.content-block-text h4.content-block-title:first-child {
    margin-top: 0;
}

.content-block-text blockquote {
    padding: 30px;
    margin: 30px 0;
    border-left: 4px solid var(--theme-color, #1A685B);
    background: #f8f9fa;
    font-style: italic;
    font-size: 20px; /* Tăng font size cho blockquote trên desktop */
}

.content-block-text blockquote p {
    margin-bottom: 10px;
    color: #333;
    font-size: 20px; /* Tăng font size cho blockquote text trên desktop */
}

.content-block-text blockquote cite {
    display: block;
    margin-top: 15px;
    font-style: normal;
    font-weight: 600;
    color: var(--theme-color, #1A685B);
}

.content-block-text a {
    color: var(--theme-color, #1A685B);
    text-decoration: underline;
}

.content-block-text a:hover {
    color: var(--theme-color2, #FFAC00);
}

/* CTA Button in Text Block */
.content-block-cta {
    margin-top: 30px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.content-block-cta .th-btn {
    display: inline-block;
    color: #fff !important; /* Chữ màu trắng cho button default */
}

.content-block-cta .th-btn:not(.style2):not(.style3):not(.style6) {
    color: #fff !important; /* Đảm bảo button default có chữ trắng */
}

/* Image Block */
.content-block-image {
    margin-bottom: 40px;
}

.content-block-image .blog-radius-img {
    border-radius: 10px;
    overflow: hidden;
}

.content-block-image .blog-radius-img img {
    width: 100%;
    height: auto;
    display: block;
}

.content-block-image .blog-radius-img a.popup-image {
    display: block;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.content-block-image .blog-radius-img a.popup-image:hover {
    opacity: 0.9;
}

/* Video Block */
.content-block-video {
    margin-bottom: 40px;
}

.content-block-video .video-wrapper {
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

.content-block-video .video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    background: #000;
}

.content-block-video .video-wrapper video::-webkit-media-controls-panel {
    background-color: rgba(0, 0, 0, 0.5);
}

.content-block-video .video-wrapper .ratio {
    position: relative;
    width: 100%;
}

.content-block-video .video-wrapper .ratio::before {
    content: "";
    display: block;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.content-block-video .video-wrapper .ratio iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-caption {
    font-size: 14px;
    color: #666;
    font-style: italic;
    text-align: center;
    margin-top: 10px;
}

/* Image Caption */
.image-caption {
    font-size: 14px;
    color: #666;
    font-style: italic;
    text-align: center;
    margin-top: 10px;
}

.content-block-image-caption figure {
    margin: 0;
}

.content-block-image-caption figcaption {
    font-size: 14px;
    color: #666;
    font-style: italic;
    text-align: center;
    margin-top: 10px;
}

/* Image Layout: Two Columns */
.content-block-image-two .row {
    margin: 0;
}

.content-block-image-two .col-md-6 {
    padding: 0 15px;
}

/* Image Layout: Three Columns */
.content-block-image-three .row {
    margin: 0;
}

.content-block-image-three .col-md-4 {
    padding: 0 15px;
}

/* Image Layout: Left-Right */
.content-block-image-left-right {
    margin-bottom: 50px;
}

.content-block-image-left-right .row {
    align-items: center;
}

.content-block-image-left-right .content-block-text {
    padding: 20px;
}

/* Responsive */
@media (max-width: 991px) {
    .content-block-text p {
        font-size: 16px; /* Giảm font size trên tablet */
    }
    
    .content-block-text h2.content-block-title {
        font-size: 28px;
    }
    
    .content-block-text h3.content-block-title {
        font-size: 24px;
    }
    
    .content-block-text h4.content-block-title {
        font-size: 20px;
    }
    
    .content-block-text blockquote {
        font-size: 18px;
    }
    
    .content-block-text blockquote p {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .content-block {
        margin-bottom: 30px;
    }
    
    .content-block-text p {
        font-size: 15px; /* Giảm font size trên mobile */
    }
    
    .content-block-text h2.content-block-title {
        font-size: 24px;
    }
    
    .content-block-text h3.content-block-title {
        font-size: 20px;
    }
    
    .content-block-text h4.content-block-title {
        font-size: 18px;
    }
    
    .content-block-text blockquote {
        padding: 20px;
        margin: 20px 0;
        font-size: 16px;
    }
    
    .content-block-text blockquote p {
        font-size: 16px;
    }
    
    .content-block-image-left-right .row > div {
        margin-bottom: 20px;
    }
    
    .content-block-image-left-right .row > div:last-child {
        margin-bottom: 0;
    }
}
