
/* ===== Page-specific Styles: Contact, FAQ, Policy ===== */

/* --- Page Title Area (breadcrumb + heading) --- */
.page-title-area {
    background: linear-gradient(135deg, #fff5f0 0%, #fef8f4 50%, #fff 100%);
    border-bottom: 1px solid #f0e6de;
    position: relative;
}
.page-title-area::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: radial-gradient(circle at right, rgba(243, 107, 36, 0.05), transparent 70%);
    pointer-events: none;
}
.page-title-area h2 {
    font-family: var(--header-font);
    font-weight: 700;
    color: #2d2d2d;
    font-size: 28px;
}
.page-title-area .lead {
    color: #666;
    font-size: 16px;
}
.page-title-area .breadcrumb-item a {
    color: var(--system-primay-color, #f36b24);
}

/* --- Contact Form (Premium) --- */
#contactForm .form-control {
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fafafa;
}
#contactForm .form-control:focus {
    border-color: var(--system-primay-color, #f36b24);
    box-shadow: 0 0 0 4px rgba(243, 107, 36, 0.08);
    background: #fff;
}
#contactForm .form-label {
    font-weight: 600;
    font-size: 13px;
    color: #444;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
#contactForm .template-btn {
    border-radius: 10px;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
}
#contactForm .border {
    border-radius: 16px !important;
    border-color: #f0e6de !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

/* Contact Info sidebar */
.contact-info-list li {
    font-size: 15px;
    line-height: 1.6;
}
.contact-info-list a {
    color: var(--system-primay-color, #f36b24);
    text-decoration: none;
    transition: color 0.2s;
}
.contact-info-list a:hover {
    color: #d45a1a;
}
.contact-info-list .text-primary {
    color: var(--system-primay-color, #f36b24) !important;
}
.bg-light.rounded {
    border-radius: 16px !important;
    border: 1px solid #f0e6de;
}

/* --- FAQ Accordion (Premium) --- */
.accordion-item {
    border: 1px solid #eaeaea !important;
    border-radius: 12px !important;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.accordion-item:hover {
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}
.accordion-button {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    padding: 18px 22px;
    background: #fafafa;
    transition: all 0.2s;
}
.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #fff5f0, #fff);
    color: var(--system-primay-color, #f36b24);
    box-shadow: none;
    font-weight: 700;
}
.accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(243, 107, 36, 0.1);
    border-color: transparent;
}
.accordion-body {
    padding: 18px 22px;
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    background: #fff;
    border-top: 1px solid #f5f5f5;
}

/* --- Policy / Terms Content (Premium) --- */
.policy-content {
    line-height: 1.8;
}
.policy-heading {
    font-family: var(--header-font);
    font-weight: 700;
    color: #2d2d2d;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--system-primay-color, #f36b24);
    display: inline-block;
    margin-bottom: 12px;
}
.policy-block {
    padding: 10px 0;
}
.policy-block p {
    color: #555;
    font-size: 15px;
    line-height: 1.8;
}
/* Policy list — compact bullet list */
.policy-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.policy-list li {
    position: relative;
    padding-left: 22px;
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}
.policy-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--system-primay-color, #f36b24);
}

/* --- Support Contact Cards (Premium hover) --- */
.col-md-4 .bg-light {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid #f0e6de;
    border-radius: 16px !important;
}
.col-md-4 .bg-light:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(243, 107, 36, 0.1);
}
.col-md-4 .bg-light .fa-2x {
    color: var(--system-primay-color, #f36b24) !important;
    margin-bottom: 12px;
}

/* --- About Us page (Premium) --- */
.about-us-section .border {
    border-color: #f0e6de !important;
    border-radius: 16px !important;
    transition: box-shadow 0.2s;
}
.about-us-section .border:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}
.about-us-section .text-primary,
.about-us-section .fw-bold {
    color: var(--system-primay-color, #f36b24) !important;
}

/* ===== Footer Compact Fix ===== */
/* Override footer-offset: original has margin-top:-145px + padding-top:220px → huge gap */
.footer-offset {
    margin-top: 0;
}
.footer-offset .footer-widget {
    padding-top: 50px !important;
}
.footer-area .footer-top {
    padding-top: 0;
    padding-bottom: 20px;
}
.footer-area .social-profile {
    margin-top: 20px !important;
}
.footer-area .footer-widget .row:last-child {
    padding-top: 0;
}
.footer-area .widget {
    margin-bottom: 20px;
}
.footer-area .nav-widget .widget-title {
    margin-bottom: 12px;
}
.footer-area .nav-widget ul li {
    margin-bottom: 6px;
}
/* Footer contact list compact */
.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}
.footer-contact-list li i {
    margin-top: 3px;
    color: var(--system-primay-color, #f36b24);
    min-width: 16px;
}
/* Footer brand logo */
.footer-area .brand-logo img {
    border-radius: 10px;
    background: transparent;
    max-height: 80px;
}
.footer-area .footer-bottom {
    padding: 15px 0;
}

/* ===== Blog Page Premium ===== */

/* Blog card hover */
.blog-post-item {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #f0ebe6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.blog-post-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(243, 107, 36, 0.1);
}

/* Equal height blog grid — chỉ target row chứa blog cards */
.blog_section_wrap > [class*="col-"] {
    display: flex;
    margin-bottom: 24px;
}

/* Image zoom on hover — no extra border-radius, parent overflow:hidden handles it */
.blog-post-item .post-thumbnail {
    overflow: hidden;
    flex-shrink: 0;
}
.blog-post-item .post-thumbnail img {
    transition: transform 0.4s ease;
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.blog-post-item:hover .post-thumbnail img {
    transform: scale(1.05);
}

/* Post content spacing */
.blog-post-item .post-content {
    padding: 20px;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}
.blog-post-item .post-content .title a {
    font-weight: 700;
    font-size: 17px;
    color: #2d2d2d;
    transition: color 0.2s;
    line-height: 1.4;
}
.blog-post-item .post-content .title a:hover {
    color: var(--system-primay-color, #f36b24);
}
.blog-post-item .post-content .content {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
    display: -webkit-box !important;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.6em * 3);
    flex-shrink: 0;
}

/* Post meta — always at bottom */
.blog-post-item .post-meta-wrapper {
    padding: 12px 20px;
    border-top: 1px solid #f5f0eb;
    margin-top: auto !important;
}
.blog-post-item .read-more-btn {
    color: var(--system-primay-color, #f36b24);
    font-weight: 600;
    font-size: 14px;
}
.blog-post-item .read-more-btn:hover {
    color: #d45a1a;
}

/* Date badge */
.blog-post-item .post-meta .date a {
    background: var(--system-primay-color, #f36b24);
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Blog sidebar */
.blog-sidebar .widget {
    background: #fafafa;
    border-radius: 14px;
    padding: 24px;
    border: 1px solid #f0ebe6;
}
.blog-sidebar .widget-title-v2 {
    font-weight: 700;
    font-size: 16px;
    color: #2d2d2d;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--system-primay-color, #f36b24);
    margin-bottom: 16px;
}

/* Featured blog section */
.featured-news-section {
    background: linear-gradient(135deg, #fff5f0 0%, #fefaf8 50%, #fff 100%) !important;
}
.featured-news-section .section-title-v3 h3 {
    font-weight: 700;
}

/* ===== Courses Page Premium ===== */

/* --- Course Hero Banner --- */
.course-hero-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 48px 0 40px;
    position: relative;
    overflow: hidden;
}
.course-hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(243, 107, 36, 0.15), transparent 65%);
    pointer-events: none;
}
.course-hero-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(243, 107, 36, 0.08), transparent 65%);
    pointer-events: none;
}
.course-hero-banner .breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 8px;
}
.course-hero-banner .breadcrumb-item a {
    color: rgba(255,255,255,0.65);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}
.course-hero-banner .breadcrumb-item a:hover {
    color: var(--system-primay-color, #f36b24);
}
.course-hero-banner .breadcrumb-item.active {
    color: rgba(255,255,255,0.45);
    font-size: 13px;
}
.course-hero-banner .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.3);
}
.course-hero-title {
    font-family: var(--header-font);
    font-weight: 800;
    font-size: 32px;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}
.course-hero-subtitle {
    color: rgba(255,255,255,0.55);
    font-size: 15px;
    margin-bottom: 0;
    line-height: 1.5;
}
.course-hero-stats {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
}
.stat-badge {
    background: rgba(243, 107, 36, 0.12);
    border: 1px solid rgba(243, 107, 36, 0.25);
    border-radius: 16px;
    padding: 20px 30px;
    text-align: center;
    backdrop-filter: blur(10px);
}
.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--system-primay-color, #f36b24);
    line-height: 1;
    margin-bottom: 4px;
}
.stat-label {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* --- Course Filter Toolbar (Header) --- */
.course-shorter.course-shorter-v2 {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 14px 20px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.course-shorter .grid-list li a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}
.course-shorter .grid-list li.active a {
    background: var(--system-primay-color, #f36b24);
    color: #fff !important;
}
.course-shorter .sort-text {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}
.course-shorter .search-form {
    background: #f7f7f8;
    border-radius: 10px;
    border: 1.5px solid #eee;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.course-shorter .search-form:focus-within {
    border-color: var(--system-primay-color, #f36b24);
    box-shadow: 0 0 0 3px rgba(243, 107, 36, 0.08);
    background: #fff;
}
.course-shorter .search-form input {
    border: none;
    background: transparent;
    padding: 10px 14px;
    font-size: 14px;
    color: #333;
    outline: none;
}
.course-shorter .search-form input::placeholder {
    color: #aaa;
}
.course-shorter .search-form .search-btn {
    background: var(--system-primay-color, #f36b24);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 8px 8px 0;
    transition: background 0.2s;
    cursor: pointer;
}
.course-shorter .search-form .search-btn:hover {
    background: #d45a1a;
}
.course-shorter .course-sort {
    border: 1.5px solid #eee;
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 14px;
    color: #555;
    background: #f7f7f8;
    cursor: pointer;
    transition: border-color 0.2s;
}
.course-shorter .course-sort:focus {
    border-color: var(--system-primay-color, #f36b24);
    outline: none;
}

/* --- Course Cards Premium --- */
.course-items-v3 {
    align-items: stretch;
}
.course-items-v3 > [class*="col-"] {
    display: flex;
    margin-bottom: 24px;
}
.course-items-v3 .course-item {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f0ebe6;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
    background: #fff;
    display: flex;
    flex-direction: column;
    width: 100%;
}
.course-items-v3 .course-item .course-item-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.course-items-v3 .course-item .course-item-footer {
    margin-top: auto;
}
.course-items-v3 .course-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.08);
    border-color: rgba(243, 107, 36, 0.15);
}
/* Image zoom */
.course-items-v3 .course-item-thumb {
    overflow: hidden;
    display: block;
    border-radius: 16px 16px 0 0;
}
.course-items-v3 .course-item-thumb img {
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    object-fit: cover;
}
.course-items-v3 .course-item:hover .course-item-thumb img {
    transform: scale(1.06);
}
/* Category tag */
.course-items-v3 .course-category li a {
    background: rgba(243, 107, 36, 0.08);
    color: var(--system-primay-color, #f36b24);
    font-weight: 600;
    font-size: 12px;
    border-radius: 6px;
    padding: 3px 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
/* Course title */
.course-items-v3 .course-item-body .title {
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: calc(1.4em * 2);
}
.course-items-v3 .course-item-body .title a {
    font-weight: 700;
    font-size: 16px;
    color: #1a1a2e;
    line-height: 1.4;
    transition: color 0.2s;
}
.course-items-v3 .course-item-body .title a:hover {
    color: var(--system-primay-color, #f36b24);
}
/* Price styling */
.course-items-v3 .course-price {
    font-weight: 700;
    color: var(--system-primay-color, #f36b24);
    font-size: 17px;
}
/* Rating stars */
.course-items-v3 .rating-review .total-review {
    background: #fff8f0;
    border: 1px solid rgba(243, 107, 36, 0.15);
    color: var(--system-primay-color, #f36b24);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
}
.course-items-v3 .rating-review .total-review i {
    color: #f5a623;
}
/* Instructor avatar */
.course-items-v3 .course-item-footer .instructor-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #f0ebe6;
}

/* --- Course Sidebar Premium --- */
.course-sidebar {
    background: #fff;
    border: 1px solid #f0ebe6;
    border-radius: 18px !important;
    padding: 24px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    position: sticky;
    top: 100px;
}
.course-sidebar .widget {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f5f0eb;
}
.course-sidebar .widget:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.course-sidebar .dropdown-title {
    font-weight: 700;
    font-size: 15px;
    color: #1a1a2e;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: 8px;
    border-bottom: 2px solid var(--system-primay-color, #f36b24);
}
/* Primary count badge — ẩn theo yêu cầu */
.count-badge-primary {
    display: none;
}
/* Subtle count badge (category/filter counts) — ẩn theo yêu cầu */
.count-badge {
    display: none;
}
/* Category list items */
.course-sidebar .category-list-group li {
    margin-bottom: 2px;
}
.course-sidebar .category-list-group > li:not(.dropdown-title) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.course-sidebar .category-list-group li label {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    border-radius: 10px;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}
.course-sidebar .category-list-group li a.parent_category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    padding: 8px 12px;
    border-radius: 10px;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    font-weight: 600;
}
.course-sidebar .category-list-group li label:hover,
.course-sidebar .category-list-group li a.parent_category:hover {
    background: #fff5f0;
    color: var(--system-primay-color, #f36b24);
}
.course-sidebar .category-list-group li a.parent_category.active_lesson {
    background: rgba(243, 107, 36, 0.08);
    color: var(--system-primay-color, #f36b24);
    font-weight: 600;
}
.course-sidebar .sub-menu {
    padding-left: 16px;
    margin-top: 4px;
    width: 100%;
}
.course-sidebar .sub-menu li {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.course-sidebar .sub-menu li label {
    font-size: 13px;
    padding: 6px 10px;
    flex: 1;
}
/* Checkbox styling */
.course-sidebar input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 8px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    flex-shrink: 0;
}
.course-sidebar input[type="checkbox"]:checked {
    background: var(--system-primay-color, #f36b24);
    border-color: var(--system-primay-color, #f36b24);
}
.course-sidebar input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: -1px;
    left: 3px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}
/* Reset button */
.course-sidebar .template-btn {
    width: 100%;
    text-align: center;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    margin-top: 8px;
}
/* Widget list items */
.course-sidebar .widget-list-group li {
    margin-bottom: 2px;
}
.course-sidebar .widget-list-group li:not(.dropdown-title) {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.course-sidebar .widget-list-group li label {
    display: flex;
    align-items: center;
    flex: 1;
    padding: 7px 12px;
    border-radius: 10px;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}
.course-sidebar .widget-list-group li label:hover {
    background: #fff5f0;
    color: var(--system-primay-color, #f36b24);
}
/* Rating widget */
.course-sidebar .rating-group label {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 10px;
    transition: all 0.2s;
    cursor: pointer;
    margin-bottom: 4px;
}
.course-sidebar .rating-group label:hover {
    background: #fff5f0;
}
.course-sidebar .rating-group label img {
    height: 16px;
}

/* --- Course Not Found --- */
.course_section_wrap p {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
    font-weight: 500;
}

/* --- Course Pagination / Load More --- */
.course-pagination .template-btn {
    border-radius: 12px;
    padding: 14px 32px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .course-hero-banner {
        padding: 32px 0 28px;
    }
    .course-hero-title {
        font-size: 24px;
    }
    .course-sidebar {
        margin-top: 30px;
        position: static;
    }
}
@media (max-width: 575px) {
    .course-hero-banner {
        padding: 24px 0 20px;
    }
    .course-hero-title {
        font-size: 20px;
    }
    .course-hero-subtitle {
        font-size: 13px;
    }
    .course-shorter.course-shorter-v2 {
        padding: 10px 14px !important;
    }
}
