/* ============================================================
   KBG NA GARBA
   GLOBAL fPHP EVENT THEME — CLEAN V2
   ============================================================

   GLOBAL ONLY:
   - CMS shell
   - Header
   - Gallery logo widget
   - Pages Menu
   - Burger navigation
   - Page titles
   - Generic modules
   - Forms
   - Login
   - Dashboard menus
   - Gallery widgets
   - Registration / Tickets
   - Attendee fields
   - Tables
   - Alerts
   - Tabs
   - Accordions
   - Modals
   - Footer module base
   - Scroll to top
   - Responsive states

   Homepage visual sections remain inside Custom Content blocks.

   NO MODULE IDS
   NO MENU IDS
   NO ITEM IDS
   ============================================================ */


/* ============================================================
   FONTS
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=DM+Sans:wght@400;500;600;700;800&family=Noto+Sans+Gujarati:wght@400;500;600;700&family=Noto+Serif+Gujarati:wght@500;600;700;800&display=swap');


/* ============================================================
   BRAND TOKENS
   ============================================================ */

:root {

    --kbg-maroon: #811d29;
    --kbg-maroon-dark: #4d0b14;
    --kbg-maroon-deep: #35070d;

    --kbg-red: #b43d3e;

    --kbg-gold: #bb9148;
    --kbg-gold-light: #dfbd70;
    --kbg-gold-pale: #f5dea5;

    --kbg-green: #28503b;
    --kbg-green-dark: #17382b;

    --kbg-blue: #294773;
    --kbg-blue-dark: #1b3154;

    --kbg-ivory: #fffaf0;
    --kbg-ivory-deep: #f6ead5;

    --kbg-white: #ffffff;

    --kbg-text: #3f2826;
    --kbg-muted: #75605c;

    --kbg-border: rgba(77, 11, 20, .11);
    --kbg-border-strong: rgba(77, 11, 20, .19);

    --kbg-shadow-sm:
        0 8px 24px rgba(58, 14, 17, .07);

    --kbg-shadow:
        0 18px 46px rgba(58, 14, 17, .10);

    --kbg-shadow-lg:
        0 30px 75px rgba(58, 14, 17, .15);

    --kbg-radius-sm: 8px;
    --kbg-radius: 14px;
    --kbg-radius-lg: 22px;

    /*
     * Main content width.
     */
    --kbg-content-width: 1500px;

    /*
     * Header should NOT use a narrow Bootstrap-style container.
     * It stays almost full width.
     */
    --kbg-header-gutter:
        clamp(24px, 3.2vw, 72px);

    --kbg-header-height: 86px;
    --kbg-logo-size: 68px;

}


/* ============================================================
   RESET
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

body {

    min-height: 100vh;

    overflow-x: hidden;

    background:
        var(--kbg-ivory);

    color:
        var(--kbg-text);

    font-family:
        "DM Sans",
        Arial,
        sans-serif;

    font-size: 14px;

    line-height: 1.6;

    -webkit-font-smoothing:
        antialiased;

    -moz-osx-font-smoothing:
        grayscale;

}

body::before {

    content: "";

    position: fixed;

    z-index: 999999;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            var(--kbg-red) 0% 20%,
            var(--kbg-gold) 20% 40%,
            var(--kbg-green) 40% 60%,
            var(--kbg-blue) 60% 80%,
            var(--kbg-maroon) 80% 100%
        );

}

a {
    color: var(--kbg-maroon);
    text-decoration: none;
}

a:hover {
    color: var(--kbg-maroon-dark);
}

img {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

::selection {

    background:
        var(--kbg-maroon);

    color:
        #fff;

}


/* ============================================================
   CMS BASIC WRAPPERS
   ============================================================ */

.container-mobile {

    width: 100%;

    overflow:
        visible !important;

}

.background-container {
    position: relative;
}


/* fPHP template spacer is not required with sticky header */

.head-padding {

    display:
        none !important;

    width: 0 !important;
    height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

}


/* ============================================================
   MAIN PAGE BACKGROUND
   ============================================================ */

#fContent {

    position: relative;

    isolation: isolate;

    min-height: 60vh;

    background:

        radial-gradient(
            circle at 4px 4px,
            rgba(129, 29, 41, .028) 1.1px,
            transparent 1.3px
        ),

        linear-gradient(
            180deg,
            #fffdf9,
            var(--kbg-ivory)
        );

    background-size:
        20px 20px,
        auto;

}


/* subtle background motif */

#fContent::before {

    content: "";

    position: fixed;

    z-index: -1;

    right: -215px;

    top: 180px;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    pointer-events: none;

    opacity: .05;

    background:
        repeating-conic-gradient(
            var(--kbg-gold) 0deg 3deg,
            transparent 3deg 14deg
        );

    -webkit-mask:
        radial-gradient(
            circle,
            transparent 0 53%,
            #000 54% 57%,
            transparent 58% 67%,
            #000 68% 71%,
            transparent 72%
        );

    mask:
        radial-gradient(
            circle,
            transparent 0 53%,
            #000 54% 57%,
            transparent 58% 67%,
            #000 68% 71%,
            transparent 72%
        );

    animation:
        kbgAmbientSpin
        90s
        linear
        infinite;

}


@keyframes kbgAmbientSpin {

    to {
        transform:
            rotate(360deg);
    }

}


/* ============================================================
   NORMAL CONTENT WIDTH
   ============================================================ */

#fContent > .container,
.fPageTitle > .container {

    position: relative;

    width:
        min(
            var(--kbg-content-width),
            calc(100% - 48px)
        ) !important;

    max-width:
        none !important;

    margin:
        0 auto !important;

    padding-left:
        0 !important;

    padding-right:
        0 !important;

}

#fContent .row {

    margin-left:
        0 !important;

    margin-right:
        0 !important;

}

#fMatter {

    width: 100%;

    padding:
        26px 0 65px !important;

}


/* ============================================================
   HOMEPAGE CMS OVERRIDES
   JS automatically adds .kbg-home-page when homepage
   Custom Content blocks exist.
   ============================================================ */

body.kbg-home-page
.fPageTitle {

    display:
        none !important;

}

body.kbg-home-page
#fMatter {

    padding:
        0 !important;

}

body.kbg-home-page
#fContent {

    background:
        transparent !important;

}

body.kbg-home-page
#fContent::before {

    display:
        none !important;

}


/* ============================================================
   IMPORTANT:
   REVEAL CONTENT IS VISIBLE BY DEFAULT
   ============================================================

   If JS ever fails, content remains visible.

   Only when JS explicitly adds .kbg-motion-ready do we
   temporarily hide reveal elements.

   This fixes the blank homepage you just showed.
   ============================================================ */

[data-kbg-reveal] {

    opacity:
        1;

    transform:
        none;

}

html.kbg-motion-ready
[data-kbg-reveal] {

    opacity:
        0;

    transform:
        translateY(24px);

    transition:
        opacity .7s ease,
        transform .7s cubic-bezier(.2,.75,.2,1);

}

html.kbg-motion-ready
[data-kbg-reveal].kbg-revealed {

    opacity:
        1;

    transform:
        translateY(0);

}


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

.fHeader {

    position:
        sticky !important;

    top:
        0;

    left:
        0;

    z-index:
        100000;

    width:
        100%;

    margin:
        0 !important;

    padding:
        0 !important;

}


/* ============================================================
   EMPTY HEADER TOP REGION
   ============================================================ */

.fHeader
.region-headertop.empty {

    display:
        none !important;

}

.fHeader
.fheaderToptwo {

    margin:
        0 !important;

    padding:
        0 !important;

}

.fHeader
.fheaderToptwo:has(.region-headertop.empty) {

    display:
        none !important;

}


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

.fHeader
.navbar-header {

    position:
        relative;

    width:
        100%;

    min-height:
        var(--kbg-header-height);

    margin:
        0 !important;

    padding:
        0 !important;

    border:
        0 !important;

    background:

        radial-gradient(
            circle at 4px 4px,
            rgba(245, 222, 165, .047) 1px,
            transparent 1.2px
        ),

        linear-gradient(
            105deg,
            #3d070e,
            var(--kbg-maroon-dark) 45%,
            #74151f
        ) !important;

    background-size:
        19px 19px,
        auto !important;

    box-shadow:
        0 7px 25px
        rgba(34, 2, 6, .20);

}


.fHeader
.navbar-header::after {

    content: "";

    position:
        absolute;

    left:
        0;

    right:
        0;

    bottom:
        0;

    height:
        3px;

    background:
        linear-gradient(
            90deg,
            var(--kbg-red),
            var(--kbg-gold),
            var(--kbg-green),
            var(--kbg-blue),
            var(--kbg-red)
        );

}


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

   This deliberately does NOT use the page content container.

   On a very wide screen there should NOT be 500–700px empty
   margins before the logo and after the navigation.
   ============================================================ */

.fHeader
.navbar-header
> .wrap {

    width:
        calc(
            100% - (var(--kbg-header-gutter) * 2)
        ) !important;

    max-width:
        none !important;

    min-height:
        var(--kbg-header-height);

    margin:
        0 auto !important;

    padding:
        0 !important;

}


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

.fHeader
.region-header {

    position:
        relative;

    display:
        flex !important;

    flex-direction:
        row !important;

    align-items:
        center !important;

    justify-content:
        space-between !important;

    gap:
        30px;

    width:
        100% !important;

    max-width:
        none !important;

    min-height:
        var(--kbg-header-height);

    margin:
        0 !important;

    padding:
        0 !important;

}


/* remove normal widget decoration */

.fHeader
.region-header
> .fModule {

    margin:
        0 !important;

    padding:
        0 !important;

    border:
        0 !important;

    background:
        transparent !important;

    box-shadow:
        none !important;

}

.fHeader
.region-header
.fModuleContent,

.fHeader
.region-header
.f-module-content {

    margin:
        0 !important;

    padding:
        0 !important;

    background:
        transparent !important;

}


/* ============================================================
   HEADER GALLERY WIDGET = LOGO
   ============================================================ */

.fHeader
.region-header
.f-module-gallery-view {

    order:
        -1 !important;

    flex:
        0 0 auto !important;

    width:
        auto !important;

    max-width:
        none !important;

    margin:
        0 !important;

}


/* Gallery reset */

.fHeader
.region-header
.f-module-gallery-view
.fGalleryImages,

.fHeader
.region-header
.f-module-gallery-view
.fGalleryList {

    display:
        block !important;

    width:
        auto !important;

    margin:
        0 !important;

    padding:
        0 !important;

    list-style:
        none !important;

}

.fHeader
.region-header
.f-module-gallery-view
.fGalleryItem {

    display:
        block !important;

    float:
        none !important;

    width:
        auto !important;

    margin:
        0 !important;

    padding:
        0 !important;

}


/* Logo viewport */

.fHeader
.region-header
.f-module-gallery-view
.fGalleryImage {

    position:
        relative;

    display:
        block !important;

    width:
        var(--kbg-logo-size) !important;

    height:
        var(--kbg-logo-size) !important;

    overflow:
        hidden !important;

    margin:
        0 !important;

    padding:
        0 !important;

    border:
        2px solid
        rgba(245, 222, 165, .72);

    border-radius:
        50% !important;

    background:
        #fff !important;

    box-shadow:
        0 0 0 5px
        rgba(223, 189, 112, .08),
        0 8px 22px
        rgba(0, 0, 0, .25);

    transition:
        transform .28s
        cubic-bezier(.2,.8,.2,1),
        box-shadow .28s ease;

}

.fHeader
.region-header
.f-module-gallery-view
.fGalleryImage::after {

    content:
        "";

    position:
        absolute;

    z-index:
        3;

    inset:
        5px;

    border:
        1px solid
        rgba(187, 145, 72, .24);

    border-radius:
        50%;

    pointer-events:
        none;

}


/*
 * Correct crop for uploaded KBG JPEG.
 * Shows complete circular symbol without showing words beneath.
 */

.fHeader
.region-header
.f-module-gallery-view
.fGalleryImage
img {

    position:
        absolute !important;

    left:
        50% !important;

    top:
        0 !important;

    display:
        block !important;

    width:
        121% !important;

    max-width:
        none !important;

    height:
        auto !important;

    min-height:
        0 !important;

    margin:
        0 !important;

    padding:
        0 !important;

    border:
        0 !important;

    border-radius:
        0 !important;

    transform:
        translateX(-50%);

    transform-origin:
        center top;

}


@media (hover:hover) {

    .fHeader
    .region-header
    .f-module-gallery-view
    .fGalleryImage:hover {

        transform:
            translateY(-2px)
            rotate(-3deg)
            scale(1.035);

        box-shadow:
            0 0 0 6px
            rgba(223, 189, 112, .11),
            0 13px 30px
            rgba(0, 0, 0, .30);

    }

}


/* ============================================================
   HEADER MENU MODULE
   ============================================================ */

.fHeader
.region-header
.f-module-pages-menu {

    order:
        2 !important;

    flex:
        0 1 auto !important;

    width:
        auto !important;

    max-width:
        none !important;

    margin:
        0 0 0 auto !important;

}


.fHeader
.region-header
.f-module-pages-menu
nav {

    width:
        auto !important;

    max-width:
        none !important;

    margin:
        0 !important;

    padding:
        0 !important;

}


/* ============================================================
   DESKTOP NAVIGATION
   ============================================================ */

.fHeader
.region-header
.f-module-pages-menu
ul.fMenu {

    display:
        flex !important;

    flex-direction:
        row !important;

    align-items:
        center !important;

    justify-content:
        flex-end !important;

    flex-wrap:
        nowrap !important;

    gap:
        9px;

    width:
        auto !important;

    margin:
        0 !important;

    padding:
        0 !important;

    list-style:
        none !important;

}


.fHeader
.region-header
.f-module-pages-menu
ul.fMenu
> li {

    position:
        relative !important;

    display:
        block !important;

    float:
        none !important;

    width:
        auto !important;

    margin:
        0 !important;

    padding:
        0 !important;

    list-style:
        none !important;

    background:
        transparent !important;

}

.fHeader
.region-header
.f-module-pages-menu
ul.fMenu
> li::before,

.fHeader
.region-header
.f-module-pages-menu
ul.fMenu
> li::after {

    content:
        none !important;

    display:
        none !important;

}


/* ============================================================
   MENU LINKS
   ============================================================ */

.fHeader
.region-header
.f-module-pages-menu
ul.fMenu
> li
> a {

    position:
        relative;

    display:
        inline-flex !important;

    align-items:
        center !important;

    justify-content:
        center !important;

    width:
        auto !important;

    min-height:
        44px;

    margin:
        0 !important;

    padding:
        0 18px !important;

    overflow:
        hidden;

    border:
        1px solid
        rgba(255,255,255,.04) !important;

    border-radius:
        9px;

    background:
        rgba(255,255,255,.018) !important;

    color:
        rgba(255,248,232,.78) !important;

    font-family:
        "DM Sans",
        sans-serif !important;

    font-size:
        11px !important;

    line-height:
        1 !important;

    font-weight:
        700 !important;

    letter-spacing:
        .45px;

    text-decoration:
        none !important;

    text-transform:
        uppercase;

    box-shadow:
        none !important;

    transition:
        color .22s ease,
        background .22s ease,
        border-color .22s ease,
        transform .22s ease,
        box-shadow .22s ease;

}


/* gold bottom hover indicator */

.fHeader
.region-header
.f-module-pages-menu
ul.fMenu
> li
> a::after {

    content:
        "";

    position:
        absolute;

    left:
        50%;

    bottom:
        6px;

    width:
        0;

    height:
        2px;

    border-radius:
        20px;

    background:
        var(--kbg-gold-light);

    transform:
        translateX(-50%);

    transition:
        width .25s ease;

}


/* Remove unused CMS menu icon */

.fHeader
.region-header
.f-module-pages-menu
.menu-item-icon {

    display:
        none !important;

    width:
        0 !important;

    height:
        0 !important;

    margin:
        0 !important;

    padding:
        0 !important;

}


.fHeader
.region-header
.f-module-pages-menu
.menu-item-text {

    display:
        block !important;

    width:
        auto !important;

    margin:
        0 !important;

    padding:
        0 !important;

    color:
        inherit !important;

    font:
        inherit !important;

    line-height:
        inherit !important;

}


.fHeader
.region-header
.f-module-pages-menu
.menu-item-text::before,

.fHeader
.region-header
.f-module-pages-menu
.menu-item-text::after {

    content:
        none !important;

    display:
        none !important;

}


/* ============================================================
   STRONG MENU HOVER
   ============================================================ */

@media (hover:hover) {

    .fHeader
    .region-header
    .f-module-pages-menu
    ul.fMenu
    > li:not(.selected):not(.active)
    > a:hover {

        color:
            var(--kbg-gold-pale) !important;

        border-color:
            rgba(223,189,112,.30) !important;

        background:
            rgba(223,189,112,.11) !important;

        transform:
            translateY(-2px);

        box-shadow:
            0 7px 18px
            rgba(0,0,0,.10);

    }


    .fHeader
    .region-header
    .f-module-pages-menu
    ul.fMenu
    > li:not(.selected):not(.active)
    > a:hover::after {

        width:
            calc(100% - 32px);

    }

}


/* ============================================================
   SELECTED MENU
   ============================================================ */

.fHeader
.region-header
.f-module-pages-menu
ul.fMenu
> li.selected
> a,

.fHeader
.region-header
.f-module-pages-menu
ul.fMenu
> li.active
> a {

    color:
        var(--kbg-maroon-dark) !important;

    border-color:
        var(--kbg-gold-light) !important;

    background:
        linear-gradient(
            135deg,
            #f0d48b,
            var(--kbg-gold-light)
        ) !important;

    font-weight:
        800 !important;

    box-shadow:
        0 8px 20px
        rgba(0,0,0,.15) !important;

}


.fHeader
.region-header
.f-module-pages-menu
ul.fMenu
> li.selected
> a::after,

.fHeader
.region-header
.f-module-pages-menu
ul.fMenu
> li.active
> a::after {

    display:
        none;

}


@media (hover:hover) {

    .fHeader
    .region-header
    .f-module-pages-menu
    ul.fMenu
    > li.selected
    > a:hover,

    .fHeader
    .region-header
    .f-module-pages-menu
    ul.fMenu
    > li.active
    > a:hover {

        border-color:
            #ffe8ad !important;

        background:
            linear-gradient(
                135deg,
                #f7e1a5,
                #e3bd62
            ) !important;

        color:
            #3f0710 !important;

        transform:
            translateY(-2px)
            scale(1.015);

        box-shadow:
            0 12px 26px
            rgba(0,0,0,.20) !important;

    }

}


/* ============================================================
   DESKTOP SUBMENUS
   ============================================================ */

.fHeader
.region-header
.f-module-pages-menu
ul.fMenu
> li
> ul {

    position:
        absolute !important;

    z-index:
        100010;

    top:
        calc(100% + 9px);

    right:
        0;

    left:
        auto;

    display:
        none !important;

    width:
        230px !important;

    margin:
        0 !important;

    padding:
        8px !important;

    border:
        1px solid
        rgba(245,222,165,.13);

    border-radius:
        11px;

    background:
        #420810 !important;

    box-shadow:
        0 20px 50px
        rgba(20,0,3,.32);

    list-style:
        none;

}

.fHeader
.region-header
.f-module-pages-menu
ul.fMenu
> li:hover
> ul {

    display:
        block !important;

}

.fHeader
.region-header
.f-module-pages-menu
ul.fMenu
> li
> ul
> li {

    display:
        block;

    width:
        100%;

    margin:
        0;

    padding:
        0;

}

.fHeader
.region-header
.f-module-pages-menu
ul.fMenu
> li
> ul
> li
> a {

    display:
        flex !important;

    align-items:
        center;

    width:
        100% !important;

    min-height:
        42px;

    padding:
        0 12px !important;

    border-radius:
        7px;

    color:
        rgba(255,248,232,.72) !important;

    font-size:
        10px;

    font-weight:
        700;

}

.fHeader
.region-header
.f-module-pages-menu
ul.fMenu
> li
> ul
> li
> a:hover {

    color:
        var(--kbg-gold-pale) !important;

    background:
        rgba(223,189,112,.11);

}


/* ============================================================
   BURGER BUTTON
   ============================================================ */

.kbg-nav-toggle {

    position:
        relative;

    order:
        4;

    display:
        none;

    width:
        44px;

    height:
        44px;

    flex:
        0 0 44px;

    margin:
        0 0 0 auto;

    padding:
        0;

    border:
        1px solid
        rgba(245,222,165,.24);

    border-radius:
        9px;

    background:
        rgba(255,255,255,.045);

    cursor:
        pointer;

}

.kbg-nav-toggle span {

    position:
        absolute;

    left:
        11px;

    width:
        20px;

    height:
        2px;

    border-radius:
        5px;

    background:
        var(--kbg-gold-pale);

    transition:
        top .22s ease,
        transform .22s ease,
        opacity .18s ease;

}

.kbg-nav-toggle span:nth-child(1) {
    top: 13px;
}

.kbg-nav-toggle span:nth-child(2) {
    top: 20px;
}

.kbg-nav-toggle span:nth-child(3) {
    top: 27px;
}

.region-header.kbg-menu-open
.kbg-nav-toggle
span:nth-child(1) {

    top: 20px;

    transform:
        rotate(45deg);

}

.region-header.kbg-menu-open
.kbg-nav-toggle
span:nth-child(2) {

    opacity:
        0;

}

.region-header.kbg-menu-open
.kbg-nav-toggle
span:nth-child(3) {

    top: 20px;

    transform:
        rotate(-45deg);

}


/* ============================================================
   NORMAL PAGE TITLE
   ============================================================ */

.fPageTitle {

    margin:
        0;

    padding:
        34px 0 6px;

    background:
        transparent;

}

.fPageTitle h1,
.fPageTitle #heading {

    position:
        relative;

    display:
        inline-block;

    margin:
        0 !important;

    padding:
        0 0 13px !important;

    color:
        var(--kbg-maroon-dark);

    font-family:
        "Cormorant Garamond",
        "Noto Serif Gujarati",
        serif;

    font-size:
        clamp(
            38px,
            4vw,
            53px
        );

    line-height:
        1;

    font-weight:
        700;

    letter-spacing:
        -.6px;

}

.fPageTitle h1::after,
.fPageTitle #heading::after {

    content:
        "";

    position:
        absolute;

    left:
        0;

    bottom:
        0;

    width:
        74px;

    height:
        3px;

    border-radius:
        10px;

    background:
        linear-gradient(
            90deg,
            var(--kbg-maroon),
            var(--kbg-gold)
        );

}


/* ============================================================
   BASIC CMS MODULES
   ============================================================ */

#fMatter
.fModule {

    position:
        relative;

    width:
        100%;

    margin:
        0 0 28px;

}

#fMatter
.fModule:last-child {

    margin-bottom:
        0;

}

#fMatter
.fModuleContent,

#fMatter
.f-module-content {

    min-width:
        0;

}

#fMatter
.f-module-pages-custom {

    width:
        100%;

}

#fMatter
.f-module-pages-custom
p {

    color:
        var(--kbg-muted);

    line-height:
        1.85;

}


/* ============================================================
   FORMS
   ============================================================ */

.fForm {

    width:
        100%;

}

.fForm
.form-item {

    width:
        100%;

    margin:
        0 0 21px;

}


/* ============================================================
   LABELS
   ------------------------------------------------------------
   No tiny uppercase corporate labels.
   Preserve the CMS wording naturally.
   ============================================================ */

.fForm
.form-item
> label,

.fForm
.form-label {

    display:
        block;

    width:
        100%;

    margin:
        0 0 8px !important;

    padding:
        0 !important;

    color:
        #4c3431;

    font-family:
        "DM Sans",
        "Noto Sans Gujarati",
        sans-serif;

    font-size:
        13px;

    line-height:
        1.35;

    font-weight:
        700;

    letter-spacing:
        0;

    text-align:
        left;

    text-transform:
        none;

}


/* required symbol */

.fForm
.form-item
> label
.required,

.fForm
.form-required,

.fForm
.required {

    color:
        var(--kbg-red);

}


/* ============================================================
   FORM FIELDS
   ============================================================ */

.fForm
input[type="text"],

.fForm
input[type="email"],

.fForm
input[type="password"],

.fForm
input[type="number"],

.fForm
input[type="tel"],

.fForm
input[type="url"],

.fForm
input[type="search"],

.fForm
input[type="date"],

.fForm
input[type="time"],

.fForm
select,

.fForm
textarea {

    display:
        block;

    width:
        100% !important;

    min-width:
        0;

    height:
        50px;

    min-height:
        50px;

    margin:
        0 !important;

    padding:
        0 15px !important;

    border:
        1px solid
        #dccac0 !important;

    border-radius:
        9px !important;

    background:
        #fffdf9 !important;

    color:
        var(--kbg-text) !important;

    font-size:
        13px;

    outline:
        none !important;

    box-shadow:
        inset 0 1px 1px
        rgba(77,11,20,.015) !important;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;

}

.fForm
textarea {

    height:
        auto;

    min-height:
        125px;

    padding:
        13px 15px !important;

    line-height:
        1.6;

    resize:
        vertical;

}

.fForm
input:focus,

.fForm
select:focus,

.fForm
textarea:focus {

    border-color:
        var(--kbg-gold) !important;

    background:
        #fff !important;

    box-shadow:
        0 0 0 4px
        rgba(187,145,72,.12) !important;

}


/* ============================================================
   HINTS
   ============================================================ */

.fForm
.hint,

.fForm
.form-hint,

.fForm
[id^="hint-"] {

    margin:
        7px 0 0 !important;

    padding:
        0 !important;

    color:
        var(--kbg-muted);

    font-size:
        11px;

    line-height:
        1.5;

}


/* ============================================================
   CHECKBOXES / RADIOS
   ============================================================ */

.fForm
input[type="checkbox"],

.fForm
input[type="radio"] {

    width:
        18px;

    height:
        18px;

    accent-color:
        var(--kbg-maroon);

}


/* ============================================================
   FIELDSETS
   ============================================================ */

.fForm
fieldset {

    min-width:
        0;

    margin:
        0 0 25px;

    padding:
        25px;

    border:
        1px solid
        var(--kbg-border) !important;

    border-radius:
        var(--kbg-radius);

    background:
        rgba(255,255,255,.84);

    box-shadow:
        var(--kbg-shadow-sm);

}

.fForm
fieldset
> legend {

    width:
        auto;

    margin:
        0;

    padding:
        0 12px;

    color:
        var(--kbg-maroon-dark);

    background:
        var(--kbg-ivory);

    font-family:
        "Cormorant Garamond",
        "Noto Serif Gujarati",
        serif;

    font-size:
        23px;

    line-height:
        1.2;

    font-weight:
        700;

}


/* ============================================================
   GENERIC FORM GRID
   ============================================================ */

.fForm
.f-fieldset-body {

    display:
        grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0,1fr)
        );

    column-gap:
        24px;

    row-gap:
        0;

}

.fForm
.f-fieldset-body
> .form-item {

    min-width:
        0;

}

.fForm
.f-fieldset-body
> .form-item-type-textarea,

.fForm
.f-fieldset-body
> .form-item-type-html,

.fForm
.f-fieldset-body
> .form-item-type-buttons,

.fForm
.f-fieldset-body
> .buttons {

    grid-column:
        1 / -1;

}


/* ============================================================
   BUTTONS
   ============================================================ */

.fForm
.buttons,

.form-item-type-buttons.buttons {

    display:
        flex;

    align-items:
        center;

    justify-content:
        flex-start;

    flex-wrap:
        wrap;

    gap:
        12px;

    margin:
        25px 0 0;

}

.fForm
input[type="submit"],

.fForm
input[type="button"],

.fForm
button,

.fForm
.button,

.fForm
.btn {

    min-height:
        49px;

    padding:
        0 27px;

    border:
        0 !important;

    border-radius:
        9px !important;

    background:
        linear-gradient(
            135deg,
            var(--kbg-maroon-dark),
            var(--kbg-maroon),
            var(--kbg-red)
        ) !important;

    color:
        #fff9e9 !important;

    font-size:
        11px;

    font-weight:
        800;

    letter-spacing:
        .65px;

    text-transform:
        uppercase;

    cursor:
        pointer;

    box-shadow:
        0 11px 27px
        rgba(77,11,20,.18);

    transition:
        transform .22s ease,
        box-shadow .22s ease,
        filter .22s ease;

}

.fForm
input[type="submit"]:hover,

.fForm
input[type="button"]:hover,

.fForm
button:hover,

.fForm
.button:hover,

.fForm
.btn:hover {

    transform:
        translateY(-2px);

    filter:
        brightness(1.08);

    box-shadow:
        0 16px 34px
        rgba(77,11,20,.25);

}


/* ============================================================
   LOGIN PAGE
   ============================================================ */

body.com-user.view-login
#fContent {

    display:
        grid;

    grid-template-columns:
        minmax(310px, .72fr)
        minmax(500px, 1.28fr);

    align-items:
        stretch;

    gap:
        24px;

    width:
        min(
            1540px,
            calc(100% - 56px)
        );

    min-height:
        510px;

    margin:
        0 auto;

    padding:
        42px 0 55px;

    background:
        transparent !important;

}

body.com-user.view-login
#fContent::before {

    display:
        none;

}


/* ============================================================
   LOGIN LEFT PANEL
   ============================================================ */

body.com-user.view-login
#fContent
> .fPageTitle {

    position:
        relative;

    grid-column:
        1;

    min-height:
        485px;

    margin:
        0;

    padding:
        0;

    overflow:
        hidden;

    border-radius:
        24px 7px 24px 7px;

    background:

        radial-gradient(
            circle at 75% 20%,
            rgba(223,189,112,.17),
            transparent 27%
        ),

        radial-gradient(
            circle at 4px 4px,
            rgba(245,222,165,.055) 1px,
            transparent 1.2px
        ),

        linear-gradient(
            145deg,
            #3c070e,
            var(--kbg-maroon-dark) 55%,
            #74151f
        );

    background-size:
        auto,
        18px 18px,
        auto;

    box-shadow:
        var(--kbg-shadow-lg);

}


/* actual KBG artwork */

body.com-user.view-login
#fContent
> .fPageTitle::before {

    content: "";

    position:
        absolute;

    left:
        50%;

    top:
        45px;

    width:
        min(230px, 64%);

    aspect-ratio:
        1;

    border-radius:
        50%;

    background-color:
        #fff;

    background-image:
        url('https://storage.unitedwebnetwork.com/files/1424/84cc2e153525ba78633706ad726d000a.jpeg');

    background-repeat:
        no-repeat;

    background-size:
        121% auto;

    background-position:
        center top;

    border:
        5px solid
        rgba(245,222,165,.70);

    box-shadow:
        0 0 0 8px
        rgba(223,189,112,.06),
        0 22px 50px
        rgba(0,0,0,.25);

    transform:
        translateX(-50%);

}


/* corner ring */

body.com-user.view-login
#fContent
> .fPageTitle::after {

    content: "";

    position:
        absolute;

    width:
        280px;

    height:
        280px;

    right:
        -125px;

    bottom:
        -125px;

    border-radius:
        50%;

    opacity:
        .12;

    background:
        repeating-conic-gradient(
            var(--kbg-gold-light) 0deg 4deg,
            transparent 4deg 14deg
        );

    -webkit-mask:
        radial-gradient(
            circle,
            transparent 0 51%,
            #000 52% 57%,
            transparent 58% 67%,
            #000 68% 71%,
            transparent 72%
        );

    mask:
        radial-gradient(
            circle,
            transparent 0 51%,
            #000 52% 57%,
            transparent 58% 67%,
            #000 68% 71%,
            transparent 72%
        );

    animation:
        kbgLoginDecor
        34s
        linear
        infinite;

}

@keyframes kbgLoginDecor {

    to {
        transform:
            rotate(360deg);
    }

}


/* Existing title container */

body.com-user.view-login
.fPageTitle
> .container {

    display:
        flex;

    align-items:
        flex-end;

    width:
        100% !important;

    max-width:
        none !important;

    min-height:
        485px;

    margin:
        0 !important;

    padding:
        34px !important;

}


/* Existing Login H1 */

body.com-user.view-login
.fPageTitle
h1,

body.com-user.view-login
.fPageTitle
#heading {

    position:
        relative;

    z-index:
        3;

    margin:
        0 !important;

    padding:
        0 0 13px !important;

    color:
        #fff9e9;

    font-size:
        clamp(
            46px,
            5vw,
            62px
        );

    line-height:
        .92;

    letter-spacing:
        -.8px;

}

body.com-user.view-login
.fPageTitle
h1::after,

body.com-user.view-login
.fPageTitle
#heading::after {

    width:
        78px;

    background:
        linear-gradient(
            90deg,
            var(--kbg-gold-light),
            transparent
        );

}


/* ============================================================
   LOGIN RIGHT SIDE
   ============================================================ */

body.com-user.view-login
#fContent
> .container {

    grid-column:
        2;

    display:
        block;

    width:
        100% !important;

    max-width:
        none !important;

    margin:
        0 !important;

    padding:
        0 !important;

}

body.com-user.view-login
#fContent
> .container
> .row {

    width:
        100%;

    margin:
        0 !important;

}

body.com-user.view-login
#fMatter {

    display:
        block !important;

    width:
        100% !important;

    margin:
        0 !important;

    padding:
        0 !important;

}


/* ============================================================
   LOGIN FORM CARD
   ============================================================ */

body.com-user.view-login
#frm {

    position:
        relative;

    isolation:
        isolate;

    display:
        block !important;

    width:
        100%;

    min-height:
        485px;

    margin:
        0;

    padding:
        56px 65px;

    overflow:
        hidden;

    border:
        1px solid
        rgba(77,11,20,.09);

    border-radius:
        7px 24px 7px 24px;

    background:
        rgba(255,255,255,.96);

    box-shadow:
        var(--kbg-shadow-lg);

}


/* top KBG colour strip */

body.com-user.view-login
#frm::before {

    content: "";

    position:
        absolute;

    left:
        0;

    top:
        0;

    width:
        100%;

    height:
        5px;

    background:
        linear-gradient(
            90deg,
            var(--kbg-red),
            var(--kbg-gold),
            var(--kbg-green),
            var(--kbg-blue)
        );

}


/* subtle form corner */

body.com-user.view-login
#frm::after {

    content: "";

    position:
        absolute;

    z-index:
        -1;

    right:
        -68px;

    top:
        -74px;

    width:
        180px;

    height:
        180px;

    border-radius:
        50%;

    opacity:
        .07;

    background:
        repeating-conic-gradient(
            var(--kbg-gold) 0deg 4deg,
            transparent 4deg 15deg
        );

}


/* ============================================================
   THIS FIXES THE GIANT LOGIN FIELD SPACING
   ============================================================ */

body.com-user.view-login
#frm
.form-item,

body.com-user.view-login
#frm
.buttons {

    /*
     * Neutralise any template flex behaviour.
     */
    flex:
        0 0 auto !important;

    width:
        min(100%, 660px);

    max-width:
        660px;

    margin-left:
        auto !important;

    margin-right:
        auto !important;

}


body.com-user.view-login
#frm
.form-item {

    display:
        block !important;

    min-height:
        0 !important;

    margin-top:
        0 !important;

    margin-bottom:
        23px !important;

    padding:
        0 !important;

}


/* login labels */

body.com-user.view-login
#frm
.form-item
> label {

    margin-bottom:
        8px !important;

    color:
        #49322f;

    font-size:
        13px;

    font-weight:
        700;

    letter-spacing:
        0;

    text-transform:
        none;

}


/* login fields */

body.com-user.view-login
#frm
input[type="text"],

body.com-user.view-login
#frm
input[type="email"],

body.com-user.view-login
#frm
input[type="password"] {

    height:
        52px !important;

    min-height:
        52px !important;

}


/* password link */

body.com-user.view-login
#hint-password {

    margin:
        7px 0 0 !important;

    text-align:
        right;

}

body.com-user.view-login
#hint-password
a {

    color:
        var(--kbg-maroon) !important;

    font-size:
        11px;

    font-weight:
        700;

    transition:
        color .2s ease;

}

body.com-user.view-login
#hint-password
a:hover {

    color:
        var(--kbg-gold) !important;

}


/* login button */

body.com-user.view-login
#frm
.buttons {

    display:
        flex !important;

    align-items:
        center;

    justify-content:
        flex-start;

    margin-top:
        8px !important;

}


body.com-user.view-login
#frm
.buttons
input[type="submit"] {

    width:
        auto !important;

    min-width:
        185px;

}


/* ============================================================
   CONTENT PAGE MENU / DASHBOARD
   ============================================================ */

#fMatter
.f-module-pages-menu
ul.fMenu {

    display:
        grid !important;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(225px,1fr)
        );

    gap:
        20px;

    margin:
        0 !important;

    padding:
        0 !important;

    list-style:
        none !important;

}

#fMatter
.f-module-pages-menu
ul.fMenu
> li {

    --kbg-menu-accent:
        var(--kbg-maroon);

    margin:
        0 !important;

    padding:
        0 !important;

    list-style:
        none !important;

}

#fMatter
.f-module-pages-menu
ul.fMenu
> li:nth-child(5n + 1) {
    --kbg-menu-accent: var(--kbg-maroon);
}

#fMatter
.f-module-pages-menu
ul.fMenu
> li:nth-child(5n + 2) {
    --kbg-menu-accent: var(--kbg-gold);
}

#fMatter
.f-module-pages-menu
ul.fMenu
> li:nth-child(5n + 3) {
    --kbg-menu-accent: var(--kbg-green);
}

#fMatter
.f-module-pages-menu
ul.fMenu
> li:nth-child(5n + 4) {
    --kbg-menu-accent: var(--kbg-blue);
}

#fMatter
.f-module-pages-menu
ul.fMenu
> li:nth-child(5n + 5) {
    --kbg-menu-accent: var(--kbg-red);
}


#fMatter
.f-module-pages-menu
ul.fMenu
> li
> a {

    position:
        relative;

    isolation:
        isolate;

    display:
        flex !important;

    flex-direction:
        column;

    align-items:
        flex-start;

    min-height:
        175px;

    overflow:
        hidden;

    padding:
        24px !important;

    border:
        1px solid
        var(--kbg-border);

    border-radius:
        15px;

    background:
        #fff;

    color:
        var(--kbg-text);

    box-shadow:
        var(--kbg-shadow-sm);

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;

}

#fMatter
.f-module-pages-menu
ul.fMenu
> li
> a::before {

    content: "";

    position:
        absolute;

    left:
        24px;

    top:
        0;

    width:
        62px;

    height:
        5px;

    border-radius:
        0 0 6px 6px;

    background:
        var(--kbg-menu-accent);

}

#fMatter
.f-module-pages-menu
ul.fMenu
> li
> a::after {

    content: "";

    position:
        absolute;

    z-index:
        -1;

    right:
        -55px;

    top:
        -60px;

    width:
        145px;

    height:
        145px;

    border-radius:
        50%;

    opacity:
        .13;

    background:
        repeating-conic-gradient(
            var(--kbg-menu-accent) 0deg 3deg,
            transparent 3deg 14deg
        );

}


#fMatter
.f-module-pages-menu
ul.fMenu
> li
> a:hover {

    border-color:
        rgba(187,145,72,.32);

    transform:
        translateY(-6px);

    box-shadow:
        var(--kbg-shadow);

}


#fMatter
.f-module-pages-menu
.menu-item-icon {

    display:
        flex !important;

    align-items:
        center;

    justify-content:
        center;

    width:
        51px;

    height:
        51px;

    margin:
        0 0 20px !important;

    border:
        1px solid
        var(--kbg-menu-accent);

    border-radius:
        50%;

    background:
        #fffaf1;

}

#fMatter
.f-module-pages-menu
.menu-item-icon:empty::before {

    content:
        "✦";

    color:
        var(--kbg-menu-accent);

    font-size:
        19px;

}

#fMatter
.f-module-pages-menu
.menu-item-icon
img {

    width:
        27px;

    height:
        27px;

    object-fit:
        contain;

}


#fMatter
.f-module-pages-menu
.menu-item-text {

    color:
        var(--kbg-maroon-dark);

    font-family:
        "Cormorant Garamond",
        "Noto Serif Gujarati",
        serif;

    font-size:
        23px;

    line-height:
        1.15;

    font-weight:
        700;

}


/* ============================================================
   GENERIC GALLERY
   ============================================================ */

#fMatter
.f-module-gallery-view
.fGalleryImages {

    display:
        grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(220px,1fr)
        );

    gap:
        20px;

    margin:
        0;

    padding:
        0;

    list-style:
        none;

}

#fMatter
.f-module-gallery-view
.fGalleryItem {

    margin:
        0;

    padding:
        0;

}

#fMatter
.f-module-gallery-view
.fGalleryImage {

    display:
        block;

    overflow:
        hidden;

    border:
        1px solid
        var(--kbg-border);

    border-radius:
        14px;

    background:
        #fff;

    box-shadow:
        var(--kbg-shadow-sm);

}

#fMatter
.f-module-gallery-view
.fGalleryImage
img {

    display:
        block;

    width:
        100%;

    height:
        auto;

    transition:
        transform .35s ease;

}

#fMatter
.f-module-gallery-view
.fGalleryImage:hover
img {

    transform:
        scale(1.035);

}


/* ============================================================
   REGISTRATION / TICKETS
   ============================================================ */

#user-form-register {

    width:
        100%;

}

.user-register-group {

    margin:
        0 0 24px;

}

.user-register-group
.f-table {

    width:
        100%;

    overflow:
        hidden;

    border:
        1px solid
        var(--kbg-border);

    border-collapse:
        separate;

    border-spacing:
        0;

    border-radius:
        14px;

    background:
        #fff;

    box-shadow:
        var(--kbg-shadow-sm);

}

.user-register-group-radio {

    padding:
        23px 26px !important;

}

.user-register-group
.f-table-title
label {

    color:
        var(--kbg-maroon-dark);

    font-family:
        "Cormorant Garamond",
        "Noto Serif Gujarati",
        serif;

    font-size:
        24px;

    line-height:
        1.2;

    font-weight:
        700;

    text-transform:
        none;

}

.user-register-group-cost {

    width:
        190px;

    padding:
        22px 25px !important;

    text-align:
        right;

    white-space:
        nowrap;

    border-left:
        1px solid
        var(--kbg-border);

    background:
        #fff8ec;

}

.f-financial-ccy {

    color:
        var(--kbg-gold);

    font-size:
        14px;

    font-weight:
        800;

}

.f-financial-amount {

    color:
        var(--kbg-maroon-dark);

    font-family:
        "Cormorant Garamond",
        serif;

    font-size:
        31px;

    line-height:
        1;

    font-weight:
        700;

}


/* ============================================================
   GROUP SIZE
   ============================================================ */

.user-register-group-size {

    margin:
        0 0 24px;

    padding:
        18px 22px !important;

    border:
        1px solid
        rgba(40,80,59,.14) !important;

    border-left:
        5px solid
        var(--kbg-green) !important;

    border-radius:
        10px;

    background:
        #f4faf6;

}

.user-register-group-size
.form-item {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        20px;

    margin:
        0;

}

.user-register-group-size
select {

    width:
        120px !important;

}


/* ============================================================
   ATTENDEE FIELDSETS
   ============================================================ */

.fieldset-people {

    position:
        relative;

    overflow:
        hidden;

    margin:
        0 0 22px !important;

    padding:
        0 !important;

    border:
        1px solid
        var(--kbg-border) !important;

    border-radius:
        15px !important;

    background:
        #fff;

    box-shadow:
        var(--kbg-shadow-sm);

}

.fieldset-people
> legend {

    display:
        flex !important;

    align-items:
        center;

    width:
        100% !important;

    max-width:
        none !important;

    min-height:
        61px;

    margin:
        0 !important;

    padding:
        0 23px !important;

    border:
        0 !important;

    border-radius:
        0 !important;

    background:
        linear-gradient(
            110deg,
            var(--kbg-maroon-dark),
            var(--kbg-maroon),
            #9b3037
        ) !important;

    color:
        #fff1c9 !important;

    font-family:
        "Cormorant Garamond",
        "Noto Serif Gujarati",
        serif;

    font-size:
        24px;

    font-weight:
        700;

}

.fieldset-people
> legend::before {

    content:
        "✦";

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    width:
        31px;

    height:
        31px;

    margin-right:
        10px;

    border:
        1px solid
        rgba(245,222,165,.35);

    border-radius:
        50%;

    color:
        var(--kbg-gold-pale);

    font-family:
        "DM Sans",
        sans-serif;

    font-size:
        12px;

}

.fieldset-people
.f-fieldset-body {

    display:
        grid !important;

    grid-template-columns:
        repeat(
            3,
            minmax(0,1fr)
        ) !important;

    column-gap:
        22px;

    row-gap:
        0;

    padding:
        24px 23px 5px !important;

}

.fieldset-people
.f-fieldset-body
.form-item {

    min-width:
        0;

    margin-bottom:
        18px;

}

.kbg-single-option-field {

    display:
        none !important;

}

input[type="hidden"] {

    display:
        none !important;

}


/* ============================================================
   TABLES
   ============================================================ */

#fMatter
table {

    width:
        100%;

    border-collapse:
        separate;

    border-spacing:
        0;

}

#fMatter
table
th {

    padding:
        12px 14px;

    background:
        #f8ecda;

    color:
        var(--kbg-maroon-dark);

    font-size:
        11px;

    font-weight:
        800;

}

#fMatter
table
td {

    padding:
        12px 14px;

    border-bottom:
        1px solid
        rgba(77,11,20,.07);

    background:
        #fff;

    color:
        var(--kbg-text);

}


/* ============================================================
   ALERTS
   ============================================================ */

#f-messages
> *,

#fMatter
.alert,

#fMatter
.message,

#fMatter
.fMessage {

    margin:
        0 0 22px;

    padding:
        14px 17px;

    border:
        1px solid
        rgba(187,145,72,.18);

    border-left:
        4px solid
        var(--kbg-gold);

    border-radius:
        9px;

    background:
        #fff8eb;

    color:
        #624c42;

}

#fMatter
.alert-success {

    border-left-color:
        var(--kbg-green);

    background:
        #f1f9f3;

}

#fMatter
.alert-danger,

#fMatter
.alert-error {

    border-left-color:
        var(--kbg-red);

    background:
        #fff3f3;

}


/* ============================================================
   BOOTSTRAP TABS
   ============================================================ */

#fMatter
.nav-tabs {

    gap:
        7px;

    border-bottom:
        1px solid
        var(--kbg-border);

}

#fMatter
.nav-tabs
.nav-link {

    border:
        1px solid
        transparent;

    border-radius:
        8px 8px 0 0;

    color:
        var(--kbg-muted);

    font-size:
        12px;

    font-weight:
        700;

}

#fMatter
.nav-tabs
.nav-link.active {

    border-color:
        var(--kbg-border);

    border-bottom-color:
        #fff;

    color:
        var(--kbg-maroon);

}


/* ============================================================
   ACCORDIONS
   ============================================================ */

#fMatter
.accordion-item {

    overflow:
        hidden;

    margin-bottom:
        10px;

    border:
        1px solid
        var(--kbg-border);

    border-radius:
        10px;

}

#fMatter
.accordion-button {

    color:
        var(--kbg-maroon-dark);

    background:
        #fffaf2;

    font-weight:
        700;

}

#fMatter
.accordion-button:not(.collapsed) {

    color:
        var(--kbg-maroon-dark);

    background:
        #f6ead7;

    box-shadow:
        none;

}


/* ============================================================
   MODALS
   ============================================================ */

.modal-content {

    overflow:
        hidden;

    border:
        1px solid
        var(--kbg-border);

    border-radius:
        14px;

    box-shadow:
        var(--kbg-shadow-lg);

}

.modal-header {

    border-bottom:
        1px solid
        var(--kbg-border);

    background:
        #fffaf2;

}

.modal-title {

    color:
        var(--kbg-maroon-dark);

    font-family:
        "Cormorant Garamond",
        serif;

    font-size:
        25px;

    font-weight:
        700;

}


/* ============================================================
   FOOTER MODULE BASE
   ============================================================ */

#fFooter {

    position:
        relative;

    width:
        100%;

    margin:
        0;

    padding:
        0;

}

#fFooter
.region-footer
> .fModule,

#fFooter
.fModuleContent {

    margin:
        0;

    padding:
        0;

}

#fFooter
.f-module-pages-menu
ul.fMenu {

    margin:
        0;

    padding:
        0;

    list-style:
        none;

}

#fFooter
.f-module-pages-menu
ul.fMenu
li {

    margin-bottom:
        9px;

}

#fFooter
.f-module-pages-menu
ul.fMenu
a {

    color:
        rgba(255,248,233,.64);

    font-size:
        11px;

}

#fFooter
.f-module-pages-menu
ul.fMenu
a:hover {

    color:
        var(--kbg-gold-pale);

}


/* ============================================================
   SCROLL TO TOP
   ============================================================ */

#nav-up {

    position:
        fixed !important;

    z-index:
        99999;

    right:
        20px !important;

    bottom:
        20px !important;

    left:
        auto !important;

    top:
        auto !important;

    display:
        flex !important;

    align-items:
        center;

    justify-content:
        center;

    width:
        47px !important;

    height:
        47px !important;

    min-width:
        47px !important;

    min-height:
        47px !important;

    margin:
        0 !important;

    padding:
        0 !important;

    border:
        1px solid
        rgba(255,255,255,.20) !important;

    border-radius:
        50% !important;

    background:
        linear-gradient(
            135deg,
            var(--kbg-maroon),
            var(--kbg-maroon-dark)
        ) !important;

    color:
        var(--kbg-gold-pale) !important;

    box-shadow:
        0 12px 30px
        rgba(77,11,20,.28);

}

#nav-up::before {

    content:
        "";

    position:
        absolute;

    inset:
        6px;

    border:
        1px dashed
        rgba(245,222,165,.30);

    border-radius:
        50%;

}

#nav-up
.fa {

    position:
        relative;

    z-index:
        2;

    color:
        var(--kbg-gold-pale) !important;

}


/* ============================================================
   FOCUS
   ============================================================ */

a:focus-visible,

button:focus-visible,

input:focus-visible,

select:focus-visible,

textarea:focus-visible {

    outline:
        3px solid
        rgba(187,145,72,.65) !important;

    outline-offset:
        3px;

}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1050px) {

    body.com-user.view-login
    #fContent {

        grid-template-columns:
            1fr;

        gap:
            20px;

        width:
            min(
                900px,
                calc(100% - 40px)
            );

        min-height:
            0;

        padding:
            30px 0 48px;

    }


    body.com-user.view-login
    #fContent
    > .fPageTitle {

        grid-column:
            1;

        min-height:
            220px;

    }


    body.com-user.view-login
    #fContent
    > .container {

        grid-column:
            1;

    }


    body.com-user.view-login
    .fPageTitle
    > .container {

        min-height:
            220px;

        padding:
            27px !important;

    }


    body.com-user.view-login
    #fContent
    > .fPageTitle::before {

        left:
            auto;

        right:
            35px;

        top:
            50%;

        width:
            155px;

        transform:
            translateY(-50%);

    }


    body.com-user.view-login
    #frm {

        min-height:
            0;

        padding:
            40px;

    }


    .fieldset-people
    .f-fieldset-body {

        grid-template-columns:
            repeat(
                2,
                minmax(0,1fr)
            ) !important;

    }

}


/* ============================================================
   MOBILE BURGER
   ============================================================ */

@media (max-width: 760px) {

    :root {

        --kbg-header-height:
            70px;

        --kbg-logo-size:
            54px;

        --kbg-header-gutter:
            18px;

    }


    .kbg-nav-toggle {

        display:
            block;

    }


    .fHeader
    .region-header
    .f-module-pages-menu {

        position:
            absolute;

        z-index:
            100020;

        top:
            calc(100% - 1px);

        left:
            0;

        right:
            0;

        width:
            100% !important;

        margin:
            0 !important;

        padding:
            8px;

        visibility:
            hidden;

        opacity:
            0;

        pointer-events:
            none;

        transform:
            translateY(-8px);

        border:
            1px solid
            rgba(245,222,165,.13);

        border-top:
            0;

        border-radius:
            0 0 13px 13px;

        background:
            linear-gradient(
                145deg,
                #3e0710,
                #64111b
            );

        box-shadow:
            0 20px 42px
            rgba(25,1,5,.30);

        transition:
            visibility .23s ease,
            opacity .23s ease,
            transform .23s ease;

    }


    .fHeader
    .region-header.kbg-menu-open
    .f-module-pages-menu {

        visibility:
            visible;

        opacity:
            1;

        pointer-events:
            auto;

        transform:
            translateY(0);

    }


    .fHeader
    .region-header
    .f-module-pages-menu
    ul.fMenu {

        display:
            block !important;

        width:
            100% !important;

    }


    .fHeader
    .region-header
    .f-module-pages-menu
    ul.fMenu
    > li {

        display:
            block !important;

        width:
            100% !important;

    }


    .fHeader
    .region-header
    .f-module-pages-menu
    ul.fMenu
    > li
    > a {

        display:
            flex !important;

        justify-content:
            flex-start !important;

        width:
            100% !important;

        min-height:
            47px;

        padding:
            0 15px !important;

        border-radius:
            7px;

    }


    .fHeader
    .region-header
    .f-module-pages-menu
    ul.fMenu
    > li
    > a::after {

        display:
            none;

    }


    /* nested menus */

    .fHeader
    .region-header
    .f-module-pages-menu
    ul.fMenu
    > li
    > ul {

        position:
            static !important;

        display:
            block !important;

        width:
            100% !important;

        margin:
            2px 0 7px !important;

        padding:
            3px 0 3px 16px !important;

        border:
            0;

        background:
            transparent !important;

        box-shadow:
            none;

    }


    /* forms */

    .fForm
    .f-fieldset-body {

        grid-template-columns:
            1fr;

    }


    .fForm
    .f-fieldset-body
    > * {

        grid-column:
            auto !important;

    }


    .fieldset-people
    .f-fieldset-body {

        grid-template-columns:
            1fr !important;

    }


    #fMatter
    .f-module-pages-menu
    ul.fMenu {

        grid-template-columns:
            repeat(
                2,
                minmax(0,1fr)
            );

    }

}


/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 560px) {

    #fContent
    > .container,

    .fPageTitle
    > .container {

        width:
            calc(100% - 26px) !important;

    }


    .fPageTitle {

        padding:
            24px 0 4px;

    }


    .fPageTitle
    h1,

    .fPageTitle
    #heading {

        font-size:
            39px;

    }


    #fMatter {

        padding:
            19px 0 47px !important;

    }


    /* login */

    body.com-user.view-login
    #fContent {

        width:
            calc(100% - 22px);

        padding:
            18px 0 36px;

    }


    body.com-user.view-login
    #fContent
    > .fPageTitle {

        min-height:
            178px;

        border-radius:
            18px 7px 18px 7px;

    }


    body.com-user.view-login
    .fPageTitle
    > .container {

        min-height:
            178px;

        padding:
            21px !important;

    }


    body.com-user.view-login
    #fContent
    > .fPageTitle::before {

        right:
            18px;

        width:
            108px;

        border-width:
            3px;

    }


    body.com-user.view-login
    .fPageTitle
    h1,

    body.com-user.view-login
    .fPageTitle
    #heading {

        font-size:
            41px;

    }


    body.com-user.view-login
    #frm {

        padding:
            30px 20px 26px;

        border-radius:
            7px 18px 7px 18px;

    }


    body.com-user.view-login
    #frm
    .form-item,

    body.com-user.view-login
    #frm
    .buttons {

        max-width:
            none;

        width:
            100%;

    }


    body.com-user.view-login
    #frm
    .buttons
    input[type="submit"] {

        width:
            100% !important;

        min-width:
            0;

    }


    #fMatter
    .f-module-pages-menu
    ul.fMenu {

        grid-template-columns:
            1fr;

    }


    /* registration */

    .user-register-group-radio,

    .user-register-group-cost {

        display:
            block !important;

        width:
            100% !important;

        text-align:
            left;

    }


    .user-register-group-cost {

        border-left:
            0;

        border-top:
            1px solid
            var(--kbg-border);

    }


    .user-register-group-size
    .form-item {

        flex-direction:
            column;

        align-items:
            stretch;

    }


    .user-register-group-size
    select {

        width:
            100% !important;

    }


    .fForm
    .buttons {

        display:
            grid;

        grid-template-columns:
            1fr;

    }


    .fForm
    .buttons
    input,

    .fForm
    .buttons
    button,

    .fForm
    .buttons
    a {

        width:
            100%;

    }

}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation:
            none !important;

        transition-duration:
            .001ms !important;

        scroll-behavior:
            auto !important;

    }


    html.kbg-motion-ready
    [data-kbg-reveal] {

        opacity:
            1 !important;

        transform:
            none !important;

    }

}