/* =========================================================
   1. THEME VARIABLES
   ========================================================= */
* {
    box-sizing: border-box;
}

:root {
    --CA_font_main: "Trebuchet MS", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Tahoma, sans-serif;
    
    --CA_blue: #2e3192;
    --CA_purple: #91268f;
    --CA_blend: #602d90;
    --CA_gradient_main: linear-gradient(
        135deg,
        var(--CA_blue) 20%,
        var(--CA_blend) 50%,
        var(--CA_purple) 80%
    );
    --CA_white: #ffffff;
    --CA_radius: 2px;
    
    /* Fallback for the JS-driven nav height */
    --nav-height: 70px; 
}

/* =========================================================
   2. BASE GLOBAL STYLES
   ========================================================= */
body {
    background: white !important;    
    font-family: var(--CA_font_main) !important;
}

h1{
    font-family: var(--CA_font_main) !important;
    color: var(--CA_purple) !important;
}

h2, h3, h4, h5, h6, CA_primary_title {
    font-family: var(--CA_font_main) !important;
    color: var(--CA_blue) !important;
}
.ccm-page {
    /* Set by your JavaScript to match navbar height */
    padding-top: var(--nav-height) !important; 
}

p {font-size:1.2rem; }

/* =========================================================
   3. NAVBAR & CMS TOOLBAR LOGIC
   ========================================================= */
#ccm-toolbar {
    z-index: 9999 !important;
}

.navbar {
    z-index: 1030 !important;
}

/* Push navbar down when CMS toolbar is visible */
.ccm-toolbar-visible .navbar,
.ccm-edit-mode .navbar {
    top: 48px !important;
}

div.ccm-page div.ccm-block-top-navigation-bar .navbar {
    position: fixed;
    top: 0;
    width: 100%;
    min-height: 70px;
    background-color: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.logo {
    /* height: 55px !important; */
    width: auto !important;
    transition: height 0.3s ease;
}

/* =========================================================
   4. NAVIGATION (DESKTOP & HOVER)
   ========================================================= */
@media (min-width: 992px) {
    .navbar .container-fluid {
        display: flex !important;
        flex-wrap: nowrap !important;
    }

    .navbar-collapse {
        display: flex !important;
        justify-content: center;
    }

    .navbar-nav .dropdown:hover > .dropdown-menu {
        display: block;
        max-height: 500px;
        opacity: 1;
        visibility: visible;
    }

    .navbar-nav .dropdown-menu {
        display: block;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
        transition: max-height 0.4s ease, opacity 0.3s ease;
        margin-top: 0;
    }
    
    .navbar-nav .dropdown-menu .dropdown-item.active{   
        color: lightgrey !important;
    }
}

/* =========================================================
   5. NAVIGATION (MOBILE ALIGNMENT FIX)
   ========================================================= */
@media (max-width: 991.98px) {
    .navbar .container-fluid {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }

    .navbar-brand, 
    .search-wrapper {
        flex: 1 0 0% !important; 
        display: flex !important;
    }

    .navbar-brand { justify-content: flex-start !important; }
    .search-wrapper { justify-content: flex-end !important; }

    .navbar-toggler {
        flex: 0 0 auto !important;
        margin: 0 auto !important;
    }

    /* Mobile Close Icon */
    .navbar-toggler:not(.collapsed) { font-size: 0 !important; }
    .navbar-toggler:not(.collapsed)::after {
        content: 'X';
        font-size: 24px;
        /* font-weight: bold; */
        color: var(--CA_blue);
    }
}

/* =========================================================
   6. SHOPPING CART ICON
   ========================================================= */
.navbar-nav a.nav-link[href*="cart"] {
    font-size: 0 !important;
}

.navbar-nav a.nav-link[href*="cart"]::before {
    content: '\f07a';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 20px;
    color: var(--CA_blue);
    visibility: visible;
    display: inline-block;
}

/* =========================================================
   7. SEARCH & STORE BUTTONS
   ========================================================= */
.ccm-search-block-submit.btn-secondary {
    --bs-btn-bg: var(--CA_blue) !important;
    --bs-btn-border-color: var(--CA_blue) !important;
    --bs-btn-hover-bg: var(--CA_purple) !important;
    --bs-btn-color: var(--CA_white) !important;
}

.store-btn-add-to-cart {
    background-color: var(--CA_blue) !important; 
    color: white !important;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    width: 8em;
    border-radius: var(--CA_radius);
}

.store-btn-more-details {
    background-color: var(--CA_purple) !important;
    color: white !important;
}

/* =========================================================
   8. FOOTER STYLING (THE FINAL ALIGNMENT)
   ========================================================= */
div.theme-atomik footer {
	background-color: #f3f3f3;
	color: #6b7075;
	padding-bottom: 0;
	padding-top: ;
}

.custom-footer {
    width: 100%;
    background: #fff;
    margin-top: 40px;
}

.footer-inner {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-end !important; /* Pushes text to the bottom line */
    flex-wrap: nowrap !important;
    width: 100% !important;
    padding: 20px 0;
}

/* Ensure the columns don't stack */
.footer-col {
    flex: 0 1 auto !important;
    display: block !important;
    width: auto !important;
}

.copyright-text {
    font-weight: 600;
    font-size: 1.1em;
    display: block;
    margin-bottom: 5px;
}

.footer-col-left { text-align: left !important; }
.footer-col-right { text-align: left !important; } /* Text is left-aligned, but box is on right */

/* Mobile behavior */
@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .footer-col {
        width: 100% !important;
        margin-bottom: 20px;
    }
}

.login-wrapper {
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
}

/* =========================================================
   9. SHOP ACCORDION STYLING (CRAFT ARENA BRANDING)
   ========================================================= */
/* The main header button */
.accordion-button {
    color: #000000 !important; /* Black text as requested */
    font-weight: 600;
    font-size:1.5rem;
    background-color: var(--CA_white) !important;
    border: 1px solid rgba(46, 49, 146, 0.1);
}

/* When the accordion is open */
.accordion-button:not(.collapsed) {
    color: #000000 !important;
    background-color: rgba(145, 38, 143, 0.1) !important; /* Light Purple tint */
    box-shadow: inset 0 -1px 0 rgba(46, 49, 146, 0.2);
}

/* The "plus/minus" or arrow icon color */
.accordion-button::after {
    filter: sepia(100%) saturate(2000%) hue-rotate(240deg); /* Colors the arrow CA_blue */
}

/* The colored border/accent on the left */
.accordion-item {
    /* border-left: 4px solid var(--CA_blue) !important; */
    margin-bottom: 10px;
    border-radius: var(--CA_radius) !important;
    overflow: hidden;
}

/* Alternate items to use CA_purple */
.accordion-item:nth-child(even) {
    border-left-color: var(--CA_purple) !important;
}

/* The body/content area */
.accordion-body {
    background-color: var(--CA_white);
    color: #000000 !important;
}

/* =========================================================
   10. BOLD CHEVRON TOGGLES (CA_BLUE THEME)
   ========================================================= */

/* 1. Remove default Bootstrap arrow */
.accordion-button::after {
    display: none !important;
}

/* 2. Style the Circle and Icon (Closed & Global) */
.accordion-button::before {
    content: '\f078'; /* Chevron Down */
    font-family: 'Font Awesome 5 Free';
    font-weight: 600;
    
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    
    /* Force color to CA_blue */
    border: 2px solid var(--CA_blue) !important;
    color: var(--CA_blue) !important; 
    background-color: transparent !important;
    
    border-radius: 50%;
    margin-right: 15px;
    font-size: 12px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* 3. Open State: Icon stays Blue, but we change background/border if desired */
.accordion-button:not(.collapsed)::before {
    content: '\f077'; /* Chevron Up */
    /* Keeping the icon Blue */
    color: var(--CA_blue) !important;
    /* Optional: Slightly thicken border or add a very light blue tint */
    border-color: var(--CA_blue) !important;
    background-color: rgba(46, 49, 146, 0.05) !important; 
}

/* 4. Active Heading Text Style */
.accordion-button:not(.collapsed) {
    color: #000000 !important;
    font-weight: 700 !important;
}
/* =========================================================
   11. ACCORDION OPENED CONTENT BACKGROUND
   ========================================================= */

/* This targets the container that opens up */
.accordion-collapse {
    background-color: #f8f8fc !important; /* Very light cool grey/blue */
    border-bottom: 1px solid rgba(46, 49, 146, 0.1);
}

/* Applying a slightly deeper tint to the actual body text area */
.accordion-body {
    background-color: rgba(145, 38, 143, 0.05) !important; /* 5% Purple tint */
    color: #000000 !important;
    padding: 20px !important;
    line-height: 1.6;
}

/* Optional: Add a subtle inner shadow to give it depth */
.accordion-collapse.show {
    box-shadow: inset 0 10px 10px -10px rgba(0,0,0,0.05);
}

.accordion-body p{
    padding-left:2em;
}
.accordion-body ul li{
    text-decoration:none;
}

/* =========================================================
   12. FINAL NAV: CENTERED, NESTED & BRANDED
   ========================================================= */

/* 1. Global: All menu items CA_blue by default */
.navbar-nav .nav-link,
.navbar-nav .dropdown-item {
    color: var(--CA_blue) !important;
    text-align: center !important;
    background: transparent !important;
}

/* 2. Desktop: Align sub-menu directly under parent */
@media (min-width: 992px) {


    .navbar-nav .dropdown-menu {
        left: 0 !important;
        right: 0 !important;
        margin: 0 auto !important; /* Centers it within the parent width */
        min-width: 100%;
        border: none;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        text-align: center !important;
    }
}

/* 3. Mobile & Active State Logic */
@media (max-width: 991.98px) {
    .navbar-collapse {
        text-align: center !important;
    }

    /* CURRENT PAGE: Sub-menu page turns lightgray */
    .dropdown-item.active,
    .nav-link.active:not(.dropdown-toggle) {

    }

    /* PARENT: Stays CA_blue even when sub-page is active */
    .nav-link.dropdown-toggle.nav-path-selected,
    .nav-link.dropdown-toggle.active {
        color: var(--CA_blue) !important;
    }
}

.dropdown-item.active , .dropdown-item:active{
    background-color: white !important;
    color: red !important;
    text-decoration: none;
    }
    
.navbar-nav .dropdown-menu .dropdown-item.active {
	color: lightgrey !important;
}

/* 4. Hover State */

   .navbar-nav .nav-link:hover,
    .navbar-nav .dropdown-item:hover {
    color: var(--CA_purple) !important;
    }
    
/************ Workshops and classes ****************/
.CA_primary_title {
    color: var(--CA_purple) !important;
    font-size: 2rem !important;
    font-weight: 500 !important;
    text-align:left;
    margin-top:1rem;
}

.CA_secondary_title {
    color: black !important;
    font-size: 1.5rem !important;
    font-weight: 400 !important;
    padding-bottom: 1em;
    text-align:left;
    
}


.CA_primary_title_small {
    color: var(--CA_purple) !important;
    font-size: 1.3rem !important;
    font-weight: 500 !important;
    text-align:left;
    margin-top:1rem;
}

.CA_secondary_title_small {
    color: black !important;
    font-size: 1.0rem !important;
    font-weight: 400 !important;
    padding-bottom: 1em;
    text-align:left;
    
}

/************** MISC **************/
.form-control {
	background-color: #eee;
	border: solid 1px black;
}

/************ Logo tweak ***************/
@media (min-width: 992px) {
	div.ccm-page div.ccm-block-top-navigation-bar .navbar-brand img {
	max-height: 90px;
	}
}

/********** Tantalising bottom bar ************/
div.theme-atomik .ccm-image-slider .ccm-image-slider-text {
	background-color: rgba(246, 246, 246, 0);
}

