/*
 * Custom Stylesheet for testuscbolli.enrole.com
 *
 * Date: 2024-10-27
 * Author: Your AI Design Assistant
 * Version: 2.3
 *
 * --- NOTES ---
 * This stylesheet restyles the site using a new color palette and typography.
 * - Primary Color (Navy): #041e42
 * - Secondary Color (Aqua): #3eb1c8
 * - Fonts: Montserrat for headings, Lato for body text.
 * - Structure is based on the original cssSample_jjc.css file and validated against the live site.
 * - Added a comprehensive responsive design section at the end to ensure mobile compatibility.
*/

/* --- FONT IMPORT --- */
@import url("https://fonts.googleapis.com/css?family=Lato:400,400i,700,900|Montserrat:400,600,700&display=swap");

/* --- CSS VARIABLES & GLOBAL STYLES --- */
:root {
  /* Colors */
  --color-primary: #041e42;          /* Navy */
  --color-secondary: #3eb1c8;        /* Aqua */
  --color-secondary-light: #e0f4f8;   /* Light Aqua for backgrounds */
  --color-secondary-medium-light: #7bcde3; /* Lighter aqua for banner */
  --color-text: #212529;              /* Dark Gray for body text */
  --color-text-light: #f8f9fa;       /* Light gray/white for dark backgrounds */
  --color-background: #f8f9fa;        /* Light gray for general backgrounds */
  --color-white: #ffffff;
  --color-border: #ced4da;            /* Standard border color */

  /* Fonts */
  --font-body: 'Lato', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
}

/* Global Box Sizing Rule */
*, :after, :before {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

/* --- Test Banner Styling --- */
#testBanner {
  background-color: var(--color-secondary-medium-light);
  color: var(--color-primary);
  text-align: center;
  padding: 0.5rem;
  font-weight: 700;
  display: block !important;
}

/* --- BASE TYPOGRAPHY --- */

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-white);
}

button,
input,
select,
textarea,
table,
th,
tr,
td {
  font-family: var(--font-body);
  letter-spacing: .5px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-weight: 600;
}

h2 {
  font-size: 1.1rem;
}

a {
  color: var(--color-primary);
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a:hover {
  color: var(--color-secondary);
}

p > a {
  text-decoration: underline;
  text-decoration-color: var(--color-secondary);
}

p > a:hover {
  text-decoration-color: var(--color-primary);
}

/* --- HEADER & NAVIGATION --- */

#topBar {
  background: linear-gradient(to bottom, #f0f0f0, rgba(240, 240, 240, 0));
}

#header, #header_title, #login, #cartCount, #cartOption a, #profileOption a, #loginContent input.button, #loginContent input.submit, #subCategories a:hover {
  background-color: var(--color-white);
}

#header {
  height: 140px;
  border-bottom: 1px solid var(--color-border);
}

#header table {
  height: 120px;
  width: 98%;
}

#header_title {
  padding-right: 20px;
}

.image_header {
  width: 300px;
  height: auto;
}

#login {
  color: var(--color-text);
  text-shadow: none;
  float: right;
  font-size: .95rem;
  font-weight: normal;
}

#login a {
  background-color: var(--color-white);
  color: var(--color-text);
}

#login input.text {
  font-size: 0.85rem;
  border: 1px solid var(--color-border);
}

#login input.submit {
  border-radius: 4px;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  background-color: transparent;
  transition: color .3s, background-color .3s;
  font-size: 0.85rem;
  padding: 6px 12px;
  text-transform: uppercase;
  font-weight: 700;
  font-family: var(--font-heading);
  cursor: pointer;
}

#login input.submit:hover {
  color: var(--color-white);
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

#cartCount {
  text-shadow: none;
  padding-top: 47px;
  float: right;
}

#cartCount a {
  background-color: var(--color-white);
  color: var(--color-text);
  font-size: 0.85rem;
}

#cartCount img {
  height: 25px;
  width: 25px;
  padding-left: 5px;
  padding-right: 5px;
}

#breadcrumbTop {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: .5em;
}

#breadcrumbTop a {
  color: var(--color-text);
  font-size: 1rem;
}

#search {
  padding-right: 23px;
}

#search input.text {
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 2px var(--color-secondary-light);
}

/* --- SIDE MENU & MAIN CONTENT AREA --- */

#popularContainer {
    border-right: none;
}

.leftMenu ul li {
  padding-top: 8px;
}

.leftMenu ul li a {
  color: var(--color-text);
  background-color: var(--color-white);
  font-size: 1rem;
  padding: 5px;
  border: 2px solid transparent;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.leftMenu ul li a:hover,
.leftMenu ul.Level00 li a:hover,
.leftMenu ul.Level01 li a:hover {
  color: var(--color-primary);
  border: 2px solid var(--color-secondary);
  background-color: var(--color-secondary-light);
}

.leftMenu ul li a i {
/*  border: solid var(--color-primary); */
  border-width: 0 2px 2px 0;
}

.subHeader {
  color: var(--color-text);
  border-bottom: 2px solid var(--color-primary);
}

.courses a {
  font-size: .95rem;
  font-weight: 700;
  color: var(--color-primary);
}

.courses a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

.courseinner table {
  background-color: var(--color-background);
}

.courseinner table tr td {
  font-size: .913rem;
}

.courseinner table tr td.tableheading {
  width: 10%;
  color: var(--color-text);
  font-size: 0.913rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

#content .courseinner {
  font-size: .913rem;
  background-color: var(--color-background);
  letter-spacing: .5px;
}

/* --- CART & CHECKOUT --- */

.cartOption {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.cartOption input.submit,
.cartOption a {
    flex: 1 1 180px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-primary);
    border-radius: 4px;
    font-size: .913rem;
    font-weight: 700;
    text-transform: uppercase;
    font-family: var(--font-heading);
    padding: 10px 15px;
    cursor: pointer;
    text-align: center;
    transition: color .3s, background-color .3s;
}

.cartOption input.submit:hover,
.cartOption a:hover {
    color: var(--color-primary);
    background: var(--color-white) !important;
    border-color: var(--color-primary);
    text-decoration: none !important;
}

.alert {
    font-size: 0.9rem;
    color: var(--color-text);
    background-color: transparent;
    border: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.alert span.required {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.1em;
}


.cart a {
  color: var(--color-primary);
  font-size: .913rem;
  font-weight: 700;
}

.cart a:hover {
  color: var(--color-secondary);
}

.cartinner #addedAttendee {
  background-color: var(--color-white);
  border-radius: 0;
  transition: background-color 0.3s;
}

.cartinner #addedAttendee:hover {
    background-color: var(--color-secondary-light);
}

.cartinner #addedAttendee a:hover {
    background-color: transparent;
}

input#keycode,
tr:has(input#keycode) {
    display: none;
}

/* --- CALENDAR --- */
.calHeader {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.calSubheaderDOW {
  background-color: var(--color-secondary-light);
  color: var(--color-primary);
  text-transform: uppercase;
}

.calDOW {
  background-color: var(--color-background);
}

.calTodayDOWlisting {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

table.cal a:hover {
  text-decoration: underline;
  color: var(--color-secondary);
}

.calFooterLeft, .calFooterRight, .calFooterCenter {
  background-color: var(--color-secondary-light);
  border-color: var(--color-border);
  text-transform: uppercase;
}

/* --- LOGIN & PROFILE FORMS --- */
.logform {
  background: var(--color-background);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  padding: 1.5rem;
}

.logHeading {
  color: var(--color-primary);
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

.logform input {
  background: var(--color-white);
}

.logform button {
  background: var(--color-primary);
  color: var(--color-white);
  border: 1px solid var(--color-primary);
  transition: all 0.3s;
}

.logform button:hover, .logform button:active, .logform button:focus {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-white);
}

.logform .forgotPw a {
  color: var(--color-primary);
  font-size: 0.85rem;
}

.profileinner table {
  width: 100% !important;
}

/* --- CARDS & MISC --- */
a.card,
a.imageCard {
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}

a.card:hover,
a.imageCard:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
  border-color: var(--color-secondary);
  margin: 0;
}

a.imageCard span.cardText {
  background-color: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  border-top: none;
  transition: line-height .4s ease-in-out;
}

a.imageCard:hover span.cardText {
  background-color: var(--color-secondary);
  line-height: 3em;
}

/* NEW REQUEST ZD11545 */
/* Configurable vars (uses your theme vars by default) */
:root {
  --banner-color: var(--color-primary);
  --banner-color-hover: var(--color-secondary);
  --banner-text-color: var(--color-white);
  --banner-height: clamp(44px, 22%, 80px);
}

/* Ensure positioning context and keep your overflow/rounded corners */
a.card,
a.imageCard {
  position: relative;      /* needed for ::before stripe */
  overflow: hidden;        /* already in your CSS; keeps stripe clipped */
}

/* Full-width horizontal stripe centered vertically */
a.card::before,
a.imageCard::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: var(--banner-height);
  background: #0F7F93;
  z-index: 1;
  pointer-events: none;
}

/* Lift text above the stripe and style it */
a.card span,
a.card .cardText,
a.imageCard span,
a.imageCard .cardText {
  position: relative;
  z-index: 2;
  color: var(--banner-text-color);
  background: transparent;
  border: 0;
  padding: 0 0.6rem;
  line-height: normal;  /* keeps text height tidy across types */
}

/* Center content so text sits over the banner (image cards too) */
a.card,
a.imageCard {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Override the previous bottom strip + hover growth on image cards */
a.imageCard span.cardText {
  background-color: transparent !important;  /* was var(--color-primary) */
  width: auto;
  border-top: 0;
  line-height: normal;                        /* cancel line-height animation */
}

a.imageCard:hover span.cardText {
  background-color: transparent !important;
  line-height: normal;                        /* keep banner stable on hover */
}

/* Optional: change stripe color on hover to match your theme */
a.card:hover::before,
a.imageCard:hover::before {
  background: var(--banner-color-hover);
}

/* END CARD REQUEST */


#bulletin {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 1em;
}

#bulletin_header {
    border: none;
}


/* --- FOOTER --- */
#footer {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  padding: 2rem 0;
}

#footer table {
  background-color: var(--color-primary);
}

#footer a {
  color: var(--color-white);
}

#footer a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

/**************************************************
 * RESPONSIVE DESIGN
 **************************************************/

@media (max-width: 992px) {
  #header table, #header tbody, #header tr, #header td,
  #content > table, #content > table > tbody, #content > table > tr, #content > table > tr > td {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
  }

  #header {
    height: auto;
    padding-bottom: 1em;
  }

  #header_title, #login, #cartCount, #search {
    text-align: center;
    float: none;
    padding: 10px 0;
    width: 100%;
  }

  .image_header {
      margin: 0 auto;
  }

  #popularContainer {
    width: 100% !important;
  }
  
  .leftMenu {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1em;
    margin-bottom: 1em;
  }

  .leftMenu ul {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      padding-left: 0;
  }

  .leftMenu ul li {
      margin: 0 5px;
  }

  #maincontent {
      width: 100% !important;
  }
  
  #maincontent input.text {
      width: 100%;
  }

  .profileinner table {
      width: 100% !important;
  }
}

@media (max-width: 767px) {
    body {
        -webkit-text-size-adjust: 100%;
    }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.2rem; }

    #header {
        padding: 1rem;
    }

    #header_title {
        padding-right: 0;
    }

    /* MOBILE CART VIEW: Restructure table into a vertical layout */
    .cartinner > table,
    .cartinner > table > tbody,
    .cartinner > table > tr,
    .cartinner > table > td {
        display: block;
        width: 100%;
        text-align: left;
    }

    .cartinner table thead {
        display: none; /* Hide table headers on mobile */
    }

    .cartinner > table > tbody > tr {
        border: 1px solid var(--color-border);
        border-radius: 4px;
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .cartinner table td {
        border: none;
        padding: 4px 0;
        white-space: normal; /* Allow text to wrap */
    }
    
    .cartinner table td[class*="Right"] {
        text-align: left; /* Force all cells to align left */
    }

    .cartinner table td:empty {
        display: none;
    }

    /* Mobile style for promo code input */
    .cartinner tr:has(input[name="couponCode"]) {
        display: flex;
        gap: 10px;
        align-items: center;
        border: none;
        padding: 0;
    }

    .cartinner tr:has(input[name="couponCode"]) input[type="text"] {
        flex-grow: 1;
    }
    
    .cartinner tr:has(input[name="couponCode"]) input[type="submit"] {
        flex-shrink: 0;
    }

    /* Stack cart buttons on mobile */
    .cartOption {
        flex-direction: column;
    }

    .cartOption input.submit,
    .cartOption a {
        width: 100%;
        margin-bottom: 10px;
        box-sizing: border-box;
    }
}

/* set the background color for the whole top and bottom blocks all at once */
#header, #header_title, #login, #cartCount, #cartOption a, #profileOption a, #footer, #footer table, #loginContent input.button, #loginContent input.submit, #subCategories a:hover {
/*	background-color: #333333; */
}

/* CS-562 */
<style>
  .promo-banner {
    background-color: #e6f7ff;
    border: 1px solid #91d5ff;
    padding: 10px 15px;
    margin-bottom: 1px;
    font-family: Arial, sans-serif;
  }
  
  .promo-banner-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
  }
  
  .promo-icon {
    color: #0066a1;
    margin-right: 10px;
    font-size: 20px;
  }
  
  .promo-text {
    color: #0066a1;
    font-weight: bold;
  }
  
  .total-savings {
    color: #52c41a;
    font-weight: bold;
    margin-left: auto;
  }
  
  .promo-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .promo-item {
    display: flex;
    align-items: center;
    padding-left: 30px;
  }
  
  .promo-code {
    background-color: #0066a1;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    margin-right: 10px;
    min-width: 80px;
    text-align: center;
  }
  
  .promo-description {
    flex-grow: 1;
    color: #333;
  }
</style>