/* Single Post Styles */
.single-post-main {
    padding: 20px 0px 0px;
    background-color: #F2F2F2;
}

.recruitment-custom-layout {
    background: white;
    padding: 50px;
    border-radius: 32px;
}

.dialog-box.recruitment {
    width: 100% !important;
    box-shadow: none !important;
    margin: 20px auto;

}

.form-left.recruitment {
    background: url("../public/Group 27630.png");
    background-size: contain;
    background-position: center;
    width: 400px;
    height: 400px;
    flex: 1;
    background-repeat: no-repeat;
}

.cs-submit-btn.recruitment {
    margin: auto !important;
}

.form-right.recruitment {
    flex: 1;
    height: 100% !important;
    width: 100% !important;
}
.form-middle.endow,
.form-left.endow{
    flex: 0.3 !important;
}
.cs-form-title.recruitment {
    margin-bottom: auto !important;
    font-family: Montserrat;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.5;
    letter-spacing: 0;
}
.cs-submit-btn.endow{
    margin-left: 20%;
    background: transparent;
    border: 1px solid white;
}
.cs-form-group.recruitment{
    width: 61%;
}
.recruitment-rows{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cs-form-section.recruitment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../public/049bf246da6bac718d5250e23e5b2e5415b4ebd2.jpg");
    background-position: right;
    z-index: -1;
    background-size: cover;
}
.invite-row{
    display: flex;
    width: 61%;
    gap: 35px;
    margin: 30px 0px;
}
.cs-form-title.invite{
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;               /* Bold = 700 */
    font-style: normal;             /* 'Bold' là weight, style vẫn là normal */
    font-size: 1.5rem;              /* 24px ÷ 16 = 1.5rem */
    line-height: 1.5;               /* 150% */
    letter-spacing: 0;
    text-align: left;
    color: white;
    margin-left: 15%;
}
.cs-form-textarea.invite{
    border: 2px solid white !important;
    resize: vertical;
    min-height: 50px;
    height: 100px;
}
.cs-form-section.invite::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../public/7c0a826535c7c5fecebd62b6b6857e93bd8e0c72.jpg");
    background-position: center;
    z-index: -1;
    background-size: cover;
}

.cs-form-grid.recruitment {
    display: flex !important;
    gap: 15px;
    margin: 15px auto;
}
.endow-form{
    width: 80%;
}

.cs-form-title.endow {
    margin-left: 100px;
    text-align: left;
    color: white;
    font-family: Montserrat;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.2;
    letter-spacing: 0;
    margin-bottom: 10px;
}

.cs-form-section.recruitment.cs-active {
    padding: 40px 150px 40px 100px !important;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 4px solid #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    z-index: 1;
    justify-content: center;
}

.play-button::before {
    content: '';
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 25px solid #FFFFFF;
    position: absolute;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 20px;
    font-family: Montserrat;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: 0;
    text-align: left;
}

.post-date {
    font-family: Montserrat;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: 0;
    text-align: center;
}

.breadcrumbs a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs-tittle {
    color: #333;
    font-weight: 700;
}

/* Main Layout */
.single-post-layout {
    border-top: 1.5px solid #00000026;
    display: grid;
    grid-template-columns: 60px 1fr 350px;
    gap: 10px;
    margin-bottom: 40px;
}

.social-sidebar, .single-post-content, .right-sidebar {
    margin-top: 30px;
}

/* Social Sidebar */
.social-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.social-share-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-btn:hover {
    transform: scale(1.1);
}

.social-btn.facebook {
    background: linear-gradient(135deg, #1877F2 0%, #4e8de9 100%);
}

.social-btn.linkedin {
    background: linear-gradient(135deg, #0077B5 0%, #00a0dc 100%);
}

.social-btn.gmail {
    background: linear-gradient(135deg, #ff512f 0%, #dd2476 100%);
}

.social-btn.zalo {
    background: linear-gradient(135deg, #0084ff 0%, #00c6ff 100%);
}

/* Main Content */
.single-post-content {
    width: calc(100% - 100px);
    border-radius: 8px;
    margin: 30px 40px;
}

.post-header {
    margin-bottom: 20px;
}

.post-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-style: normal; /* "Bold" không phải giá trị hợp lệ */
    font-size: 1.375rem; /* 22px ÷ 16 = 1.375rem */
    line-height: 1.2; /* 120% */
    letter-spacing: 0;
    text-transform: uppercase;
    color: #252432;
}

.container.post {
    max-width: calc(100% - 100px) !important;
}

.post-meta {
    display: flex;
    gap: 5px;
    align-items: center;
}

.fa-regular.fa-clock {
    color: #0CA6E1;
}

.post-featured-image {
    margin-bottom: 30px;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.post-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.post-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.tags-label {
    font-weight: 600;
    color: #333;
}

.tag-link {
    background: #f0f0f0;
    color: #666;
    padding: 5px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.tag-link:hover {
    background: #007bff;
    color: white;
}

/* Right Sidebar */
.right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-section {

    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-title {
    margin: 0;
    width: fit-content;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-style: normal; /* 'Medium' là font-weight, không dùng ở font-style */
    font-size: 1.25rem; /* 20px ÷ 16 = 1.25rem */
    letter-spacing: 0;
    display: inline;
    padding: 5px;
    background: #D9D9D9;
}

/* Recent News */
.recent-news-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recent-news-item {
    display: flex;
    gap: 15px;
    padding: 10px;
    border-bottom: 1px solid #eee;
    background: white;
    width: 350px;
    height: 150px;
    border-radius: 10px;
    justify-content: center;
    align-items: center;
}

.recent-news-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.news-thumbnail {
    flex-shrink: 0;
    width: 140px;
    position: relative;
    height: 110px;
    overflow: hidden;
    border-radius: 4px;
}

.news-thumbnail img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    position: relative;
}

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-title {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.4;
}

.news-title a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600; /* SemiBold tương đương 600 */
    font-style: normal; /* 'SemiBold' là weight, không phải style */
    font-size: 0.6875rem; /* 11px ÷ 16 = 0.6875rem */
    line-height: 1.2; /* 120% = 1.2 */
    letter-spacing: 0;
    text-decoration: none;
    color: black;
    text-transform: uppercase;
}

.news-title a:hover {
    color: #007bff;
}

.news-date {
    color: #F2784D;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-style: normal; /* "Medium" không hợp lệ ở font-style */
    font-size: 0.6875rem; /* 11px ÷ 16 = 0.6875rem */
    line-height: 1.5; /* 150% */
    letter-spacing: 0;
    text-align: justify;
}

/* Advertisement Banner */
.ad-banner-container {
    margin: 50px auto;
}

.ad-banner-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.ad-banner-placeholder {
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.section-title.post {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 1.25rem;
    line-height: 1.5;
    letter-spacing: 0;
    color: #000000;
    text-align: left;
    border-bottom: 3px solid #1552A2;
    display: inline-flex;

}

.ad-banner-placeholder h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.ad-banner-placeholder p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* Related Posts Section */
.related-posts-section {
    margin-top: 40px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    text-align: left;
    border-bottom: 3px solid #007bff;
    padding-bottom: 10px;
}

/* Related Posts Slider */
.related-posts-slider-wrapper {
    position: relative;
    overflow: hidden;
}

.related-posts-slider.single-row {
    transition: transform 0.6s ease-in-out;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-posts-slider.double-row {
    transition: transform 0.6s ease-in-out;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 20px;
}

.related-post-card {
    flex: 0 0 calc(33.333% - 14px);
    background: white;
    overflow: hidden;
    box-shadow: 0px 4px 10px 0px #00000033;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    min-width: 0;
    border-bottom-right-radius: 20px;
    border-bottom-left-radius: 20px;
}

.related-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.related-card-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-card:hover .related-card-image img {
    transform: scale(1.05);
}

.related-card-content {
    padding: 20px;
}

.related-card-title {
    margin: 0 0 15px 0;

    height: 50px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600; /* SemiBold tương đương 600 */
    font-style: normal; /* 'SemiBold' là weight, không phải style */
    font-size: 1.25rem; /* 20px ÷ 16 = 1.25rem */
    line-height: 1.2; /* 120% = 1.2 */
    letter-spacing: 0;
    text-align: justify;
    text-transform: uppercase;
}

.related-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-card-title a:hover {
    color: #007bff;
}

.related-card-excerpt {

    height: 60px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400; /* Regular = 400 */
    font-style: normal; /* 'Regular' là weight, không dùng trong font-style */
    font-size: 1rem; /* 16px ÷ 16 = 1rem */
    line-height: 1.5; /* 150% = 1.5 */
    letter-spacing: 0;
    text-align: justify;
}

/* Related Slider Navigation */
.related-slider-navigation {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    padding: 30px;
}

.related-slider-navigation .nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.related-slider-navigation .nav-dot.active {
    background: #007bff;
    transform: scale(1.3);
}

.related-slider-navigation .nav-dot:hover {
    background: #007bff;
    opacity: 0.7;
}

.no-related-posts {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .single-post-layout {
        grid-template-columns: 1fr 280px;
        gap: 20px;
    }

    .social-sidebar {
        display: none;
    }

    .related-post-card {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .single-post-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .single-post-content {
        padding: 20px;
    }

    .post-title {
        font-size: 24px;
    }

    .recent-news-item {
        flex-direction: column;
        gap: 10px;
    }

    .news-thumbnail {
        width: 100%;
        height: 150px;
    }

    .related-post-card {
        flex: 0 0 100%;
    }

    .related-posts-section {
        padding: 30px 20px;
    }

    .section-title {
        font-size: 20px;
        text-align: center;
    }

    .related-card-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .single-post-content {
        padding: 15px;
    }

    .post-title {
        font-size: 20px;
    }

    .related-posts-section {
        padding: 20px 15px;
    }

    .related-card-content {
        padding: 15px;
    }

    .related-card-title {
        font-size: 16px;
        height: auto;
    }

    .related-card-excerpt {
        height: auto;
    }
}
  