/* ============================
   BRAND COLOURS
   ============================ */
:root {
    --brand-blue-dark: #001b3d;
    --brand-blue: #003c7a;
    --brand-blue-soft: #e7eef9;

    --brand-orange: #e67e22;
    --brand-orange-border: #f39c12;

    --brand-green: #2ecc71;
    --brand-green-dark: #146c35;

    --brand-yellow: #ffd966;
}

/* ============================
   BASE
   ============================ */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: #f5f7fa;
    color: #222222;
}

a {
    text-decoration: none;
}

/* Shared container to centre content */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ============================
   HEADER
   ============================ */

/* Overall header */
.site-header {
    background: var(--brand-blue-dark);
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* --- Top contact strip --- */
.header-top {
    background: #020c1f;
}

.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
}

.header-top-left {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.header-top-right {
    font-weight: 600;
}

/* Clickable links in top bar: white, green on hover */
.header-link {
    color: #ffffff;
    cursor: pointer;
}

.header-link:hover {
    color: var(--brand-green);
}

/* Rating text */
.header-rating {
    color: var(--brand-yellow);
    font-weight: 600;
    font-size: 13px;
}

/* --- Main header bar with logo & nav --- */
.header-main {
    background: var(--brand-blue-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 3px solid rgba(46, 204, 113, 0.35);
}

.header-main-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 0 14px;
}

/* Logo + text */
.site-logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Simple circle with white background */
.logo-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    padding: 6px;
    background: #ffffff;
    border: 2px solid #dde3ee;
    box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

.logo-circle img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-line-1 {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.05em;
}

.logo-line-2 {
    font-size: 12px;
    opacity: 0.9;
}

/* NAVIGATION – TWO GROUPS OF BUTTONS */
.main-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;          /* space between the two groups */
}

.nav-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;           /* space between buttons within a group */
}

/* Base button style – all framed */
.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    font-size: 14px;
    border-radius: 999px;
    border: 2px solid #ffffff;
    color: #ffffff;
    background: transparent;
    transition:
        background 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.12s ease;
    white-space: nowrap;
}

/* GROUP 1: ORANGE OUTLINE (Home / Browse / Terms) */
.nav-btn-orange {
    border-color: var(--brand-orange-border);
}

/* GROUP 2: GREEN OUTLINE (Login / Register / Admin) */
.nav-btn-green {
    border-color: var(--brand-green);
}

/* Hover / pressed – ALL buttons turn yellow with dark text */
.nav-btn:hover,
.nav-btn:active {
    background: var(--brand-yellow);
    border-color: var(--brand-yellow);
    color: #001b3d;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
    transform: translateY(-1px);
}

/* Admin a little bolder */
.admin-btn {
    font-weight: 600;
}

/* ============================
   HERO (page heading band)
   ============================ */
.hero {
    background: #ffffff;
    border-bottom: 1px solid #dde3ee;
}

.hero-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 16px 20px;
}

.hero-inner h1 {
    margin: 0 0 8px;
    font-size: 26px;
    color: #003366;
}

.hero-inner p {
    margin: 0;
    font-size: 15px;
    color: #555555;
}

/* ============================
   HOME PAGE CARDS
   ============================ */
.cards-section {
    padding: 32px 0 40px;
    background: #f5f7fa;
}

.cards-section #services {
    scroll-margin-top: 140px;
}

.portal-grid {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.portal-card {
    display: block;
    background: #ffffff;
    border-radius: 10px;
    padding: 18px 20px;
    text-decoration: none;
    border: 1px solid #e0e4ef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.portal-card h2 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #003366;
}

.portal-card p {
    margin: 0;
    font-size: 14px;
    color: #555555;
}

.portal-card:hover {
    transform: translateY(-3px);
    border-color: var(--brand-green);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

/* ============================
   GENERIC PAGE SECTIONS
   ============================ */
.page-section {
    padding: 32px 0 40px;
    background: #ffffff;
}

.page-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
}

.page-inner h1,
.page-inner h2 {
    color: #003366;
}

.page-inner p {
    font-size: 14px;
    color: #555555;
}

.page-inner ul {
    font-size: 14px;
    color: #555555;
}

/* ============================
   FORMS
   ============================ */
form {
    margin: 16px 0;
}

label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    color: #333333;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    max-width: 500px;
    padding: 8px 10px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #cfd4e3;
    margin-bottom: 10px;
    font-family: inherit;
}

textarea {
    min-height: 80px;
}

button,
input[type="submit"] {
    background: var(--brand-blue);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 8px 14px;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s ease, transform 0.1s ease;
}

button:hover,
input[type="submit"]:hover {
    background: var(--brand-green);
    transform: translateY(-1px);
}

/* ============================
   TABLES
   ============================ */
table {
    border-collapse: collapse;
    width: 100%;
    max-width: 100%;
}

th,
td {
    border: 1px solid #dde3ee;
    padding: 6px 8px;
    font-size: 13px;
}

th {
    background: #f0f3fa;
    text-align: left;
}

/* ============================
   FOOTER
   ============================ */
.site-footer {
    background: var(--brand-blue-dark);
    color: #ffffff;
    font-size: 12px;
    text-align: center;
    padding: 10px 16px;
    margin-top: 20px;
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
}

/* ============================
   RESPONSIVE
   ============================ */

/* Medium screens – stack logo above nav if needed */
@media (max-width: 900px) {
    .header-main-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .main-nav {
        justify-content: flex-start;
        width: 100%;
    }
}

/* Tablets & large phones */
@media (max-width: 700px) {
    .header-top-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .header-top-left {
        justify-content: flex-start;
    }

    .logo-line-1 {
        font-size: 16px;
    }

    .logo-line-2 {
        font-size: 11px;
    }

    .main-nav {
        justify-content: center;
        gap: 12px;
    }

    .nav-group {
        justify-content: center;
    }

    .nav-btn {
        font-size: 13px;
        padding: 5px 12px;
    }

    .hero-inner h1 {
        font-size: 22px;
    }
}

/* Small phones – keep everything readable, allow wrapping nicely */
@media (max-width: 480px) {
    .header-main-inner {
        align-items: center;
    }

    .site-logo {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .logo-circle {
        width: 56px;
        height: 56px;
    }

    .logo-line-1 {
        font-size: 15px;
    }

    .logo-line-2 {
        font-size: 11px;
    }

    .main-nav {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .nav-group {
        justify-content: center;
    }

    .nav-btn {
        width: 100%;
        max-width: 260px;    /* two neat columns at most */
        text-align: center;
    }

    .portal-grid {
        grid-template-columns: 1fr;  /* cards one per row */
    }
}
/* ===============================
   HERO SECTION — FINAL FIXED STYLE
   =============================== */

/* Ensure the whole hero section aligns left */
.hero-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 16px 20px;
    text-align: left;     /* Fix alignment */
}

/* Title aligned left */
.hero-title {
    margin: 0 0 6px 0;
    font-size: 26px;
    color: #003366;
    text-align: left;     /* Make sure title is left */
}

/* SEO keyword sentence aligned left below title */
.hero-subtext {
    font-size: 16px;
    font-weight: 500;
    color: #003C7A;      /* Blue line */
    line-height: 1.45;
    text-align: left;    /* Force left alignment */
    margin: 6px 0 0 0;
    padding: 0;
}

/* Keyword links */
.hero-subtext .kw {
    color: #003C7A;      /* Default blue */
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    padding-bottom: 1px;
    transition: 0.25s ease;
}

/* Hover = green underline + green text */
.hero-subtext .kw:hover {
    color: #1CB55E;
    border-bottom: 2px solid #1CB55E;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .hero-title {
        font-size: 22px;
    }
    .hero-subtext {
        font-size: 14px;
        line-height: 1.4;
    }
}/* ============================
   FOOTER – CORPORATE LAYOUT
   ============================ */

.site-footer {
    background: var(--brand-blue-dark);
    color: #ffffff;
    font-size: 12px;
    padding: 12px 16px 14px;
    margin-top: 20px;
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.footer-left {
    opacity: 0.9;
}

.footer-right {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-right a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

.footer-right a:hover {
    color: var(--brand-yellow);
    text-decoration: underline;
}

.footer-sep,
.footer-dot {
    opacity: 0.6;
}

.footer-sub {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    opacity: 0.85;
}

/* Mobile footer stacking */
@media (max-width: 600px) {
    .footer-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-sub {
        flex-direction: column;
        align-items: flex-start;
    }
}/* ============================
   FORMS – CENTRED ON PAGE
   ============================ */
form {
    margin: 20px auto;
    max-width: 600px;          /* keeps forms neat in the middle */
}

/* ============================
   TABLES – CENTRED ON PAGE
   ============================ */
table {
    border-collapse: collapse;
    width: 100%;
    max-width: 900px;          /* narrower and centred */
    margin: 0 auto 16px;       /* centre horizontally */
}

/* Keep existing th/td styles as they are */

/* ============================
   PAGE NAVIGATION ARROWS
   ============================ */
.page-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    max-width: 600px;
    margin: 30px auto 0;
}

.page-nav-btn {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 2px solid var(--brand-blue);
    color: var(--brand-blue);
    font-size: 14px;
    font-weight: 500;
    background: #ffffff;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.page-nav-btn:hover {
    background: var(--brand-green);
    border-color: var(--brand-green);
    color: #001b3d;
    transform: translateY(-1px);
}

/* Mobile: stack arrows vertically */
@media (max-width: 700px) {
    .page-nav {
        flex-direction: column;
    }
}/* Auth pages (login / register) */
.form-inner.narrow {
    max-width: 480px;
    margin: 0 auto;
}

.auth-form .form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.auth-form .btn-secondary {
    border: 1px solid #1e88e5;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.95rem;
}
.auth-form .btn-secondary:hover {
    background: #1e88e5;
    color: #fff;
}/* Multi-step registration wizard */
.ms-step {
    display: none;
}

.ms-step:first-child {
    display: block;
}

.ms-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
/* Sell page layout */
.sell-form .sell-section {
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: #ffffff;
}

.sell-form .sell-section h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.15rem;
}

.card-points {
    margin: 0.5rem 0 0;
    padding-left: 1.1rem;
    font-size: 0.95rem;
}
.card-points li {
    margin-bottom: 0.25rem;
}

.required {
    color: #d9534f;
    font-weight: 600;
}

/* Two-column card layout on sell page */
.cards-grid.two-cols {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Responsive tweaks for narrow screens */
@media (max-width: 768px) {
    .sell-form .sell-section {
        padding: 1rem;
    }
}/* SELL PAGE OPTIONS – reuse index card style */
.sell-options .cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.sell-options .card-option ul {
    margin: 0.75rem 0 1rem;
    padding-left: 1.2rem;
    font-size: 0.95rem;
}

.sell-options .card-option li {
    margin-bottom: 0.25rem;
}

.form-fieldset {
    border: 1px solid #e1e8f0;
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    background: #f9fbfd;
}

.form-fieldset legend {
    font-weight: 600;
    padding: 0 0.4rem;
}

.required {
    color: #d9534f;
}

/* Sell page – two card columns inside the quick enquiry form */
.sell-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
}

.sell-column {
    flex: 1 1 260px;
    min-width: 0;
    background: #ffffff;
    border-radius: var(--radius-card);
    padding: 1.2rem 1.3rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(15, 23, 42, 0.04);
}

.sell-column h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

/* On small screens the columns stack nicely */
@media (max-width: 768px) {
    .sell-column {
        padding: 1rem;
    }
}/* Sell page – option cards */
.sell-options-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.sell-option-card ul {
    margin: 0.7rem 0 0.2rem;
    padding-left: 1.2rem;
    font-size: 0.95rem;
}
.sell-option-card li {
    margin-bottom: 0.2rem;
}

/* Sell page – form cards (stacked, clear sections) */
.sell-form-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin-top: 1rem;
}

.card-form {
    padding: 1.2rem 1.3rem;
}

.card-form h3 {
    margin-top: 0;
    margin-bottom: 0.7rem;
    font-size: 1.05rem;
}

.required {
    color: #d32f2f;
    font-weight: 600;
}
/* =========================
   MOBILE IMPROVEMENTS
   ========================= */
@media (max-width: 820px) {

  /* Top bar: stack items */
  .header-top-inner {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .header-top-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  /* Main header layout */
  .header-main-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Nav: allow wrapping */
  .main-nav {
    width: 100%;
  }
  .nav-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }

  /* Buttons: slightly smaller */
  .nav-btn {
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 999px;
  }

  /* Hero spacing + text size */
  .hero-inner {
    padding: 18px 14px;
  }
  .hero-title {
    font-size: 22px;
    line-height: 1.2;
  }
  .hero-subtext {
    font-size: 14px;
    line-height: 1.5;
  }

  /* Cards grid: 1 column on mobile */
  .portal-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
    padding: 0 12px;
  }

  /* Card padding */
  .portal-card {
    padding: 16px;
  }
.machine-thumb {
    flex: 0 0 140px;
}

.machine-thumb {
    flex: 0 0 90px;
}

/* ============================
   BRAND COLOURS
   ============================ */
:root {
    --brand-blue-dark: #001b3d;
    --brand-blue: #003c7a;
    --brand-blue-soft: #e7eef9;

    --brand-orange: #e67e22;
    --brand-orange-border: #f39c12;

    --brand-green: #2ecc71;
    --brand-green-dark: #146c35;

    --brand-yellow: #ffd966;
}

/* ============================
   BASE
   ============================ */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: #f5f7fa;
    color: #222222;
}

a {
    text-decoration: none;
}

/* Shared container to centre content */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ============================
   HEADER
   ============================ */

/* Overall header */
.site-header {
    background: var(--brand-blue-dark);
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* --- Top contact strip --- */
.header-top {
    background: #020c1f;
}

.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
}

.header-top-left {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.header-top-right {
    font-weight: 600;
}

/* Clickable links in top bar: white, green on hover */
.header-link {
    color: #ffffff;
    cursor: pointer;
}

.header-link:hover {
    color: var(--brand-green);
}

/* Rating text */
.header-rating {
    color: var(--brand-yellow);
    font-weight: 600;
    font-size: 13px;
}

/* --- Main header bar with logo & nav --- */
.header-main {
    background: var(--brand-blue-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 3px solid rgba(46, 204, 113, 0.35);
}

.header-main-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 0 14px;
}

/* Logo + text */
.site-logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Simple circle with white background */
.logo-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    padding: 6px;
    background: #ffffff;
    border: 2px solid #dde3ee;
    box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

.logo-circle img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-line-1 {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.05em;
}

.logo-line-2 {
    font-size: 12px;
    opacity: 0.9;
}

/* NAVIGATION – TWO GROUPS OF BUTTONS */
.main-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;          /* space between the two groups */
}

.nav-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;           /* space between buttons within a group */
}

/* Base button style – all framed */
.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    font-size: 14px;
    border-radius: 999px;
    border: 2px solid #ffffff;
    color: #ffffff;
    background: transparent;
    transition:
        background 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.12s ease;
    white-space: nowrap;
}

/* GROUP 1: ORANGE OUTLINE (Home / Browse / Terms) */
.nav-btn-orange {
    border-color: var(--brand-orange-border);
}

/* GROUP 2: GREEN OUTLINE (Login / Register / Admin) */
.nav-btn-green {
    border-color: var(--brand-green);
}

/* Hover / pressed – ALL buttons turn yellow with dark text */
.nav-btn:hover,
.nav-btn:active {
    background: var(--brand-yellow);
    border-color: var(--brand-yellow);
    color: #001b3d;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
    transform: translateY(-1px);
}

/* Admin a little bolder */
.admin-btn {
    font-weight: 600;
}

/* ============================
   HERO (page heading band)
   ============================ */
.hero {
    background: #ffffff;
    border-bottom: 1px solid #dde3ee;
}

.hero-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 16px 20px;
}

.hero-inner h1 {
    margin: 0 0 8px;
    font-size: 26px;
    color: #003366;
}

.hero-inner p {
    margin: 0;
    font-size: 15px;
    color: #555555;
}

/* ============================
   HOME PAGE CARDS
   ============================ */
.cards-section {
    padding: 32px 0 40px;
    background: #f5f7fa;
}

.cards-section #services {
    scroll-margin-top: 140px;
}

.portal-grid {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.portal-card {
    display: block;
    background: #ffffff;
    border-radius: 10px;
    padding: 18px 20px;
    text-decoration: none;
    border: 1px solid #e0e4ef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.portal-card h2 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #003366;
}

.portal-card p {
    margin: 0;
    font-size: 14px;
    color: #555555;
}

.portal-card:hover {
    transform: translateY(-3px);
    border-color: var(--brand-green);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

/* ============================
   GENERIC PAGE SECTIONS
   ============================ */
.page-section {
    padding: 32px 0 40px;
    background: #ffffff;
}

.page-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
}

.page-inner h1,
.page-inner h2 {
    color: #003366;
}

.page-inner p {
    font-size: 14px;
    color: #555555;
}

.page-inner ul {
    font-size: 14px;
    color: #555555;
}

/* ============================
   FORMS
   ============================ */
form {
    margin: 16px 0;
}

label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    color: #333333;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    max-width: 500px;
    padding: 8px 10px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #cfd4e3;
    margin-bottom: 10px;
    font-family: inherit;
}

textarea {
    min-height: 80px;
}

button,
input[type="submit"] {
    background: var(--brand-blue);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 8px 14px;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s ease, transform 0.1s ease;
}

button:hover,
input[type="submit"]:hover {
    background: var(--brand-green);
    transform: translateY(-1px);
}

/* ============================
   TABLES
   ============================ */
table {
    border-collapse: collapse;
    width: 100%;
    max-width: 100%;
}

th,
td {
    border: 1px solid #dde3ee;
    padding: 6px 8px;
    font-size: 13px;
}

th {
    background: #f0f3fa;
    text-align: left;
}

/* ============================
   FOOTER
   ============================ */
.site-footer {
    background: var(--brand-blue-dark);
    color: #ffffff;
    font-size: 12px;
    text-align: center;
    padding: 10px 16px;
    margin-top: 20px;
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
}

/* ============================
   RESPONSIVE
   ============================ */

/* Medium screens – stack logo above nav if needed */
@media (max-width: 900px) {
    .header-main-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .main-nav {
        justify-content: flex-start;
        width: 100%;
    }
}

/* Tablets & large phones */
@media (max-width: 700px) {
    .header-top-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .header-top-left {
        justify-content: flex-start;
    }

    .logo-line-1 {
        font-size: 16px;
    }

    .logo-line-2 {
        font-size: 11px;
    }

    .main-nav {
        justify-content: center;
        gap: 12px;
    }

    .nav-group {
        justify-content: center;
    }

    .nav-btn {
        font-size: 13px;
        padding: 5px 12px;
    }

    .hero-inner h1 {
        font-size: 22px;
    }
}

/* Small phones – keep everything readable, allow wrapping nicely */
@media (max-width: 480px) {
    .header-main-inner {
        align-items: center;
    }

    .site-logo {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .logo-circle {
        width: 56px;
        height: 56px;
    }

    .logo-line-1 {
        font-size: 15px;
    }

    .logo-line-2 {
        font-size: 11px;
    }

    .main-nav {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .nav-group {
        justify-content: center;
    }

    .nav-btn {
        width: 100%;
        max-width: 260px;    /* two neat columns at most */
        text-align: center;
    }

    .portal-grid {
        grid-template-columns: 1fr;  /* cards one per row */
    }
}
/* ===============================
   HERO SECTION — FINAL FIXED STYLE
   =============================== */

/* Ensure the whole hero section aligns left */
.hero-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 16px 20px;
    text-align: left;     /* Fix alignment */
}

/* Title aligned left */
.hero-title {
    margin: 0 0 6px 0;
    font-size: 26px;
    color: #003366;
    text-align: left;     /* Make sure title is left */
}

/* SEO keyword sentence aligned left below title */
.hero-subtext {
    font-size: 16px;
    font-weight: 500;
    color: #003C7A;      /* Blue line */
    line-height: 1.45;
    text-align: left;    /* Force left alignment */
    margin: 6px 0 0 0;
    padding: 0;
}

/* Keyword links */
.hero-subtext .kw {
    color: #003C7A;      /* Default blue */
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    padding-bottom: 1px;
    transition: 0.25s ease;
}

/* Hover = green underline + green text */
.hero-subtext .kw:hover {
    color: #1CB55E;
    border-bottom: 2px solid #1CB55E;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .hero-title {
        font-size: 22px;
    }
    .hero-subtext {
        font-size: 14px;
        line-height: 1.4;
    }
}/* ============================
   FOOTER – CORPORATE LAYOUT
   ============================ */

.site-footer {
    background: var(--brand-blue-dark);
    color: #ffffff;
    font-size: 12px;
    padding: 12px 16px 14px;
    margin-top: 20px;
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.footer-left {
    opacity: 0.9;
}

.footer-right {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-right a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

.footer-right a:hover {
    color: var(--brand-yellow);
    text-decoration: underline;
}

.footer-sep,
.footer-dot {
    opacity: 0.6;
}

.footer-sub {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    opacity: 0.85;
}

/* Mobile footer stacking */
@media (max-width: 600px) {
    .footer-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-sub {
        flex-direction: column;
        align-items: flex-start;
    }
}/* ============================
   FORMS – CENTRED ON PAGE
   ============================ */
form {
    margin: 20px auto;
    max-width: 600px;          /* keeps forms neat in the middle */
}

/* ============================
   TABLES – CENTRED ON PAGE
   ============================ */
table {
    border-collapse: collapse;
    width: 100%;
    max-width: 900px;          /* narrower and centred */
    margin: 0 auto 16px;       /* centre horizontally */
}

/* Keep existing th/td styles as they are */

/* ============================
   PAGE NAVIGATION ARROWS
   ============================ */
.page-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    max-width: 600px;
    margin: 30px auto 0;
}

.page-nav-btn {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 2px solid var(--brand-blue);
    color: var(--brand-blue);
    font-size: 14px;
    font-weight: 500;
    background: #ffffff;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.page-nav-btn:hover {
    background: var(--brand-green);
    border-color: var(--brand-green);
    color: #001b3d;
    transform: translateY(-1px);
}

/* Mobile: stack arrows vertically */
@media (max-width: 700px) {
    .page-nav {
        flex-direction: column;
    }
}/* Auth pages (login / register) */
.form-inner.narrow {
    max-width: 480px;
    margin: 0 auto;
}

.auth-form .form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.auth-form .btn-secondary {
    border: 1px solid #1e88e5;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.95rem;
}
.auth-form .btn-secondary:hover {
    background: #1e88e5;
    color: #fff;
}/* Multi-step registration wizard */
.ms-step {
    display: none;
}

.ms-step:first-child {
    display: block;
}

.ms-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
/* Sell page layout */
.sell-form .sell-section {
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: #ffffff;
}

.sell-form .sell-section h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.15rem;
}

.card-points {
    margin: 0.5rem 0 0;
    padding-left: 1.1rem;
    font-size: 0.95rem;
}
.card-points li {
    margin-bottom: 0.25rem;
}

.required {
    color: #d9534f;
    font-weight: 600;
}

/* Two-column card layout on sell page */
.cards-grid.two-cols {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Responsive tweaks for narrow screens */
@media (max-width: 768px) {
    .sell-form .sell-section {
        padding: 1rem;
    }
}/* SELL PAGE OPTIONS – reuse index card style */
.sell-options .cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.sell-options .card-option ul {
    margin: 0.75rem 0 1rem;
    padding-left: 1.2rem;
    font-size: 0.95rem;
}

.sell-options .card-option li {
    margin-bottom: 0.25rem;
}

.form-fieldset {
    border: 1px solid #e1e8f0;
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    background: #f9fbfd;
}

.form-fieldset legend {
    font-weight: 600;
    padding: 0 0.4rem;
}

.required {
    color: #d9534f;
}

/* Sell page – two card columns inside the quick enquiry form */
.sell-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
}

.sell-column {
    flex: 1 1 260px;
    min-width: 0;
    background: #ffffff;
    border-radius: var(--radius-card);
    padding: 1.2rem 1.3rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(15, 23, 42, 0.04);
}

.sell-column h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

/* On small screens the columns stack nicely */
@media (max-width: 768px) {
    .sell-column {
        padding: 1rem;
    }
}/* Sell page – option cards */
.sell-options-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.sell-option-card ul {
    margin: 0.7rem 0 0.2rem;
    padding-left: 1.2rem;
    font-size: 0.95rem;
}
.sell-option-card li {
    margin-bottom: 0.2rem;
}

/* Sell page – form cards (stacked, clear sections) */
.sell-form-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin-top: 1rem;
}

.card-form {
    padding: 1.2rem 1.3rem;
}

.card-form h3 {
    margin-top: 0;
    margin-bottom: 0.7rem;
    font-size: 1.05rem;
}

.required {
    color: #d32f2f;
    font-weight: 600;
}
/* =========================
   MOBILE IMPROVEMENTS
   ========================= */
@media (max-width: 820px) {

  /* Top bar: stack items */
  .header-top-inner {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .header-top-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  /* Main header layout */
  .header-main-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Nav: allow wrapping */
  .main-nav {
    width: 100%;
  }
  .nav-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }

  /* Buttons: slightly smaller */
  .nav-btn {
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 999px;
  }

  /* Hero spacing + text size */
  .hero-inner {
    padding: 18px 14px;
  }
  .hero-title {
    font-size: 22px;
    line-height: 1.2;
  }
  .hero-subtext {
    font-size: 14px;
    line-height: 1.5;
  }

  /* Cards grid: 1 column on mobile */
  .portal-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
    padding: 0 12px;
  }

  /* Card padding */
  .portal-card {
    padding: 16px;
  }
.machine-thumb {
    flex: 0 0 140px;
}

.machine-thumb {
    flex: 0 0 90px;
}

.machine-thumb img {
    width: 90px;
    height: 70px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #e1e6ef;
    background: #fff;
    padding: 4px;
}
  
