/* ==========================================================================
   Reusable UI components — buttons, nav dropdown, mobile toggle
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 26px;
    border-radius: var(--radius-pill);
    font-size: 0.92rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid transparent;
    cursor: pointer;
    transition: opacity 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
    opacity: 0.88;
}

.btn-dark {
    background-color: var(--color-dark);
    color: var(--color-text-on-dark);
}

.btn-accent {
    background-color: var(--color-accent);
    color: var(--color-dark);
}

.btn-light {
    background-color: var(--color-bg);
    color: var(--color-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}

.header-cta {
    padding: 11px 22px;
}

/* Shared arrow button (course cards, instructor cards) */

.arrow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--color-dark);
    color: var(--color-white);
    flex-shrink: 0;
}

/* Icon strip badges (used above the intro-stats and process headings) */

.icon-strip {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background-color: var(--color-accent);
    color: var(--color-dark);
}

/* Pixel-corner decorative accent used on the hero stat card and step cards */

.corner-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    overflow: hidden;
    pointer-events: none;
}

.corner-accent::before,
.corner-accent::after {
    content: "";
    position: absolute;
    background-color: var(--color-bg);
}

.corner-accent::before {
    top: 0;
    right: 0;
    width: 16px;
    height: 16px;
}

.corner-accent::after {
    top: 16px;
    right: 16px;
    width: 8px;
    height: 8px;
}

/* Larger stair-step notch accent (same motif as .corner-accent) used at the
   end of full-bleed dark/image sections */

.pixel-corner {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    width: 64px;
    height: 64px;
    overflow: hidden;
    pointer-events: none;
}

.pixel-corner::before,
.pixel-corner::after {
    content: "";
    position: absolute;
    background-color: var(--color-bg);
}

.pixel-corner::before {
    top: 0;
    right: 0;
    width: 34px;
    height: 34px;
}

.pixel-corner::after {
    top: 34px;
    right: 34px;
    width: 16px;
    height: 16px;
}

.pixel-corner--bottom {
    top: auto;
    bottom: 0;
}

.pixel-corner--bottom::before {
    top: auto;
    bottom: 0;
}

.pixel-corner--bottom::after {
    top: auto;
    bottom: 34px;
}

/* Mobile nav toggle */

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-dark);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}
