/* ==========================================================================
   Techware Theme — Ultra-Modern Executive UI System (Matching Reference Mockup)
   ========================================================================== */

.techware-theme-wrapper {
    --tw-orange: #FF6B00;
    --tw-orange-hover: #E65100;
    --tw-orange-soft: rgba(255, 107, 0, 0.1);
    --tw-orange-border: rgba(255, 107, 0, 0.25);
    --tw-navy: #07101E;
    --tw-navy-2: #0B1524;
    --tw-navy-border: #1E293B;
    --tw-ink: #0F172A;
    --tw-body: #475569;
    --tw-muted: #94A3B8;
    --tw-line: #E2E8F0;
    --tw-surface: #FFFFFF;
    --tw-bg: #F8FAFC;
    --tw-radius: 16px;
    --tw-radius-lg: 24px;
    --tw-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    --tw-shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.08);

    background: var(--tw-bg);
}

.techware-theme-wrapper .tw-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Shared section header ───────────────────────────────────────────────── */
.tw-section {
    padding: 64px 0;
}

.tw-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.tw-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #EEF2FF;
    color: #4338CA;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.tw-eyebrow.is-orange { background: var(--tw-orange-soft); color: #FF6B00; }
.tw-eyebrow.is-purple { background: #F3E8FF; color: #7E22CE; }
.tw-eyebrow.is-amber  { background: #FEF3C7; color: #B45309; }

.tw-section-title {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    color: var(--tw-ink);
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.5px;
}

.tw-section-sub {
    font-size: 14px;
    color: var(--tw-body);
    margin: 8px 0 0;
    line-height: 1.6;
    max-width: 620px;
}

.tw-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid #FF6B00;
    background: #FFFFFF;
    color: #FF6B00;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 999px;
    white-space: nowrap;
    transition: all 0.22s ease;
    text-decoration: none;
}

.tw-link-btn:hover {
    background: #FF6B00;
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px var(--tw-orange-soft);
}

/* ── HERO SECTION (Matching User Uploaded Screenshot Format Exactly) ──────── */
.tw-hero {
    background: #07101E;
    padding: 32px 0 72px;
    position: relative;
    overflow: hidden;
}

.techware-hero-slider {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
}

.tw-hero-card {
    position: relative;
    width: 100%;
    min-height: 520px;
    border-radius: 28px;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    padding: 56px 64px;
    display: flex;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

/* Desktop uses the card background image; this <img> is mobile-only.
   Named distinctly from .tw-hero-img, which already exists further down for
   the .tw-hero-image-frame component and sets display:block. */
.tw-hero-mobile-img { display: none; }

.tw-hero-content {
    max-width: 620px;
    position: relative;
    z-index: 3;
}

.tw-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #FF6B00 0%, #FF8533 100%);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 7px 18px;
    border-radius: 999px;
    margin-bottom: 22px;
    box-shadow: 0 6px 18px rgba(255, 107, 0, 0.45);
}

.tw-hero-title {
    font-size: clamp(32px, 4.2vw, 48px);
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.16;
    letter-spacing: -1px;
    margin: 0 0 18px;
}

.tw-hero-title .tw-accent { color: #FF6B00; }

.tw-hero-text {
    font-size: 15px;
    line-height: 1.65;
    color: #94A3B8;
    max-width: 500px;
    margin: 0 0 28px;
}

.tw-hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.tw-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #FF6B00 0%, #FF8533 100%);
    color: #FFFFFF;
    font-size: 14.5px;
    font-weight: 700;
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(255, 107, 0, 0.35);
    transition: all 0.22s ease;
    text-decoration: none;
}

.tw-btn-primary:hover {
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(255, 107, 0, 0.45);
}

.tw-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    font-size: 14.5px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 12px;
    transition: all 0.22s ease;
    text-decoration: none;
}

.tw-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
    color: #FFFFFF;
}

.tw-hero-chips-grid {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 10px;
}

.tw-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #CBD5E1;
    font-size: 12px;
    font-weight: 600;
    padding: 9px 14px;
    border-radius: 10px;
    white-space: nowrap;
}

.tw-chip i { color: #94A3B8; font-size: 12px; }

/* Custom Circular Navigation Controls Matching Screenshot */
.techware-hero-slider .swiper-button-next,
.techware-hero-slider .swiper-button-prev {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    transition: all 0.25s ease;
    z-index: 10;
}

.techware-hero-slider .swiper-button-prev { left: 24px; }
.techware-hero-slider .swiper-button-next { right: 24px; }

.techware-hero-slider .swiper-button-next::after,
.techware-hero-slider .swiper-button-prev::after {
    font-size: 15px;
    font-weight: 900;
}

.techware-hero-slider .swiper-button-next:hover,
.techware-hero-slider .swiper-button-prev:hover {
    background: #FF6B00;
    border-color: #FF6B00;
    color: #FFFFFF;
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.4);
    transform: scale(1.08);
}

.tw-hero-title {
    font-size: clamp(32px, 4.2vw, 48px);
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.16;
    letter-spacing: -1px;
    margin: 0 0 18px;
}

.tw-hero-title .tw-accent { color: #FF6B00; }

.tw-hero-text {
    font-size: 15px;
    line-height: 1.65;
    color: #94A3B8;
    max-width: 500px;
    margin: 0 0 28px;
}

.tw-hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.tw-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #FF6B00 0%, #FF8533 100%);
    color: #FFFFFF;
    font-size: 14.5px;
    font-weight: 700;
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(255, 107, 0, 0.35);
    transition: all 0.22s ease;
    text-decoration: none;
}

.tw-btn-primary:hover {
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(255, 107, 0, 0.45);
}

.tw-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    font-size: 14.5px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 12px;
    transition: all 0.22s ease;
    text-decoration: none;
}

.tw-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
    color: #FFFFFF;
}

.tw-hero-chips-grid {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 10px;
}

.tw-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #CBD5E1;
    font-size: 12px;
    font-weight: 600;
    padding: 9px 14px;
    border-radius: 10px;
    white-space: nowrap;
}

.tw-chip i { color: #94A3B8; font-size: 12px; }

.tw-hero-right-col {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
}

.tw-hero-media-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: #0B1524;
}

.tw-hero-media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.tw-hero-media-wrapper:hover .tw-hero-media-img {
    transform: scale(1.04);
}

.tw-hero-watch-intro {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(7, 16, 30, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tw-hero-watch-intro:hover {
    background: rgba(7, 16, 30, 0.95);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.4);
}

/* Custom Executive Swiper Controls */
.techware-hero-slider .swiper-button-next,
.techware-hero-slider .swiper-button-prev {
    width: 48px;
    height: 48px;
    background: rgba(7, 16, 30, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF !important;
    border-radius: 50%;
    transition: all 0.25s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.techware-hero-slider .swiper-button-prev { left: 24px; }
.techware-hero-slider .swiper-button-next { right: 24px; }

.techware-hero-slider .swiper-button-next::after,
.techware-hero-slider .swiper-button-prev::after {
    font-size: 16px !important;
    font-weight: 900;
    color: #FFFFFF !important;
}

.techware-hero-slider .swiper-button-next:hover,
.techware-hero-slider .swiper-button-prev:hover {
    background: var(--tw-orange);
    border-color: var(--tw-orange);
    color: #FFFFFF !important;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 10px 28px rgba(255, 107, 0, 0.45);
}

.techware-hero-slider .swiper-pagination {
    bottom: 20px !important;
}

.techware-hero-slider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.4);
    opacity: 1;
    transition: all 0.3s ease;
}

.techware-hero-slider .swiper-pagination-bullet-active {
    width: 28px;
    border-radius: 999px;
    background: var(--tw-orange) !important;
    box-shadow: 0 0 12px rgba(255, 107, 0, 0.6);
}

.tw-hero-card-content {
    max-width: 620px;
    position: relative;
    z-index: 2;
}

.tw-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #FF6B00, #FF8533);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(255, 107, 0, 0.35);
    margin-bottom: 22px;
}

.tw-hero-title {
    font-size: clamp(30px, 4.2vw, 48px);
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.15;
    letter-spacing: -1px;
    margin: 0 0 18px;
}

.tw-hero-title .tw-accent { color: var(--tw-orange); }

.tw-hero-text {
    font-size: 15.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    max-width: 520px;
    margin: 0 0 28px;
}

.tw-hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.tw-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #FF6B00 0%, #FF8533 100%);
    color: #FFFFFF;
    font-size: 14.5px;
    font-weight: 700;
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(255, 107, 0, 0.35);
    transition: all 0.22s ease;
    text-decoration: none;
}

.tw-btn-primary:hover {
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(255, 107, 0, 0.45);
}

.tw-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #FFFFFF;
    font-size: 14.5px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 12px;
    transition: all 0.22s ease;
    text-decoration: none;
}

.tw-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.4);
    color: #FFFFFF;
}

/* 2x2 Feature Chips Grid */
.tw-hero-chips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 440px;
}

.tw-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 600;
    padding: 9px 14px;
    border-radius: 10px;
}

.tw-chip i { color: var(--tw-orange); font-size: 12px; }

/* Right Media Column */
.tw-hero-image-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #0B1524;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.tw-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.tw-hero-image-frame:hover .tw-hero-img {
    transform: scale(1.04);
}

.tw-hero-watch-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(7, 16, 30, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ── TRUST BAR (Overlapping Hero) ────────────────────────────────────────── */
.tw-trust-wrap {
    position: relative;
    z-index: 3;
    margin-top: -56px;
}

.tw-trust {
    background: var(--tw-surface);
    border: 1px solid var(--tw-line);
    border-radius: 20px;
    box-shadow: var(--tw-shadow-lg);
    padding: 24px 28px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tw-trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.tw-trust-item + .tw-trust-item {
    border-left: 1px solid var(--tw-line);
    padding-left: 20px;
}

.tw-trust-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.tw-trust-icon.i1 { background: #EEF2FF; color: #4338CA; }
.tw-trust-icon.i2 { background: var(--tw-orange-soft); color: #FF6B00; }
.tw-trust-icon.i3 { background: #ECFDF5; color: #059669; }
.tw-trust-icon.i4 { background: #E0F2FE; color: #0284C7; }

.tw-trust-item h6 {
    font-size: 14px;
    font-weight: 800;
    color: var(--tw-ink);
    margin: 0 0 3px;
}

/* Scoped to the text column only. A bare `.tw-trust-item span` also matches
   the icon wrapper span and, at 0-1-1, outranks .tw-trust-icon (0-1-0) - which
   forced the icon to font-size:11.5px + display:block, shrinking the glyph and
   knocking it out of its centred flex box. */
.tw-trust-item > div > span {
    font-size: 11.5px;
    color: var(--tw-muted);
    line-height: 1.45;
    display: block;
}

/* ── CARD GRIDS (4 COLUMNS ON DESKTOP MATCHING MOCKUP) ────────────────────── */
.tw-grid { display: grid; gap: 20px; }

.tw-grid-courses-4 { grid-template-columns: repeat(4, 1fr); display: grid; gap: 20px; }
.tw-grid-books-4   { grid-template-columns: repeat(4, 1fr); display: grid; gap: 20px; }
.tw-grid-blog      { grid-template-columns: repeat(3, 1fr); display: grid; gap: 20px; }

/* ── EXECUTIVE TW-CARD DESIGN ────────────────────────────────────────────── */
.tw-card {
    background: #FFFFFF;
    border: 1px solid var(--tw-line);
    border-radius: 16px;
    box-shadow: var(--tw-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.28s ease;
    height: 100%;
}

.tw-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    border-color: var(--tw-orange-border);
}

.tw-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--tw-navy-2);
}

.tw-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.tw-card:hover .tw-card-media img { transform: scale(1.06); }

.tw-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.4px;
    padding: 5px 11px;
    border-radius: 6px;
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.tw-tag.is-red    { background: linear-gradient(135deg, #EF4444, #DC2626); }
.tw-tag.is-orange { background: linear-gradient(135deg, #FF6B00, #FF8533); }
.tw-tag.is-green  { background: linear-gradient(135deg, #10B981, #059669); }
.tw-tag.is-blue   { background: linear-gradient(135deg, #3B82F6, #2563EB); }

.tw-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.tw-card-title {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.tw-card-title a { color: var(--tw-ink); text-decoration: none; transition: color 0.2s ease; }
.tw-card-title a:hover { color: var(--tw-orange); }

.tw-card-desc {
    font-size: 12px;
    color: var(--tw-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.tw-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    color: var(--tw-muted);
    font-weight: 600;
    padding-top: 6px;
}

.tw-rating { display: inline-flex; align-items: center; gap: 4px; color: #B45309; font-weight: 700; }

.tw-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--tw-line);
}

.tw-price {
    font-size: 17px;
    font-weight: 800;
    color: var(--tw-ink);
}

.tw-price.is-free { color: #10B981; }

/* ── BOOK CARD DESIGN ────────────────────────────────────────────────────── */
.tw-book-media {
    position: relative;
    aspect-ratio: 16 / 11;
    background: #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow: hidden;
}

.tw-book-media img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
    transition: transform 0.35s ease;
}

.tw-card:hover .tw-book-media img { transform: translateY(-4px) scale(1.04); }

.tw-book-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #0B1524;
    color: #FFFFFF;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.4px;
    padding: 4px 9px;
    border-radius: 6px;
}

.tw-book-author {
    font-size: 11.5px;
    color: var(--tw-muted);
    margin: 0;
    font-weight: 500;
}

.tw-btn-book {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--tw-line);
    background: #FFFFFF;
    color: var(--tw-ink);
    font-size: 11.5px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 999px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.tw-btn-book:hover {
    background: var(--tw-orange);
    border-color: var(--tw-orange);
    color: #FFFFFF;
}

/* ── BLOG CARD DESIGN ────────────────────────────────────────────────────── */
.tw-blog-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0B1524;
}

.tw-blog-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.tw-card:hover .tw-blog-media img { transform: scale(1.06); }

.tw-blog-cat {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(7, 16, 30, 0.85);
    color: #FFFFFF;
    backdrop-filter: blur(4px);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.4px;
    padding: 5px 11px;
    border-radius: 6px;
}

.tw-blog-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 11px;
    color: var(--tw-muted);
    font-weight: 600;
    flex-wrap: wrap;
}

.tw-blog-meta i { color: var(--tw-orange); margin-right: 4px; }

.tw-blog-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tw-blog-title a { color: var(--tw-ink); text-decoration: none; transition: color 0.2s ease; }
.tw-blog-title a:hover { color: var(--tw-orange); }

.tw-blog-excerpt {
    font-size: 12.5px;
    color: var(--tw-body);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tw-blog-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--tw-line);
    margin-top: auto;
}

.tw-blog-author {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--tw-body);
}

.tw-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 800;
    color: var(--tw-orange);
    text-decoration: none;
    transition: all 0.2s ease;
}

.tw-read-more:hover { color: var(--tw-orange-hover); transform: translateX(2px); }

/* ── PROMO BANNER ────────────────────────────────────────────────────────── */
.tw-promo {
    background: var(--tw-navy-2);
    background-image: radial-gradient(700px 300px at 88% 30%, rgba(255, 107, 0, 0.22), transparent 62%);
    border-radius: var(--tw-radius-lg);
    padding: 38px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    box-shadow: var(--tw-shadow-lg);
    border: 1px solid var(--tw-navy-border);
}

.tw-promo-text { flex: 1 1 420px; min-width: 0; }

.tw-promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--tw-orange);
    color: #FFFFFF;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    padding: 6px 13px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.tw-promo-text h3 {
    font-size: clamp(20px, 2.6vw, 30px);
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.25;
    margin: 0 0 10px;
    letter-spacing: -0.4px;
}

.tw-promo-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.65;
    margin: 0;
    max-width: 560px;
}

/* ── Empty states ────────────────────────────────────────────────────────── */
.tw-empty {
    background: var(--tw-surface);
    border: 1px dashed #CBD5E1;
    border-radius: var(--tw-radius);
    padding: 54px 28px;
    text-align: center;
}

.tw-empty-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--tw-orange-soft);
    color: var(--tw-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.tw-empty h5 {
    font-size: 16.5px;
    font-weight: 800;
    color: var(--tw-ink);
    margin-bottom: 6px;
}

.tw-empty p {
    font-size: 13px;
    color: var(--tw-muted);
    margin: 0;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (MATCHING TABLET & MOBILE MOCKUPS)
   ========================================================================== */
@media (max-width: 1199px) {
    .tw-grid-courses-4,
    .tw-grid-books-4 { grid-template-columns: repeat(2, 1fr); }
    .tw-trust { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .tw-trust-item:nth-child(3) { border-left: none; padding-left: 0; }
}

@media (max-width: 991px) {
    .tw-section { padding: 44px 0; }

    /* NB: the markup class is .tw-hero-card - earlier rules here targeted a
       stale .tw-hero-banner-card and therefore never applied. */
    .tw-hero-card {
        padding: 32px 24px;
        min-height: 440px;
    }
    .tw-hero-content {
        max-width: 100%;
    }
    .tw-grid-blog { grid-template-columns: repeat(2, 1fr); }
    .tw-promo { padding: 30px 26px; }
}

@media (max-width: 767px) {
    .techware-theme-wrapper .tw-container { padding: 0 16px; }
    .tw-section { padding: 32px 0; }

    .tw-hero { padding: 12px 0 46px; }

    /* Mobile hero: show the banner as a full rectangle image on top with the
       copy underneath, instead of cropping it behind the text. The background
       image is set inline on the element, so it needs !important to drop. */
    .tw-hero-card {
        background-image: none !important;
        background: var(--tw-navy-2);
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        min-height: 0;
        border-radius: 20px;
        overflow: hidden;
    }

    .tw-hero-mobile-img {
        display: block;
        width: 100%;
        aspect-ratio: 16 / 9;
        /* contain keeps the whole banner visible - nothing is cut off */
        object-fit: contain;
        background: #060D18;
    }

    .tw-hero-content {
        max-width: none;
        padding: 18px 16px 22px;
    }

    /* With the stacked layout the side arrows would sit on top of the copy.
       Swipe, autoplay and the dots cover navigation on touch devices. */
    .techware-hero-slider .swiper-button-next,
    .techware-hero-slider .swiper-button-prev {
        display: none;
    }
    .techware-hero-slider .swiper-pagination {
        bottom: 8px !important;
    }
    .tw-hero-title { letter-spacing: -0.5px; font-size: 22px; line-height: 1.25; margin-bottom: 10px; }
    .tw-hero-text { font-size: 12.5px; line-height: 1.45; margin-bottom: 16px; }
    
    .tw-hero-actions {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        margin-bottom: 24px;
    }
    
    .tw-btn-primary,
    .tw-btn-ghost {
        flex: 1 1 calc(50% - 5px);
        justify-content: center;
        padding: 10px 16px;
        font-size: 12.5px;
        border-radius: 10px;
        white-space: nowrap;
    }

    .tw-hero-chips-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        max-width: 100%;
    }

    .tw-chip {
        font-size: 11px;
        padding: 8px 10px;
    }

    .tw-trust-wrap { margin-top: -36px; }
    .tw-trust { padding: 16px; gap: 12px; grid-template-columns: repeat(2, 1fr); }
    .tw-trust-item + .tw-trust-item { border-left: none; padding-left: 0; }
    .tw-trust-item { gap: 10px; }
    .tw-trust-icon { width: 38px; height: 38px; min-width: 38px; border-radius: 10px; font-size: 15px; }
    .tw-trust-item h6 { font-size: 12px; }
    .tw-trust-item > div > span { font-size: 10px; }

    .tw-section-head { margin-bottom: 20px; }
    .tw-link-btn { padding: 8px 16px; font-size: 12px; }

    /* One full-width card per row on phones. Previously these were a
       side-swipe carousel, which left the next card visibly half-cut at the
       screen edge and read as broken rather than as a swipe hint. */
    .tw-grid-courses-4,
    .tw-grid-books-4 {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .tw-grid-courses-4 > *,
    .tw-grid-books-4 > * {
        max-width: none;
        width: 100%;
    }

    .tw-grid-blog { grid-template-columns: 1fr; gap: 16px; }

    .tw-promo { flex-direction: column; align-items: stretch; text-align: left; }
    .tw-promo .tw-btn-primary { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    /* Cards are full-width single-column from 767px down, so no width
       override is needed here any more. */
    .tw-section-title { font-size: 21px; }
}
