/* QTAS 2027 — warm light conference theme with painted header.

   Upload this file as:
   /qtas2027/qtas2027.css

   Upload your header image as:
   /qtas2027/images/header-art.png
*/

/* ---------- Base ---------- */

body.qtas-site {
    background: #f7f4ee !important;
    color: #1f2328 !important;
}

body.qtas-site #bg-canvas {
    display: none !important;
}

/* ---------- Navigation ---------- */

body.qtas-site .ms-nav.qtas-nav {
    background: rgba(255, 252, 246, 0.96) !important;
    border-bottom: 1px solid rgba(60, 48, 40, 0.12) !important;
    box-shadow: 0 4px 22px rgba(60, 48, 40, 0.08) !important;
    backdrop-filter: blur(12px);
}

body.qtas-site .qtas-brand,
body.qtas-site .ms-nav-links a {
    color: #25211d !important;
    text-decoration: none !important;
}

body.qtas-site .qtas-brand span {
    color: #a64224 !important;
}

body.qtas-site .ms-nav-links a.active,
body.qtas-site .ms-nav-links a:hover {
    color: #9b3d20 !important;
}

/* ---------- Header / Hero ---------- */

body.qtas-site .qtas-hero,
body.qtas-site header.qtas-hero {
    background:
        linear-gradient(rgba(255, 248, 238, 0.74), rgba(255, 248, 238, 0.78)),
        url("./images/header-art.png") center center / cover no-repeat !important;
    border-bottom: 1px solid rgba(60, 48, 40, 0.14) !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 5.3rem 1.5rem 1.8rem !important;
    margin: 0 !important;
    overflow: hidden !important;
}

body.qtas-site .qtas-hero-home {
    min-height: 0 !important;
    padding-top: 6.4rem !important;
    padding-bottom: 3rem !important;
    display: block !important;
}

body.qtas-site .qtas-hero-inner {
    min-height: 0 !important;
}

body.qtas-site .qtas-hero-inner-wrap {
    width: min(1120px, calc(100vw - 40px)) !important;
    margin: 0 auto !important;
    min-height: 0 !important;
    height: auto !important;
}

body.qtas-site .qtas-kicker {
    color: #8e351d !important;
    font-size: 0.98rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em !important;
    margin-bottom: 0.75rem !important;
}

body.qtas-site .qtas-small-title {
    color: #5f5046 !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.45rem !important;
}

body.qtas-site .qtas-hero h1 {
    color: #1f1f1f !important;
    max-width: 1000px !important;
    font-size: clamp(2.1rem, 4.9vw, 4.4rem) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.035em !important;
    margin: 0 !important;
    text-shadow: none !important;
    overflow-wrap: normal !important;
    text-wrap: balance;
}

body.qtas-site .qtas-hero-inner h1 {
    font-size: clamp(2rem, 4vw, 3.3rem) !important;
}

body.qtas-site .qtas-subtitle {
    max-width: 780px !important;
    margin: 1rem 0 0 !important;
    color: #403833 !important;
    font-size: 1.15rem !important;
    line-height: 1.55 !important;
}

/* ---------- Main content ---------- */

body.qtas-site .qtas-content {
    width: min(1120px, calc(100vw - 40px)) !important;
    margin: 0 auto !important;
    padding: 1.25rem 0 4rem !important;
}

body.qtas-site .qtas-article,
body.qtas-site .qtas-placeholder {
    background: rgba(255, 252, 246, 0.98) !important;
    color: #2b2b2b !important;
    border: 1px solid rgba(60, 48, 40, 0.13) !important;
    border-radius: 18px !important;
    padding: clamp(1.25rem, 2.8vw, 2.4rem) !important;
    box-shadow: 0 12px 34px rgba(60, 48, 40, 0.08) !important;
}

body.qtas-site .qtas-article h2 {
    color: #8e351d !important;
    font-size: clamp(1.55rem, 2.6vw, 2.1rem) !important;
    margin: 0 0 1rem !important;
}

body.qtas-site .qtas-article h3 {
    color: #27221f !important;
    margin: 1.8rem 0 0.8rem !important;
}

body.qtas-site .qtas-article p,
body.qtas-site .qtas-article li {
    color: #48413b !important;
    line-height: 1.62 !important;
}

body.qtas-site .qtas-lead {
    color: #403833 !important;
    font-size: 1.08rem !important;
    line-height: 1.62 !important;
}

body.qtas-site .qtas-article a {
    color: #8e351d !important;
}

/* ---------- Buttons ---------- */

body.qtas-site .qtas-hero-actions,
body.qtas-site .qtas-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
    margin-top: 1.6rem !important;
}

body.qtas-site .qtas-btn,
body.qtas-site .qtas-article a.qtas-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 0.72rem 1.05rem !important;
    border-radius: 8px !important;
    border: 1px solid #8e351d !important;
    background: rgba(255, 252, 246, 0.92) !important;
    color: #8e351d !important;
    text-decoration: none !important;
    font-weight: 800 !important;
    letter-spacing: 0.01em !important;
    box-shadow: none !important;
}

body.qtas-site .qtas-btn:hover,
body.qtas-site .qtas-article a.qtas-btn:hover {
    background: #f2e8dc !important;
    color: #6f2816 !important;
    text-decoration: none !important;
    transform: none !important;
}

body.qtas-site .qtas-btn-primary,
body.qtas-site .qtas-article a.qtas-btn-primary {
    background: #8e351d !important;
    color: #ffffff !important;
    border-color: #8e351d !important;
}

body.qtas-site .qtas-btn-primary:hover,
body.qtas-site .qtas-article a.qtas-btn-primary:hover {
    background: #6f2816 !important;
    color: #ffffff !important;
}

/* ---------- Grids and cards ---------- */

body.qtas-site .qtas-grid,
body.qtas-site .speaker-grid,
body.qtas-site .organizer-grid,
body.qtas-site .sponsor-grid,
body.qtas-site .contact-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)) !important;
    gap: 1rem !important;
    margin-top: 1.25rem !important;
}

body.qtas-site .qtas-card,
body.qtas-site .speaker-card,
body.qtas-site .organizer-card,
body.qtas-site .sponsor-card,
body.qtas-site .contact-card,
body.qtas-site .day-card {
    background: #fbf7ef !important;
    color: #2f2b27 !important;
    border: 1px solid rgba(60, 48, 40, 0.14) !important;
    border-radius: 14px !important;
    padding: 1.05rem !important;
    box-shadow: none !important;
}

body.qtas-site .qtas-card:hover,
body.qtas-site .speaker-card:hover,
body.qtas-site .organizer-card:hover,
body.qtas-site .sponsor-card:hover,
body.qtas-site .contact-card:hover,
body.qtas-site .day-card:hover {
    border-color: rgba(142, 53, 29, 0.32) !important;
}

body.qtas-site .qtas-card strong,
body.qtas-site .speaker-card strong,
body.qtas-site .organizer-card strong,
body.qtas-site .contact-card strong {
    display: block !important;
    color: #24201d !important;
    font-size: 1.04rem !important;
    margin-bottom: 0.35rem !important;
}

body.qtas-site .speaker-card span,
body.qtas-site .organizer-card span,
body.qtas-site .contact-card span,
body.qtas-site .qtas-card span {
    color: #6b625a !important;
}

body.qtas-site .speaker-country {
    display: inline-flex !important;
    margin-top: 0.75rem !important;
    padding: 0.22rem 0.52rem !important;
    border-radius: 999px !important;
    background: #efe2d4 !important;
    color: #8e351d !important;
    font-size: 0.76rem !important;
    font-weight: 800 !important;
}

/* ---------- Schedule ---------- */

body.qtas-site .schedule-list {
    display: grid !important;
    gap: 0.9rem !important;
    margin-top: 1.25rem !important;
}

body.qtas-site .day-card h3 {
    color: #8e351d !important;
    margin: 0 0 0.65rem !important;
}

body.qtas-site .day-card ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.qtas-site .day-card li {
    display: grid !important;
    grid-template-columns: 92px 1fr !important;
    gap: 1rem !important;
    padding: 0.52rem 0 !important;
    border-top: 1px solid rgba(60, 48, 40, 0.11) !important;
}

body.qtas-site .day-card li:first-child {
    border-top: 0 !important;
}

body.qtas-site .day-card time {
    color: #25211d !important;
    font-weight: 800 !important;
}

/* ---------- Sponsors and contact ---------- */

body.qtas-site .sponsor-card {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    min-height: 112px !important;
}

body.qtas-site .sponsor-card img {
    width: 118px !important;
    height: 58px !important;
    object-fit: contain !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    padding: 0.4rem !important;
    border: 1px solid rgba(60, 48, 40, 0.12) !important;
}

body.qtas-site .sponsor-card h3 {
    margin: 0 0 0.25rem !important;
    color: #25211d !important;
}

body.qtas-site .contact-card {
    max-width: 560px !important;
}

/* ---------- Footer ---------- */

body.qtas-site .qtas-footer,
body.qtas-site .ms-footer.qtas-footer {
    background: #f7f4ee !important;
    color: #6b625a !important;
    border-top: 1px solid rgba(60, 48, 40, 0.12) !important;
}

body.qtas-site .qtas-footer a,
body.qtas-site .ms-footer.qtas-footer a {
    color: #8e351d !important;
}

/* ---------- Mobile ---------- */

@media (max-width: 720px) {
    body.qtas-site .qtas-hero,
    body.qtas-site header.qtas-hero {
        padding-top: 4.8rem !important;
        padding-bottom: 1.3rem !important;
    }

    body.qtas-site .qtas-hero-home {
        padding-top: 5.6rem !important;
        padding-bottom: 2rem !important;
    }

    body.qtas-site .qtas-hero h1 {
        font-size: clamp(2rem, 12vw, 3.4rem) !important;
    }

    body.qtas-site .day-card li {
        grid-template-columns: 1fr !important;
        gap: 0.15rem !important;
    }

    body.qtas-site .sponsor-card {
        align-items: flex-start !important;
        flex-direction: column !important;
    }
}


/* FINAL COLOR OVERRIDE — remove all cyan / blue-green from QTAS */

body.qtas-site,
body.qtas-site * {
    --cyan: #8e351d !important;
    --accent: #8e351d !important;
    --primary: #8e351d !important;
}

/* Header image: visible, but text readable */
body.qtas-site .qtas-hero,
body.qtas-site header.qtas-hero,
body.qtas-site .ms-hero {
    background:
        linear-gradient(
            rgba(28, 22, 18, 0.46),
            rgba(28, 22, 18, 0.42)
        ),
        url("./images/header-art.png") center center / cover no-repeat !important;
}

/* Page titles in the header: About, Program, Speakers, etc. */
body.qtas-site .qtas-hero h1,
body.qtas-site .ms-hero h1,
body.qtas-site header h1 {
    color: #fff8ee !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45) !important;
}

/* Date/location line */
body.qtas-site .qtas-kicker,
body.qtas-site .ms-hero-meta {
    color: #fff0df !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45) !important;
}

/* Small conference title above Program/About */
body.qtas-site .qtas-small-title,
body.qtas-site .ms-page-label {
    color: #f4dfc9 !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4) !important;
}

/* Top navigation logo/text */
body.qtas-site .qtas-brand,
body.qtas-site .ms-brand {
    color: #1f1f1f !important;
    font-weight: 900 !important;
    opacity: 1 !important;
}

body.qtas-site .qtas-brand span,
body.qtas-site .ms-brand span {
    color: #8e351d !important;
}

/* Menu links: no blue-green */
body.qtas-site .ms-nav-links a,
body.qtas-site nav a {
    color: #2b2b2b !important;
}

body.qtas-site .ms-nav-links a.active,
body.qtas-site .ms-nav-links a:hover,
body.qtas-site nav a.active,
body.qtas-site nav a:hover {
    color: #8e351d !important;
}

/* Content titles: no blue-green */
body.qtas-site .qtas-article h2,
body.qtas-site .qtas-article h3,
body.qtas-site .ms-article h2,
body.qtas-site .ms-article h3 {
    color: #8e351d !important;
}

/* Buttons */
body.qtas-site .qtas-btn,
body.qtas-site .btn {
    border-color: #8e351d !important;
    color: #8e351d !important;
}

body.qtas-site .qtas-btn-primary,
body.qtas-site .btn-primary {
    background: #8e351d !important;
    border-color: #8e351d !important;
    color: #ffffff !important;
}

/* Speaker country labels */
body.qtas-site .speaker-country {
    background: #efe2d4 !important;
    color: #8e351d !important;
}


/* FINAL FIX: remove cyan/green inherited styles */

/* 1. Header titles: remove old cyan gradient text */
body.qtas-site .qtas-hero h1,
body.qtas-site .ms-hero h1,
body.qtas-site header h1 {
    background: none !important;
    background-image: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: #fff8ee !important;
    color: #fff8ee !important;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.55) !important;
}

/* 2. Small title above About / Program */
body.qtas-site .qtas-small-title {
    background: none !important;
    -webkit-text-fill-color: #fff3e3 !important;
    color: #fff3e3 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55) !important;
}

/* 3. Date line */
body.qtas-site .qtas-kicker {
    background: none !important;
    -webkit-text-fill-color: #fff3e3 !important;
    color: #fff3e3 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55) !important;
}

/* 4. Home subtitle: make visible on image */
body.qtas-site .qtas-subtitle {
    color: #fff3e3 !important;
    -webkit-text-fill-color: #fff3e3 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55) !important;
}

/* 5. Make header image darker so text is readable */
body.qtas-site .qtas-hero,
body.qtas-site header.qtas-hero {
    background:
        linear-gradient(
            rgba(28, 20, 15, 0.46),
            rgba(28, 20, 15, 0.42)
        ),
        url("./images/header-art.png") center center / cover no-repeat !important;
}

/* 6. Top menu: remove pale cyan active background */
body.qtas-site .ms-nav-links a,
body.qtas-site nav .ms-nav-links a {
    background: transparent !important;
    color: #2b2520 !important;
    -webkit-text-fill-color: #2b2520 !important;
}

/* active menu item: warm beige, not cyan */
body.qtas-site .ms-nav-links a.active,
body.qtas-site nav .ms-nav-links a.active {
    background: #efe1d3 !important;
    color: #8e351d !important;
    -webkit-text-fill-color: #8e351d !important;
    border-radius: 10px !important;
}

/* hover menu item */
body.qtas-site .ms-nav-links a:hover,
body.qtas-site nav .ms-nav-links a:hover {
    background: #f5eadf !important;
    color: #8e351d !important;
    -webkit-text-fill-color: #8e351d !important;
}

/* 7. Top-left QTAS logo/title */
body.qtas-site .qtas-brand,
body.qtas-site .ms-brand {
    color: #2b2520 !important;
    -webkit-text-fill-color: #2b2520 !important;
    font-weight: 900 !important;
    opacity: 1 !important;
}

body.qtas-site .qtas-brand span,
body.qtas-site .ms-brand span {
    color: #8e351d !important;
    -webkit-text-fill-color: #8e351d !important;
}


/* SAME HEADER SIZE ON ALL QTAS PAGES */

body.qtas-site {
    --qtas-hero-height: 470px;
}

/* Force identical banner height for Home, About, Program, etc. */
body.qtas-site .qtas-hero,
body.qtas-site header.qtas-hero,
body.qtas-site .qtas-hero-home,
body.qtas-site .qtas-hero-inner,
body.qtas-site .ms-hero,
body.qtas-site .ms-hero-home,
body.qtas-site .ms-hero-compact {
    height: var(--qtas-hero-height) !important;
    min-height: var(--qtas-hero-height) !important;
    max-height: var(--qtas-hero-height) !important;
    padding-top: 5.8rem !important;
    padding-bottom: 2.4rem !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
}

/* Keep the inner header content centered in the same area */
body.qtas-site .qtas-hero-inner-wrap {
    width: min(1120px, calc(100vw - 40px)) !important;
    margin: 0 auto !important;
}

/* Subtitle: force one line on desktop */
body.qtas-site .qtas-subtitle {
    max-width: none !important;
    width: 100% !important;
    white-space: nowrap !important;
    font-size: clamp(0.95rem, 1.45vw, 1.12rem) !important;
    line-height: 1.45 !important;
    color: #fff3e3 !important;
    -webkit-text-fill-color: #fff3e3 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55) !important;
}

/* Page titles: remove inherited cyan gradient */
body.qtas-site .qtas-hero h1,
body.qtas-site .ms-hero h1,
body.qtas-site header h1 {
    background: none !important;
    background-image: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: #fff8ee !important;
    color: #fff8ee !important;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.55) !important;
}

/* Mobile: allow wrapping again */
@media (max-width: 800px) {
    body.qtas-site {
        --qtas-hero-height: 420px;
    }

    body.qtas-site .qtas-subtitle {
        white-space: normal !important;
        max-width: 760px !important;
    }
}
