/**
 * TYCA Core — Frontend Design Stylesheet for Website247 Theme (Squirrel)
 * Replicates the original TYCA Academy (Flatsome Child + Custom CSS) look & feel
 * across Homepage, Courses, Course Category, Blog Category, Single Post, and Inner Pages.
 */

:root {
    --tyca-primary: #000814;
    --tyca-accent: #0693E3;
    --tyca-tutor-green: #239371;
    --tyca-text: #140000;
    --tyca-link: #001123;
    --tyca-logo-width: 176px;
    --tyca-header-height: 90px;
    --tyca-container-width: 1080px;
}

body {
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--tyca-text);
    background-color: #ffffff;
    overflow-x: hidden;
}

/* ==========================================================================
   0. UNIFIED 1080PX CONTAINER & SQUIRREL THEME RESET OVERRIDES
   Matches Flatsome `.row` (`max-width: 1080px; padding: 0 15px;`) everywhere
   so Header, Hero, Tutor LMS Courses, Blog Grid, and Footer align vertically.
   ========================================================================== */

.sq-container,
.sq-container--xl,
.sq-container--lg,
.sq-container--md,
.tutor-container,
.tyca-row:not(.tyca-row--full-width) {
    width: 100% !important;
    max-width: var(--tyca-container-width, 1080px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
}

/* Prevent Squirrel `.sq-prose` and `.sq-entry__content` from trapping pages in a 65ch left column */
.sq-entry__content {
    max-inline-size: 100% !important;
    width: 100% !important;
}

.sq-prose > * + * {
    margin-block-start: 0;
}

.sq-prose p + p {
    margin-block-start: 1em;
}

.sq-prose a:not([class]) {
    text-decoration: none;
}

.sq-prose a:not([class]):hover {
    text-decoration: underline;
}

/* Remove unwanted default Squirrel page title banner & breadcrumbs (Flatsome pages don't use it) */
.sq-page-header,
.sq-breadcrumbs {
    display: none !important;
}

/* ==========================================================================
   1. HEADER & NAVIGATION (Matches Original TYCA 90px Sticky Header)
   ========================================================================== */

.sq-header {
    background-color: #ffffff;
    box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.12);
    border-bottom: 0 !important;
    z-index: 999;
}

.sq-header__row--main {
    min-height: var(--tyca-header-height, 90px);
    border-bottom: 0 !important;
    transition: min-height 0.25s ease;
}

.sq-header[data-stuck="true"] .sq-header__row--main {
    min-height: 70px;
}

@media (max-width: 849px) {
    .sq-header__row--main {
        min-height: 70px;
    }
}

.sq-brand__logo {
    max-width: var(--tyca-logo-width, 176px);
    width: var(--tyca-logo-width, 176px);
    height: auto;
    max-height: 75px;
    object-fit: contain;
    display: block;
}

.sq-header__slot--end {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Primary Menu items: Roboto 700, Uppercase, 12.8px (0.8rem) like Flatsome */
.sq-nav--primary .sq-nav__list {
    display: flex;
    align-items: center;
    gap: 18px;
}

.sq-nav--primary .sq-nav__link {
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: rgba(20, 0, 0, 0.85);
    padding: 10px 0;
    transition: color 0.2s ease;
}

/* Remove Squirrel's bottom bar indicator so menu matches Flatsome */
.sq-nav--primary .sq-nav__link::after {
    display: none !important;
}

.sq-nav--primary .sq-nav__link:hover,
.sq-nav--primary .current-menu-item > .sq-nav__link,
.sq-nav--primary .current_page_item > .sq-nav__link {
    color: var(--tyca-primary);
}

/* Vertical divider between nav, account button, and cart button */
.tyca-header-divider {
    width: 1px;
    height: 28px;
    background-color: rgba(0, 0, 0, 0.1);
    margin: 0 4px;
    display: inline-block;
    vertical-align: middle;
}

/* "Đăng nhập" primary dark pill button — matches Flatsome `.button.primary.is-small.round` */
.tyca-account-btn,
.sq-header__action--account.tyca-account-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 16px;
    border-radius: 99px;
    background-color: var(--tyca-primary, #000814);
    color: #ffffff !important;
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none !important;
    border: 2px solid var(--tyca-primary, #000814);
    line-height: 1.4;
    width: auto;
    height: auto;
    transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.tyca-account-btn:hover {
    background-color: #162133;
    border-color: #162133;
    color: #ffffff !important;
}

/* Round dark primary Cart icon button */
.sq-header__action--cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 99px;
    background-color: var(--tyca-primary, #000814);
    color: #ffffff !important;
    border: 2px solid var(--tyca-primary, #000814);
    position: relative;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.sq-header__action--cart:hover {
    opacity: 0.9;
}

.sq-header__action--cart svg {
    stroke: #ffffff;
    width: 17px;
    height: 17px;
}

/* ==========================================================================
   2. FRONT PAGE & FLATSOME UX SHORTCODES ([section], [row], [col])
   ========================================================================== */

.home #sq-content,
.home .sq-main,
.home .sq-entry__content {
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.sq-layout--builder > .sq-container--fluid {
    padding-inline: 0 !important;
}

.tyca-section {
    position: relative;
    width: 100%;
    min-height: 220px;
    padding: 30px 0;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;
}

.tyca-section__bg {
    position: absolute;
    inset: 0;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: 1% 53%;
    z-index: 0;
}

.tyca-section__content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.tyca-row {
    width: 100%;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.tyca-row--full-width {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.tyca-col {
    width: 100%;
    padding: 0 15px 30px;
    box-sizing: border-box;
}

/* Inside a `.tyca-row` that already has 15px horizontal padding, avoid double horizontal padding */
.tyca-row > .tyca-col {
    padding-left: 0;
    padding-right: 0;
}

.tyca-section .tyca-col {
    padding-bottom: 0;
}

/* Hero Banner Heading & Slogan */
.section__heading___5e922 {
    margin: 0 0 10px;
    line-height: 1.2;
}

.section__heading___5e922 img {
    display: inline-block;
    max-width: 120px;
    height: auto;
}

.section__subheading___5e922 {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 400;
    margin: 0 0 18px;
}

/* Primary Button inside Hero ("Đăng ký ngay") & Flatsome `[button]` shortcode */
a.button.primary,
.tyca-button.primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--tyca-primary, #000814);
    color: #ffffff !important;
    border: 2px solid var(--tyca-primary, #000814);
    border-radius: 99px;
    padding: 9px 24px;
    font-family: "Roboto", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none !important;
    line-height: 1.4;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

a.button.primary:hover,
.tyca-button.primary:hover {
    background-color: #162133;
    border-color: #162133;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   3. TUTOR LMS COURSE GRID, ARCHIVE & SINGLE COURSE STYLING
   Fixes Squirrel `@layer reset` conflicts & matches original TYCA course cards
   ========================================================================== */

.tyca-ux-html {
    margin-top: 28px;
    margin-bottom: 10px;
    width: 100%;
}

/* Fix Squirrel `select { inline-size: 100% }` stretching Tutor LMS sort select */
.tutor-wrap select,
.tutor-course-filter-Result select,
.tutor-form-select {
    width: auto !important;
    min-width: 195px;
    max-width: 260px;
    display: inline-block;
    background-color: #ffffff;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    padding: 8px 32px 8px 12px;
    font-size: 0.9rem;
    color: #1e293b;
}

/* Course Archive / Shortcode Top Bar ("Khóa học" + Sort select on right) */
.tutor-wrap .tutor-row.tutor-align-center {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* Equal-height Course Cards in 3-column grid */
.tutor-grid,
.tutor-courses-wrap .tutor-grid {
    display: grid;
    gap: 24px;
    align-items: stretch;
}

.tutor-card,
.tutor-course-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    background: #ffffff;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.tutor-card:hover,
.tutor-course-card:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.09);
    transform: translateY(-2px);
}

.tutor-card-body {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 18px 20px !important;
}

.tutor-course-name,
.tutor-course-name a {
    font-family: "Roboto", sans-serif;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    color: #000814 !important;
    text-decoration: none !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.tutor-course-name a:hover {
    color: var(--tyca-tutor-green, #239371) !important;
}

.tutor-card-footer {
    margin-top: auto !important;
    padding: 14px 20px !important;
    border-top: 1px solid #f1f5f9 !important;
    background: #ffffff;
}

/* Tutor LMS Primary Buttons ("Đưa vào giỏ hàng", "Xem giỏ hàng", "Ghi danh ngay") */
.tutor-btn-primary,
.tutor-card-footer .tutor-btn {
    background-color: var(--tyca-tutor-green, #239371) !important;
    border-color: var(--tyca-tutor-green, #239371) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    text-decoration: none !important;
}

.tutor-btn-primary:hover,
.tutor-card-footer .tutor-btn:hover {
    background-color: #1c775b !important;
    border-color: #1c775b !important;
    color: #ffffff !important;
}

.tutor-btn-outline-primary {
    border: 1px solid var(--tyca-tutor-green, #239371) !important;
    color: var(--tyca-tutor-green, #239371) !important;
    background: transparent !important;
    border-radius: 6px !important;
    text-decoration: none !important;
}

.tutor-btn-outline-primary:hover {
    background-color: var(--tyca-tutor-green, #239371) !important;
    color: #ffffff !important;
}

/* Single Course Page (`/courses/...`) & Course Archive spacing */
.single-courses .tutor-wrap,
.post-type-archive-courses .tutor-wrap,
.tax-course-category .tutor-wrap {
    padding-top: 32px;
    padding-bottom: 50px;
}

/* ==========================================================================
   4. TIN TỨC BLOG GRID ([blog_posts]) — Exact Original TYCA Styling
   ========================================================================== */

.tyca-blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    width: 100%;
    margin-top: 15px;
    margin-bottom: 35px;
    align-items: stretch;
}

@media (max-width: 849px) {
    .tyca-blog-grid {
        grid-template-columns: 1fr;
    }
    .tyca-header-divider {
        display: none;
    }
}

.tyca-blog-card {
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.tyca-blog-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.tyca-blog-card .col-inner,
.tyca-blog-card .box-blog-post {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tyca-blog-card .box-image {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.tyca-blog-card .image-cover {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    background: #f1f5f9;
}

.tyca-blog-card .image-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.tyca-blog-card:hover .image-cover img {
    transform: scale(1.03);
}

.tyca-blog-card .box-text {
    padding: 20px 20px 24px;
    text-align: center;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.tyca-blog-card .box-text-inner {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    align-items: center;
}

/* Original custom_css ID 67 rules */
h5.post-title.is-large,
h5.post-title.is-large a {
    color: #000000 !important;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.38;
    margin: 0 0 8px;
    text-decoration: none !important;
}

h5.post-title.is-large a:hover {
    color: var(--tyca-accent, #0693E3) !important;
}

.is-divider {
    height: 3px;
    display: block;
    background-color: rgba(0, 0, 0, 0.1);
    margin: 10px auto 14px;
    width: 100%;
    max-width: 30px;
}

p.from_the_blog_excerpt {
    color: #000000 !important;
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0 0 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

a.button.is-outline.is-small,
button.button.is-outline.is-small.mb-0 {
    display: inline-block;
    margin-top: auto;
    background: var(--tyca-accent, #0693E3) !important;
    color: #ffffff !important;
    border: 2px solid var(--tyca-accent, #0693E3) !important;
    border-radius: 3px;
    padding: 7px 18px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none !important;
    line-height: 1.4;
    cursor: pointer;
    transition: filter 0.2s ease;
}

a.button.is-outline.is-small:hover,
button.button.is-outline.is-small.mb-0:hover {
    filter: brightness(0.92);
    color: #ffffff !important;
}

/* Date badge on blog cards (Category archive) */
.tyca-post-date-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    pointer-events: none;
}

.tyca-post-date-badge .badge-inner {
    background-color: #ffffff;
    border: 2px solid var(--tyca-primary, #000814);
    color: var(--tyca-primary, #000814);
    width: 44px;
    height: 44px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.05;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.tyca-post-date-badge .post-date-day {
    font-size: 0.95rem;
    font-weight: 700;
}

.tyca-post-date-badge .post-date-month {
    font-size: 0.65rem;
    font-weight: 700;
}

.from_the_blog_comments {
    margin: 10px 0 0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
}

/* ==========================================================================
   5. CATEGORY ARCHIVE PAGE (`tyca-archive.php` — `/category/tin-tuc/`)
   Replicates Flatsome 75% 2-col grid + 25% right `.post-sidebar`
   ========================================================================== */

.tyca-blog-wrapper,
.tyca-archive-wrapper {
    padding: 30px 0 55px;
    width: 100%;
}

.tyca-archive-page-header {
    text-align: center;
    margin-bottom: 30px;
}

.tyca-archive-page-header .page-title,
.tyca-archive-page-header .tyca-page-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--tyca-text, #140000);
    margin: 0;
    text-transform: uppercase;
    text-align: center;
}

.tyca-archive-page-header .page-title span,
.tyca-archive-page-header .tyca-page-title span {
    font-weight: 700;
}

.tyca-text-center {
    text-align: center;
}

.tyca-blog-col a.plain {
    text-decoration: none !important;
    color: inherit;
    display: block;
    height: 100%;
}

.tyca-taxonomy-description {
    margin-top: 8px;
    color: #475569;
    font-size: 0.95rem;
}

.tyca-archive-columns {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.tyca-archive-main {
    width: 75%;
    padding-right: 30px;
    box-sizing: border-box;
}

.tyca-archive-sidebar {
    width: 25%;
    padding-left: 30px;
    border-left: 1px solid #ececec;
    box-sizing: border-box;
}

@media (max-width: 849px) {
    .tyca-archive-main,
    .tyca-archive-sidebar {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
        border-left: 0;
    }
    .tyca-archive-sidebar {
        margin-top: 35px;
        padding-top: 25px;
        border-top: 1px solid #ececec;
    }
}

.tyca-archive-grid,
.tyca-archive-main .tyca-blog-grid {
    margin-top: 0;
}

/* Sidebar Widgets in `tyca-archive.php` */
.tyca-archive-sidebar .widget {
    margin-bottom: 28px;
}

.tyca-archive-sidebar .widget-title,
.tyca-archive-sidebar .wp-block-heading,
.tyca-archive-sidebar .wp-block-search__label {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--tyca-text, #140000);
    margin: 0 0 10px;
}

.tyca-archive-sidebar .is-divider.small {
    margin: 6px 0 14px;
    max-width: 30px;
}

.tyca-archive-sidebar .wp-block-search__inside-wrapper {
    display: flex;
    gap: 0;
}

.tyca-archive-sidebar .wp-block-search__input {
    flex: 1;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-right: 0;
    font-size: 0.9rem;
    outline: none;
}

.tyca-archive-sidebar .wp-block-search__button {
    height: 38px;
    padding: 0 14px;
    background-color: var(--tyca-primary, #000814);
    color: #ffffff;
    border: 1px solid var(--tyca-primary, #000814);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.tyca-archive-sidebar ul,
.tyca-archive-sidebar .wp-block-latest-posts,
.tyca-archive-sidebar .wp-block-latest-comments {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tyca-archive-sidebar ul li,
.tyca-archive-sidebar .wp-block-latest-posts li,
.tyca-archive-sidebar .wp-block-latest-comments li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
    line-height: 1.45;
}

.tyca-archive-sidebar ul li:last-child {
    border-bottom: 0;
}

.tyca-archive-sidebar ul li a {
    color: var(--tyca-link, #001123);
    text-decoration: none;
    font-weight: 500;
}

.tyca-archive-sidebar ul li a:hover {
    color: var(--tyca-accent, #0693E3);
}

/* ==========================================================================
   6. SINGLE POST PAGE (`tyca-single-post.php`)
   Replicates Flatsome centered `large-10` card with image below title
   ========================================================================== */

.tyca-blog-single,
.tyca-single-post-wrapper {
    padding: 35px 0 60px;
}

.tyca-row-center,
.tyca-single-row {
    justify-content: center;
}

.tyca-single-col {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.tyca-article-inner {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
    border-radius: 4px;
    overflow: hidden;
}

.tyca-entry-header-text {
    padding: 32px 35px 22px;
    text-align: center;
}

.tyca-entry-category {
    margin: 0 0 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tyca-entry-category a {
    color: var(--tyca-text, #140000);
    text-decoration: none;
    opacity: 0.75;
}

.tyca-entry-category a:hover {
    color: var(--tyca-accent, #0693E3);
    opacity: 1;
}

.tyca-entry-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--tyca-text, #140000);
    margin: 0 0 14px;
}

.tyca-entry-header-meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-top: 10px;
}

.tyca-entry-header-meta a {
    color: var(--tyca-text, #140000);
    font-weight: 600;
    text-decoration: none;
}

.tyca-entry-image {
    width: 100%;
    overflow: hidden;
    background: #f8fafc;
}

.tyca-entry-image img {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.tyca-entry-content {
    padding: 32px 40px 28px;
    font-size: 1.02rem;
    line-height: 1.75;
    color: #1e293b;
}

@media (max-width: 640px) {
    .tyca-entry-header-text {
        padding: 24px 18px 18px;
    }
    .tyca-entry-content {
        padding: 22px 18px 20px;
    }
    .tyca-entry-title {
        font-size: 1.4rem;
    }
}

.tyca-entry-content p {
    margin: 0 0 1.2em;
}

.tyca-entry-content h2,
.tyca-entry-content h3,
.tyca-entry-content h4 {
    color: #000814;
    font-weight: 700;
    margin: 1.4em 0 0.6em;
    line-height: 1.35;
}

/* Flatsome `[ux_banner]` + `[text_box]` inside Single Post (e.g., Post 121) */
.tyca-ux-banner {
    position: relative;
    width: 100%;
    min-height: 360px;
    margin: 28px 0 12px;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0f172a;
}

.tyca-ux-banner__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.tyca-ux-banner__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 8, 20, 0.35);
    z-index: 1;
}

.tyca-ux-banner__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
}

.tyca-text-box {
    background-color: rgba(0, 0, 0, 0.68);
    color: #ffffff;
    padding: 32px 28px;
    border-radius: 6px;
    text-align: center;
    max-width: 560px;
}

.tyca-text-box h2,
.tyca-text-box h3,
.tyca-text-box p {
    color: #ffffff !important;
}

.tyca-text-box h3 {
    margin-top: 0 !important;
    font-size: 1.4rem;
}

/* Social Share Icons in Single Post */
.tyca-blog-share {
    text-align: center;
    margin: 28px 0 10px;
}

.tyca-share-icons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.tyca-share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.tyca-share-btn:hover {
    background-color: var(--tyca-primary, #000814);
    border-color: var(--tyca-primary, #000814);
    color: #ffffff !important;
}

/* Entry Meta Footer & Author Box */
.tyca-entry-meta,
.tyca-entry-meta-footer {
    padding: 14px 40px;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.82rem;
    color: #64748b;
    text-align: center;
}

.tyca-entry-meta a,
.tyca-entry-meta-footer a {
    color: var(--tyca-link, #001123);
    text-decoration: none;
    font-weight: 500;
}

.tyca-author-box {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px 40px;
}

.tyca-author-box__avatar img,
.tyca-author-avatar img {
    border-radius: 50%;
    width: 72px;
    height: 72px;
    object-fit: cover;
}

.tyca-author-box__name,
.tyca-author-name {
    margin: 0 0 4px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.tyca-author-box__desc,
.tyca-author-desc {
    margin: 0;
    font-size: 0.88rem;
    color: #64748b;
}

/* Next / Prev Post Navigation */
.tyca-next-prev-nav {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #f1f5f9;
    padding: 16px 40px;
    gap: 16px;
}

.tyca-nav-prev,
.tyca-nav-next,
.tyca-nav-col {
    flex: 1;
}

.tyca-nav-next {
    text-align: right;
}

.tyca-next-prev-nav a {
    color: var(--tyca-link, #001123);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.tyca-next-prev-nav a:hover {
    color: var(--tyca-accent, #0693E3);
}

/* Comments Area inside Single Post */
.tyca-single-col #comments,
.tyca-comments-area {
    margin-top: 28px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    padding: 28px 40px;
}

@media (max-width: 640px) {
    .tyca-author-box,
    .tyca-next-prev-nav,
    .tyca-single-col #comments,
    .tyca-comments-area {
        padding-left: 18px;
        padding-right: 18px;
    }
}

.tyca-single-col #comments .comment-reply-title,
.tyca-comments-area .comment-reply-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 0;
}

.tyca-single-col #comments textarea,
.tyca-single-col #comments input[type="text"],
.tyca-single-col #comments input[type="email"],
.tyca-single-col #comments input[type="url"],
.tyca-comments-area textarea,
.tyca-comments-area input[type="text"],
.tyca-comments-area input[type="email"],
.tyca-comments-area input[type="url"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.tyca-single-col #comments .form-submit .submit,
.tyca-comments-area .form-submit .submit {
    background-color: var(--tyca-primary, #000814);
    color: #ffffff;
    border: 0;
    border-radius: 4px;
    padding: 10px 22px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

/* ==========================================================================
   7. INNER PAGES (Dashboard, Login, Registration, My Account, Cart, Checkout)
   Balanced spacing, clean centered containers, and consistent form controls
   ========================================================================== */

body.page:not(.home) #sq-content {
    padding-top: 36px;
    padding-bottom: 60px;
    min-height: calc(100vh - 210px);
}

/* Tutor Login & Registration Forms (`/dashboard/`, `/login/`, `/student-registration/`) */
.tutor-login-wrap,
.tutor-registration-wrap {
    max-width: 520px;
    margin: 10px auto 30px !important;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 32px 30px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.tutor-registration-wrap {
    max-width: 680px;
}

/* WooCommerce My Account, Cart & Checkout clean card styling */
.woocommerce {
    width: 100%;
}

.woocommerce form.login,
.woocommerce form.register {
    max-width: 520px;
    margin: 10px auto 30px !important;
    padding: 28px 30px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.woocommerce #customer_login h2 {
    font-size: 1.35rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.wc-block-components-button {
    background-color: var(--tyca-primary, #000814) !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    padding: 11px 22px !important;
    border: 0 !important;
    text-decoration: none !important;
}

.woocommerce .button:hover,
.woocommerce button.button:hover {
    background-color: #162133 !important;
    color: #ffffff !important;
}

/* ==========================================================================
   8. FOOTER DARK BAR (Matches Flatsome `.absolute-footer.dark`)
   ========================================================================== */

#sq-footer {
    background-color: #000814;
    color: rgba(255, 255, 255, 0.6);
    padding: 18px 0;
    font-size: 0.85rem;
}

#sq-footer .sq-footer__slot--start,
#sq-footer .sq-footer__slot--center {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    gap: 8px;
}

#sq-footer .sq-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#sq-footer .sq-nav__link {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    text-decoration: none;
}

#sq-footer .sq-nav__link::after {
    display: none !important;
}

#sq-footer .sq-nav__link:hover {
    color: #ffffff;
}

#sq-footer .sq-copyright,
#sq-footer .sq-footer__copyright {
    margin: 0;
    color: rgba(255, 255, 255, 0.55);
}

#sq-footer .sq-copyright strong,
#sq-footer .sq-footer__copyright strong {
    color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   9. SECURITY & GOOGLE RECAPTCHA / ANTI-BOT SHIELD WIDGETS
   ========================================================================== */

.tyca-captcha-wrap {
    margin: 14px 0 18px;
    width: 100%;
    clear: both;
}

.tyca-recaptcha-v2-box {
    display: inline-block;
    min-height: 78px;
}

.tyca-recaptcha-badge-note {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 4px;
}

.tyca-builtin-captcha {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-left: 4px solid var(--tyca-accent, #0693E3);
    border-radius: 6px;
    padding: 12px 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.tyca-builtin-captcha__header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}

.tyca-builtin-captcha__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.tyca-builtin-captcha__label {
    font-size: 0.92rem;
    color: #1e293b;
    margin: 0 !important;
}

.tyca-builtin-captcha__label strong {
    color: var(--tyca-accent, #0693E3);
    font-size: 1rem;
    background: #ffffff;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    margin-left: 4px;
}

.tyca-builtin-captcha__input {
    width: 120px !important;
    max-width: 140px !important;
    height: 38px !important;
    padding: 6px 10px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    border: 1px solid #94a3b8 !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    color: #0f172a !important;
    margin: 0 !important;
}

.tyca-builtin-captcha__input:focus {
    border-color: var(--tyca-accent, #0693E3) !important;
    outline: 2px solid rgba(6, 147, 227, 0.2) !important;
}
