/* ==========================================================
   Instant Holdings Limited — Stylesheet
   ========================================================== */

:root {
    --brand: #b82208;
    --brand-dark: #8f1a06;
    --brand-light: #e53b1c;
    --navy: #14213d;
    --navy-2: #1f2d4f;
    --ink: #1f2937;
    --text: #4b5563;
    --muted: #6b7280;
    --line: #e5e7eb;
    --bg: #f5f6f8;
    --card: #ffffff;
    --radius: 10px;
    --shadow-sm: 0 1px 3px rgba(17, 24, 39, 0.06);
    --shadow-md: 0 8px 24px rgba(17, 24, 39, 0.08);
    --shadow-lg: 0 20px 50px rgba(17, 24, 39, 0.12);
    --font-sans: 'Inter', Arial, Helvetica, sans-serif;
    --font-serif: 'Source Serif 4', Georgia, serif;
}

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Update your existing body tag */
body {
    font-family: var(--font-sans);
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;

    /* Add these 3 lines for the sticky footer */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


a {
    color: inherit;
}

/* ---------- Hero banner ---------- */
.hero-banner {
    position: relative;
    background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=2070&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
    background-color: var(--navy);
    padding-top: 90px;
    /* room for the fixed header */
    padding-bottom: 150px;
    color: #fff;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(110deg, rgba(20, 33, 61, 0.96) 0%, rgba(20, 33, 61, 0.88) 45%, rgba(143, 26, 6, 0.72) 100%);
    z-index: 1;
}

/* ---------- Header ---------- */
.integrated-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 22px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease;
}

/* Solid background once the page is scrolled */
.integrated-header.scrolled {
    background-color: rgba(20, 33, 61, 0.97);
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-bottom-color: transparent;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo-box {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-text {
    display: block;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1.2px;
    line-height: 1.2;
    text-align: center;
}

.logo-text small {
    display: block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 4px;
    margin-right: -4px;
    /* offsets trailing letter-spacing so it centres exactly */
    color: rgba(255, 255, 255, 0.7);
}

/* Navigation */
.top-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-nav ul li {
    position: relative;
}

.top-nav>ul>li>a {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 9px 14px;
    border-radius: 6px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.top-nav>ul>li>a:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.08);
}

.top-nav>ul>li>a.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 -2px 0 var(--brand-light);
}

.top-nav>ul>li>a.nav-cta {
    background-color: var(--brand);
    color: #fff;
    margin-left: 8px;
}

.top-nav>ul>li>a.nav-cta:hover {
    background-color: var(--brand-light);
}

.arrow-down {
    width: 7px;
    height: 7px;
    margin-left: 8px;
    margin-top: -3px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.dropdown:hover .arrow-down,
.dropdown.open .arrow-down {
    transform: rotate(225deg);
    margin-top: 3px;
}

/* Dropdown */
.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    padding: 8px;
    margin-top: 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 100;
}

/* Invisible bridge so the menu doesn't close in the gap */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.dropdown-content a {
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--ink);
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.dropdown-content a:hover {
    background-color: #fdf1ee;
    color: var(--brand);
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content,
.dropdown.open .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    padding: 10px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

/* Hero text */
.hero-content {
    position: relative;
    z-index: 5;
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 24px 0;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    margin-bottom: 22px;
}

.hero-content h1 {
    font-family: var(--font-serif);
    font-size: clamp(32px, 4.6vw, 52px);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 18px;
}

.hero-content p {
    max-width: 560px;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.8);
}

.main-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 80px;

    /* Add these 2 lines to push the footer down */
    flex-grow: 1;
    width: 100%;
}

.content-card {
    position: relative;
    z-index: 10;
    margin-top: -50px;
    padding: 56px;
    background-color: var(--card);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
}

/* Fact strip */
.fact-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 52px;
    overflow: hidden;
}

.fact {
    padding: 20px 24px;
    background: #fafbfc;
}

.fact+.fact {
    border-left: 1px solid var(--line);
}

.fact-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--muted);
    margin-bottom: 6px;
}

.fact-value {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    word-break: break-word;
}

/* Sections */
.overview-section,
.leadership-section {
    margin-bottom: 52px;
}

.leadership-section {
    margin-bottom: 0;
}

.section-kicker {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 8px;
}

h2 {
    font-family: var(--font-serif);
    font-size: 30px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.25;
    margin-bottom: 14px;
}

h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
    margin: 40px 0 18px;
}

.divider {
    width: 56px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--brand-light));
    border-radius: 2px;
    margin-bottom: 24px;
}

p {
    font-size: 16px;
    color: var(--text);
    line-height: 1.75;
    margin-bottom: 15px;
    max-width: 100%;
}

/* Board grid */
.board-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.board-member {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.board-member:hover {
    border-color: #f1c7bf;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.avatar {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(160deg, var(--navy-2), var(--navy));
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.member-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.35;
    margin-bottom: 4px;
}

.member-info p {
    font-size: 13.5px;
    color: var(--text);
    line-height: 1.45;
    margin-bottom: 8px;
}

.member-info span {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 4px;
    font-variant-numeric: tabular-nums;
}

/* Documents */
.documents-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    word-break: break-word;
}

.doc-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background-color: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.doc-card:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-md);
}

.pdf-icon {
    flex-shrink: 0;
    width: 42px;
    height: 48px;
    display: grid;
    place-items: center;
    background: #fdf1ee;
    color: var(--brand);
    border: 1px solid #f6d3cb;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.doc-title {
    flex-grow: 1;
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.download-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 8px;
    color: var(--muted);
    border-radius: 50%;
    background: #f3f4f6;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.doc-card:hover .download-icon {
    color: #fff;
    background-color: var(--brand);
}

/* ---------- Footer ---------- */
.main-footer {
    background-color: var(--navy);
    color: rgba(255, 255, 255, 0.65);
    padding: 28px 24px;
    font-size: 13.5px;
    border-top: 3px solid var(--brand);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
}

/* Keyboard focus */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--brand-light);
    outline-offset: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .board-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .top-nav {
        position: absolute;
        top: 100%;
        left: 16px;
        right: 16px;
        margin-top: 8px;
        background: #fff;
        border-radius: 10px;
        box-shadow: var(--shadow-lg);
        padding: 8px;
        display: none;
    }

    .top-nav.open {
        display: block;
    }

    .top-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }

    .top-nav>ul>li>a,
    .top-nav>ul>li>a.active {
        display: flex;
        justify-content: space-between;
        color: var(--ink);
        background: none;
        box-shadow: none;
        padding: 12px 14px;
    }

    .top-nav>ul>li>a.active {
        color: var(--brand);
        background: #fdf1ee;
    }

    .top-nav>ul>li>a:hover {
        color: var(--brand);
        background: #f9fafb;
    }

    .top-nav>ul>li>a.nav-cta {
        justify-content: center;
        color: #fff;
        background: var(--brand);
        margin: 6px 0 0;
    }

    /* Dropdowns become inline accordions on mobile */
    .dropdown-content,
    .dropdown:hover .dropdown-content {
        position: static;
        box-shadow: none;
        margin: 0;
        padding: 0 0 6px 12px;
        min-width: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .dropdown.open .dropdown-content {
        display: block;
    }

    .dropdown:hover .arrow-down {
        transform: rotate(45deg);
        margin-top: -3px;
    }

    .dropdown.open .arrow-down {
        transform: rotate(225deg);
        margin-top: 3px;
    }

    .hero-content {
        padding-top: 56px;
    }

    .content-card {
        padding: 36px 24px;
    }

    .fact-strip {
        grid-template-columns: 1fr;
    }

    .fact+.fact {
        border-left: none;
        border-top: 1px solid var(--line);
    }

    .documents-links {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 600px) {

    .header-container,
    .hero-content,
    .main-wrapper {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-banner {
        padding-bottom: 120px;
    }

    .hero-content p {
        font-size: 15.5px;
    }

    .board-grid {
        grid-template-columns: 1fr;
    }

    h2 {
        font-size: 25px;
    }

    .logo-text {
        font-size: 14px;
    }
}

/* ==========================================================
   Page Layout Additions (Sidebar Tabs & Content Area)
   ========================================================== */

.page-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    padding: 40px;
    /* Tightens the generic card padding for the inner layout */
}

/* Left Sidebar Navigation */
.sidebar-menu {
    flex: 0 0 280px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.sidebar-menu a {
    display: block;
    padding: 16px 20px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-menu a:last-child {
    border-bottom: none;
}

/* Gradient background based on the image's design */
.sidebar-menu a.active {
    background: linear-gradient(135deg, var(--brand-light), var(--brand-dark));
    color: #ffffff;
}

.sidebar-menu a:hover:not(.active) {
    background-color: #fdf1ee;
    color: var(--brand);
}

.content-area {
    flex: 1;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 36px;
    background: #ffffff;
    min-width: 0;
    /* Add this line to allow flex children to shrink below their content size */
}

.content-heading {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 700;
    color: var(--brand);
    /* Replicates the red heading from your image */
    margin-bottom: 14px;
    line-height: 1.3;
}

.sub-heading {
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}

/* Stack the document links vertically as requested in the image layout */
.documents-links.list-view {
    grid-template-columns: 1fr;
    gap: 12px;
}

/* Responsive adjustment for Mobile */
@media (max-width: 900px) {
    .page-layout {
        flex-direction: column;
        padding: 24px;
    }

    .sidebar-menu {
        flex: auto;
        width: 100%;
    }

    .content-area {
        padding: 24px;
    }
}


/* ==========================================================
   Contact Page Styles (Form & Maps)
   ========================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: stretch;
}

.office-address {
    font-style: normal;
    font-size: 16px;
    line-height: 1.8;
    color: var(--ink);
    background: #fdf1ee;
    padding: 24px;
    border-left: 4px solid var(--brand);
    border-radius: 4px 8px 8px 4px;
    margin-bottom: 40px;
}

.office-address strong {
    font-size: 18px;
    color: var(--navy);
    display: block;
    margin-bottom: 8px;
}

/* Contact Form */
.form-section {
    margin-top: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}

.required {
    color: var(--brand);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--ink);
    background-color: #fafbfc;
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-control::placeholder {
    color: #9ca3af;
}

.form-control:focus {
    outline: none;
    background-color: #ffffff;
    border-color: var(--brand-light);
    box-shadow: 0 0 0 3px rgba(229, 59, 28, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    display: inline-block;
    background-color: var(--brand);
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-submit:hover {
    background-color: var(--brand-dark);
}

.btn-submit:active {
    transform: scale(0.98);
}

/* Map Container */
.contact-right {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    min-height: 400px;
}

.map-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-right {
        min-height: 350px;
        order: -1;
        /* Places the map above the contact form on mobile */
        margin-bottom: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   Sitemap Grid Styles
   ========================================================== */
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.sitemap-card {
    background-color: #fafbfc;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 24px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sitemap-card:hover {
    border-color: #f1c7bf;
    box-shadow: var(--shadow-md);
}

.sitemap-card h3 {
    margin: 0 0 20px 0;
    color: var(--brand);
    font-size: 18px;
    border-bottom: 2px solid #f6d3cb;
    padding-bottom: 12px;
}

.sitemap-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sitemap-list li {
    margin-bottom: 16px;
}

.sitemap-list li:last-child {
    margin-bottom: 0;
}

.sitemap-list a {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    margin-bottom: 4px;
    transition: color 0.2s ease;
}

.sitemap-list a:hover {
    color: var(--brand);
}

.sitemap-list span {
    display: block;
    font-size: 13.5px;
    color: var(--text);
    line-height: 1.4;
}


.policy-content h3 {
    margin-top: 32px;
    margin-bottom: 12px;
    font-size: 18px;
}

.policy-content p {
    margin-bottom: 16px;
    text-align: justify;
}

.policy-content ul {
    padding-left: 24px;
    margin-bottom: 24px;
}

.policy-content ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* ==========================================================
           QR Generator Layout & Specific Styles
           ========================================================== */
.qr-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    margin-top: 20px;
}

.generator-card {
    background: #ffffff;
    border-right: 1px solid var(--line);
    padding-right: 40px;
}

.control-group {
    margin-bottom: 24px;
}

.control-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}

/* Form Controls reused from your Contact Us design pattern */
.form-control {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--ink);
    background-color: #fafbfc;
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    background-color: #ffffff;
    border-color: var(--brand-light);
    box-shadow: 0 0 0 3px rgba(229, 59, 28, 0.1);
}

/* Preset Buttons */
.preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.preset-btn {
    background: #fdf1ee;
    color: var(--brand);
    border: 1px solid #f6d3cb;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-btn:hover {
    background: var(--brand);
    color: #ffffff;
    border-color: var(--brand);
}

/* Preview Area */
.display-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

#qrcode-container {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 256px;
    min-width: 256px;
    margin-bottom: 24px;
}

#qrcode-container canvas,
#qrcode-container img {
    max-width: 100%;
    height: auto;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--brand);
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    width: 100%;
    justify-content: center;
}

.btn-download:hover {
    background-color: var(--brand-dark);
}

.btn-download:active {
    transform: scale(0.98);
}

.qr-info-box {
    background: #fdf1ee;
    border-left: 4px solid var(--brand);
    padding: 16px;
    border-radius: 0 8px 8px 0;
    font-size: 13.5px;
    color: var(--ink);
    margin-top: 24px;
    text-align: left;
    line-height: 1.6;
}

/* Responsive Layout */
@media (max-width: 900px) {
    .qr-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .generator-card {
        border-right: none;
        border-bottom: 1px solid var(--line);
        padding-right: 0;
        padding-bottom: 32px;
    }
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active-tab {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active-tab {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.documents-grid {
    display: grid;
    /* This creates side-by-side columns that auto-adjust based on screen size */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 900px;
}