/* Source: frontend/assets/css/responsive.css | Shared mobile and tablet refinements for Forsah Dev */

html,
body {
    max-width: 100%;
}

img,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

input[type="number"] {
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}

h1,
h2,
h3,
h4,
p,
a,
span {
    overflow-wrap: break-word;
}

.container,
.hero-grid,
.hero-content,
.hero-visual,
.glass-card,
.pricing-card,
.track-detail-card,
.module-card {
    min-width: 0;
}

.comparison-table-wrapper {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(245, 158, 11, 0.65) rgba(255, 255, 255, 0.05);
}

.comparison-table-wrapper::-webkit-scrollbar {
    height: 7px;
}

.comparison-table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(245, 158, 11, 0.65);
    border-radius: 99px;
}

.comparison-table-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

/* Compact pricing layout: four cards in one desktop row. */
.pricing-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 1200px;
    gap: 20px;
    margin-inline: auto;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px 20px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.pricing-card.featured {
    border-color: rgba(245, 158, 11, 0.45);
    background: radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.1), transparent 50%), rgba(15, 23, 42, 0.75);
    box-shadow: 0 16px 50px rgba(245, 158, 11, 0.15);
}

.pricing-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: var(--gradient-cta);
}

.pricing-card.featured:hover {
    transform: translateY(-10px);
    border-color: rgba(245, 158, 11, 0.7);
    box-shadow: 0 22px 60px rgba(245, 158, 11, 0.28);
}

.pricing-card .pricing-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    margin-bottom: 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-card.featured .pricing-badge {
    background: var(--gradient-cta);
    color: #0A0A0F;
    border: none;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.pricing-card .pricing-title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.4;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.pricing-card .pricing-subtitle {
    min-height: 56px;
    margin-bottom: 18px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.pricing-price-box {
    margin-bottom: 22px;
    padding: 16px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 16px;
    background: rgba(245, 158, 11, 0.05);
    text-align: right;
}

.price-current {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    direction: rtl;
    color: var(--accent-gold);
    line-height: 1;
}

.price-amount {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(1.8rem, 2.3vw, 2.3rem);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.price-currency {
    font-size: 0.85rem;
    font-weight: 800;
}

.price-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.price-old {
    color: var(--text-muted);
    font-size: 0.78rem;
    text-decoration: line-through;
}

.price-discount {
    padding: 3px 10px;
    border-radius: 100px;
    color: #4ADE80;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.25);
    font-size: 0.7rem;
    font-weight: 800;
}

.price-caption {
    display: block;
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.76rem;
    line-height: 1.5;
}

.pricing-card .pricing-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    list-style: none;
}

.pricing-card .pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.pricing-card .pricing-features li.active {
    color: #F1F5F9;
}

.pricing-card .pricing-features li .check-icon {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.15);
    color: #4ADE80;
    font-size: 0.7rem;
    font-weight: 900;
    margin-top: 2px;
}

.pricing-card .pricing-cta .btn,
.pricing-card > div:last-child .btn {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1.5;
    white-space: nowrap;
}

.pricing-card.premium {
    border-color: rgba(168, 85, 247, 0.6);
    background:
        radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.15), transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(124, 58, 237, 0.18), transparent 50%),
        rgba(15, 23, 42, 0.8);
    box-shadow: 0 16px 55px rgba(124, 58, 237, 0.22);
}

.pricing-card.premium::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #7C3AED, #EC4899, #F59E0B);
}

.pricing-card.premium:hover {
    transform: translateY(-10px);
    border-color: rgba(245, 158, 11, 0.75);
    box-shadow: 0 22px 70px rgba(124, 58, 237, 0.32);
}

.pricing-card.premium .pricing-badge {
    color: #FFFFFF;
    border: none;
    background: linear-gradient(135deg, #7C3AED, #EC4899);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
}

.pricing-card.premium .pricing-title {
    color: #FFFFFF;
}

.pricing-card.premium .btn-premium {
    color: #090916;
    background: linear-gradient(135deg, #FBBF24, #F97316);
    box-shadow: 0 8px 28px rgba(245, 158, 11, 0.3);
}

.pricing-card.premium .btn-premium:hover {
    background: linear-gradient(135deg, #F59E0B, #EA580C);
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.45);
}

table.pricing-comparison-table {
    min-width: 880px;
}

@media (max-width: 1199px) {
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 900px;
    }

    .pricing-card .pricing-subtitle {
        min-height: 0;
    }
}

/* Keep the complete desktop navigation visually centered on every page. */
.navbar {
    position: fixed;
    top: var(--promo-height, 0);
    left: 0;
    right: 0;
    z-index: 1100;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-inline: clamp(16px, 4vw, 64px);
}

.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

@media (min-width: 901px) {
    .nav-links {
        display: flex !important;
        align-items: center;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0 !important;
        padding: 0 !important;
        gap: clamp(14px, 2.2vw, 32px);
        white-space: nowrap;
        list-style: none;
    }

    .nav-cta-box {
        display: flex !important;
        align-items: center;
        gap: 10px;
        flex-shrink: 0;
    }
}

/* Switch earlier to the centered mobile menu before the links can overlap the logo. */
@media (max-width: 900px) {
    .nav-links,
    .nav-cta-box {
        display: none !important;
    }

    .hamburger {
        display: flex !important;
    }

    .mobile-menu a {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 1024px) {
    .promise-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid > :first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 56px 16px;
        --promo-height: 76px;
        --nav-height: 64px;
    }

    html {
        scroll-padding-top: calc(var(--promo-height) + 68px);
        overflow-x: hidden;
    }

    body {
        width: 100%;
        overflow-x: clip;
        font-size: 16px;
    }

    body.menu-open {
        overflow: hidden;
        touch-action: none;
    }

    .section {
        padding: 56px 16px;
    }

    .section-title {
        font-size: clamp(1.65rem, 7vw, 2.2rem);
        line-height: 1.35;
    }

    .section-subtitle {
        font-size: 1rem;
        line-height: 1.75;
    }

    .section-label {
        gap: 8px;
        letter-spacing: 1.2px;
        line-height: 1.6;
    }

    .section-label::before {
        width: 24px;
        flex: 0 0 24px;
    }

    .navbar {
        height: var(--nav-height);
        padding-inline: 16px;
    }

    .nav-logo {
        gap: 0;
    }

    .nav-logo-full-img {
        height: 34px;
        max-width: 150px;
    }

    .hamburger {
        width: 44px;
        height: 44px;
        padding: 10px;
        align-items: center;
        justify-content: center;
        flex: 0 0 44px;
        border-radius: 10px;
        -webkit-tap-highlight-color: transparent;
    }

    .hamburger:focus-visible {
        outline: 2px solid var(--accent-gold);
        outline-offset: 2px;
    }

    .mobile-menu {
        top: calc(var(--promo-height) + var(--nav-height));
        padding: 20px 16px calc(24px + env(safe-area-inset-bottom));
        gap: 8px;
        overflow-y: auto;
    }

    .mobile-menu a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 52px;
        padding: 14px 18px;
        font-size: 1.05rem;
        font-weight: 800;
        color: #FFFFFF !important;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: var(--radius-md);
        transition: all 0.2s ease;
    }

    .mobile-menu a:hover,
    .mobile-menu a:active,
    .mobile-menu a.active {
        background: rgba(124, 58, 237, 0.15);
        border-color: rgba(124, 58, 237, 0.4);
        color: #FFFFFF !important;
    }

    .mobile-menu a.btn,
    .mobile-menu .btn {
        justify-content: center;
        margin-top: 10px;
        min-height: 52px;
        background: var(--gradient-cta);
        color: #FFFFFF !important;
        font-weight: 900;
        font-size: 1.08rem;
        border-radius: 100px;
        border: none;
        box-shadow: 0 6px 25px rgba(245, 158, 11, 0.35);
    }

    .page-banner {
        padding: 108px 16px 40px;
    }

    .page-banner .section-subtitle {
        max-width: 34rem;
        margin-inline: auto;
    }

    .banner-glow {
        width: 140vw;
        max-width: 620px;
        height: 320px;
    }

    .btn {
        min-height: 52px;
        padding: 14px 22px;
    }

    .hero {
        min-height: auto;
        padding-top: calc(94px + var(--promo-height));
        padding-bottom: 54px;
    }

    .hero-grid {
        gap: 44px;
    }

    .hero-headline {
        font-size: clamp(2rem, 9vw, 2.7rem);
        line-height: 1.2;
        letter-spacing: 0;
    }

    .hero-subheadline {
        font-size: clamp(1.08rem, 5vw, 1.35rem);
        line-height: 1.6;
        margin-bottom: 18px;
    }

    .hero-description {
        font-size: 0.96rem;
        line-height: 1.9;
    }

    .hero-badge {
        max-width: 100%;
        padding: 6px 12px;
        margin-bottom: 14px;
        font-size: 0.76rem;
        line-height: 1.5;
    }

    .hero-code-line {
        display: block;
        width: 100%;
        padding: 9px 13px;
        margin-bottom: 16px;
        font-size: 0.78rem;
        line-height: 1.55;
        border-radius: 12px;
    }

    .hero-buttons {
        gap: 10px;
        margin-bottom: 18px;
    }

    .hero-buttons .btn,
    .final-cta-buttons .btn,
    .quiz-box .btn,
    .pricing-card .btn,
    .form-submit {
        width: 100%;
        min-height: 46px;
        padding: 11px 16px;
        font-size: 0.88rem;
    }

    .hero-features-row {
        gap: 7px;
        padding-top: 14px;
    }

    .hero-feature-chip {
        flex: 1 1 100%;
        justify-content: flex-start;
        min-height: 36px;
        padding: 6px 12px;
        font-size: 0.76rem;
    }

    .hero-visual {
        width: 100%;
        margin: 4px 0 18px;
        padding-inline: 4px;
    }

    .code-terminal {
        width: 100%;
        border-radius: 16px;
    }

    .terminal-header {
        padding: 10px 14px;
    }

    .terminal-body {
        padding: 16px 14px;
        font-size: 0.73rem;
        line-height: 1.8;
    }

    .hero-float-card {
        max-width: 82%;
        padding: 7px 11px;
        font-size: 0.7rem;
        animation: none;
    }

    .hero-float-card-top {
        top: -18px;
        right: 8px;
    }

    .hero-float-card-bottom {
        bottom: -40px;
        left: 8px;
    }

    .promo-ticker {
        padding: 10px 14px;
        font-size: 0.8rem;
        line-height: 1.6;
    }

    .promo-ticker-content {
        gap: 8px;
    }

    .problem-terms {
        gap: 7px;
        margin-block: 22px;
    }

    .problem-term {
        padding: 7px 12px;
        font-size: 0.74rem;
    }

    .promise-cards-grid,
    .pricing-grid,
    .home-reviews-grid,
    .method-steps,
    .skills-grid,
    .projects-grid,
    .forwho-grid,
    .why-grid,
    .lecture-grid,
    .steps-flow,
    .instructors-grid,
    .master-portals-grid,
    .instructors-home-grid,
    .philosophy-grid,
    .modules-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .tracks-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .promise-cards-grid,
    .pricing-grid,
    .instructors-grid,
    .master-portals-grid,
    .instructors-home-grid {
        gap: 14px !important;
    }

    .promise-card.full-width,
    .footer-grid > :first-child {
        grid-column: auto;
    }

    .promise-card {
        padding: 16px 14px;
        gap: 11px;
        border-radius: 16px;
    }

    .promise-card-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .promise-banner,
    .quiz-box {
        padding: 18px 15px;
        border-radius: 16px;
    }

    .track-card,
    .pricing-card,
    .instructor-card,
    .instructors-home-card,
    .portal-card,
    .glass-card,
    .track-detail-card {
        padding: 18px 15px !important;
        border-radius: 16px !important;
    }

    .instructor-home-header {
        flex-direction: column !important;
        text-align: center !important;
        align-items: center !important;
        gap: 12px !important;
    }

    .instructor-home-identity {
        text-align: center !important;
    }

    .instructor-home-identity h3 {
        font-size: 1.25rem !important;
    }

    .track-card-img {
        height: 180px;
        margin-bottom: 20px;
    }

    .track-detail-section {
        padding-block: 28px;
    }

    .track-detail-card {
        margin-bottom: 24px;
    }

    .track-header-row {
        align-items: stretch;
        gap: 16px;
        margin-bottom: 24px;
    }

    .track-title-box {
        width: 100%;
        min-width: 0;
        align-items: flex-start;
        gap: 12px;
    }

    .track-badge-icon {
        width: 54px;
        height: 54px;
        flex: 0 0 54px;
        font-size: 1.8rem;
    }

    .track-meta,
    .tech-tags {
        gap: 8px;
    }

    .meta-pill,
    .tech-tag {
        padding: 6px 11px;
        font-size: 0.76rem;
    }

    .modules-grid {
        gap: 12px;
        margin-block: 24px;
    }

    .module-card {
        padding: 18px 16px;
    }

    .comparison-table {
        min-width: 560px;
        font-size: 0.84rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 14px 13px;
        white-space: normal;
    }

    .pricing-grid {
        max-width: 100%;
        margin-top: 26px;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-title {
        font-size: 1.25rem;
    }

    .pricing-features {
        gap: 11px;
        margin-bottom: 26px;
    }

    .pricing-features li {
        font-size: 0.88rem;
        line-height: 1.7;
    }

    .form-container {
        padding: 26px 17px;
        border-radius: 18px;
    }

    .form-header {
        margin-bottom: 28px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-input,
    .form-select {
        min-height: 50px;
        padding: 13px 14px;
        font-size: 16px;
    }

    .form-radio {
        min-height: 50px;
        padding: 12px 13px;
    }

    .steps-flow {
        max-width: 100%;
        gap: 12px;
    }

    .step-item {
        padding: 22px 16px;
    }

    .instructor-avatar-box {
        gap: 14px;
        margin-bottom: 20px;
    }

    .avatar-circle {
        width: 64px;
        height: 64px;
        flex-basis: 64px;
        border-radius: 16px;
        font-size: 1.65rem;
    }

    .instructor-name {
        font-size: 1.2rem;
        line-height: 1.45;
    }

    .pillar-item {
        padding: 17px 15px;
        gap: 12px;
    }

    /* The original mobile timeline margins made the home page 155px wider. */
    .timeline {
        width: 100%;
        max-width: none;
        margin-inline: 0;
    }

    .timeline::before {
        right: 9px;
        transform: none;
    }

    .timeline-item {
        display: block;
        width: 100%;
        padding-right: 32px;
        margin-bottom: 20px;
    }

    .timeline-dot {
        top: 22px;
        right: 9px;
        transform: translateX(50%);
    }

    .timeline-item:hover .timeline-dot {
        transform: translateX(50%);
    }

    .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: 100%;
        margin: 0 !important;
        padding: 18px 16px;
        text-align: right !important;
    }

    .faq-question {
        min-height: 60px;
        padding: 17px 15px;
        gap: 12px;
        font-size: 0.94rem;
        line-height: 1.7;
        text-align: right;
    }

    .faq-toggle {
        flex-shrink: 0;
    }

    .final-cta-content {
        padding-inline: 0;
    }

    .final-cta-buttons {
        width: 100%;
        max-width: 430px;
        margin-inline: auto;
        align-items: stretch;
        gap: 12px;
    }

    .footer {
        padding: 44px 16px calc(28px + env(safe-area-inset-bottom));
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        text-align: center;
    }

    .footer-socials,
    .footer-location {
        justify-content: center;
    }

    .footer-links {
        align-items: center;
    }

    .whatsapp-float {
        left: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom));
    }

    .whatsapp-float-btn {
        width: 50px;
        height: 50px;
    }

    .whatsapp-float-btn svg {
        width: 27px;
        height: 27px;
    }

    .back-to-top {
        right: 16px;
        left: auto;
        bottom: calc(16px + env(safe-area-inset-bottom));
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 48px 14px;
    }

    .section {
        padding: 48px 14px;
    }

    .navbar {
        padding-inline: 12px;
    }

    .page-banner {
        padding: 100px 14px 34px;
    }

    .page-banner .section-title {
        font-size: clamp(1.65rem, 8vw, 2rem);
    }

    .nav-logo {
        font-size: 1rem;
    }

    .nav-logo-icon {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .hero {
        padding-top: calc(88px + var(--promo-height));
        padding-bottom: 48px;
    }

    .hero-headline {
        font-size: clamp(1.85rem, 9.2vw, 2.35rem);
    }

    .track-card-img {
        height: 160px;
    }

    .comparison-table {
        min-width: 520px;
    }

    .instructor-card,
    .track-card,
    .pricing-card,
    .track-detail-card,
    .form-container {
        padding-inline: 16px;
    }

    .whatsapp-float {
        left: 12px;
    }

    .back-to-top {
        right: 12px;
    }
}

@media (max-width: 360px) {
    .nav-logo span {
        font-size: 0.92rem;
    }

    .hero-badge {
        font-size: 0.78rem;
    }

    .track-title-box {
        gap: 9px;
    }

    .track-badge-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        font-size: 1.55rem;
    }
}

@media (hover: none), (pointer: coarse) {
    .glass-card:hover,
    .pricing-card:hover,
    .pricing-card.featured:hover,
    .code-terminal:hover,
    .track-card:hover,
    .instructor-card:hover,
    .problem-term:hover,
    .hero-feature-chip:hover {
        transform: none;
    }
}

@media (max-height: 520px) and (orientation: landscape) {
    .mobile-menu {
        padding-top: 10px;
    }

    .mobile-menu a {
        min-height: 42px;
        padding-block: 8px;
    }
}

/* Home: clearer projects, audience and introductory lecture experience. */
.projects-header,
.forwho-header,
.lecture-header {
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
}

.projects-header,
.forwho-header {
    margin-bottom: 42px;
}

.projects-header .section-subtitle {
    margin-bottom: 18px;
}

.projects-journey-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border: 1px solid rgba(167, 139, 250, 0.25);
    border-radius: 100px;
    background: rgba(124, 58, 237, 0.08);
    color: #D8B4FE;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.12);
    backdrop-filter: blur(8px);
}

.projects-journey-dots {
    display: flex;
    gap: 5px;
    direction: ltr;
}

.projects-journey-dots i {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8B5CF6;
    animation: pulseDot 2s infinite ease-in-out;
}

.projects-journey-dots i:nth-child(2) { background: #06B6D4; animation-delay: 0.3s; }
.projects-journey-dots i:nth-child(3) { background: #F59E0B; animation-delay: 0.6s; }

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.4); opacity: 1; }
}

.projects-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1120px;
    margin: 0 auto 44px;
}

.projects-grid::before {
    content: '';
    position: absolute;
    top: 55px;
    right: 15%;
    left: 15%;
    height: 3px;
    background: linear-gradient(90deg, #F59E0B 0%, #06B6D4 50%, #8B5CF6 100%);
    border-radius: 10px;
    opacity: 0.35;
    z-index: 0;
}

.project-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 320px;
    padding: 26px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    text-align: right;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    isolation: isolate;
    overflow: hidden;
}

/* Stage-specific themes */
.project-card.stage-1 {
    --card-accent: 139, 92, 246; /* Violet */
}
.project-card.stage-2 {
    --card-accent: 6, 182, 212; /* Cyan */
}
.project-card.stage-3 {
    --card-accent: 245, 158, 11; /* Amber */
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(var(--card-accent), 0.8), transparent);
    opacity: 0.7;
    transition: opacity 0.3s;
}

.project-card::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(var(--card-accent), 0.12);
    filter: blur(25px);
    z-index: -1;
    transition: all 0.4s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--card-accent), 0.45);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4), 0 0 25px rgba(var(--card-accent), 0.15);
}

.project-card:hover::after {
    transform: scale(1.3);
    background: rgba(var(--card-accent), 0.22);
}

.project-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.project-step-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-num {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(var(--card-accent), 0.15);
    border: 1px solid rgba(var(--card-accent), 0.3);
    color: rgb(var(--card-accent));
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    font-size: 0.95rem;
}

.step-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
}

.project-icon-box {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(var(--card-accent), 0.1);
    border: 1px solid rgba(var(--card-accent), 0.25);
    color: rgb(var(--card-accent));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-card:hover .project-icon-box {
    transform: scale(1.12) rotate(-6deg);
}

.project-icon-box svg {
    width: 24px;
    height: 24px;
}

.project-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-time-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(var(--card-accent), 0.1);
    color: rgb(var(--card-accent));
    font-size: 0.76rem;
    font-weight: 800;
}

.project-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 4px 0 2px;
    letter-spacing: -0.01em;
    direction: ltr;
    text-align: right;
}

.project-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    min-height: 48px;
}

.project-deliverable {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(var(--card-accent), 0.2);
    color: #F1F5F9;
    font-size: 0.82rem;
    font-weight: 700;
    transition: background 0.3s;
}

.project-card:hover .project-deliverable {
    background: rgba(var(--card-accent), 0.08);
}

.deliverable-icon {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgb(var(--card-accent));
    color: #0F172A;
    font-size: 0.72rem;
    font-weight: 900;
}

/* Bottom Output Showcase Banner */
.projects-output {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 28px 32px;
    border-radius: 24px;
    background: radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.12), transparent 45%),
                radial-gradient(circle at 0% 100%, rgba(139, 92, 246, 0.15), transparent 50%),
                rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(245, 158, 11, 0.28);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), inset 0 1px rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}

.projects-output-copy {
    display: flex;
    align-items: center;
    gap: 18px;
}

.projects-output-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 20px;
    background: radial-gradient(circle at 30% 30%, rgba(245, 158, 11, 0.28), rgba(139, 92, 246, 0.16));
    border: 1.5px solid rgba(245, 158, 11, 0.5);
    color: #FBBF24;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.3);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s, box-shadow 0.3s;
}

.projects-output:hover .projects-output-icon {
    transform: scale(1.1) rotate(-5deg);
    border-color: rgba(245, 158, 11, 0.85);
    box-shadow: 0 14px 32px rgba(245, 158, 11, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.projects-output-icon svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.45));
}

.projects-output-label {
    display: block;
    color: #FBBF24;
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}

.projects-output-title {
    font-size: 1.35rem;
    font-weight: 900;
    color: #FFFFFF;
    margin: 0 0 4px;
    line-height: 1.35;
}

.projects-output-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.projects-output-side {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.output-badges {
    display: flex;
    align-items: center;
    gap: 10px;
}

.output-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 15px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #E2E8F0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    font-weight: 700;
    transition: all 0.25s;
}

.output-badge:hover {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.4);
    color: #FBBF24;
    transform: translateY(-2px);
}

.projects-explore-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 14px;
    background: linear-gradient(135deg, #7C3AED, #6366F1);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.35);
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
}

.projects-explore-btn:hover {
    background: linear-gradient(135deg, #6D28D9, #4F46E5);
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.5);
    transform: translateY(-2px);
}

.projects-explore-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s;
}

.projects-explore-btn:hover svg {
    transform: translateX(-4px);
}

.forwho {
    overflow: hidden;
}

.forwho-grid {
    gap: 14px;
    max-width: 980px;
    margin-bottom: 32px;
}

.forwho-item {
    position: relative;
    align-items: center;
    min-height: 92px;
    padding: 17px 18px;
    overflow: hidden;
}

.forwho-item::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 3px;
    border-radius: 4px;
    background: linear-gradient(180deg, #7C3AED, #F59E0B);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.forwho-item:hover::after {
    opacity: 1;
}

.forwho-check {
    width: 34px;
    height: 34px;
    border-radius: 11px;
}

.forwho-category {
    display: block;
    margin-bottom: 3px;
    color: var(--accent-gold);
    font-size: 0.68rem;
    font-weight: 800;
}

.forwho-text {
    display: block;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.65;
}

.forwho-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    max-width: 610px;
    margin: 0 auto;
    padding: 20px 24px;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 18px;
    background: rgba(245, 158, 11, 0.045);
    text-align: right;
}

.forwho-bottom-icon {
    font-size: 1.7rem;
}

.forwho-bottom p:first-child,
.forwho-bottom p:last-child {
    margin: 0;
}

.forwho-bottom p:first-child {
    font-size: 0.84rem;
}

.forwho-bottom p:last-child {
    font-size: 1.03rem;
}

.lecture-header {
    margin-bottom: 34px;
}

.lecture-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(285px, 0.75fr);
    gap: 28px;
    max-width: 1100px;
    margin-inline: auto;
    align-items: start;
}

.lecture-content {
    padding: 26px;
    border: 1px solid var(--border-glass);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.025);
}

.lecture-intro {
    display: flex;
    align-items: center;
    gap: 13px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lecture-intro-icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border-radius: 13px;
    background: rgba(124, 58, 237, 0.12);
    font-size: 1.25rem;
}

.lecture-intro p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.75;
}

.lecture-topics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.lecture-topics li {
    align-items: center;
    min-height: 64px;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.022);
}

.lecture-topics li:hover {
    border-color: rgba(167, 139, 250, 0.2);
    background: rgba(124, 58, 237, 0.06);
}

.lecture-topics li span {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    margin: 0;
    place-items: center;
    border-radius: 8px;
    background: rgba(124, 58, 237, 0.11);
    color: #C4B5FD;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.64rem;
    font-weight: 800;
}

.lecture-topics li p {
    color: var(--text-secondary);
    font-size: 0.79rem;
    font-weight: 600;
    line-height: 1.65;
}

.lecture-aside {
    position: sticky;
    top: 92px;
}

.lecture-goal {
    position: relative;
    margin: 0;
    padding: 28px 24px;
    overflow: hidden;
    border-color: rgba(245, 158, 11, 0.2);
    background: linear-gradient(145deg, rgba(124, 58, 237, 0.11), rgba(245, 158, 11, 0.05));
}

.lecture-goal::after {
    content: '';
    position: absolute;
    top: -80px;
    left: -75px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.15);
    filter: blur(18px);
}

.lecture-goal-icon {
    display: grid;
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    place-items: center;
    border-radius: 16px;
    background: rgba(245, 158, 11, 0.1);
    font-size: 1.6rem;
}

.lecture-goal-label {
    display: block;
    margin-bottom: 6px;
    color: var(--accent-gold);
    font-size: 0.73rem;
    font-weight: 800;
}

.lecture-goal h3 {
    margin-bottom: 13px;
    color: var(--text-primary);
    font-size: 1.24rem;
    line-height: 1.55;
}

.lecture-goal > p {
    margin: 0 0 12px;
    font-size: 0.84rem;
}

.lecture-outcomes {
    display: grid;
    gap: 9px;
    list-style: none;
}

.lecture-outcomes li {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text-secondary);
    font-size: 0.86rem;
    font-weight: 700;
}

.lecture-outcomes li span {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.1);
    color: #4ADE80;
    font-size: 0.7rem;
}

.lecture-cta {
    margin-top: 14px;
}

.lecture-cta .btn {
    width: 100%;
}

.lecture-cta-note {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.72rem;
    text-align: center;
}

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-width: 920px;
    }

    .lecture-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 780px;
    }

    .lecture-aside {
        position: static;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(260px, 0.75fr);
        gap: 16px;
        align-items: center;
    }

    .lecture-cta {
        margin: 0;
    }
}

@media (max-width: 768px) {
    .projects-header,
    .forwho-header {
        margin-bottom: 30px;
    }

    .projects-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 480px;
        gap: 18px;
    }

    .projects-grid::before {
        display: none;
    }

    .project-card {
        min-height: 0;
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 22px 20px;
    }

    .project-card-head {
        margin-bottom: 0;
    }

    .project-desc {
        min-height: 0;
    }

    .projects-output {
        flex-direction: column;
        align-items: stretch;
        max-width: 480px;
        padding: 24px 20px;
        gap: 20px;
    }

    .projects-output-copy {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
    }

    .projects-output-text {
        text-align: center;
    }

    .projects-output-side {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .output-badges {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .output-badge {
        flex: 1 1 28%;
        justify-content: center;
        min-width: 90px;
        padding: 8px 12px;
    }

    .projects-explore-btn {
        width: 100%;
        min-height: 48px;
    }

    .forwho-grid {
        gap: 10px;
    }

    .forwho-item {
        min-height: 80px;
        padding: 14px;
    }

    .forwho-bottom {
        justify-content: flex-start;
        padding: 17px 18px;
    }

    .lecture-header {
        margin-bottom: 26px;
    }

    .lecture-content {
        padding: 18px 14px;
        border-radius: 18px;
    }

    .lecture-intro {
        align-items: flex-start;
    }

    .lecture-topics {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .lecture-topics li {
        min-height: 56px;
        padding: 9px 10px;
    }

    .lecture-topics li p {
        font-size: 0.82rem;
    }

    .lecture-aside {
        grid-template-columns: minmax(0, 1fr);
    }

    .lecture-goal {
        padding: 24px 20px;
    }
}

@media (max-width: 380px) {
    .projects-output-copy {
        gap: 10px;
    }

    .projects-output-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .projects-output-icon svg {
        width: 22px;
        height: 22px;
    }

    .projects-output-title {
        font-size: 1.15rem;
    }

    .output-badge {
        padding: 6px 10px;
        font-size: 0.74rem;
    }

    .forwho-check {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }
}

/* =========================================================
   MOBILE-COMPACT: Smaller cards, buttons & tighter spacing
   ========================================================= */

@media (max-width: 768px) {

    /* ── Global section & typography ── */
    .section-title {
        font-size: clamp(1.45rem, 6.5vw, 2rem) !important;
        margin-bottom: 8px;
    }

    .section-subtitle {
        font-size: 0.92rem !important;
        line-height: 1.65;
    }

    .section-label {
        font-size: 0.72rem;
        letter-spacing: 1px;
        margin-bottom: 10px;
    }

    /* ── Buttons – compact across the board ── */
    .btn {
        min-height: 44px !important;
        padding: 10px 18px !important;
        font-size: 0.84rem !important;
        border-radius: 14px;
    }

    .hero-buttons .btn,
    .final-cta-buttons .btn,
    .quiz-box .btn,
    .pricing-card .btn,
    .form-submit,
    .lecture-cta .btn {
        min-height: 42px !important;
        padding: 10px 16px !important;
        font-size: 0.82rem !important;
    }

    .mobile-menu a.btn,
    .mobile-menu .btn {
        min-height: 46px !important;
        font-size: 0.95rem !important;
    }

    /* ── Hero section – tighter ── */
    .hero {
        padding-top: calc(86px + var(--promo-height)) !important;
        padding-bottom: 40px !important;
    }

    .hero-grid {
        gap: 32px !important;
    }

    .hero-headline {
        font-size: clamp(1.75rem, 8.5vw, 2.4rem) !important;
    }

    .hero-subheadline {
        font-size: clamp(0.98rem, 4.5vw, 1.2rem) !important;
        margin-bottom: 12px !important;
    }

    .hero-description {
        font-size: 0.88rem !important;
        line-height: 1.8;
    }

    .hero-badge {
        padding: 5px 10px !important;
        font-size: 0.72rem !important;
        margin-bottom: 10px !important;
    }

    .hero-code-line {
        padding: 7px 11px !important;
        font-size: 0.74rem !important;
        margin-bottom: 12px !important;
    }

    .hero-buttons {
        gap: 8px !important;
        margin-bottom: 14px !important;
    }

    .hero-features-row {
        gap: 6px !important;
        padding-top: 10px !important;
    }

    .hero-feature-chip {
        min-height: 32px !important;
        padding: 5px 10px !important;
        font-size: 0.72rem !important;
    }

    /* ── Code terminal – compact ── */
    .terminal-body {
        padding: 12px 12px !important;
        font-size: 0.68rem !important;
        line-height: 1.7;
    }

    .terminal-header {
        padding: 8px 12px !important;
    }

    .hero-float-card {
        padding: 5px 9px !important;
        font-size: 0.65rem !important;
    }

    /* ── Promo ticker – compact ── */
    .promo-ticker {
        padding: 8px 12px !important;
        font-size: 0.75rem !important;
    }

    /* ── Method steps (01-05) – much smaller cards ── */
    .method-step {
        padding: 20px 14px 18px !important;
    }

    .method-step-number {
        font-size: 2rem !important;
        margin-bottom: 8px !important;
    }

    .method-step-title {
        font-size: 1rem !important;
        margin-bottom: 4px !important;
    }

    .method-step-title-en {
        font-size: 0.68rem !important;
        padding: 2px 10px !important;
        margin-bottom: 8px !important;
    }

    .method-step-desc {
        font-size: 0.8rem !important;
        line-height: 1.55;
    }

    /* ── Skills grid items – compact ── */
    .skills-grid {
        gap: 8px !important;
    }

    .skill-item {
        gap: 10px !important;
        padding: 11px 12px !important;
        border-radius: 10px !important;
    }

    .skill-icon {
        width: 32px !important;
        height: 32px !important;
        border-radius: 8px !important;
        font-size: 0.88rem !important;
    }

    .skill-name {
        font-size: 0.8rem !important;
    }

    /* ── Track cards – compact side-by-side ── */
    .tracks-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .track-card,
    .track-detail-card {
        padding: 10px 10px 14px !important;
        border-radius: 12px !important;
    }

    .track-card-img {
        height: 100px !important;
        margin-bottom: 8px !important;
        border-radius: 10px !important;
    }

    .track-emoji {
        font-size: 1.3rem !important;
        margin-bottom: 4px !important;
    }

    .track-name {
        font-size: 0.82rem !important;
        margin-bottom: 4px !important;
    }

    .track-desc {
        font-size: 0.68rem !important;
        line-height: 1.5 !important;
        margin-bottom: 10px !important;
    }

    .track-card .btn-track {
        font-size: 0.72rem !important;
        min-height: 34px !important;
        padding: 6px 10px !important;
        border-radius: 10px !important;
    }

    .track-badge-icon {
        width: 44px !important;
        height: 44px !important;
        flex: 0 0 44px !important;
        font-size: 1.5rem !important;
    }

    .track-title-box {
        gap: 10px !important;
    }

    .track-header-row {
        gap: 12px !important;
        margin-bottom: 16px !important;
    }

    .meta-pill,
    .tech-tag {
        padding: 4px 9px !important;
        font-size: 0.7rem !important;
    }

    .modules-grid {
        gap: 8px !important;
        margin-block: 16px !important;
    }

    .module-card {
        padding: 12px 12px !important;
    }

    /* ── Track topics (inside track cards) ── */
    .track-topics li {
        font-size: 0.82rem !important;
        padding: 4px 0 !important;
    }

    /* ── Project cards – compact ── */
    .project-card {
        padding: 16px 14px !important;
        min-height: 0 !important;
        gap: 12px !important;
        border-radius: 16px !important;
    }

    .project-card-head {
        margin-bottom: 0 !important;
    }

    .step-num {
        width: 30px !important;
        height: 30px !important;
        border-radius: 9px !important;
        font-size: 0.8rem !important;
    }

    .step-label {
        font-size: 0.72rem !important;
    }

    .project-icon-box {
        width: 38px !important;
        height: 38px !important;
        border-radius: 11px !important;
    }

    .project-icon-box svg {
        width: 20px !important;
        height: 20px !important;
    }

    .project-time-tag {
        padding: 3px 8px !important;
        font-size: 0.7rem !important;
    }

    .project-title {
        font-size: 1.1rem !important;
    }

    .project-desc {
        font-size: 0.82rem !important;
        min-height: 0 !important;
    }

    .project-deliverable {
        margin-top: 8px !important;
        padding: 7px 10px !important;
        font-size: 0.75rem !important;
    }

    /* ── Projects output banner ── */
    .projects-output {
        padding: 22px 18px !important;
        gap: 18px !important;
        border-radius: 18px !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .projects-output-copy {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
    }

    .projects-output-text {
        text-align: center !important;
    }

    .projects-output-icon {
        width: 52px !important;
        height: 52px !important;
        border-radius: 16px !important;
    }

    .projects-output-icon svg {
        width: 26px !important;
        height: 26px !important;
    }

    .projects-output-label {
        font-size: 0.74rem !important;
    }

    .projects-output-title {
        font-size: 1.15rem !important;
        margin-bottom: 2px !important;
    }

    .projects-output-desc {
        font-size: 0.82rem !important;
    }

    .projects-output-side {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        gap: 12px !important;
    }

    .output-badges {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
    }

    .output-badge {
        flex: 1 !important;
        justify-content: center !important;
        min-width: 0 !important;
        padding: 8px 10px !important;
        font-size: 0.76rem !important;
        border-radius: 10px !important;
    }

    .projects-explore-btn {
        width: 100% !important;
        min-height: 44px !important;
        padding: 11px 18px !important;
        font-size: 0.86rem !important;
        border-radius: 12px !important;
        justify-content: center !important;
    }

    /* ── ForWho items – compact ── */
    .forwho-grid {
        gap: 8px !important;
    }

    .forwho-item {
        min-height: 64px !important;
        padding: 10px 12px !important;
        border-radius: 12px !important;
    }

    .forwho-check {
        width: 28px !important;
        height: 28px !important;
        flex-basis: 28px !important;
        border-radius: 8px !important;
    }

    .forwho-category {
        font-size: 0.62rem !important;
        margin-bottom: 1px !important;
    }

    .forwho-text {
        font-size: 0.82rem !important;
        line-height: 1.5;
    }

    .forwho-bottom {
        padding: 14px 14px !important;
        gap: 10px !important;
        border-radius: 14px !important;
    }

    .forwho-bottom-icon {
        font-size: 1.3rem !important;
    }

    .forwho-bottom p:first-child {
        font-size: 0.78rem !important;
    }

    .forwho-bottom p:last-child {
        font-size: 0.92rem !important;
    }

    /* ── Lecture section – compact ── */
    .lecture-content {
        padding: 14px 12px !important;
        border-radius: 14px !important;
    }

    .lecture-intro {
        gap: 10px !important;
        padding-bottom: 14px !important;
    }

    .lecture-intro-icon {
        width: 36px !important;
        height: 36px !important;
        flex: 0 0 36px !important;
        border-radius: 10px !important;
        font-size: 1rem !important;
    }

    .lecture-intro p {
        font-size: 0.84rem !important;
    }

    .lecture-topics {
        gap: 6px !important;
        margin-top: 14px !important;
    }

    .lecture-topics li {
        min-height: 46px !important;
        padding: 7px 9px !important;
        border-radius: 10px !important;
    }

    .lecture-topics li span {
        width: 24px !important;
        height: 24px !important;
        flex: 0 0 24px !important;
        border-radius: 7px !important;
        font-size: 0.58rem !important;
    }

    .lecture-topics li p {
        font-size: 0.76rem !important;
    }

    .lecture-goal {
        padding: 18px 16px !important;
        border-radius: 16px !important;
    }

    .lecture-goal-icon {
        width: 42px !important;
        height: 42px !important;
        margin-bottom: 12px !important;
        border-radius: 12px !important;
        font-size: 1.3rem !important;
    }

    .lecture-goal h3 {
        font-size: 1.05rem !important;
        margin-bottom: 8px !important;
    }

    .lecture-goal > p {
        font-size: 0.78rem !important;
    }

    .lecture-outcomes li {
        font-size: 0.78rem !important;
        gap: 7px !important;
    }

    .lecture-outcomes li span {
        width: 18px !important;
        height: 18px !important;
        font-size: 0.6rem !important;
    }

    /* ── Pricing cards – compact ── */
    .pricing-card {
        padding: 16px 14px !important;
        border-radius: 16px !important;
    }

    .pricing-card .pricing-badge {
        padding: 4px 10px !important;
        font-size: 0.68rem !important;
        margin-bottom: 10px !important;
    }

    .pricing-card .pricing-title {
        font-size: 1.1rem !important;
        margin-bottom: 6px !important;
    }

    .pricing-card .pricing-subtitle {
        font-size: 0.76rem !important;
        margin-bottom: 12px !important;
        min-height: 0 !important;
    }

    .pricing-price-box {
        padding: 12px !important;
        margin-bottom: 14px !important;
        border-radius: 12px !important;
    }

    .price-amount {
        font-size: clamp(1.5rem, 2vw, 1.8rem) !important;
    }

    .price-currency {
        font-size: 0.78rem !important;
    }

    .price-meta {
        margin-top: 6px !important;
    }

    .price-old {
        font-size: 0.72rem !important;
    }

    .price-discount {
        font-size: 0.64rem !important;
        padding: 2px 8px !important;
    }

    .price-caption {
        font-size: 0.7rem !important;
        margin-top: 6px !important;
    }

    .pricing-card .pricing-features {
        gap: 7px !important;
        margin-bottom: 16px !important;
    }

    .pricing-card .pricing-features li {
        font-size: 0.78rem !important;
        gap: 6px !important;
        line-height: 1.5;
    }

    .pricing-card .pricing-features li .check-icon {
        width: 16px !important;
        height: 16px !important;
        font-size: 0.62rem !important;
    }

    .pricing-card .pricing-cta .btn,
    .pricing-card > div:last-child .btn {
        min-height: 40px !important;
        padding: 9px 12px !important;
        font-size: 0.8rem !important;
        border-radius: 12px !important;
    }

    /* ── Booking steps (01-05) – compact ── */
    .steps-flow {
        gap: 8px !important;
    }

    .step-item {
        padding: 14px 12px !important;
        border-radius: 12px !important;
    }

    .step-number {
        font-size: 1.8rem !important;
        margin-bottom: 6px !important;
    }

    .step-title {
        font-size: 0.88rem !important;
    }

    .step-desc {
        font-size: 0.76rem !important;
    }

    /* ── FAQ – compact & clean ── */
    .faq-question {
        min-height: 48px !important;
        padding: 14px 14px !important;
        font-size: 0.88rem !important;
        line-height: 1.55;
    }

    .faq-answer {
        padding: 0 !important;
        max-height: 0;
        overflow: hidden;
    }

    .faq-answer-inner {
        padding: 4px 14px 16px !important;
        font-size: 0.84rem !important;
        line-height: 1.7 !important;
    }

    /* ── Promise cards – compact ── */
    .promise-card {
        padding: 12px 12px !important;
        gap: 9px !important;
        border-radius: 12px !important;
    }

    .promise-card-icon {
        width: 34px !important;
        height: 34px !important;
        flex-basis: 34px !important;
    }

    .promise-banner,
    .quiz-box {
        padding: 14px 12px !important;
        border-radius: 14px !important;
    }

    /* ── Timeline cards – compact ── */
    .timeline-content {
        padding: 14px 12px !important;
    }

    /* ── Form – compact ── */
    .form-container {
        padding: 20px 14px !important;
        border-radius: 14px !important;
    }

    .form-input,
    .form-select {
        min-height: 44px !important;
        padding: 10px 12px !important;
        font-size: 15px !important;
    }

    .form-radio {
        min-height: 42px !important;
        padding: 9px 11px !important;
    }

    /* ── Footer – compact ── */
    .footer {
        padding: 32px 14px calc(20px + env(safe-area-inset-bottom)) !important;
    }

    .footer-grid {
        gap: 20px !important;
    }

    .footer-desc {
        font-size: 0.82rem !important;
    }

    .footer-brand {
        display: flex;
        justify-content: center;
    }

    .footer-brand img {
        margin: 0 auto !important;
        display: block !important;
    }

    /* ── Final CTA – compact ── */
    .final-cta-content {
        padding: 0 !important;
    }

    .final-cta-buttons {
        gap: 8px !important;
    }

    /* ── Instructor cards – compact ── */
    .instructor-card {
        padding: 16px 14px !important;
    }

    .instructor-avatar-box {
        gap: 10px !important;
        margin-bottom: 14px !important;
    }

    .avatar-circle {
        width: 52px !important;
        height: 52px !important;
        flex-basis: 52px !important;
        border-radius: 14px !important;
        font-size: 1.4rem !important;
    }

    .instructor-name {
        font-size: 1.05rem !important;
    }

    .instructor-bio {
        font-size: 0.84rem !important;
    }
}

/* ── Extra-small phones ── */
@media (max-width: 420px) {

    .hero-headline {
        font-size: clamp(1.55rem, 8vw, 2rem) !important;
    }

    .section-title {
        font-size: clamp(1.3rem, 6vw, 1.7rem) !important;
    }

    .method-step {
        padding: 16px 10px 14px !important;
    }

    .method-step-number {
        font-size: 1.6rem !important;
        margin-bottom: 6px !important;
    }

    .method-step-title {
        font-size: 0.9rem !important;
    }

    .method-step-desc {
        font-size: 0.74rem !important;
    }

    .skill-item {
        padding: 9px 10px !important;
        gap: 8px !important;
    }

    .skill-icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.78rem !important;
    }

    .skill-name {
        font-size: 0.74rem !important;
    }

    .project-card {
        padding: 12px 10px !important;
        gap: 10px !important;
    }

    .project-title {
        font-size: 0.95rem !important;
    }

    .project-desc {
        font-size: 0.76rem !important;
    }

    .forwho-item {
        min-height: 56px !important;
        padding: 8px 10px !important;
    }

    .forwho-text {
        font-size: 0.76rem !important;
    }

    .pricing-card {
        padding: 14px 12px !important;
    }

    .pricing-card .pricing-title {
        font-size: 1rem !important;
    }

    .pricing-card .pricing-features li {
        font-size: 0.74rem !important;
    }

    .lecture-topics li {
        min-height: 40px !important;
        padding: 6px 8px !important;
    }

    .lecture-topics li p {
        font-size: 0.72rem !important;
    }

    .faq-question {
        min-height: 44px !important;
        padding: 10px 10px !important;
        font-size: 0.82rem !important;
    }

    .btn {
        min-height: 40px !important;
        padding: 9px 14px !important;
        font-size: 0.78rem !important;
    }

    .step-item {
        padding: 12px 10px !important;
    }

    .step-number {
        font-size: 1.5rem !important;
    }
}

/* =========================================================
   UX & High-Legibility Overrides
   ========================================================= */

/* Make all step numbers bright, radiant gold & hyper-legible */
.step-number,
.method-step-number,
.step-num,
.number-badge,
.step-item .step-number {
    font-family: 'JetBrains Mono', monospace !important;
    color: #FBBF24 !important;
    -webkit-text-fill-color: #FBBF24 !important;
    background: none !important;
    opacity: 1 !important;
    font-weight: 900 !important;
    text-shadow: 0 0 16px rgba(251, 191, 36, 0.45) !important;
}

/* Primary Button High-Contrast & Legibility */
.btn-primary,
.nav-cta,
.btn-track,
.btn-premium {
    color: #06060E !important;
    font-weight: 800 !important;
}

.btn-primary .btn-text,
.nav-cta span {
    color: #06060E !important;
    font-weight: 800 !important;
}

/* Remove underline from CTA button in nav links */
.nav-links a.nav-cta::after,
.nav-links a.btn::after {
    display: none !important;
}

/* =========================================================
   Mobile Footer & SVG Layout Perfecting Overrides
   ========================================================= */

/* 1. Centering Footer Logo, Description & Social Links */
.footer-brand,
.footer-desc,
.footer-socials,
.footer-grid > div:first-child {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    margin-inline: auto !important;
    width: 100% !important;
}

.footer-brand img {
    margin: 0 auto !important;
    display: block !important;
    max-width: 200px !important;
    height: auto !important;
}

.footer-socials {
    flex-direction: row !important;
    justify-content: center !important;
    gap: 14px !important;
    margin-top: 14px !important;
}

/* 2. Fixing SVG Icon Scaling on Mobile (Prevents Giant White Shapes) */
.project-icon-box {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    flex-shrink: 0 !important;
    border-radius: 14px !important;
    background: rgba(124, 58, 237, 0.12) !important;
    border: 1px solid rgba(124, 58, 237, 0.3) !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.project-icon-box svg,
.projects-output-icon svg,
.step-item svg,
.hero-note svg {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    flex-shrink: 0 !important;
    stroke: currentColor !important;
    fill: none !important;
    stroke-width: 1.8px !important;
}

.projects-output-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    min-height: 54px !important;
    flex-shrink: 0 !important;
}

/* 3. Mobile Header & Promo Bar Clean Positioning */
@media (max-width: 768px) {
    .promo-ticker {
        padding: 8px 12px !important;
        font-size: 0.76rem !important;
        text-align: center !important;
        line-height: 1.4 !important;
    }

    .promo-ticker-content {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        flex-wrap: wrap !important;
    }

    .navbar {
        padding-inline: 14px !important;
    }

    .nav-logo-full-img {
        height: 36px !important;
        max-width: 150px !important;
    }

    .footer {
        padding-bottom: calc(80px + env(safe-area-inset-bottom)) !important;
    }

    .whatsapp-float {
        left: 14px !important;
        bottom: calc(14px + env(safe-area-inset-bottom)) !important;
        z-index: 950 !important;
    }

    .back-to-top {
        right: 14px !important;
        bottom: calc(14px + env(safe-area-inset-bottom)) !important;
        z-index: 950 !important;
    }
}

/* =========================================================
   Navbar Links Desktop Centering Fix (100% Centered)
   ========================================================= */
@media (min-width: 901px) {
    .navbar {
        position: fixed !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .nav-links {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: clamp(14px, 2.2vw, 36px) !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        white-space: nowrap !important;
        z-index: 10 !important;
    }
}

/* =========================================================
   Projects Section Cards & Icon Sizing Fix
   ========================================================= */
.project-card-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    margin-bottom: 20px !important;
}

.project-step-badge {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.project-icon-box {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    border-radius: 14px !important;
    background: rgba(124, 58, 237, 0.12) !important;
    border: 1px solid rgba(124, 58, 237, 0.3) !important;
    color: #A78BFA !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.project-icon-box svg {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    stroke: currentColor !important;
    fill: none !important;
    stroke-width: 1.8px !important;
    flex-shrink: 0 !important;
}


/* =========================================================
   Language Switcher Toggle Pill Styles
   ========================================================= */
.lang-toggle-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 7px 16px !important;
    border-radius: 100px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #F1F5F9 !important;
    font-family: 'JetBrains Mono', 'Cairo', sans-serif !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin-left: 12px !important;
}

.lang-toggle-btn:hover {
    background: rgba(124, 58, 237, 0.18) !important;
    border-color: rgba(124, 58, 237, 0.4) !important;
    color: #FBBF24 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 18px rgba(124, 58, 237, 0.2) !important;
}


/* =========================================================
   Tracks Page Enhanced Interactive Tabs & Module Cards
   ========================================================= */
.track-tabs-nav {
    display: flex !important;
    justify-content: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin: 24px auto 40px !important;
    padding: 8px 12px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--border-glass) !important;
    border-radius: 100px !important;
    backdrop-filter: blur(20px) !important;
    max-width: 840px !important;
}

.track-tab-btn {
    padding: 10px 20px !important;
    border-radius: 100px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: var(--text-secondary) !important;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: transparent !important;
    border: 1px solid transparent !important;
}

.track-tab-btn:hover,
.track-tab-btn.active {
    background: rgba(245, 158, 11, 0.12) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
    color: #FBBF24 !important;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15) !important;
}

.module-card {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.module-card:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

/* Collapse the full navigation before the country selector and CTA can collide
   with the centered links on laptops, browser zoom, or larger text settings. */
@media (max-width: 1440px) {
    .nav-links {
        display: none !important;
    }

    .hamburger {
        display: flex !important;
    }

    /* Keep the header light at the tablet/mobile breakpoint. The booking CTA
       already exists inside the drawer, so only the country picker stays here. */
    .nav-cta-box {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 1 auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        gap: 0 !important;
    }

    .nav-cta-box > .btn,
    .nav-cta-box > a[class*="btn"] {
        display: none !important;
    }

    #geo-country-picker {
        position: relative !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-self: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    #geo-picker-btn {
        min-height: 40px !important;
        padding: 7px 11px !important;
        gap: 5px !important;
        font-size: 0.76rem !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    #geo-country-name {
        white-space: nowrap !important;
        overflow-wrap: normal !important;
    }
}

/* Compact, balanced header for phones and tablets. */
@media (max-width: 900px) {
    :root {
        --promo-height: 0px;
        --nav-height: 64px;
    }

    body:has(.promo-ticker) {
        --promo-height: 58px;
    }

    .promo-ticker {
        height: var(--promo-height) !important;
        min-height: var(--promo-height) !important;
        padding: 4px 10px !important;
        overflow: hidden !important;
    }

    .promo-ticker-content {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        gap: 2px !important;
        line-height: 1.15 !important;
    }

    .promo-ticker .promo-tag {
        display: none !important;
    }

    .promo-ticker-content > span:not(.promo-tag),
    .promo-ticker-content > a {
        margin: 0 !important;
        font-size: clamp(0.64rem, 2.4vw, 0.76rem) !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    .navbar {
        top: var(--promo-height) !important;
        height: var(--nav-height) !important;
        padding-inline: 10px !important;
        gap: 8px !important;
        justify-content: space-between !important;
    }

    .nav-logo {
        flex: 0 1 138px !important;
        min-width: 0 !important;
    }

    .nav-logo-full-img {
        width: auto !important;
        height: 36px !important;
        max-width: 138px !important;
        object-fit: contain !important;
    }

    .nav-cta-box {
        display: flex !important;
        flex: 0 1 auto !important;
        min-width: 0 !important;
    }

    #geo-picker-btn {
        min-height: 38px !important;
        padding: 6px 9px !important;
        font-size: 0.72rem !important;
    }

    .hamburger {
        width: 40px !important;
        height: 40px !important;
        flex: 0 0 40px !important;
        padding: 8px !important;
        border-radius: 10px !important;
    }

    .hamburger span {
        width: 24px !important;
    }

    .mobile-menu {
        top: calc(var(--promo-height) + var(--nav-height)) !important;
        padding: 16px 14px calc(24px + env(safe-area-inset-bottom)) !important;
        gap: 8px !important;
    }

    .mobile-menu a,
    .mobile-menu a.btn,
    .mobile-menu .btn {
        min-height: 48px !important;
        padding: 11px 16px !important;
        font-size: 1rem !important;
        line-height: 1.35 !important;
        border-radius: 12px !important;
    }

    body:not(:has(.promo-ticker)) .navbar {
        top: 0 !important;
    }

    body:not(:has(.promo-ticker)) .mobile-menu {
        top: var(--nav-height) !important;
    }
}

@media (max-width: 380px) {
    .navbar {
        padding-inline: 8px !important;
        gap: 6px !important;
    }

    .nav-logo {
        flex-basis: 124px !important;
    }

    .nav-logo-full-img {
        height: 33px !important;
        max-width: 124px !important;
    }

    #geo-picker-btn {
        min-width: 42px !important;
        padding-inline: 8px !important;
        justify-content: center !important;
    }

    #geo-country-name,
    #geo-picker-btn > span:last-child {
        display: none !important;
    }
}

/* ── Custom File Uploader Component ── */
.custom-file-wrapper {
    position: relative;
    width: 100%;
    margin-top: 6px;
}

.custom-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.custom-file-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 2px dashed rgba(245, 158, 11, 0.4);
    border-radius: 16px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    direction: rtl;
    cursor: pointer;
}

.custom-file-wrapper:hover .custom-file-box,
.custom-file-input:focus + .custom-file-box {
    background: rgba(245, 158, 11, 0.08);
    border-color: #F59E0B;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
    transform: translateY(-1px);
}

.custom-file-wrapper.has-file .custom-file-box {
    background: rgba(16, 185, 129, 0.08);
    border-color: #10B981;
    border-style: solid;
}

.custom-file-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.custom-file-wrapper.has-file .custom-file-icon {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
}

.custom-file-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow: 1;
    text-align: right;
    overflow: hidden;
}

.custom-file-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #F8FAFC;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-file-subtitle {
    font-size: 0.76rem;
    color: #94A3B8;
}

.custom-file-btn {
    padding: 9px 18px;
    background: linear-gradient(135deg, #F59E0B 0%, #F97316 100%);
    color: #0F172A;
    font-weight: 800;
    font-size: 0.84rem;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
    transition: all 0.2s;
}

.custom-file-wrapper.has-file .custom-file-btn {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

@media (max-width: 540px) {
    .custom-file-box {
        flex-direction: column;
        text-align: center;
        padding: 16px 12px;
        gap: 10px;
    }
    .custom-file-text {
        text-align: center;
    }
    .custom-file-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* =========================================================
   Home hero: clean mobile layout for portals and code preview
   ========================================================= */
@media (max-width: 768px) {
    body.home-page #hero .hero-grid {
        gap: 22px !important;
    }

    body.home-page #hero .hero-features-row {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px !important;
    }

    body.home-page #hero .hero-feature-chip {
        width: 100%;
        min-width: 0;
        min-height: 40px !important;
        padding: 7px 9px !important;
        justify-content: center;
        text-align: center;
        line-height: 1.35;
        white-space: normal;
    }

    body.home-page #hero .hero-visual {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        gap: 9px;
        width: 100%;
        margin: 0 0 16px !important;
        padding-inline: 0 !important;
    }

    body.home-page #hero .hero-float-card {
        position: static !important;
        inset: auto !important;
        width: 100%;
        max-width: none !important;
        min-height: 42px;
        padding: 7px 8px !important;
        justify-content: center;
        text-align: center;
        line-height: 1.45;
        transform: none !important;
        animation: none !important;
    }

    body.home-page #hero .hero-float-card-top {
        grid-column: 1;
        grid-row: 1;
    }

    body.home-page #hero .hero-float-card-bottom {
        grid-column: 2;
        grid-row: 1;
    }

    body.home-page #hero .code-terminal {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        max-width: none;
    }

    body.home-page #hero .terminal-title {
        max-width: calc(100% - 62px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.home-page .whatsapp-float {
        left: 10px !important;
        bottom: calc(10px + env(safe-area-inset-bottom)) !important;
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    }

    body.home-page .whatsapp-float.clear-hero-visual {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(10px) scale(0.9);
    }

    body.home-page .whatsapp-float-btn {
        width: 44px !important;
        height: 44px !important;
    }

    body.home-page .whatsapp-float-btn svg {
        width: 24px !important;
        height: 24px !important;
    }
}

@media (max-width: 359px) {
    body.home-page #hero .hero-visual {
        grid-template-columns: 1fr;
    }

    body.home-page #hero .hero-float-card-top,
    body.home-page #hero .hero-float-card-bottom,
    body.home-page #hero .code-terminal {
        grid-column: 1;
        grid-row: auto;
    }
}
