@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

@keyframes borderGlow {
    0% {
        opacity: 0.3;
    }

    100% {
        opacity: 0.8;
    }
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Dark mode support */

/* @media (prefers-color-scheme: dark) {
  .hero-banner-section {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  }
} */

/* Reduced motion support */

@media (prefers-reduced-motion: reduce) {
    @keyframes borderGlow {
        0%,
        100% {
            box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
        }

        50% {
            box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
        }
    }

    @keyframes shimmer {
        0%,
        100% {
            opacity: 0.5;
        }
    }
}

@keyframes borderGlow {
    0% {
        opacity: 0.3;
    }

    100% {
        opacity: 0.8;
    }
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Reduced motion support */

@media (prefers-reduced-motion: reduce) {
    @keyframes borderGlow {
        0%,
        100% {
            box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
        }

        50% {
            box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
        }
    }

    @keyframes shimmer {
        0%,
        100% {
            opacity: 0.5;
        }
    }
}

/* welcome.blade.php */

html.page-welcome {
    --primary-color: #1e40af;
    --secondary-color: #3b82f6;
    --accent-color: #60a5fa;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --background-light: #f8fafc;
    --white: #ffffff;
    --gradient-primary: linear-gradient(
        135deg,
        #1e40af 0%,
        #3b82f6 50%,
        #60a5fa 100%
    );
    --purple-dark: #2d1b69;
    --purple-gradient: linear-gradient(
        135deg,
        #2d1b69 0%,
        #1e1b4b 50%,
        #0f0a2e 100%
    );
    --error-color: #ef4444;
    --success-color: #10b981;
}

:where(html.page-welcome),
:where(html.page-welcome) * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.page-welcome {
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif;
    overflow: hidden;
    background: var(--purple-gradient);
    height: 100vh;
    position: relative;
}

:where(html.page-welcome) .wave-container,
:where(html.page-welcome) .flowing-lines {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

:where(html.page-welcome) .wave-container {
    z-index: 0;
}

:where(html.page-welcome) .wave {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.8;
    animation: page-welcome-wave-float 18s ease-in-out infinite alternate;
}

:where(html.page-welcome) .wave:nth-child(2) {
    animation-delay: -6s;
}

:where(html.page-welcome) .wave:nth-child(3) {
    animation-delay: -12s;
}

:where(html.page-welcome) .flowing-lines {
    z-index: 1;
    opacity: 0.28;
}

:where(html.page-welcome) .flowing-lines svg {
    display: block;
}

:where(html.page-welcome) .flowing-line {
    fill: none;
    stroke: #93c5fd;
    stroke-width: 1.5;
}

:where(html.page-welcome) .main-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100vh;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    text-align: center;
}

:where(html.page-welcome) .welcome-text {
    color: var(--white);
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.24);
    animation: page-welcome-rise 0.8s ease-out both;
}

:where(html.page-welcome) .welcome-buttons {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    animation: page-welcome-rise 0.8s 0.15s ease-out both;
}

:where(html.page-welcome) .welcome-btn {
    min-width: 140px;
    padding: 0.9rem 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

:where(html.page-welcome) .welcome-btn:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

@keyframes page-welcome-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes page-welcome-wave-float {
    from {
        transform: translate3d(-1.5%, -1%, 0) scale(1.02);
    }
    to {
        transform: translate3d(1.5%, 1%, 0) scale(1.08);
    }
}

@media (max-width: 768px) {
    :where(html.page-welcome) .welcome-text {
        font-size: clamp(2rem, 10vw, 4rem);
        padding: 0 1rem;
    }

    :where(html.page-welcome) .welcome-buttons {
        flex-direction: column;
        gap: 1rem;
    }
}

/* auth/register.blade.php */

/* ==========================================================
           CaRdz · Register — white / neutral, ink text
           ========================================================== */

html.page-register {
    --ink: #15171a;
    --ink-2: #2b2e33;
    --text-primary: #15171a;
    --text-secondary: #85888f;
    --text-body: #4a4d53;
    --bg: #f5f5f3;
    --surface: #ffffff;
    --soft: #efefec;
    --border: #e6e6e2;
    --border-2: #d4d4cf;
    --error-color: #8f2a24;

    --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
    --font-body:
        "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

:where(html.page-register),
:where(html.page-register) * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.page-register {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
    background: var(--bg);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

:where(html.page-register) h1,
:where(html.page-register) h2,
:where(html.page-register) h3 {
    font-family: var(--font-display);
    letter-spacing: -0.03em;
}

:where(html.page-register) a {
    color: inherit;
}

:where(html.page-register) :focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

/* decorative particles from the old page are not used (JS still runs safely) */

:where(html.page-register) .background-container,
:where(html.page-register) .particles {
    display: none;
}

/* ---------- shell ---------- */

:where(html.page-register) .auth-wrapper {
    display: grid;
    width: 100%;
    max-width: 1080px;
    grid-template-columns: 0.9fr 1.25fr;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: 0 30px 70px rgba(21, 23, 26, 0.07);
    animation: page-register-rise 0.5s ease-out both;
}

@keyframes page-register-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------- left: story panel ---------- */

:where(html.page-register) .auth-illustration {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    padding: 44px 40px;
    overflow: hidden;
    border-right: 1px solid var(--border);
    background: var(--bg);
}

:where(html.page-register) .illustration-text h3 {
    font-size: clamp(30px, 3.2vw, 40px);
    font-weight: 700;
    line-height: 1.08;
}

:where(html.page-register) .illustration-text p {
    max-width: 330px;
    margin-top: 14px;
    color: var(--text-secondary);
    font-size: 14.5px;
    line-height: 1.7;
}

:where(html.page-register) .steps {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

:where(html.page-register) .steps li {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-body);
    font-size: 14px;
    font-weight: 500;
}

:where(html.page-register) .steps b {
    display: grid;
    width: 30px;
    height: 30px;
    flex: none;
    place-items: center;
    border: 1px solid var(--border-2);
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
}

/* stacked pages of a CaRdz website: profile | slider + about | round nav */

:where(html.page-register) .illustration-img {
    position: relative;
    height: 230px;
}

:where(html.page-register) .site {
    position: absolute;
    left: 0;
    width: 322px;
    height: 198px;
    overflow: hidden;
    border: 1px solid var(--border-2);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(21, 23, 26, 0.08);
}

:where(html.page-register) .site:nth-child(1) {
    transform: translate(44px, 0);
}

:where(html.page-register) .site:nth-child(2) {
    transform: translate(22px, 14px);
}

:where(html.page-register) .site:nth-child(3) {
    transform: translate(0, 28px);
}

:where(html.page-register) .site .bar {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 22px;
    padding: 0 10px;
    border-bottom: 1px solid var(--border);
    background: #fff;
}

:where(html.page-register) .site .bar i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border-2);
}

:where(html.page-register) .site .bar span {
    flex: 1;
    max-width: 128px;
    height: 12px;
    margin-left: 8px;
    padding: 0 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 99px;
    background: var(--bg);
    color: var(--text-secondary);
    font-size: 8px;
    line-height: 10px;
    white-space: nowrap;
}

:where(html.page-register) .web {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) 26px;
    gap: 6px;
    height: calc(100% - 22px);
    padding: 7px;
    background: var(--bg);
}

/* left: profile column */

:where(html.page-register) .w-side {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
}

:where(html.page-register) .w-prof {
    display: grid;
    height: 54px;
    align-content: center;
    justify-items: center;
    gap: 4px;
    border-radius: 6px;
    background: var(--ink);
}

:where(html.page-register) .w-prof s {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

:where(html.page-register) .w-prof u {
    display: block;
    width: 34px;
    height: 4px;
    border-radius: 2px;
    background: #fff;
    text-decoration: none;
}

:where(html.page-register) .w-prof u + u {
    width: 24px;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
}

:where(html.page-register) .w-info {
    display: grid;
    flex: 1;
    align-content: start;
    gap: 4px;
}

:where(html.page-register) .w-info em {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 19px;
    padding: 0 4px;
    border-left: 2px solid var(--ink);
    border-radius: 4px;
    background: #fff;
}

:where(html.page-register) .w-info em::before {
    content: "";
    width: 9px;
    height: 9px;
    flex: none;
    border-radius: 2px;
    background: var(--ink);
}

:where(html.page-register) .w-info em::after {
    content: "";
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: var(--border-2);
}

:where(html.page-register) .w-call {
    height: 14px;
    border-radius: 99px;
    background: var(--ink);
}

/* centre: slider + about card */

:where(html.page-register) .w-main {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
}

:where(html.page-register) .w-slider {
    position: relative;
    height: 88px;
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(135deg, #e6e6e1, #cdcdc8);
}

:where(html.page-register) .w-slider i {
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
}

:where(html.page-register) .w-slider i:nth-child(1) {
    left: 6px;
}

:where(html.page-register) .w-slider i:nth-child(2) {
    right: 6px;
}

:where(html.page-register) .w-slider u {
    position: absolute;
    left: 12px;
    display: block;
    height: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.95);
    text-decoration: none;
}

:where(html.page-register) .w-slider u:nth-child(3) {
    bottom: 20px;
    width: 56%;
}

:where(html.page-register) .w-slider u:nth-child(4) {
    bottom: 11px;
    width: 36%;
    background: rgba(255, 255, 255, 0.6);
}

:where(html.page-register) .w-about {
    display: grid;
    flex: 1;
    align-content: start;
    justify-items: center;
    gap: 4px;
    padding: 8px;
    border-radius: 8px;
    background: #fff;
}

:where(html.page-register) .w-about u {
    display: block;
    height: 3px;
    border-radius: 2px;
    background: var(--border-2);
    text-decoration: none;
}

:where(html.page-register) .w-about u:nth-child(1) {
    width: 42%;
    height: 6px;
    background: var(--ink);
}

:where(html.page-register) .w-about u:nth-child(2) {
    width: 20%;
    height: 2px;
    background: var(--ink);
}

:where(html.page-register) .w-about u:nth-child(3) {
    width: 84%;
}

:where(html.page-register) .w-about u:nth-child(4) {
    width: 64%;
}

/* right: round navigation */

:where(html.page-register) .w-nav {
    display: grid;
    align-content: start;
    justify-items: center;
    gap: 7px;
    padding-top: 2px;
}

:where(html.page-register) .w-nav span {
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    box-shadow:
        0 2px 4px rgba(21, 23, 26, 0.12),
        inset 0 0 0 1px var(--border);
}

:where(html.page-register) .w-nav span.on {
    background: var(--ink);
    box-shadow: none;
}

:where(html.page-register) .w-nav span.on::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
}

@media (max-width: 1100px) {
    :where(html.page-register) .illustration-img {
        transform: scale(0.8);
        transform-origin: left top;
        margin-bottom: -46px;
    }
}

/* ---------- right: form panel ---------- */

:where(html.page-register) .auth-panel {
    display: flex;
    flex-direction: column;
    padding: 30px 44px 28px;
}

:where(html.page-register) .auth-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 26px;
}

:where(html.page-register) .logo {
    display: flex;
    align-items: center;
    gap: 11px;
}

:where(html.page-register) .logo-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 10px;
    background: var(--ink);
    color: #fff;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
}

:where(html.page-register) .logo-name {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

:where(html.page-register) .top-link {
    color: var(--text-secondary);
    font-size: 13px;
}

:where(html.page-register) .top-link a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--border-2);
    text-underline-offset: 3px;
}

:where(html.page-register) .top-link a:hover {
    text-decoration-color: var(--ink);
}

:where(html.page-register) .auth-header {
    margin-bottom: 24px;
}

:where(html.page-register) .auth-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
}

:where(html.page-register) .auth-subtitle {
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 14px;
}

:where(html.page-register) .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
}

:where(html.page-register) .form-group {
    position: relative;
    margin-bottom: 18px;
    min-width: 0;
}

:where(html.page-register) .form-group label {
    display: flex;
    align-items: center;
    height: 20px;
    margin-bottom: 8px;
    color: var(--text-body);
    font-size: 12.5px;
    font-weight: 600;
}

:where(html.page-register) .label-icon {
    display: none;
}

:where(html.page-register) .form-control {
    width: 100%;
    min-height: 46px;
    padding: 11px 14px 11px 40px;
    border: 1px solid var(--border-2);
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    font-family: inherit;
    font-size: 14px;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

:where(html.page-register) .form-control::placeholder {
    color: #a9aaa8;
}

:where(html.page-register) .form-control:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px var(--soft);
}

:where(html.page-register) .input-icon {
    position: absolute;
    left: 15px;
    top: 44px;
    z-index: 2;
    color: var(--text-secondary);
    font-size: 13px;
    pointer-events: none;
}

:where(html.page-register) .form-group:focus-within .input-icon {
    color: var(--ink);
}

:where(html.page-register) .form-control.is-invalid {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(143, 42, 36, 0.1);
}

:where(html.page-register) .form-control.is-valid {
    border-color: var(--ink);
}

:where(html.page-register) .error-message {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: var(--error-color);
    font-size: 12.5px;
    font-weight: 500;
}

:where(html.page-register) .error-message-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 13px 16px;
    border: 1px solid var(--border-2);
    border-left: 4px solid var(--error-color);
    border-radius: 12px;
    background: var(--surface);
    color: var(--error-color);
    font-size: 13px;
    font-weight: 500;
}

:where(html.page-register) .username-info {
    margin-top: 7px;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.45;
}

:where(html.page-register) .username-info:empty {
    display: none;
}

/* status text is coloured inline by the script; keep the page monochrome */

:where(html.page-register) #username-status,
:where(html.page-register) #password-match {
    color: var(--ink-2) !important;
    font-weight: 500;
}

:where(html.page-register) .password-toggle {
    position: absolute;
    top: 35px;
    right: 8px;
    z-index: 2;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s ease;
}

:where(html.page-register) .password-toggle:hover {
    background: var(--soft);
}

:where(html.page-register) #password.form-control,
:where(html.page-register) #password-confirm.form-control {
    padding-right: 46px;
}

:where(html.page-register) .password-strength {
    height: 5px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 99px;
    background: var(--soft);
}

:where(html.page-register) .password-strength-meter {
    width: 0;
    height: 100%;
    border-radius: 99px;
    transition: width 0.4s ease;
    background: var(--ink) !important;
}

:where(html.page-register) .password-strength-text {
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
}

:where(html.page-register) .password-strength-text:empty {
    display: none;
}

:where(html.page-register) .submit-btn {
    display: flex;
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

:where(html.page-register) .submit-btn:hover {
    background: var(--ink-2);
}

:where(html.page-register) .submit-btn i {
    font-size: 13px;
}

:where(html.page-register) .form-footer {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    text-align: center;
    font-size: 13px;
}

:where(html.page-register) .form-footer p {
    margin: 0;
}

:where(html.page-register) .form-footer a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--border-2);
    text-underline-offset: 3px;
}

:where(html.page-register) .form-footer a:hover {
    text-decoration-color: var(--ink);
}

/* ---------- responsive ---------- */

@media (max-width: 920px) {
    :where(html.page-register) .auth-wrapper {
        max-width: 560px;
        grid-template-columns: 1fr;
        border-radius: 22px;
    }

    :where(html.page-register) .auth-illustration {
        display: none;
    }

    :where(html.page-register) .auth-panel {
        padding: 26px 28px 24px;
    }
}

@media (max-width: 560px) {
    body.page-register {
        padding: 12px;
    }

    :where(html.page-register) .auth-panel {
        padding: 22px 18px 20px;
    }

    :where(html.page-register) .form-row {
        grid-template-columns: 1fr;
    }

    :where(html.page-register) .top-link span {
        display: none;
    }

    :where(html.page-register) .auth-title {
        font-size: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    :where(html.page-register),
    :where(html.page-register) *,
    :where(html.page-register) *::before,
    :where(html.page-register)*::before,
    :where(html.page-register) *::after,
    :where(html.page-register)*::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* mainsample/business_card.blade.php */

:where(html.page-template-sample),
:where(html.page-template-sample) * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.page-template-sample {
    font-family: "Arial", sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    padding: 20px;
}

:where(html.page-template-sample) .business-card {
    width: 450px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

:where(html.page-template-sample) .header {
    background: #2c3e50;
    padding: 25px 20px;
    text-align: center;
    color: white;
}

:where(html.page-template-sample) .profile-image {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 3px solid #ffffff;
    overflow: hidden;
    background: #34495e;
}

:where(html.page-template-sample) .profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

:where(html.page-template-sample) .name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

:where(html.page-template-sample) .designation {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 15px;
}

:where(html.page-template-sample) .social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

:where(html.page-template-sample) .social-link {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #34495e;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.3s ease;
}

:where(html.page-template-sample) .social-link:hover {
    background: #4a6741;
}

:where(html.page-template-sample) .contact-section {
    padding: 20px;
}

:where(html.page-template-sample) .contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    border-left: 3px solid #2c3e50;
    background: #f8f9fa;
}

:where(html.page-template-sample) .contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 15px;
    color: white;
    flex-shrink: 0;
}

:where(html.page-template-sample) .contact-details {
    flex: 1;
    min-width: 0;
}

:where(html.page-template-sample) .contact-label {
    font-size: 10px;
    color: #7f8c8d;
    text-transform: uppercase;
    margin-bottom: 3px;
    font-weight: 600;
    white-space: nowrap;
}

:where(html.page-template-sample) .contact-value {
    font-size: 12px;
    color: #2c3e50;
    font-weight: 500;
    line-height: 1.4;
    word-break: break-word;
}

:where(html.page-template-sample) .actions-section {
    padding: 15px 20px;
    background: #ecf0f1;
    border-top: 1px solid #bdc3c7;
}

:where(html.page-template-sample) .action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

:where(html.page-template-sample) .action-btn {
    padding: 10px 8px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 1 48%;
}

:where(html.page-template-sample) .btn-call {
    background: #3498db;
    color: white;
}

:where(html.page-template-sample) .btn-whatsapp {
    background: #25d366;
    color: white;
}

:where(html.page-template-sample) .btn-message {
    background: #9b59b6;
    color: white;
}

:where(html.page-template-sample) .action-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

:where(html.page-template-sample) .btn-icon {
    font-size: 13px;
    flex-shrink: 0;
}

/* Responsive adjustments */

@media (max-width: 480px) {
    :where(html.page-template-sample) .business-card {
        width: 100%;
        height: auto;
        max-height: none;
        border-radius: 8px;
    }

    :where(html.page-template-sample) .action-btn {
        padding: 12px 8px;
        font-size: 13px;
        min-width: 0;
    }
}

/* sample/about-us.blade.php */

:where(html.page-sample-about-us) .scrollable-content {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

:where(html.page-sample-about-us) .scrollable-content::-webkit-scrollbar {
    display: none;
}

@media (max-width: 768px) {
    :where(html.page-sample-about-us) .about-section,
    :where(html.page-sample-about-us) .content-section,
    :where(html.page-sample-about-us) .hero-banner-section {
        max-width: 95% !important;
        margin: 10px auto !important;
        padding: 15px !important;
        border-radius: 6px !important;
    }

    :where(html.page-sample-about-us) .sidebar {
        width: 100% !important;
        text-align: center !important;
    }

    :where(html.page-sample-about-us) .hero-container {
        height: 45vh !important;
        min-height: 250px !important;
    }

    :where(html.page-sample-about-us) .slide-title {
        font-size: 1.8rem !important;
    }

    :where(html.page-sample-about-us) .slide-subtitle {
        font-size: 0.9rem !important;
    }
}

/* Add this style */

/* .scrollable-content {
                                scrollbar-width: none;
                                -ms-overflow-style: none;
                            }

                            .scrollable-content::-webkit-scrollbar {
                                display: none;
                            } */

:where(html.page-sample-about-us) .scrollable-content {
    height: 1000px;
    /* Set your desired height */
    /* Optional: for nice look */
    background: #e0e5ec;
    border-radius: 8px;
    box-sizing: border-box;
}

:where(html.page-sample-about-us) .hero-banner-section {
    margin: 0 0 20px 0;
    padding: 20px 10px;
    box-sizing: border-box;
    width: 90%;
    position: relative;
    background: #e0e5ec;
    isolation: isolate;
    overflow: visible;
    border-radius: 8px;
    margin-left: 40px;
}

:where(html.page-sample-about-us) .hero-banner-section * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:where(html.page-sample-about-us) .hero-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

:where(html.page-sample-about-us) .hero-container {
    position: relative;
    width: 100%;
    height: 65vh;
    max-height: 500px;
    min-height: 350px;
    overflow: hidden;
    background: #000;
    cursor: grab;
    user-select: none;
    display: block;
    line-height: 0;
    border-radius: 20px;
    box-shadow:
        0 20px 40px -10px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

:where(html.page-sample-about-us) .hero-container:active {
    cursor: grabbing;
}

:where(html.page-sample-about-us) .hero-container::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #007bff, #00d4ff, #0056b3, #007bff);
    border-radius: 22px;
    z-index: -1;
    opacity: 0.6;
    animation: page-sample-about-us-borderGlow 3s ease-in-out infinite alternate;
}

@keyframes page-sample-about-us-borderGlow {
    0% {
        opacity: 0.3;
    }

    100% {
        opacity: 0.8;
    }
}

:where(html.page-sample-about-us) .hero-slider {
    display: flex;
    width: 500%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    line-height: 0;
}

:where(html.page-sample-about-us) .hero-slide {
    width: 20%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
    display: block;
    filter: brightness(0.9) contrast(1.1);
}

:where(html.page-sample-about-us) .hero-slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 123, 255, 0.1) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

:where(html.page-sample-about-us) .slide-content {
    position: absolute;
    bottom: 12%;
    left: 40px;
    color: white;
    z-index: 2;
    animation: page-sample-about-us-slideInUp 1s ease-out;
    max-width: 65%;
    transform-origin: left bottom;
}

@keyframes page-sample-about-us-slideInUp {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

:where(html.page-sample-about-us) .slide-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 50%, #bbdefb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    position: relative;
}

:where(html.page-sample-about-us) .slide-title::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #00d4ff);
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
}

:where(html.page-sample-about-us) .slide-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    line-height: 1.5;
    color: #f8fafc;
    font-weight: 400;
    letter-spacing: 0.01em;
}

:where(html.page-sample-about-us) .hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    backdrop-filter: blur(15px);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    font-weight: bold;
}

:where(html.page-sample-about-us) .hero-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 123, 255, 0.2);
    color: #007bff;
}

:where(html.page-sample-about-us) .hero-prev {
    left: 20px;
}

:where(html.page-sample-about-us) .hero-next {
    right: 20px;
}

:where(html.page-sample-about-us) .hero-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

:where(html.page-sample-about-us) .indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

:where(html.page-sample-about-us) .indicator::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, #007bff, #00d4ff);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

:where(html.page-sample-about-us) .indicator.active {
    background: linear-gradient(45deg, #007bff, #00d4ff);
    transform: scale(1.2);
    box-shadow:
        0 0 15px rgba(0, 123, 255, 0.5),
        0 0 30px rgba(0, 123, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.7);
}

:where(html.page-sample-about-us) .indicator.active::before {
    width: 100%;
    height: 100%;
}

:where(html.page-sample-about-us) .hero-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #007bff 0%, #00d4ff 50%, #0056b3 100%);
    transition: width 0.1s linear;
    z-index: 2;
    box-shadow:
        0 0 10px rgba(0, 123, 255, 0.5),
        0 -1px 5px rgba(0, 123, 255, 0.2);
    border-radius: 0 0 20px 20px;
    position: relative;
}

:where(html.page-sample-about-us) .hero-progress::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: page-sample-about-us-shimmer 2s infinite;
}

@keyframes page-sample-about-us-shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Responsive Adjustments */

@media (max-width: 1024px) {
    :where(html.page-sample-about-us) .hero-banner-section {
        padding: 15px 10px 25px 10px;
    }

    :where(html.page-sample-about-us) .hero-container {
        height: 55vh;
        max-height: 450px;
        border-radius: 18px;
    }

    :where(html.page-sample-about-us) .slide-title {
        font-size: 2.5rem;
    }

    :where(html.page-sample-about-us) .slide-content {
        left: 35px;
        max-width: 70%;
    }
}

@media (max-width: 768px) {
    :where(html.page-sample-about-us) .hero-banner-section {
        padding: 10px 5px 20px 5px;
    }

    :where(html.page-sample-about-us) .hero-container {
        height: 50vh;
        max-height: 400px;
        min-height: 300px;
        border-radius: 16px;
    }

    :where(html.page-sample-about-us) .slide-title {
        font-size: 2.2rem;
    }

    :where(html.page-sample-about-us) .slide-subtitle {
        font-size: 1rem;
    }

    :where(html.page-sample-about-us) .slide-content {
        left: 30px;
        bottom: 10%;
        max-width: 75%;
    }

    :where(html.page-sample-about-us) .hero-nav {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    :where(html.page-sample-about-us) .hero-indicators {
        gap: 10px;
        padding: 6px 14px;
    }
}

@media (max-width: 480px) {
    :where(html.page-sample-about-us) .hero-banner-section {
        padding: 8px 5px 15px 5px;
    }

    :where(html.page-sample-about-us) .hero-container {
        height: 45vh;
        max-height: 350px;
        min-height: 250px;
        border-radius: 14px;
    }

    :where(html.page-sample-about-us) .slide-title {
        font-size: 1.8rem;
    }

    :where(html.page-sample-about-us) .slide-subtitle {
        font-size: 0.9rem;
    }

    :where(html.page-sample-about-us) .slide-content {
        left: 20px;
        bottom: 8%;
        max-width: 80%;
    }

    :where(html.page-sample-about-us) .hero-nav {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    :where(html.page-sample-about-us) .hero-indicators {
        bottom: 15px;
        gap: 8px;
        padding: 5px 12px;
    }

    :where(html.page-sample-about-us) .indicator {
        width: 8px;
        height: 8px;
    }
}

/* Dark mode support */

@media (prefers-color-scheme: dark) {
    :where(html.page-sample-about-us) .hero-banner-section {
        background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    }
}

/* Reduced motion support */

@media (prefers-reduced-motion: reduce) {
    :where(html.page-sample-about-us) .hero-slider {
        transition: none;
    }

    :where(html.page-sample-about-us) .slide-content {
        animation: none;
    }

    :where(html.page-sample-about-us) .hero-nav {
        transition: none;
    }

    :where(html.page-sample-about-us) .indicator {
        transition: none;
    }
}

/* sample/about-us.blade.php */

:where(html.page-sample-about-us) .content-section {
    padding: 20px 10px;
    background: #e0e5ec;
    border-radius: 8px;
    box-sizing: border-box;
    isolation: isolate;
}

/* sample/about-us.blade.php */

:where(html.page-sample-about-us) .about-section {
    max-width: 1200px;
    margin: 10px 30px;
    padding: 40px 20px;
    font-family: "Arial", sans-serif;
    color: #333;
    line-height: 1.6;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

:where(html.page-sample-about-us) .about-section h1 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 10px;
}

:where(html.page-sample-about-us) .about-section h1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #00d4ff);
}

:where(html.page-sample-about-us) .about-section h2 {
    font-size: 24px;
    color: #2c3e50;
    margin: 35px 0 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eaeaea;
    position: relative;
}

:where(html.page-sample-about-us) .about-section h2::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, #007bff, #00d4ff);
}

:where(html.page-sample-about-us) .about-content,
:where(html.page-sample-about-us) .vision-content {
    margin-bottom: 35px;
}

:where(html.page-sample-about-us) .about-section p {
    margin-bottom: 18px;
    text-align: justify;
    font-size: 16px;
    color: #555;
}

:where(html.page-sample-about-us) .mission-statement {
    font-style: italic;
    font-size: 18px;
    text-align: center;
    margin: 30px 0;
    color: #555;
    padding: 15px;
    background: #f8f9fa;
    border-left: 4px solid #007bff;
}

@media (max-width: 768px) {
    :where(html.page-sample-about-us) .about-section {
        padding: 30px 15px;
        margin: 30px auto;
    }

    :where(html.page-sample-about-us) .about-section h1 {
        font-size: 28px;
    }

    :where(html.page-sample-about-us) .about-section h2 {
        font-size: 22px;
        margin: 30px 0 15px;
    }

    :where(html.page-sample-about-us) .about-section p {
        font-size: 15px;
    }

    :where(html.page-sample-about-us) .mission-statement {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    :where(html.page-sample-about-us) .about-section {
        padding: 25px 10px;
        margin: 25px auto;
    }

    :where(html.page-sample-about-us) .about-section h1 {
        font-size: 24px;
    }

    :where(html.page-sample-about-us) .about-section h2 {
        font-size: 20px;
    }
}

/* sample/about-us.blade.php */

:where(html.page-sample-about-us) .proud-associate-section {
    background: whitesmoke;
    padding: 40px 20px;
    max-width: 735px;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

:where(html.page-sample-about-us) .section-title {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

:where(html.page-sample-about-us) .section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #00d4ff);
}

:where(html.page-sample-about-us) .logos-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    cursor: grab;
}

:where(html.page-sample-about-us) .logos-container:active {
    cursor: grabbing;
}

:where(html.page-sample-about-us) .logos-scroll {
    display: flex;
    gap: 40px;
    align-items: center;
    padding: 0 20px;
    user-select: none;
    width: max-content;
    transform: translateX(0);
}

:where(html.page-sample-about-us) .logo-item {
    flex-shrink: 0;
    width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 15px;
}

:where(html.page-sample-about-us) .logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: none;
    transition: filter 0.3s ease;
}

:where(html.page-sample-about-us) .logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

:where(html.page-sample-about-us) .logo-item:hover img {
    filter: none;
}

@media (max-width: 768px) {
    :where(html.page-sample-about-us) .section-title {
        font-size: 1.5rem;
    }

    :where(html.page-sample-about-us) .logo-item {
        width: 120px;
        height: 80px;
    }

    :where(html.page-sample-about-us) .logos-scroll {
        gap: 30px;
    }
}

@media (max-width: 480px) {
    :where(html.page-sample-about-us) .proud-associate-section {
        padding: 30px 15px;
    }

    :where(html.page-sample-about-us) .section-title {
        font-size: 1.3rem;
    }

    :where(html.page-sample-about-us) .logo-item {
        width: 100px;
        height: 70px;
        padding: 10px;
    }
}

/* sample/about-us.blade.php */

:where(html.page-sample-about-us) .testimonials-section {
    background: #e0e5ec;
    padding: 4rem 1rem;
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
}

:where(html.page-sample-about-us) .testimonials-container {
    max-width: 735px;
    margin: 0 auto;
}

:where(html.page-sample-about-us) .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

:where(html.page-sample-about-us) .section-subtitle {
    color: #007bff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

:where(html.page-sample-about-us) .section-title {
    color: #1e293b;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

:where(html.page-sample-about-us) .testimonials-slider {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

:where(html.page-sample-about-us) .testimonials-track {
    display: flex;
    transition: transform 0.4s ease;
}

:where(html.page-sample-about-us) .testimonial-card {
    flex: 0 0 100%;
    padding: 2.5rem;
    box-sizing: border-box;
}

:where(html.page-sample-about-us) .rating {
    color: #ffc107;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
}

:where(html.page-sample-about-us) .testimonial-text {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.8rem;
    font-weight: 400;
}

:where(html.page-sample-about-us) .client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

:where(html.page-sample-about-us) .client-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(0, 123, 255, 0.1);
}

:where(html.page-sample-about-us) .client-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

:where(html.page-sample-about-us) .client-details h4 {
    color: #1e293b;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

:where(html.page-sample-about-us) .client-details p {
    color: #64748b;
    font-size: 0.85rem;
}

:where(html.page-sample-about-us) .slider-nav {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 0.5rem;
}

:where(html.page-sample-about-us) .slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}

:where(html.page-sample-about-us) .slider-dot.active {
    background: #007bff;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    :where(html.page-sample-about-us) .testimonials-section {
        padding: 3rem 1rem;
    }

    :where(html.page-sample-about-us) .section-title {
        font-size: 1.7rem;
    }

    :where(html.page-sample-about-us) .testimonial-card {
        padding: 2rem 1.5rem;
    }

    :where(html.page-sample-about-us) .testimonial-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    :where(html.page-sample-about-us) .section-title {
        font-size: 1.5rem;
    }

    :where(html.page-sample-about-us) .testimonial-card {
        padding: 1.8rem 1.2rem;
    }

    :where(html.page-sample-about-us) .client-avatar {
        width: 3rem;
        height: 3rem;
    }
}

/* sample/about-us.blade.php */

:where(html.page-sample-about-us) .client-showcase-section {
    background: whitesmoke;
    padding: 40px 20px;
    max-width: 735px;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

:where(html.page-sample-about-us) .section-title {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

:where(html.page-sample-about-us) .section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #00d4ff);
}

:where(html.page-sample-about-us) .clients-container {
    position: relative;
    width: 100%;
    overflow-x: auto;
    padding: 20px 0;
    cursor: grab;
    scrollbar-width: none;
    /* Hide scrollbar for Firefox */
    -ms-overflow-style: none;
    /* Hide scrollbar for IE/Edge */
}

:where(html.page-sample-about-us) .clients-container::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for Chrome/Safari */
}

:where(html.page-sample-about-us) .clients-container:active {
    cursor: grabbing;
}

:where(html.page-sample-about-us) .clients-scroll {
    display: flex;
    gap: 40px;
    align-items: center;
    padding: 0 20px;
    user-select: none;
    width: max-content;
}

:where(html.page-sample-about-us) .client-item {
    flex-shrink: 0;
    width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 15px;
}

:where(html.page-sample-about-us) .client-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: none;
    transition: filter 0.3s ease;
}

:where(html.page-sample-about-us) .client-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

:where(html.page-sample-about-us) .client-item:hover img {
    filter: none;
}

@media (max-width: 768px) {
    :where(html.page-sample-about-us) .section-title {
        font-size: 1.5rem;
    }

    :where(html.page-sample-about-us) .client-item {
        width: 120px;
        height: 80px;
    }

    :where(html.page-sample-about-us) .clients-scroll {
        gap: 30px;
    }
}

@media (max-width: 480px) {
    :where(html.page-sample-about-us) .client-showcase-section {
        padding: 30px 15px;
    }

    :where(html.page-sample-about-us) .section-title {
        font-size: 1.3rem;
    }

    :where(html.page-sample-about-us) .client-item {
        width: 100px;
        height: 70px;
        padding: 10px;
    }
}

/* sample/bank-detail.blade.php */

/* Base Styles */

:where(html.page-sample-bank-detail),
:where(html.page-sample-bank-detail) * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

:where(html.page-sample-bank-detail) #payment-section {
    background: var(--bg-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

:where(html.page-sample-bank-detail) .payment-container {
    width: 1200px;
    margin: auto 30px;
    /* max-width: 500px; */
}

:where(html.page-sample-bank-detail) .payment-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

/* main Styles */

:where(html.page-sample-bank-detail) .main {
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
}

:where(html.page-sample-bank-detail) .main h1 {
    font-size: 24px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

:where(html.page-sample-bank-detail) .divider {
    height: 3px;
    width: 60px;
    background: linear-gradient(90deg, #4f46e5, #8b5cf6);
    border-radius: 3px;
}

/* Payment Methods */

:where(html.page-sample-bank-detail) .payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

:where(html.page-sample-bank-detail) .payment-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f8fafc;
    border-radius: 10px;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    cursor: pointer;
}

:where(html.page-sample-bank-detail) .payment-item:hover {
    background: #f1f5f9;
    border-color: #c7d2fe;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

:where(html.page-sample-bank-detail) .payment-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    background: white;
    padding: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

:where(html.page-sample-bank-detail) .payment-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

:where(html.page-sample-bank-detail) .payment-info {
    flex: 1;
}

:where(html.page-sample-bank-detail) .payment-title {
    font-weight: 500;
    color: #2d3748;
    font-size: 14px;
    margin-bottom: 2px;
}

:where(html.page-sample-bank-detail) .payment-detail {
    color: #64748b;
    font-size: 12px;
    font-weight: 400;
}

:where(html.page-sample-bank-detail) .copy-indicator {
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 10px;
    color: #64748b;
    opacity: 0;
    transition: opacity 0.2s ease;
}

:where(html.page-sample-bank-detail) .payment-item:hover .copy-indicator {
    opacity: 1;
}

/* Bank Details */

:where(html.page-sample-bank-detail) .bank-details {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    border-left: 4px solid #4f46e5;
}

:where(html.page-sample-bank-detail) .bank-main {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

:where(html.page-sample-bank-detail) .bank-main .material-icons {
    color: #4f46e5;
    margin-right: 10px;
    font-size: 24px;
}

:where(html.page-sample-bank-detail) .bank-main h3 {
    color: #2d3748;
    font-size: 16px;
    font-weight: 500;
}

:where(html.page-sample-bank-detail) .bank-info-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 12px;
    align-items: center;
}

:where(html.page-sample-bank-detail) .bank-label {
    font-weight: 500;
    color: #475569;
    font-size: 13px;
}

:where(html.page-sample-bank-detail) .bank-value {
    color: #1e293b;
    font-size: 13px;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    word-break: break-all;
}

/* QR Section */

:where(html.page-sample-bank-detail) .qr-section {
    text-align: center;
}

:where(html.page-sample-bank-detail) .qr-section h3 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 500;
}

:where(html.page-sample-bank-detail) .qr-container {
    display: inline-block;
    padding: 10px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

:where(html.page-sample-bank-detail) .qr-code {
    width: 160px;
    height: 160px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

:where(html.page-sample-bank-detail) .qr-pattern {
    width: 140px;
    height: 140px;
    background-image:
        repeating-linear-gradient(
            0deg,
            #2d3748 0px,
            #2d3748 8px,
            transparent 8px,
            transparent 16px
        ),
        repeating-linear-gradient(
            90deg,
            #2d3748 0px,
            #2d3748 8px,
            transparent 8px,
            transparent 16px
        );
    opacity: 0.8;
}

/* .upi-logo {
                    position: absolute;
                    bottom: 10px;
                    right: 10px;
                    width: 30px;
                    height: 30px;
                    background: white;
                    border-radius: 4px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    padding: 3px;
                }

                .upi-logo img {
                    width: 100%;
                    height: 100%;
                    object-fit: contain;
                } */

/* Responsive */

@media (max-width: 600px) {
    :where(html.page-sample-bank-detail) .payment-card {
        padding: 20px;
    }

    :where(html.page-sample-bank-detail) .payment-methods {
        grid-template-columns: 1fr;
    }

    :where(html.page-sample-bank-detail) .bank-info-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    :where(html.page-sample-bank-detail) .bank-value {
        padding: 6px 10px;
    }
}

/* Toast Notification */

:where(html.page-sample-bank-detail) .toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #4f46e5;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

:where(html.page-sample-bank-detail) .toast.show {
    opacity: 1;
}

/* sample/contact.blade.php */

/* Base Styles */

:where(html.page-sample-contact) .sg-contact-section {
    font-family: "Poppins", sans-serif;

    background: var(--bg-color);
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px 20px;
    position: relative;
}

/* Alert Message */

:where(html.page-sample-contact) .sg-alert-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4caf50;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    z-index: 1000;
    font-size: 14px;
}

:where(html.page-sample-contact) .sg-alert-message i {
    font-size: 18px;
}

:where(html.page-sample-contact) .sg-alert-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* Main Container */

:where(html.page-sample-contact) .sg-contact-container {
    background: white;
    border-radius: 12px;
    margin-left: 10px !important;
    margin-right: 10px !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    /* max-width: 1200px;    */
    width: 745px;
    padding: 40px;
    margin: 20px 0;
}

/* Contact Header */

:where(html.page-sample-contact) .sg-contact-header {
    text-align: center;
    margin-bottom: 30px;
}

:where(html.page-sample-contact) .sg-contact-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

:where(html.page-sample-contact) .sg-decorative-line {
    width: 50px;
    height: 3px;
    background: #667eea;
    border-radius: 2px;
    margin: 15px auto;
}

:where(html.page-sample-contact) .sg-subtitle {
    font-size: 15px;
    color: #718096;
    line-height: 1.5;
}

/* Contact Content */

:where(html.page-sample-contact) .sg-contact-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Contact Info Section */

:where(html.page-sample-contact) .sg-contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

:where(html.page-sample-contact) .sg-info-card {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

:where(html.page-sample-contact) .sg-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

:where(html.page-sample-contact) .sg-info-icon {
    width: 36px;
    height: 36px;
    background: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 16px;
}

:where(html.page-sample-contact) .sg-info-content h3 {
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

:where(html.page-sample-contact) .sg-info-content p {
    font-size: 13px;
    line-height: 1.5;
    color: #4a5568;
}

/* Contact Form Section */

:where(html.page-sample-contact) .sg-form-header {
    margin-bottom: 20px;
}

:where(html.page-sample-contact) .sg-form-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

:where(html.page-sample-contact) .sg-form-subtitle {
    font-size: 14px;
    color: #718096;
}

/* Form Elements */

:where(html.page-sample-contact) .sg-contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

:where(html.page-sample-contact) .sg-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

:where(html.page-sample-contact) .sg-form-group {
    position: relative;
}

:where(html.page-sample-contact) .sg-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #4a5568;
}

:where(html.page-sample-contact) .sg-form-group label span {
    color: #e53e3e;
}

:where(html.page-sample-contact) .sg-input-group,
:where(html.page-sample-contact) .sg-textarea-group {
    position: relative;
}

:where(html.page-sample-contact) .sg-input-group i,
:where(html.page-sample-contact) .sg-textarea-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 15px;
}

:where(html.page-sample-contact) .sg-form-group input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: #f8fafc;
    transition: all 0.2s ease;
    color: #2d3748;
}

:where(html.page-sample-contact) .sg-form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

:where(html.page-sample-contact) .sg-textarea-group i {
    top: 15px;
    transform: none;
}

:where(html.page-sample-contact) .sg-form-group textarea {
    width: 100%;
    padding: 15px 15px 15px 40px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: #f8fafc;
    min-height: 120px;
    resize: vertical;
    transition: all 0.2s ease;
    color: #2d3748;
}

:where(html.page-sample-contact) .sg-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Submit Button */

:where(html.page-sample-contact) .sg-submit-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

:where(html.page-sample-contact) .sg-submit-btn:hover {
    background: #5a6fdb;
    transform: translateY(-1px);
}

/* Responsive Design */

@media (max-width: 768px) {
    :where(html.page-sample-contact) .sg-contact-container {
        padding: 30px 20px;
    }

    :where(html.page-sample-contact) .sg-form-row {
        grid-template-columns: 1fr;
    }

    :where(html.page-sample-contact) .sg-contact-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :where(html.page-sample-contact) .sg-contact-header h1 {
        font-size: 24px;
    }

    :where(html.page-sample-contact) .sg-contact-container {
        padding: 25px 15px;
    }
}

/* sample/media.blade.php */

body.page-sample-media {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* ❌ stop right-scroll */
    font-family: sans-serif;
}

:where(html.page-sample-media) .scrollable-content {
    width: 100%;
    display: flex;
    justify-content: center;
    /* ✅ center the 1200px content */
    background: var(--bg-color);
    /* optional background */
}

:where(html.page-sample-media) .media-section {
    width: 1200px;
    /* ✅ fixed width as you asked */
    background: white;
    /* margin-left: 30px;    */
    /* margin-right: 30px; */
    padding: 20px;
    box-sizing: border-box;
    border-radius: 10px;
    /* box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);   */
}

@media (max-width: 480px) {
    :where(html.page-sample-media) .media-section {
        /* padding: 5px !important;  */
    }

    :where(html.page-sample-media) .media-section .container {
        padding: 0 !important;
        margin: 0 auto !important;
        max-width: 100% !important;
    }

    :where(html.page-sample-media) .media-section .media-card {
        margin: 10px 0 !important;
        width: 300px !important;
    }
}

:where(html.page-sample-media) .media-section * {
    /* margin: 0; */
    padding: 0;
    box-sizing: border-box;
}

:where(html.page-sample-media) .media-section {
    font-family: "Arial", sans-serif;
    background: var(--bg-color);
    min-height: 1400px;
    padding: 40px;
    /* margin-right: 20px !important;
                    margin-left: 20px !important; */

    /* margin: 0 30px; */
    width: 1200px;
    /* Changed from 1200px to match image width */
}

:where(html.page-sample-media) .media-section .container {
    width: 100%;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    /* box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); */
    overflow: hidden;
    padding: 20px;
}

:where(html.page-sample-media) .media-section-wrapper {
    margin-bottom: 30px;
}

:where(html.page-sample-media) .media-section .header {
    padding: 0 0 20px 0;
    background: white;
}

:where(html.page-sample-media) .media-section .header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    text-align: left;
}

:where(html.page-sample-media) .media-section .header-line {
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 2px;
}

:where(html.page-sample-media) .media-section .media-grid {
    display: grid;
    grid-template-columns: repeat(2, 300px);
    /* Fixed width cards */
    gap: 50px;
    /* Reduced from 20px to 10px */
}

:where(html.page-sample-media) .media-section .media-card {
    width: 300px;
    margin: 0;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

:where(html.page-sample-media) .media-section .media-card:hover {
    transform: translateY(-2px);
    /* box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); */
    border-color: #10b981;
}

:where(html.page-sample-media) .media-section .media-image {
    width: 300px;
    height: 140px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

:where(html.page-sample-media) .media-section .media-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

:where(html.page-sample-media) .media-section .media-icon i {
    font-size: 2rem;
    color: white;
    /* filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)); */
}

:where(html.page-sample-media) .media-section .media-title {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    padding: 0 0.5rem;
}

:where(html.page-sample-media) .media-section .media-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

:where(html.page-sample-media)
    .media-section
    .media-card:hover
    .media-thumbnail {
    transform: scale(1.05);
}

:where(html.page-sample-media) .media-section .media-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    font-size: 1.25rem;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); */
    transition: all 0.3s;
}

:where(html.page-sample-media)
    .media-section
    .media-card:hover
    .media-play-button {
    background: white;
    transform: translate(-50%, -50%) scale(1.1);
    color: #059669;
    /* box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3); */
}

:where(html.page-sample-media) .media-section .media-content {
    padding: 15px;
}

:where(html.page-sample-media) .media-section .media-name {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

:where(html.page-sample-media) .media-section .media-description {
    font-size: 12px;
    color: #7f8c8d;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

:where(html.page-sample-media) .media-section .media-meta {
    font-size: 11px;
    color: #10b981;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #ecf0f1;
    font-weight: 600;
}

/* Modal Styles */

:where(html.page-sample-media) .portfolio-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

:where(html.page-sample-media) .portfolio-modal.show {
    opacity: 1;
}

:where(html.page-sample-media) .portfolio-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    height: 90%;
    max-width: 1000px;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    /* box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3); */
    transition: transform 0.3s ease;
}

:where(html.page-sample-media) .portfolio-modal.show .portfolio-modal-content {
    transform: translate(-50%, -50%) scale(1);
}

:where(html.page-sample-media) .portfolio-modal-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

:where(html.page-sample-media) .portfolio-modal-title {
    font-size: 1.1rem;
    font-weight: 600;
}

:where(html.page-sample-media) .portfolio-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

:where(html.page-sample-media) .portfolio-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

:where(html.page-sample-media) .portfolio-pdf-viewer,
:where(html.page-sample-media) .portfolio-video-player {
    width: 100%;
    height: calc(100% - 60px);
    border: none;
}

@media (max-width: 768px) {
    :where(html.page-sample-media) .media-section .media-grid {
        grid-template-columns: 300px;
        /* Single column on mobile */
        gap: 15px;
    }
}

/* sample/projects.blade.php */

:where(html.page-sample-projects) .content-section {
    padding: 20px 10px;
    background: #e0e5ec !important;
    border-radius: 8px;
    box-sizing: border-box;
    isolation: isolate;
}

/* Portfolio Modal Styles */

:where(html.page-sample-projects) .portfolio-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

:where(html.page-sample-projects) .modal-content {
    background: white;
    max-width: 1000px;
    /* Larger modal */
    margin: 50px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    position: relative;
}

:where(html.page-sample-projects) .close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

:where(html.page-sample-projects) .modal-image {
    height: 500px;
    /* Taller image */
    background-size: cover;
    background-position: center;
    position: relative;
}

:where(html.page-sample-projects) .modal-body {
    padding: 40px;
    /* More padding */
}

:where(html.page-sample-projects) .modal-category {
    display: inline-block;
    background: #eff6ff;
    color: #1e40af;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

:where(html.page-sample-projects) .modal-title {
    font-size: 2.5rem;
    /* Larger title */
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 25px;
}

:where(html.page-sample-projects) .modal-description {
    color: #64748b;
    font-size: 1.2rem;
    /* Larger text */
    line-height: 1.8;
    margin-bottom: 40px;
}

:where(html.page-sample-projects) .modal-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

:where(html.page-sample-projects) .detail-item h4 {
    font-size: 1.2rem;
    color: #1e293b;
    margin-bottom: 15px;
    font-weight: 600;
}

:where(html.page-sample-projects) .detail-item p {
    color: #64748b;
    font-size: 1.1rem;
}

@media (max-width: 992px) {
    :where(html.page-sample-projects) .modal-content {
        margin: 30px auto;
    }

    :where(html.page-sample-projects) .modal-image {
        height: 350px;
    }

    :where(html.page-sample-projects) .modal-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    :where(html.page-sample-projects) .modal-content {
        margin: 20px auto;
    }

    :where(html.page-sample-projects) .modal-image {
        height: 250px;
    }

    :where(html.page-sample-projects) .modal-body {
        padding: 30px;
    }

    :where(html.page-sample-projects) .modal-title {
        font-size: 1.8rem;
    }

    :where(html.page-sample-projects) .modal-details {
        grid-template-columns: 1fr;
    }
}

/* sample/projects.blade.php */

@media (max-width: 576px) {
    :where(html.page-sample-projects) .portfolio-container {
        margin: 0 auto !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    :where(html.page-sample-projects) .portfolio-section {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    :where(html.page-sample-projects) .portfolio-header,
    :where(html.page-sample-projects) .portfolio-navigation {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

:where(html.page-sample-projects) .portfolio-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:where(html.page-sample-projects) .portfolio-container {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: whitesmoke;
    border-radius: 20px;
    line-height: 1.6;
    max-width: 1400px;
    /* Wider container */
    margin: 0 auto;
    background: whitesmoke;
    min-height: 100vh;
    margin: 0 30px;
}

:where(html.page-sample-projects) .portfolio-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 20px;
    /* More padding */
    text-align: center;
    position: relative;
    overflow: hidden;
}

:where(html.page-sample-projects) .portfolio-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

:where(html.page-sample-projects) .portfolio-container h1 {
    font-size: 3.5rem;
    /* Larger heading */
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

:where(html.page-sample-projects) .portfolio-subtitle {
    font-size: 1.4rem;
    /* Larger subtitle */
    opacity: 0.9;
    position: relative;
    z-index: 1;
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto;
}

:where(html.page-sample-projects) .portfolio-navigation {
    background: whitesmoke;
    border-radius: 20px;
    padding: 25px 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

:where(html.page-sample-projects) .portfolio-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

:where(html.page-sample-projects) .portfolio-logo {
    font-size: 1.8rem;
    /* Larger logo */
    font-weight: 700;
    color: #1e3a8a;
}

:where(html.page-sample-projects) .portfolio-nav-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

:where(html.page-sample-projects) .portfolio-nav-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 1rem;
    /* Larger nav text */
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

:where(html.page-sample-projects) .portfolio-nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #3b82f6;
    transition: width 0.3s ease;
}

:where(html.page-sample-projects) .portfolio-nav-link:hover {
    color: #3b82f6;
}

:where(html.page-sample-projects) .portfolio-nav-link:hover::after,
:where(html.page-sample-projects) .portfolio-nav-link.active::after {
    width: 100%;
}

:where(html.page-sample-projects) .portfolio-nav-link.active {
    color: #3b82f6;
}

:where(html.page-sample-projects) .portfolio-section {
    padding: 60px 40px;
    /* More padding */
}

:where(html.page-sample-projects) .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Wider items */
    gap: 40px;
    /* More space between items */
    margin-top: 40px;
}

:where(html.page-sample-projects) .portfolio-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

:where(html.page-sample-projects) .portfolio-item:hover {
    transform: translateY(-10px);
    /* More pronounced hover effect */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

:where(html.page-sample-projects) .portfolio-item-image {
    height: 280px;
    /* Taller images */
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

:where(html.page-sample-projects) .portfolio-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

:where(html.page-sample-projects)
    .portfolio-item:hover
    .portfolio-item-image
    img {
    transform: scale(1.05);
}

:where(html.page-sample-projects) .portfolio-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(30, 58, 138, 0.9),
        rgba(59, 130, 246, 0.9)
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

:where(html.page-sample-projects)
    .portfolio-item:hover
    .portfolio-item-overlay {
    opacity: 1;
}

:where(html.page-sample-projects) .portfolio-view-btn {
    background: white;
    color: #1e3a8a;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    /* Larger button text */
}

:where(html.page-sample-projects) .portfolio-view-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

:where(html.page-sample-projects) .portfolio-item-content {
    padding: 30px;
    /* More padding */
}

:where(html.page-sample-projects) .portfolio-item-category {
    display: inline-block;
    background: #eff6ff;
    color: #1e40af;
    padding: 8px 16px;
    /* Larger category tag */
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

:where(html.page-sample-projects) .portfolio-item-title {
    font-size: 1.6rem;
    /* Larger title */
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
}

:where(html.page-sample-projects) .portfolio-item-description {
    color: #64748b;
    font-size: 1.05rem;
    /* Slightly larger text */
    line-height: 1.7;
}

@media (max-width: 1200px) {
    :where(html.page-sample-projects) .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

@media (max-width: 992px) {
    :where(html.page-sample-projects) .portfolio-grid {
        grid-template-columns: 1fr;
        /* Single column on smaller screens */
    }
}

@media (max-width: 992px) {
    :where(html.page-sample-projects) .portfolio-header {
        padding: 50px 30px;
    }

    :where(html.page-sample-projects) .portfolio-container h1 {
        font-size: 3rem;
    }

    :where(html.page-sample-projects) .portfolio-subtitle {
        font-size: 1.2rem;
    }

    :where(html.page-sample-projects) .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }

    :where(html.page-sample-projects) .portfolio-item-image {
        height: 250px;
    }
}

@media (max-width: 768px) {
    :where(html.page-sample-projects) .portfolio-header {
        padding: 40px 20px;
        min-height: 300px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    :where(html.page-sample-projects) .portfolio-container h1 {
        font-size: 2.5rem;
    }

    :where(html.page-sample-projects) .portfolio-navigation {
        padding: 20px;
    }

    :where(html.page-sample-projects) .portfolio-nav-container {
        flex-direction: column;
        text-align: center;
    }

    :where(html.page-sample-projects) .portfolio-nav-links {
        justify-content: center;
        gap: 15px;
    }

    :where(html.page-sample-projects) .portfolio-section {
        padding: 40px 20px;
    }

    :where(html.page-sample-projects) .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    :where(html.page-sample-projects) .portfolio-container h1 {
        font-size: 2rem;
    }

    :where(html.page-sample-projects) .portfolio-subtitle {
        font-size: 1rem;
    }

    :where(html.page-sample-projects) .portfolio-nav-link {
        font-size: 0.9rem;
    }

    :where(html.page-sample-projects) .portfolio-item-image {
        height: 220px;
    }

    :where(html.page-sample-projects) .portfolio-item-title {
        font-size: 1.4rem;
    }
}

/* sample/services.blade.php */

@media (max-width: 768px) {
    :where(html.page-sample-services) .scrollable-content {
        display: flex;
        justify-content: center;
        padding: 0 !important;
        margin: 0 auto !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    :where(html.page-sample-services) .scrollable-content > * {
        max-width: 420px;
        width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        margin: 0 auto !important;
        box-sizing: border-box;
    }

    :where(html.page-sample-services) .contact-section,
    :where(html.page-sample-services) .content-section,
    :where(html.page-sample-services) .services-section,
    :where(html.page-sample-services) .container,
    :where(html.page-sample-services) .services-container {
        width: 100% !important;
        max-width: 420px;
        padding: 0 10px !important;
        margin: 0 auto !important;
        box-sizing: border-box;
    }

    :where(html.page-sample-services) .service-card {
        width: 100% !important;
    }
}

:where(html.page-sample-services) .scrollable-content {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

:where(html.page-sample-services) .scrollable-content::-webkit-scrollbar {
    display: none;
}

:where(html.page-sample-services) .services-section * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:where(html.page-sample-services) .services-section {
    font-family: "Arial", sans-serif;
    background: var(--bg-color);
    margin-left: 30px;
    margin-right: 30px;

    min-height: 100vh;
    padding: 20px;
}

:where(html.page-sample-services) .services-section .container {
    max-width: auto;

    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

:where(html.page-sample-services) .services-section .header {
    padding: 30px 25px 20px;
    background: white;
}

:where(html.page-sample-services) .services-section .header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

:where(html.page-sample-services) .services-section .header-line {
    width: 100px;
    height: 3px;
    margin: 0 auto;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 2px;
}

:where(html.page-sample-services) .services-section .services-container {
    padding: 0 25px 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns */
    gap: 20px;
    /* Space between cards */
}

:where(html.page-sample-services) .services-section .service-card {
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

:where(html.page-sample-services) .services-section .service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

:where(html.page-sample-services) .services-section .service-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

:where(html.page-sample-services) .services-section .service-content {
    padding: 20px;
}

:where(html.page-sample-services) .services-section .service-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

:where(html.page-sample-services) .services-section .service-description {
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.5;
    margin-bottom: 15px;
}

:where(html.page-sample-services) .services-section .service-btn {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

:where(html.page-sample-services) .services-section .service-btn:hover {
    background: linear-gradient(135deg, #128c7e, #075e54);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Service-specific real images */

:where(html.page-sample-services) .services-section .logo-design {
    background:
        linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
        url("https://images.unsplash.com/photo-1626785774573-4b799315345d?w=400&h=300&fit=crop");
    background-size: cover;
    background-position: center;
}

:where(html.page-sample-services) .services-section .brand-identity {
    background:
        linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
        url("https://images.unsplash.com/photo-1586953208448-b95a79798f07?w=400&h=300&fit=crop");
    background-size: cover;
    background-position: center;
}

:where(html.page-sample-services) .services-section .brochure-design {
    background:
        linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
        url("https://images.unsplash.com/photo-1586281380349-632531db7ed4?w=400&h=300&fit=crop");
    background-size: cover;
    background-position: center;
}

:where(html.page-sample-services) .services-section .packaging-design {
    background:
        linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
        url("https://images.unsplash.com/photo-1560472354-b33ff0c44a43?w=400&h=300&fit=crop");
    background-size: cover;
    background-position: center;
}

@media (max-width: 480px) {
    :where(html.page-sample-services) .services-section .container {
        margin: 10px;
        max-width: none;
    }

    :where(html.page-sample-services) .services-section .services-container {
        padding: 0 20px 25px;
    }

    @media (max-width: 768px) {
    :where(html.page-sample-services)
            .services-section
            .services-container {
            grid-template-columns: 1fr;
            /* Switch to 1 column on mobile */
        }
}

    :where(html.page-sample-services) .services-section .service-content {
        padding: 15px;
    }
}

/* sample/visionary.blade.php */

@media (max-width: 480px) {
    :where(html.page-sample-visionary) .social-entrepreneurship-section {
        margin: 0 !important;
        padding: 5px !important;
    }

    :where(html.page-sample-visionary)
        .social-entrepreneurship-section
        .container {
        padding: 0 !important;
        margin: 0 auto !important;
        max-width: 100% !important;
    }

    :where(html.page-sample-visionary) .social-entrepreneurship-section .card {
        margin: 10px 0 !important;
        width: 100% !important;
    }
}

:where(html.page-sample-visionary) .social-entrepreneurship-section * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:where(html.page-sample-visionary) .social-entrepreneurship-section {
    font-family: "Arial", sans-serif;
    background: var(--bg-color);
    min-height: 100vh;
    padding: 20px;
    margin: 0 30px;
}

:where(html.page-sample-visionary) .social-entrepreneurship-section .container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

:where(html.page-sample-visionary) .social-entrepreneurship-section .header {
    padding: 30px 25px 20px;
    background: white;
}

:where(html.page-sample-visionary) .social-entrepreneurship-section .header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

:where(html.page-sample-visionary)
    .social-entrepreneurship-section
    .header-line {
    width: 325px;
    height: 3px;
    margin: auto;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 2px;
}

:where(html.page-sample-visionary)
    .social-entrepreneurship-section
    .articles-container {
    padding: 0 25px 30px;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

:where(html.page-sample-visionary)
    .social-entrepreneurship-section
    .article-card {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    /* cursor: pointer; */
}

:where(html.page-sample-visionary)
    .social-entrepreneurship-section
    .article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

:where(html.page-sample-visionary)
    .social-entrepreneurship-section
    .article-image {
    width: 100%;
    height: 140px;
    background-size: cover;
    background-position: center;
    position: relative;
}

:where(html.page-sample-visionary)
    .social-entrepreneurship-section
    .article-content {
    padding: 15px;
}

:where(html.page-sample-visionary)
    .social-entrepreneurship-section
    .article-title {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

:where(html.page-sample-visionary)
    .social-entrepreneurship-section
    .article-description {
    font-size: 12px;
    color: #7f8c8d;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

:where(html.page-sample-visionary)
    .social-entrepreneurship-section
    .article-meta {
    font-size: 11px;
    color: #95a5a6;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #ecf0f1;
}

/* Custom scrollbar */

:where(html.page-sample-visionary)
    .social-entrepreneurship-section
    .articles-container::-webkit-scrollbar {
    width: 4px;
}

:where(html.page-sample-visionary)
    .social-entrepreneurship-section
    .articles-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

:where(html.page-sample-visionary)
    .social-entrepreneurship-section
    .articles-container::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 2px;
}

:where(html.page-sample-visionary)
    .social-entrepreneurship-section
    .articles-container::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

@media (max-width: 768px) {
    :where(html.page-sample-visionary)
        .social-entrepreneurship-section
        .articles-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :where(html.page-sample-visionary)
        .social-entrepreneurship-section
        .container {
        margin: 10px;
        max-width: none;
    }

    :where(html.page-sample-visionary)
        .social-entrepreneurship-section
        .articles-container {
        padding: 0 20px 25px;
    }

    :where(html.page-sample-visionary)
        .social-entrepreneurship-section
        .article-content {
        padding: 12px;
    }
}

/* mainsample/maintemplate.blade.php */

@media (max-width: 768px) {
    body.page-template-sample.index-page {
        display: block !important;
        width: 100%;
        padding: 72px 16px 24px !important;
    }

    body.page-template-sample.index-page .business-card {
        width: 100% !important;
        max-width: 450px;
        margin: 0 auto 16px !important;
    }

    body.page-template-sample.index-page .content-section,
    body.page-template-sample.index-page .hero-banner-section {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 768px) {
    body.page-template-sample.index-page .scrollable-content {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
    }

    body.page-template-sample.index-page .content-section {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 12px 0 !important;
    }

    body.page-template-sample.index-page .hero-banner-section {
        padding: 0 !important;
    }

    body.page-template-sample.index-page .hero-container {
        height: min(55vh, 380px) !important;
        min-height: 240px !important;
    }

    body.page-template-sample.index-page .about-us-page,
    body.page-template-sample.index-page .portfolio-container,
    body.page-template-sample.index-page .media-section,
    body.page-template-sample.index-page .services-section,
    body.page-template-sample.index-page .social-entrepreneurship-section,
    body.page-template-sample.index-page .sg-contact-page,
    body.page-template-sample.index-page #payment-section {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }

    body.page-template-sample.index-page .about-us-page .about-section,
    body.page-template-sample.index-page
        .about-us-page
        .proud-associate-section,
    body.page-template-sample.index-page
        .about-us-page
        .client-showcase-section,
    body.page-template-sample.index-page .about-us-page .testimonials-section {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }

    body.page-template-sample.index-page .portfolio-grid,
    body.page-template-sample.index-page .services-section .services-container,
    body.page-template-sample.index-page
        .social-entrepreneurship-section
        .articles-container,
    body.page-template-sample.index-page .media-section .media-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.page-template-sample.index-page .media-section .media-card,
    body.page-template-sample.index-page .media-section .media-image {
        width: 100% !important;
        max-width: 100% !important;
    }

    body.page-template-sample.index-page .services-section .header-line {
        margin-left: 0 !important;
    }

    body.page-template-sample.index-page .sg-contact-page.scrollable-content {
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }
}

@media (max-width: 480px) {
    body.page-template-sample.index-page {
        padding: 68px 12px 20px !important;
    }

    body.page-template-sample.index-page .portfolio-container,
    body.page-template-sample.index-page .media-section,
    body.page-template-sample.index-page .services-section,
    body.page-template-sample.index-page .social-entrepreneurship-section,
    body.page-template-sample.index-page #payment-section {
        padding: 12px !important;
    }
}

/* mainsample/header.blade.php */

html.page-template-sample {
    --bg-color: #e0e5ec;
    --text-color: #6c7b7f;
    --active-color: #4a90e2;
    --shadow-dark: #bcc2c9;
    --shadow-light: #ffffff;
    --border-radius: 8px;
    --item-padding: 18px 25px;
    --icon-size: 50px;
    --font-size: 16px;
    --container-width: 300px;
    --container-height: 650px;
}

:where(html.page-template-sample),
:where(html.page-template-sample) * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.page-template-sample {
    font-family: "Poppins", sans-serif;
    background: var(--bg-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    padding-top: 40px;
    position: relative;
    overflow-x: hidden;
}

/* Mobile Toggle Button */

:where(html.page-template-sample) .mobile-toggle {
    display: none;
    position: fixed;
    top: max(20px, env(safe-area-inset-top));
    left: 20px;
    width: 55px;
    height: 55px;
    background: var(--bg-color);
    border-radius: 8px;
    box-shadow:
        8px 8px 16px var(--shadow-dark),
        -8px -8px 16px var(--shadow-light);
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-color);
    border: none;
    outline: none;
}

:where(html.page-template-sample) .mobile-toggle:hover {
    box-shadow:
        inset 6px 6px 12px var(--shadow-dark),
        inset -6px -6px 12px var(--shadow-light);
    color: var(--active-color);
}

:where(html.page-template-sample) .mobile-toggle.active {
    box-shadow:
        inset 8px 8px 16px var(--shadow-dark),
        inset -8px -8px 16px var(--shadow-light);
    color: var(--active-color);
}

/* Mobile Overlay */

:where(html.page-template-sample) .mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(3px);
}

:where(html.page-template-sample) .mobile-overlay.active {
    opacity: 1;
}

:where(html.page-template-sample) .header-container {
    background: var(--bg-color);
    border-radius: 25px;
    box-shadow:
        20px 20px 40px var(--shadow-dark),
        -20px -20px 40px var(--shadow-light);
    width: var(--container-width);
    height: auto;
    /* ✅ content ke hisaab se height */
    min-height: auto;
    /* ✅ koi minimum force na ho */
    padding: 30px 0;
    position: relative;
    max-width: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* ✅ space-between ki jagah */
}

:where(html.page-template-sample) .menu-item {
    display: flex;
    align-items: center;
    padding: 5px 8px;
    margin: 3px 5px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    animation: page-template-sample-slideIn 0.5s ease forwards;
    opacity: 0;
    text-decoration: none;
    color: inherit;
    min-height: 65px;
}

:where(html.page-template-sample) .menu-item:visited {
    color: inherit;
}

:where(html.page-template-sample) .menu-item:hover {
    box-shadow:
        inset 6px 6px 14px var(--shadow-dark),
        inset -6px -6px 14px var(--shadow-light);
    transform: translateY(-2px);
}

:where(html.page-template-sample) .menu-item.active {
    box-shadow:
        inset 10px 10px 20px var(--shadow-dark),
        inset -10px -10px 20px var(--shadow-light);
    background: linear-gradient(145deg, #d6dce5, #e8eff6);
}

:where(html.page-template-sample) .menu-item.active:hover {
    transform: translateY(0);
}

:where(html.page-template-sample) .icon {
    width: var(--icon-size);
    height: var(--icon-size);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    font-size: calc(var(--icon-size) * 0.4);
    transition: all 0.3s ease;
    background: var(--bg-color);
    color: var(--text-color);
    box-shadow:
        5px 5px 10px var(--shadow-dark),
        -5px -5px 10px var(--shadow-light);
    flex-shrink: 0;
}

:where(html.page-template-sample) .menu-item.active .icon {
    box-shadow:
        inset 6px 6px 12px var(--shadow-dark),
        inset -6px -6px 12px var(--shadow-light);
    color: var(--active-color);
    transform: scale(1.05);
}

:where(html.page-template-sample) .menu-text {
    font-size: var(--font-size);
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.3s ease;
    flex-grow: 1;
    white-space: nowrap;
}

:where(html.page-template-sample) .menu-item.active .menu-text {
    color: var(--active-color);
    font-weight: 600;
}

@keyframes page-template-sample-slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation delays */

:where(html.page-template-sample) .menu-item:nth-child(1) {
    animation-delay: 0.05s;
}

:where(html.page-template-sample) .menu-item:nth-child(2) {
    animation-delay: 0.1s;
}

:where(html.page-template-sample) .menu-item:nth-child(3) {
    animation-delay: 0.15s;
}

:where(html.page-template-sample) .menu-item:nth-child(4) {
    animation-delay: 0.2s;
}

:where(html.page-template-sample) .menu-item:nth-child(5) {
    animation-delay: 0.25s;
}

:where(html.page-template-sample) .menu-item:nth-child(6) {
    animation-delay: 0.3s;
}

:where(html.page-template-sample) .menu-item:nth-child(7) {
    animation-delay: 0.35s;
}

:where(html.page-template-sample) .menu-item:nth-child(8) {
    animation-delay: 0.4s;
}

:where(html.page-template-sample) .menu-item:nth-child(9) {
    animation-delay: 0.45s;
}

/* Close button */

:where(html.page-template-sample) .close-button {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: var(--bg-color);
    border-radius: 12px;
    box-shadow:
        5px 5px 10px var(--shadow-dark),
        -5px -5px 10px var(--shadow-light);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-color);
    transition: all 0.3s ease;
    z-index: 10;
    border: none;
}

:where(html.page-template-sample) .close-button:hover {
    box-shadow:
        inset 4px 4px 8px var(--shadow-dark),
        inset -4px -4px 8px var(--shadow-light);
    color: #e74c3c;
}

/* Share Popup Styles */

:where(html.page-template-sample) .share-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    backdrop-filter: blur(3px);
}

:where(html.page-template-sample) .share-popup.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

:where(html.page-template-sample) .share-popup-content {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 30px;
    width: 90%;
    max-width: 400px;
    box-shadow:
        15px 15px 30px var(--shadow-dark),
        -15px -15px 30px var(--shadow-light);
    position: relative;
    animation: page-template-sample-popIn 0.3s ease-out;
}

@keyframes page-template-sample-popIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

:where(html.page-template-sample) .share-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: var(--bg-color);
    box-shadow:
        3px 3px 6px var(--shadow-dark),
        -3px -3px 6px var(--shadow-light);
    border: none;
    color: var(--text-color);
}

:where(html.page-template-sample) .share-popup-title {
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}

:where(html.page-template-sample) .share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

:where(html.page-template-sample) .share-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-color);
    box-shadow:
        5px 5px 10px var(--shadow-dark),
        -5px -5px 10px var(--shadow-light);
    border: none;
    color: var(--text-color);
}

:where(html.page-template-sample) .share-button:hover {
    transform: translateY(-3px);
    box-shadow:
        8px 8px 16px var(--shadow-dark),
        -8px -8px 16px var(--shadow-light);
}

:where(html.page-template-sample) .share-button:active {
    transform: translateY(0);
    box-shadow:
        inset 4px 4px 8px var(--shadow-dark),
        inset -4px -4px 8px var(--shadow-light);
}

:where(html.page-template-sample) .share-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

:where(html.page-template-sample) .share-button.facebook {
    color: #1877f2;
}

:where(html.page-template-sample) .share-button.twitter {
    color: #1da1f2;
}

:where(html.page-template-sample) .share-button.whatsapp {
    color: #25d366;
}

:where(html.page-template-sample) .share-button.linkedin {
    color: #0077b5;
}

:where(html.page-template-sample) .share-button.telegram {
    color: #0088cc;
}

:where(html.page-template-sample) .share-button.copy {
    color: var(--active-color);
}

/* Extra Large Screens (1440px+) */

@media (min-width: 1440px) {
    html.page-template-sample {
        --container-width: 350px;
        --container-height: 750px;
        --item-padding: 22px 30px;
        --icon-size: 55px;
        --font-size: 18px;
        --border-radius: 22px;
    }

    body.page-template-sample {
        padding: 40px;
        padding-top: 60px;
    }

    :where(html.page-template-sample) .header-container {
        padding: 40px 0;
    }

    :where(html.page-template-sample) .menu-item {
        margin: 14px 25px;
        min-height: 75px;
    }

    :where(html.page-template-sample) .icon {
        margin-right: 22px;
    }
}

/* Large Screens (1200px - 1439px) */

@media (max-width: 1439px) and (min-width: 1200px) {
    html.page-template-sample {
        --container-width: 320px;
        --container-height: 700px;
        --item-padding: 20px 28px;
        --icon-size: 52px;
        --font-size: 17px;
        --border-radius: 21px;
    }

    :where(html.page-template-sample) .header-container {
        padding: 35px 0;
    }

    :where(html.page-template-sample) .menu-item {
        margin: 12px 22px;
        min-height: 70px;
    }

    :where(html.page-template-sample) .icon {
        margin-right: 20px;
    }
}

/* Medium Large Screens (1024px - 1199px) */

@media (max-width: 1199px) and (min-width: 1025px) {
    html.page-template-sample {
        --container-width: 300px;
        --container-height: 650px;
        --item-padding: 18px 25px;
        --icon-size: 50px;
        --font-size: 16px;
    }
}

/* Tablet Landscape (769px - 1024px) */

@media (max-width: 1024px) and (min-width: 769px) {
    html.page-template-sample {
        --container-width: 90%;
        --container-height: 600px;
        --item-padding: 16px 22px;
        --icon-size: 48px;
        --font-size: 15px;
        --border-radius: 18px;
    }

    body.page-template-sample {
        padding: 0;
        align-items: center;
        justify-content: center;
    }

    :where(html.page-template-sample) .mobile-toggle {
        display: flex;
        width: 60px;
        height: 60px;
        font-size: 22px;
    }

    :where(html.page-template-sample) .mobile-overlay {
        display: block;
    }

    :where(html.page-template-sample) .header-container {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.8);
        max-width: 400px;
        padding: 25px 0 25px 0;
        padding-top: 60px;
        border-radius: 30px;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow:
            25px 25px 50px var(--shadow-dark),
            -25px -25px 50px var(--shadow-light);
    }

    :where(html.page-template-sample) .header-container.active {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        visibility: visible;
    }

    :where(html.page-template-sample) .close-button {
        display: flex;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    :where(html.page-template-sample) .menu-item {
        margin: 8px 18px;
        min-height: 60px;
    }
}

/* Tablet Portrait (481px - 768px) */

@media (max-width: 768px) and (min-width: 481px) {
    html.page-template-sample {
        --container-width: 85%;
        --container-height: auto;
        --item-padding: 15px 20px;
        --icon-size: 45px;
        --font-size: 15px;
        --border-radius: 16px;
    }

    :where(html.page-template-sample) .mobile-toggle {
        width: 55px;
        height: 55px;
        font-size: 20px;
        top: max(20px, env(safe-area-inset-top));
        left: 20px;
    }

    :where(html.page-template-sample) .header-container {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.9);
        max-width: 380px;
        min-height: 500px;
        padding: 20px 0;
        padding-top: 55px;
        border-radius: 25px;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    :where(html.page-template-sample) .header-container.active {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        visibility: visible;
    }

    :where(html.page-template-sample) .menu-item {
        margin: 6px 15px;
        min-height: 55px;
    }

    :where(html.page-template-sample) .icon {
        margin-right: 15px;
    }

    :where(html.page-template-sample) .close-button {
        display: flex;
        width: 38px;
        height: 38px;
        top: 12px;
        right: 12px;
        font-size: 16px;
    }
}

/* Large Mobile (361px - 480px) */

@media (max-width: 480px) and (min-width: 361px) {
    html.page-template-sample {
        --container-width: 90%;
        --container-height: auto;
        --item-padding: 14px 18px;
        --icon-size: 42px;
        --font-size: 14px;
        --border-radius: 14px;
    }

    :where(html.page-template-sample) .mobile-toggle {
        width: 50px;
        height: 50px;
        font-size: 18px;
        top: max(15px, env(safe-area-inset-top));
        left: 15px;
    }

    :where(html.page-template-sample) .header-container {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.95);
        max-width: 320px;
        min-height: 450px;
        padding: 18px 0;
        padding-top: 50px;
        border-radius: 20px;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
    }

    :where(html.page-template-sample) .header-container.active {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        visibility: visible;
    }

    :where(html.page-template-sample) .menu-item {
        margin: 5px 12px;
        min-height: 52px;
    }

    :where(html.page-template-sample) .icon {
        margin-right: 12px;
    }

    :where(html.page-template-sample) .close-button {
        display: flex;
        width: 35px;
        height: 35px;
        top: 10px;
        right: 10px;
        font-size: 14px;
    }
}

/* Small Mobile (280px - 360px) */

@media (max-width: 360px) {
    html.page-template-sample {
        --container-width: 95%;
        --container-height: auto;
        --item-padding: 12px 15px;
        --icon-size: 38px;
        --font-size: 13px;
        --border-radius: 12px;
    }

    :where(html.page-template-sample) .mobile-toggle {
        width: 45px;
        height: 45px;
        font-size: 16px;
        top: max(12px, env(safe-area-inset-top));
        left: 12px;
    }

    :where(html.page-template-sample) .header-container {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 95vw;
        max-width: 300px;
        min-height: 420px;
        padding: 15px 0;
        padding-top: 45px;
        border-radius: 18px;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
    }

    :where(html.page-template-sample) .header-container.active {
        opacity: 1;
        visibility: visible;
    }

    :where(html.page-template-sample) .menu-item {
        margin: 4px 10px;
        min-height: 48px;
    }

    :where(html.page-template-sample) .icon {
        margin-right: 10px;
    }

    :where(html.page-template-sample) .close-button {
        display: flex;
        width: 32px;
        height: 32px;
        top: 8px;
        right: 8px;
        font-size: 12px;
    }
}

/* Ultra Small Screens (Below 280px) */

@media (max-width: 279px) {
    html.page-template-sample {
        --container-width: 98%;
        --container-height: auto;
        --item-padding: 10px 12px;
        --icon-size: 35px;
        --font-size: 12px;
        --border-radius: 10px;
    }

    :where(html.page-template-sample) .mobile-toggle {
        width: 40px;
        height: 40px;
        font-size: 14px;
        top: max(10px, env(safe-area-inset-top));
        left: 10px;
    }

    :where(html.page-template-sample) .header-container {
        width: 98vw;
        max-width: 260px;
        min-height: 400px;
        padding: 12px 0;
        padding-top: 40px;
        border-radius: 15px;
    }

    :where(html.page-template-sample) .menu-item {
        margin: 3px 8px;
        min-height: 45px;
    }

    :where(html.page-template-sample) .icon {
        margin-right: 8px;
    }

    :where(html.page-template-sample) .close-button {
        width: 28px;
        height: 28px;
        top: 6px;
        right: 6px;
        font-size: 11px;
    }
}

/* Hover effects enhancement */

:where(html.page-template-sample) .menu-item:not(.active):hover .icon {
    transform: scale(1.1);
    color: var(--active-color);
}

:where(html.page-template-sample) .menu-item:not(.active):hover .menu-text {
    color: var(--active-color);
}

/* Focus states for accessibility */

:where(html.page-template-sample) .menu-item:focus {
    outline: 2px solid var(--active-color);
    outline-offset: 2px;
}

:where(html.page-template-sample) .mobile-toggle:focus {
    outline: 2px solid var(--active-color);
    outline-offset: 2px;
}

/* Touch-friendly improvements */

@media (hover: none) and (pointer: coarse) {
    :where(html.page-template-sample) .menu-item:hover {
        transform: none;
        box-shadow:
            inset 6px 6px 14px var(--shadow-dark),
            inset -6px -6px 14px var(--shadow-light);
    }

    :where(html.page-template-sample) .menu-item:active {
        transform: scale(0.98);
    }
}

/* Prevent body scroll when menu is open */

body.page-template-sample.menu-open {
    overflow: hidden;
    height: 100vh;
}

/* Animation improvements for mobile */

@media (max-width: 1024px) {
    :where(html.page-template-sample) .mobile-toggle {
        display: flex !important;
    }

    :where(html.page-template-sample) .header-container {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 95vw;
        max-width: 340px;
        height: auto;
        min-height: unset;
        max-height: 90vh;
        padding: 10px 0 10px 0;
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
        background: #e0e5ec;
        z-index: 1000;
        display: block;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    :where(html.page-template-sample) .header-container.active {
        opacity: 1;
        visibility: visible;
    }

    :where(html.page-template-sample) .close-button {
        display: flex !important;
    }

    :where(html.page-template-sample) .menu-item {
        padding: 8px 10px;
        margin: 4px 6px;
        min-height: 36px;
        border-radius: 8px;
        font-size: 13px;
    }

    :where(html.page-template-sample) .icon {
        width: 24px;
        height: 24px;
        font-size: 13px;
        margin-right: 7px;
    }

    :where(html.page-template-sample) .menu-text {
        font-size: 13px;
        font-weight: 500;
    }
}

:where(html.page-template-sample) .header-container.active .menu-item {
    animation: page-template-sample-mobileSlideIn 0.4s ease forwards;
    opacity: 0;
}

@keyframes page-template-sample-mobileSlideIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Orientation changes */

@media (orientation: landscape) and (max-height: 500px) {
    :where(html.page-template-sample) .header-container {
        max-height: 90vh;
        overflow-y: auto;
        min-height: auto;
    }

    :where(html.page-template-sample) .menu-item {
        min-height: 45px;
        padding: 10px 15px;
    }

    html.page-template-sample {
        --icon-size: 35px;
        --font-size: 13px;
    }
}

/* High DPI displays */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    :where(html.page-template-sample) .header-container {
        box-shadow:
            20px 20px 40px rgba(188, 194, 201, 0.8),
            -20px -20px 40px rgba(255, 255, 255, 0.9);
    }
}

/* Dark mode support */

/* @media (prefers-color-scheme: dark) {
            :root {
                --bg-color: #2d3748;
                --text-color: #a0aec0;
                --active-color: #63b3ed;
                --shadow-dark: #1a202c;
                --shadow-light: #4a5568;
            }
        } */

/* Reduce motion for accessibility */

@media (prefers-reduced-motion: reduce) {
    :where(html.page-template-sample),
    :where(html.page-template-sample) * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

:where(html.page-template-sample) .modal-open .header-container {
    display: none !important;
}

/* Feedback Form Styles */

.custom-feedback-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgb(15 23 42 / 62%);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    animation: custom-feedback-popup-fade .18s ease-out both;
}

.custom-feedback-popup-card {
    position: relative;
    width: min(420px, 100%);
    padding: 34px 32px 28px;
    border: 1px solid rgb(255 255 255 / 35%);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 70px rgb(15 23 42 / 35%);
    text-align: center;
    animation: custom-feedback-popup-rise .24s ease-out both;
}

.custom-feedback-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #334155;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.custom-feedback-popup-icon {
    display: grid;
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    place-items: center;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
    font-size: 34px;
    font-weight: 800;
}

.custom-feedback-popup.error .custom-feedback-popup-icon {
    background: #fee2e2;
    color: #b91c1c;
}

.custom-feedback-popup-card h2 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 24px;
}

.custom-feedback-popup-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

.custom-feedback-popup-button {
    width: 100%;
    margin-top: 22px;
    padding: 12px 18px;
    border: 0;
    border-radius: 10px;
    background: #0f172a;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}

.custom-feedback-popup.error .custom-feedback-popup-button {
    background: #b91c1c;
}

@keyframes custom-feedback-popup-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes custom-feedback-popup-rise {
    from { opacity: 0; transform: translateY(12px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 480px) {
    .custom-feedback-popup-card {
        padding: 30px 20px 22px;
        border-radius: 16px;
    }
}

/* ---------- forgot-password and password-reset authentication screens ---------- */

:where(html.page-forgot, html.page-reset) .auth-single-panel {
    max-width: 560px;
    grid-template-columns: minmax(0, 1fr);
}

:where(html.page-forgot) .auth-panel {
    justify-content: center;
}

:where(html.page-reset) .auth-panel {
    justify-content: center;
}

:where(html.page-forgot) .auth-top {
    margin-bottom: 38px;
}

:where(html.page-reset) .auth-top {
    margin-bottom: 38px;
}

:where(html.page-forgot) .auth-top .logo {
    text-decoration: none;
}

:where(html.page-reset) .auth-top .logo {
    text-decoration: none;
}

:where(html.page-forgot) .auth-header {
    margin-bottom: 22px;
}

:where(html.page-reset) .auth-header {
    margin-bottom: 22px;
}

:where(html.page-forgot, html.page-reset) .auth-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
    color: var(--text-body);
    font-size: 13px;
}

:where(html.page-forgot, html.page-reset) .auth-notice i {
    margin-top: 2px;
}

:where(html.page-forgot, html.page-reset) .auth-notice-error {
    border-color: rgba(143, 42, 36, 0.24);
    color: var(--error-color);
}

:where(html.page-forgot, html.page-reset) .auth-notice-success {
    border-color: rgba(21, 23, 26, 0.18);
}

:where(html.page-forgot) #emailForm {
    margin: 0;
}

:where(html.page-forgot) .otp-step {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

:where(html.page-forgot) .otp-step-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

:where(html.page-forgot) .otp-step-number {
    display: grid;
    width: 34px;
    height: 34px;
    flex: none;
    place-items: center;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
}

:where(html.page-forgot) .otp-step-heading h2 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

:where(html.page-forgot) .otp-step-heading p {
    margin-top: 2px;
    color: var(--text-secondary);
    font-size: 12px;
}

:where(html.page-forgot) .otp-inputs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

:where(html.page-forgot) .otp-input {
    width: 100%;
    min-width: 0;
    height: 54px;
    border: 1px solid var(--border-2);
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    text-align: center;
}

:where(html.page-forgot) .otp-input:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px var(--soft);
}

:where(html.page-forgot) .resend-code {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 12px;
}

:where(html.page-forgot) #timer {
    color: var(--ink);
    font-weight: 600;
}

:where(html.page-forgot) [data-resend-otp] {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

:where(html.page-forgot) [data-resend-otp]:disabled {
    color: var(--text-secondary);
    cursor: not-allowed;
    text-decoration: none;
}

:where(html.page-forgot) .form-footer {
    margin-top: 24px;
}

:where(html.page-reset) .form-group {
    margin-bottom: 20px;
}

:where(html.page-reset) .form-control {
    padding-right: 48px;
}

:where(html.page-reset) .password-toggle {
    top: 35px;
}

:where(html.page-reset) .password-hint {
    margin-top: 7px;
    color: var(--text-secondary);
    font-size: 12px;
}

:where(html.page-reset) .password-match-message {
    margin-top: 8px;
    color: var(--error-color);
    font-size: 12.5px;
}

:where(html.page-reset) .form-footer {
    margin-top: 24px;
}

@media (max-width: 520px) {
    :where(html.page-forgot, html.page-reset) .auth-top {
        margin-bottom: 30px;
    }

    :where(html.page-forgot) .otp-inputs {
        gap: 7px;
    }

    :where(html.page-forgot) .otp-input {
        height: 48px;
        border-radius: 10px;
        font-size: 19px;
    }
}

/* Shared UI (merged from the former shared-ui.css): loaded by every public theme, the free profile and the admin panel. */

/* ==========================================================================
   Shared UI — used by every public theme, the free profile and the admin.
   1. Theme tokens       (each theme maps its own colours onto --ui-*)
   2. Review modal       (.tfb-*  — markup in web/shared/feedback-modal)
   3. Result popup       (.custom-feedback-popup — built in main.js)
   4. File picker        (.file-picker — built in main.js for every file input)
   5. Project details    (.tpm-*  — markup in web/shared/project-modal + project-button)
   ========================================================================== */

/* ---------- 1. Theme tokens ---------- */

:root {
    --ui-accent: #1f2937;
    --ui-accent-hover: #111827;
    --ui-on-accent: #ffffff;
    --ui-accent-soft: #f1f3f5;
    --ui-ink: #1b1d21;
    --ui-muted: #6b7079;
    --ui-line: #e3e5e9;
    --ui-field-bg: #f9fafb;
    --ui-surface: #ffffff;
    --ui-star: #f5a524;
    --ui-danger: #c62828;
    --ui-radius: 16px;
    --ui-radius-sm: 10px;
    --ui-overlay: rgb(15 18 24 / 55%);
    --ui-heading-font: inherit;
    --ui-body-font: inherit;
}

/* Theme 1 (classic) */

/* Theme 4 · Paper */

.theme4-page {
    --ui-accent: var(--t4-main);
    --ui-accent-hover: var(--t4-main-2);
    --ui-on-accent: var(--t4-on-main);
    --ui-accent-soft: var(--t4-accent-soft);
    --ui-ink: var(--t4-ink);
    --ui-muted: var(--t4-muted);
    --ui-line: var(--t4-line);
    --ui-field-bg: var(--t4-surface);
    --ui-surface: var(--t4-surface);
    --ui-star: #c8902b;
    --ui-radius: var(--t4-radius);
    --ui-heading-font: var(--t4-serif);
    --ui-body-font: var(--t4-sans);
}

/* Theme 2 */

.theme2-page {
    --ui-accent: var(--t2-wine);
    --ui-accent-hover: var(--t2-wine-deep);
    --ui-accent-soft: var(--t2-glacier-soft);
    --ui-ink: var(--t2-ink);
    --ui-muted: var(--t2-muted);
    --ui-line: var(--t2-line);
    --ui-field-bg: var(--t2-glacier-bg);
    --ui-overlay: rgb(43 7 17 / 55%);
    --ui-heading-font: var(--t2-serif);
    --ui-body-font: var(--t2-sans);
}

/* Theme 3 */

.theme3-page {
    --ui-accent: var(--t3-accent);
    --ui-accent-hover: var(--t3-primary);
    --ui-on-accent: var(--t3-on-accent);
    --ui-accent-soft: var(--t3-primary-soft);
    --ui-ink: var(--t3-ink);
    --ui-muted: var(--t3-muted);
    --ui-line: var(--t3-line);
    --ui-field-bg: #fffafa;
    --ui-star: var(--t3-star);
    --ui-radius: var(--t3-r-lg);
    --ui-radius-sm: var(--t3-r-sm);
    --ui-heading-font: var(--t3-heading);
    --ui-body-font: var(--t3-text);
}

/* Theme 5 · Studio */

.theme5-page {
    --ui-accent: var(--theme5-main);
    --ui-accent-hover: var(--theme5-main-3);
    --ui-on-accent: var(--theme5-on-dark);
    --ui-accent-soft: var(--theme5-accent-soft);
    --ui-ink: var(--theme5-ink);
    --ui-muted: var(--theme5-muted);
    --ui-line: var(--theme5-line);
    --ui-field-bg: var(--theme5-surface-2);
    --ui-surface: var(--theme5-surface);
    --ui-heading-font: var(--theme5-font-display);
    --ui-body-font: var(--theme5-font-body);
}

/* Theme 6 · Dossier */

.theme6-page {
    --ui-accent: var(--t6-green);
    --ui-accent-hover: #0c2c22;
    --ui-on-accent: var(--t6-ivory);
    --ui-accent-soft: var(--t6-ivory);
    --ui-ink: var(--t6-ink);
    --ui-muted: var(--t6-muted);
    --ui-line: var(--t6-line);
    --ui-field-bg: #fbf8f2;
    --ui-star: var(--t6-brass);
    --ui-radius: 6px;
    --ui-radius-sm: 4px;
    --ui-overlay: rgb(18 61 47 / 55%);
    --ui-heading-font: var(--t6-serif);
    --ui-body-font: var(--t6-sans);
}

/* Free profile (simple template for accounts without a plan) */

body.page-nonpremium {
    --ui-accent: var(--np-accent);
    --ui-accent-hover: var(--np-accent-dark);
    --ui-accent-soft: var(--np-accent-soft);
    --ui-ink: var(--np-ink);
    --ui-muted: var(--np-muted);
    --ui-line: var(--np-line);
    --ui-field-bg: var(--np-surface);
    --ui-star: #f5a524;
    --ui-radius: var(--np-radius);
    --ui-heading-font: var(--np-sans);
    --ui-body-font: var(--np-sans);
}

/* Admin */

body.admin-body {
    --ui-accent: var(--blue);
    --ui-accent-hover: var(--blue-dark);
    --ui-accent-soft: var(--blue-l);
    --ui-ink: var(--admin-text);
    --ui-muted: var(--admin-muted);
    --ui-line: var(--admin-border-2);
    --ui-field-bg: #fafbfc;
    --ui-radius-sm: var(--r-md);
    --ui-body-font: var(--font-body);
}

/* ---------- 2. Review modal ---------- */

body.tfb-open {
    overflow: hidden;
}

.tfb-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: var(--ui-overlay);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: tfb-fade 0.2s ease-out both;
}

.tfb-modal {
    position: relative;
    width: min(560px, 100%);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: calc(var(--ui-radius) + 6px);
    color: var(--ui-ink);
    background: var(--ui-surface);
    box-shadow:
        0 0 0 1px rgb(255 255 255 / 6%),
        0 40px 100px -30px rgb(0 0 0 / 55%);
    font-family: var(--ui-body-font);
    line-height: 1.5;
    text-align: left;
    scrollbar-width: thin;
    animation: tfb-rise 0.32s cubic-bezier(0.2, 0.9, 0.25, 1.05) both;
}

.tfb-modal *,
.tfb-modal *::before,
.tfb-modal *::after {
    box-sizing: border-box;
}

.tfb-modal svg {
    display: block;
    flex: none;
}

/* Header — accent band with a soft glow and dot texture */

.tfb-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    overflow: hidden;
    padding: 28px 64px 30px 30px;
    color: var(--ui-on-accent);
    background:
        radial-gradient(circle at 100% 0%, rgb(255 255 255 / 22%), transparent 55%),
        radial-gradient(circle at 0% 120%, rgb(0 0 0 / 22%), transparent 50%),
        var(--ui-accent);
    isolation: isolate;
}

.tfb-head::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image: radial-gradient(rgb(255 255 255 / 18%) 1px, transparent 1.2px);
    background-size: 14px 14px;
    -webkit-mask-image: linear-gradient(120deg, transparent 35%, #000 100%);
    mask-image: linear-gradient(120deg, transparent 35%, #000 100%);
}

.tfb-badge {
    display: grid;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 28%);
    border-radius: 16px;
    background: rgb(255 255 255 / 14%);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 20%);
}

.tfb-badge svg {
    width: 24px;
    height: 24px;
}

.tfb-head-text {
    min-width: 0;
}

.tfb-kicker {
    margin: 0;
    color: currentColor;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    opacity: 0.8;
    text-transform: uppercase;
}

.tfb-modal h2 {
    margin: 3px 0 2px;
    padding: 0;
    color: currentColor;
    font-family: var(--ui-heading-font);
    font-size: clamp(23px, 4vw, 28px);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

.tfb-note {
    margin: 0;
    color: currentColor;
    font-size: 13.5px;
    opacity: 0.82;
}

.tfb-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 25%);
    border-radius: 50%;
    color: var(--ui-on-accent);
    background: rgb(255 255 255 / 12%);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.tfb-close svg {
    width: 16px;
    height: 16px;
}

.tfb-close:hover {
    background: rgb(255 255 255 / 24%);
    transform: rotate(90deg);
}

/* Form body */

.tfb-form {
    display: grid;
    gap: 18px;
    padding: 24px 30px 26px;
}

.tfb-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.tfb-field {
    display: grid;
    gap: 7px;
    min-width: 0;
    margin: 0;
}

.tfb-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    color: var(--ui-ink);
    font-size: 13px;
    font-weight: 600;
}

.tfb-label small {
    color: var(--ui-muted);
    font-size: 11.5px;
    font-weight: 500;
}

.tfb-counter {
    font-variant-numeric: tabular-nums;
}

.tfb-counter.is-near {
    color: var(--ui-danger) !important;
}

/* Rating card */

.tfb-rating-card {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 18px 16px 16px;
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-radius);
    background:
        radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--ui-star) 12%, transparent), transparent 70%),
        var(--ui-field-bg);
    text-align: center;
}

.tfb-rating-question {
    color: var(--ui-ink);
    font-size: 14px;
    font-weight: 600;
}

.tfb-stars {
    display: flex;
    gap: 6px;
}

.tfb-stars .star {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 12px;
    color: color-mix(in srgb, var(--ui-muted) 28%, transparent);
    background: transparent;
    cursor: pointer;
    transition: color 0.15s, transform 0.18s cubic-bezier(0.3, 1.6, 0.5, 1), background 0.15s;
}

.tfb-stars .star svg {
    width: 34px;
    height: 34px;
    fill: currentColor;
    filter: drop-shadow(0 2px 3px rgb(0 0 0 / 8%));
}

.tfb-stars .star.selected,
.tfb-stars:hover .star {
    color: var(--ui-star);
}

.tfb-stars .star:hover ~ .star {
    color: color-mix(in srgb, var(--ui-muted) 28%, transparent);
}

.tfb-stars .star:hover {
    transform: scale(1.15);
}

.tfb-stars .star.selected {
    animation: tfb-star-pop 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.tfb-stars .star:focus-visible {
    outline: 2px solid var(--ui-accent);
    outline-offset: 1px;
}

.tfb-rating-text {
    min-height: 20px;
    color: var(--ui-muted);
    font-size: 13px;
    font-weight: 500;
}

.tfb-rating-text.is-set {
    color: var(--ui-ink);
    font-weight: 700;
}

/* Inputs */

.tfb-input {
    position: relative;
    display: block;
}

.tfb-input > svg {
    position: absolute;
    top: 50%;
    left: 13px;
    width: 18px;
    height: 18px;
    color: var(--ui-muted);
    pointer-events: none;
    transform: translateY(-50%);
    transition: color 0.2s;
}

.tfb-input:focus-within > svg {
    color: var(--ui-accent);
}

.tfb-field input[type="text"],
.tfb-field textarea {
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 11px 14px;
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-radius-sm);
    outline: 0;
    color: var(--ui-ink);
    background: var(--ui-field-bg);
    box-shadow: none;
    font: inherit;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.tfb-input input[type="text"] {
    padding-left: 41px;
}

.tfb-field textarea {
    min-height: 116px;
    line-height: 1.55;
    resize: vertical;
}

.tfb-field input[type="text"]::placeholder,
.tfb-field textarea::placeholder {
    color: var(--ui-muted);
    opacity: 0.65;
}

.tfb-field input[type="text"]:hover,
.tfb-field textarea:hover {
    border-color: color-mix(in srgb, var(--ui-ink) 22%, var(--ui-line));
}

.tfb-field input[type="text"]:focus,
.tfb-field textarea:focus {
    border-color: var(--ui-accent);
    background: var(--ui-surface);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--ui-accent) 13%, transparent);
}

.tfb-modal .form-error {
    display: block;
    color: var(--ui-danger);
    font-size: 12.5px;
    font-weight: 500;
}

.tfb-modal .form-error:empty {
    display: none;
}

/* Submit */

.tfb-submit {
    display: inline-flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
    padding: 13px 22px;
    border: 0;
    border-radius: var(--ui-radius-sm);
    color: var(--ui-on-accent);
    background: var(--ui-accent);
    box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--ui-accent) 75%, transparent);
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.tfb-submit svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s;
}

.tfb-submit:hover {
    background: var(--ui-accent-hover);
    box-shadow: 0 16px 30px -12px color-mix(in srgb, var(--ui-accent) 85%, transparent);
    transform: translateY(-1px);
}

.tfb-submit:hover svg {
    transform: translateX(4px);
}

.tfb-submit:disabled {
    opacity: 0.7;
    cursor: progress;
    transform: none;
}

.tfb-footnote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: -4px 0 0;
    color: var(--ui-muted);
    font-size: 12px;
    text-align: center;
}

.tfb-footnote svg {
    width: 15px;
    height: 15px;
    color: var(--ui-accent);
}

/* Avatar-style photo picker inside the modal */

.file-picker.file-picker--avatar .file-picker-media {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    border: 2px dashed color-mix(in srgb, var(--ui-accent) 35%, transparent);
    border-radius: 50%;
}

.file-picker.file-picker--avatar[data-state="filled"] .file-picker-media {
    border: 2px solid var(--ui-surface);
    box-shadow: 0 0 0 2px var(--ui-accent);
}

@media (max-width: 560px) {
    .tfb-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .tfb-modal {
        width: 100%;
        max-height: 94vh;
        max-height: 94dvh;
        border-radius: calc(var(--ui-radius) + 6px) calc(var(--ui-radius) + 6px) 0 0;
        animation-name: tfb-sheet;
    }

    .tfb-head {
        padding: 24px 58px 24px 20px;
    }

    .tfb-badge {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        border-radius: 14px;
    }

    .tfb-form {
        padding: 20px 20px 24px;
    }

    .tfb-row {
        grid-template-columns: 1fr;
    }

    .tfb-stars .star {
        width: 42px;
        height: 42px;
    }
}

@keyframes tfb-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes tfb-rise {
    from { opacity: 0; transform: translateY(18px) scale(0.97); }
    to { opacity: 1; transform: none; }
}

@keyframes tfb-sheet {
    from { transform: translateY(100%); }
    to { transform: none; }
}

@keyframes tfb-star-pop {
    0% { transform: scale(0.8); }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ---------- 3. Result popup ---------- */

.custom-feedback-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--ui-overlay);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: tfb-fade 0.18s ease-out both;
}

.custom-feedback-popup-card {
    position: relative;
    width: min(400px, 100%);
    padding: 34px 30px 26px;
    border-radius: var(--ui-radius);
    color: var(--ui-ink);
    background: var(--ui-surface);
    box-shadow: 0 30px 80px -24px rgb(0 0 0 / 45%);
    font-family: var(--ui-body-font);
    text-align: center;
    animation: tfb-rise 0.24s ease-out both;
}

.custom-feedback-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    color: var(--ui-muted);
    background: transparent;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.custom-feedback-popup-icon {
    display: grid;
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    place-items: center;
    border-radius: 50%;
    color: #15803d;
    background: #dcfce7;
    font-size: 30px;
    font-weight: 800;
}

.custom-feedback-popup.error .custom-feedback-popup-icon {
    color: #b91c1c;
    background: #fee2e2;
}

.custom-feedback-popup-card h2 {
    margin: 0 0 6px;
    color: var(--ui-ink);
    font-family: var(--ui-heading-font);
    font-size: 23px;
}

.custom-feedback-popup-card p {
    margin: 0;
    color: var(--ui-muted);
    font-size: 14px;
    line-height: 1.6;
}

.custom-feedback-popup-button {
    width: 100%;
    margin-top: 22px;
    padding: 12px 18px;
    border: 0;
    border-radius: var(--ui-radius-sm);
    color: var(--ui-on-accent);
    background: var(--ui-accent);
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

.custom-feedback-popup.error .custom-feedback-popup-button {
    color: #fff;
    background: #b91c1c;
}

/* ---------- 4. File picker ---------- */

.file-picker {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 74px;
    padding: 12px 14px;
    border: 1.5px dashed var(--ui-line);
    border-radius: var(--ui-radius-sm);
    color: var(--ui-ink);
    background: var(--ui-field-bg);
    font-family: var(--ui-body-font);
    line-height: 1.4;
    text-align: left;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.file-picker:hover,
.file-picker.is-dragover {
    border-color: var(--ui-accent);
    background: color-mix(in srgb, var(--ui-accent) 4%, var(--ui-field-bg));
}

.file-picker:focus-within {
    border-color: var(--ui-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ui-accent) 14%, transparent);
}

.file-picker[data-state="filled"] {
    border-style: solid;
    background: var(--ui-surface);
}

/* The real input covers the whole box: click, keyboard and drag-and-drop all work natively. */

.file-picker > input[type="file"].file-picker-input {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    cursor: pointer;
    font-size: 0;
}

.file-picker-media {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    overflow: hidden;
    border-radius: calc(var(--ui-radius-sm) - 2px);
    color: var(--ui-accent);
    background: var(--ui-accent-soft);
}

.file-picker-media svg {
    width: 22px;
    height: 22px;
}

.file-picker-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-picker-text {
    display: grid;
    flex: 1;
    min-width: 0;
    gap: 2px;
}

.file-picker-title {
    overflow: hidden;
    color: var(--ui-ink);
    font-size: 14px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-picker-hint {
    overflow: hidden;
    color: var(--ui-muted);
    font-size: 12.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-picker-button {
    flex: 0 0 auto;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--ui-on-accent);
    background: var(--ui-accent);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s;
}

.file-picker:hover .file-picker-button {
    background: var(--ui-accent-hover);
}

.file-picker[data-state="filled"] .file-picker-button {
    color: var(--ui-ink);
    background: var(--ui-accent-soft);
}

.file-picker-clear {
    position: relative;
    z-index: 2;
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--ui-line);
    border-radius: 50%;
    color: var(--ui-muted);
    background: var(--ui-surface);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: color 0.2s, border-color 0.2s;
}

.file-picker-clear:hover {
    border-color: var(--ui-danger);
    color: var(--ui-danger);
}

.file-picker-clear[hidden] {
    display: none;
}

@media (max-width: 420px) {
    .file-picker {
        flex-wrap: wrap;
    }

    .file-picker-button {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tfb-overlay,
    .tfb-modal,
    .custom-feedback-popup,
    .custom-feedback-popup-card,
    .tfb-stars .star.selected {
        animation: none;
    }

    .tfb-close:hover,
    .tfb-submit:hover,
    .tfb-stars .star:hover {
        transform: none;
    }
}

/* ---------- 5. Review carousel ----------
   Any list with [data-review-carousel] becomes a scroll-snap carousel:
   one-up with 1-2 reviews, 2-up on desktop for longer lists. Multiple
   reviews auto-advance and can be swiped / scrolled / driven with controls.
   Built in main.js (initReviewCarousels). !important beats each theme's
   own grid layout for these lists. */

.rc-track {
    --rc-gap: 18px;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: var(--rc-gap) !important;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding: 6px 4px 14px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    columns: auto !important;
    grid-template-columns: none !important;
    transform: none !important;
    transition: none !important;
    scroll-behavior: smooth;
    scroll-padding-inline: 4px;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    contain: inline-size;
    scrollbar-width: none;
    cursor: grab;
}

.rc-track::-webkit-scrollbar {
    display: none;
}

.rc-track.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    scroll-snap-type: none;
    user-select: none;
}

.rc-track > * {
    flex: 0 0 calc((100% - var(--rc-gap)) / 2) !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}

.rc-track.rc-single > * {
    flex-basis: 100% !important;
}

@media (max-width: 680px) {
    .rc-track > * {
        flex-basis: 100% !important;
    }
}

.rc-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 10px;
    color: inherit;
}

.rc-controls[hidden] {
    display: none;
}

.rc-arrow {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    padding: 0;
    border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
    border-radius: 50%;
    color: inherit;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}

.rc-arrow svg {
    display: block;
    width: 18px;
    height: 18px;
}

.rc-arrow:hover {
    border-color: currentColor;
    background: color-mix(in srgb, currentColor 8%, transparent);
}

.rc-dots {
    display: flex;
    align-items: center;
    gap: 7px;
}

.rc-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: color-mix(in srgb, currentColor 25%, transparent);
    cursor: pointer;
    transition: width 0.25s, background 0.25s;
}

.rc-dot.is-active {
    width: 24px;
    background: var(--ui-accent);
}

/* On dark panels the accent may disappear — fall back to the text colour. */

.t6-p-green .rc-dot.is-active {
    background: currentColor;
}

.rc-arrow:focus-visible,
.rc-dot:focus-visible {
    outline: 2px solid var(--ui-accent);
    outline-offset: 2px;
}

/* Theme 1: the slider used to be one white box; give each card its own surface. */

@media (prefers-reduced-motion: reduce) {
    .rc-track {
        scroll-behavior: auto;
    }
}

/* ---------- 5. Project details modal ---------- */

body.tpm-lock {
    overflow: hidden;
}

[data-project-card] {
    cursor: pointer;
}

.tpm-open {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 9px 16px;
    border: 1px solid var(--ui-accent);
    border-radius: 999px;
    color: var(--ui-accent);
    background: transparent;
    font-family: var(--ui-body-font);
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tpm-open svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.tpm-open:hover,
[data-project-card]:hover .tpm-open {
    color: var(--ui-on-accent);
    background: var(--ui-accent);
}

.tpm-open:hover svg,
[data-project-card]:hover .tpm-open svg {
    transform: translateX(3px);
}

.tpm-open:focus-visible {
    outline: 2px solid var(--ui-accent);
    outline-offset: 3px;
}

/* Buttons sitting on a dark image overlay */

.tpm-open.tpm-open--light {
    border-color: rgb(255 255 255 / 70%);
    color: #ffffff;
}

.tpm-open.tpm-open--light:hover,
[data-project-card]:hover .tpm-open.tpm-open--light {
    color: var(--ui-ink);
    background: #ffffff;
}

.tpm-overlay {
    position: fixed;
    inset: 0;
    z-index: 1060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: var(--ui-overlay);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: tfb-fade 0.2s ease-out both;
}

.tpm-overlay[hidden] {
    display: none;
}

.tpm-modal {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    width: min(960px, 100%);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow: hidden;
    border-radius: calc(var(--ui-radius) + 6px);
    color: var(--ui-ink);
    background: var(--ui-surface);
    font-family: var(--ui-body-font);
    box-shadow: 0 30px 80px -20px rgb(0 0 0 / 45%);
    animation: tfb-rise 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.tpm-modal.is-text-only {
    grid-template-columns: minmax(0, 1fr);
    width: min(620px, 100%);
}

.tpm-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--ui-ink);
    background: rgb(255 255 255 / 90%);
    box-shadow: 0 4px 14px rgb(0 0 0 / 18%);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.tpm-close svg {
    width: 20px;
    height: 20px;
}

.tpm-close:hover {
    transform: rotate(90deg);
    background: #ffffff;
}

.tpm-close:focus-visible {
    outline: 2px solid var(--ui-accent);
    outline-offset: 2px;
}

.tpm-media {
    min-height: 100%;
    margin: 0;
    background: var(--ui-accent-soft);
}

.tpm-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}

.tpm-body {
    overflow-y: auto;
    padding: 40px 36px 36px;
}

.tpm-category {
    display: inline-block;
    margin-bottom: 14px;
    padding: 5px 12px;
    border-radius: 999px;
    color: var(--ui-accent);
    background: var(--ui-accent-soft);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tpm-title {
    margin: 0 0 14px;
    padding-right: 32px;
    color: var(--ui-ink);
    font-family: var(--ui-heading-font);
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    line-height: 1.15;
}

.tpm-summary,
.tpm-description {
    margin: 0 0 14px;
    color: var(--ui-muted);
    font-size: 0.98rem;
    line-height: 1.7;
    white-space: pre-line;
}

.tpm-summary {
    color: var(--ui-ink);
    font-weight: 500;
}

.tpm-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0 0;
    padding-top: 22px;
    border-top: 1px solid var(--ui-line);
}

.tpm-details > div {
    padding: 12px 14px;
    border-radius: var(--ui-radius-sm);
    background: var(--ui-field-bg);
}

.tpm-details dt {
    margin-bottom: 4px;
    color: var(--ui-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tpm-details dd {
    margin: 0;
    color: var(--ui-ink);
    font-size: 0.94rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.tpm-modal [hidden] {
    display: none !important;
}

@media (max-width: 760px) {
    .tpm-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .tpm-modal {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        max-height: 92vh;
        max-height: 92dvh;
        overflow-y: auto;
        border-radius: calc(var(--ui-radius) + 6px) calc(var(--ui-radius) + 6px) 0 0;
        animation-name: tfb-sheet;
    }

    .tpm-media img {
        min-height: 0;
        max-height: 260px;
    }

    .tpm-body {
        overflow: visible;
        padding: 26px 20px 28px;
    }

    .tpm-details {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .tpm-overlay,
    .tpm-modal,
    .tpm-open,
    .tpm-open svg,
    .tpm-close {
        animation: none;
        transition: none;
    }
}
