.form-control-plaintext {
    display: block!important;
    width: 100%!important;
    padding: .375rem .5rem!important;
    margin-bottom: 0!important;
    font-size: 1rem!important;
    line-height: 1.5!important;
    color: #212529!important;
    background-color: #f2f2f2!important;
    border: solid #f2f2f2!important;
    border-width: 1px 0!important;
}
.form-group {
    margin-bottom: 1rem!important;
}

.table>thead {
    text-wrap: nowrap;
}

.custom-quill-editor .ql-container {
    height: 400px; 
}

/* Font */

@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,100..900&display=swap');

body {
	font-family: "Inter", sans-serif !important;
	font-optical-sizing: auto;
	font-style: normal;
}


/* Header */

.container-header {
    width: 100%;
    display: flex;
    padding-right: 10px;
    padding-left: 10px;
    margin-right: auto;
    margin-left: auto;
}

@media(max-width:767px) {
    .offcanvas-body .container-header {
    	display: block;
        height: 100px;
	}	
}

.simple-banner {
	position: static;
	background: #40bcf2;
	z-index: 3000;
}

.simple-banner .simple-banner-text {
    font-size: .9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    font-weight: 700;
    padding: 10px;
    text-align: center;
}

.simple-banner .simple-banner-text a {
    color: #FFFFFF;
    text-decoration: none;
}

.simple-banner .simple-banner-text a.simple-banner-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.simple-banner-logo {
    height: 18px;
    width: auto;
    vertical-align: middle;
}

/* Mobile: center the banner and stack text / sponsor logo on two lines. */
@media (max-width: 767.98px) {
    .simple-banner .simple-banner-text a.simple-banner-link {
        gap: 4px;
    }
    .simple-banner .simple-banner-text a.simple-banner-link .simple-banner-label {
        flex: 0 0 100%;
        text-align: center;
    }
}

.navbar {
	z-index: 9999;
}

.nav-item {
	padding: 0 10px;
}

@media(max-width:1399px) {
	.nav-item {
		padding: 0;
	}
}

.nav-link:hover {
	background-color: #40bcf2;
	color: #fff;
}

.nav-item.selected a {
	color: #40bcf2 !important;
}

.nav-item.selected a:hover {
	color: #fff !important;
}

.nav-item.highlighted a {
	background-color: #005696;
	color: #fff !important;
}

.nav-item.highlighted a:hover {
	background-color: #7AC14E;
	color: #fff !important;
}

.nav-item a {
	height: 100px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-transform: uppercase;
	color: #005696;
	font-size: 16px;
    font-weight: 700;
    letter-spacing: .5px;
}

@media(max-width:767px) {
    .nav-item a {
    	display: block;
        height: 38px;
        padding: 2%;
	}
	.navbar-brand {
		height: 100px !important;
	}
}

@media(max-width:1399px) {
    .nav-item a {
        font-size: 14px;
        letter-spacing: 0;
	}
}

.dropdown-toggle::after {
	display: none !important;
}

.dropdown-item {
	display: block;
	height: auto !important;
	text-align: left !important;
	font-weight: 600 !important;
	justify-content: initial !important;
}

.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0; /* remove the gap so it doesn't close */
}

.dropdown-menu {
	border: none;
    border-radius: 0;
}

.header-logo-mobile {
	height: 84px;
}

.header-logo-desktop {
	height: 84px;
}

.navbar-toggler {
	border: none;
}

.btn-search {
	vertical-align: middle;
}





/* BODY */

h1 {
	font-weight: 600;
}

h2 {
	font-weight: 600;
	font-size: 1.5rem;
}

p {
	font-weight: 300;
}

.form-label {
	font-weight: 300;
	color: #586276;
	font-size: .9rem;
}

a.card,a.card:hover {
	text-decoration: none;
}

a.card:hover {
	border: solid #40bcf2;
}

.card {
	border: solid #fff;
	-webkit-transition: border .2s ease-in-out;
    -moz-transition: border .2s ease-in-out;
    -o-transition: border .2s ease-in-out;
    -ms-transition: border .2s ease-in-out;
}

.card-title {
	font-size: 2rem;
	font-weight: 700;
}

.list-image {
	min-height: 100%;
	width: 100%;
	max-height: 240px;
	object-fit: cover;
}

@media(max-width:767px) {
	.main-image {
		min-height: 220px !important;
	}
	.card-title {
	font-size: 1.5rem;
	}
}

.main-image {
	background-size: cover;
	background-position: 50% 50%;
	min-height: 33vh;
	position: relative;
}

.org-icon {
	position: absolute;
	left: 10px;
	top: -48px;
	width: 96px;
	height: 96px;
	border-radius: 48px;
	background-size: cover;
	background-position: 50% 50%;
	background-color: #fff;
}


.btn-primary {
	background-color: #40bcf2 !important;
    padding: 10px 60px !important;
    border-radius: 3px !important;
    color: #FFFFFF !important;
    text-transform: uppercase !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    border: none !important;
}

.btn-primary:hover {
	background-color: #2196F3 !important;
}


/* FILTERS */
.filter-icon {
	width: 120px;
    padding: 0;
    margin-right: 12px;
    color: #40bcf2 !important;
    display: flex;
}

.css-1okebmr-indicatorSeparator {
	display: none !important;
}

.css-tlfecz-indicatorContainer {
	padding: 8px 0 !important;
}

.css-1wa3eu0-placeholder {
	font-size: 1em !important;
}

.react-datepicker-popper {
	z-index: 999 !important;
}

.events-upcoming-select {
	/*z-index: 101 !important;*/
	margin-bottom: 4px;
}

.form-select {
	border: solid #cccccc !important;
	border-radius: 4px !important;
	--bs-form-select-bg-img: url(data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e);

}

/* BADGES CATEGORIES */

/* Match Race */
.text-bg-cat1 {
	color: #2F7F33;
	background-color: #E8F5E9;
}

/* High Performance */
.text-bg-cat2 {
	color: #EE7606;
	background-color: #FFFAEB;
}

/* Superyacht / Maxi */
.text-bg-cat3 {
	color: #8E19D2;
	background-color: #F3E3FD;
}

/* Classics and Meter Boats 12M */
.text-bg-cat4 {
	color: #5e370e;
	background-color: #ae977e;
}

/* Pro Level */
.text-bg-cat5 {
	color: #FF178F;
	background-color: #FFF2F9;
}

/* One Design */
.text-bg-cat6 {
	color: #0DA30A;
	background-color: #E3FDED;
}

/* Offshore */
.text-bg-cat7 {
	color: #1976D2;
	background-color: #E3F2FD;
}

/* DR's Schedule or travel */
.text-bg-cat8 {
	color: #BF0D0D;
	background-color: #FFEAEA;
}

/* Away Events */
.text-bg-cat9 {
	color: #777D88;
	background-color: #EFF1F3;
}

.text-bg-default {
    color: #555555; 
    background-color: #F0F0F0;
}


/* Categories and tags */
.text-bg-light {
	color: #222 !important;
	background-color: #eee !important;
}



/* FOOTER */

.social-icon {
	display: inline-block;
    background-color: #ffffff;
    border-radius: 18px;
    font-size: 18px;
    padding: 9px;
    list-style: none;
    box-sizing: content-box;
    height: 1em;
    line-height: 1em;
    width: 1em;
    cursor: pointer;
    margin: 0 6px 12px !important;
    -webkit-transition: background-color .2s ease-in-out;
    -moz-transition: background-color .2s ease-in-out;
    -o-transition: background-color .2s ease-in-out;
    -ms-transition: background-color .2s ease-in-out;
}

.social-icon:hover {
	background-color: #40BCF2;
}

.social-icon a {
	display: flex;
	width: 18px;
	height: 18px;
}

.status-online {
	color: #2F7F33;
	background-color: #FFFFFF;
}

.status-draft {
	color: #FFD700;
	background-color: #FFFFFF;
}

.status-archived {
	color: #6c757d;
	background-color: #FFFFFF;
}
.nav-link.active-switch {
    color: #fff;
    background-color: #005696;
}

@media (max-width: 767px) {
    h1 { font-size: 1.75em !important; }
    h2 { font-size: 1.5em !important; } 
}

.grid-cell {
    width: 14.285%;
    position: relative;
    font-size: 0.9 em;
}

.current-day {
    background: #005696 !important;
}

.footer-gradient {
    background: rgb(2,110,208);
    background: linear-gradient(181deg, rgba(2,110,208,1) 0%, rgba(1,56,106,1) 99%);
  }
  
  .footer-cta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    background-size: cover;
    background-position: 50% 50%;
    text-align: center;
    padding: 5%;
    border: solid 1px rgba(255, 255, 255, .5);
  }
  
  .btn-footer {
    width: 100%;
    color: #0063AC;
    text-transform: uppercase;
  }
  
  footer a {
    color: #71CEF5;
    text-decoration: none;
  }
  
  .footer-sub {
    border-top: solid 1px rgba(255, 255, 255, .2);
  }

  .custom-switch {
    z-index: 0 !important;
  }

  .modal {
	z-index: 99999 !important;
  }

  @media (max-width: 767.98px) {
    .grid-cell {
      width: 100% !important;
      display: block;
      margin-bottom: 1rem; 
    }
  }

  .modal-title {
    margin-right: auto;
  }

  .img-sponsor {
	position: absolute;
	height: 24px;
	right: 10px;
	top: -30px;
  }

  .list-banner-text {
	position: absolute;
	top: -29px;
	right: 12px;
	left: 12px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	color: #fff;
	font: 700 13px/1 'Figtree', system-ui, sans-serif;
	letter-spacing: .3px;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	pointer-events: none;
  }
  .list-banner-text .img-sponsor {
	position: static;
	height: 22px;
  }

  .grid-item-sponsor {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
    margin-top: 4px;
    padding: 2px 6px;
    border-radius: 4px;
  }

  .bg-racing-cta {
    background-color: #00719c !important;
  }

  .text-racing-cta {
    color: #00719c !important;
  }
}

/* ============================================================
   Event Sidebar (.evt-*) — namespaced design system
   ============================================================ */

.evt-sidebar {
  width: 100%;
  font-family: 'Figtree', system-ui, -apple-system, sans-serif;
}
.evt-sidebar * { box-sizing: border-box; }

.evt-panel { background: #eef2f6; border: 1px solid #e0e6ec; border-radius: 22px; padding: 22px; }
.evt-stack { display: flex; flex-direction: column; gap: 14px; }

.evt-cta {
  width: 100%; display: flex; flex-direction: column; overflow: hidden;
  border: none; border-radius: 14px;
  background: var(--banner-color, #15406b); color: #fff !important;
  cursor: pointer; box-shadow: 0 7px 18px rgba(21,64,107,.24);
  transition: filter .15s, transform .15s; text-decoration: none !important;
}
.evt-cta:hover { transform: translateY(-1px); filter: brightness(.93); color: #fff !important; }
.evt-cta-main {
  display: flex; align-items: center; justify-content: center; gap: 11px;
  padding: 17px 20px;
  font: 600 16.5px/1.2 'Figtree', sans-serif; letter-spacing: .2px; text-align: center;
}
.evt-cta-sponsor {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 16px 18px; background: #fff;
}

.evt-live-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 11px;
  padding: 17px 20px; border: none; border-radius: 14px; background: #15406b !important;
  color: #fff !important; font: 600 16.5px/1 'Figtree', sans-serif; letter-spacing: .2px; cursor: pointer;
  box-shadow: 0 7px 18px rgba(21,64,107,.24); transition: filter .15s, transform .15s;
  text-decoration: none !important;
}
.evt-live-btn:hover { transform: translateY(-1px); filter: brightness(.93); color: #fff !important; }
.evt-dot { width: 9px; height: 9px; border-radius: 50%; background: #2bd17e; animation: evtPulse 2s infinite; flex-shrink: 0; display: inline-block; }
@keyframes evtPulse {
  0%   { box-shadow: 0 0 0 0 rgba(43,209,126,.55); }
  70%  { box-shadow: 0 0 0 7px rgba(43,209,126,0); }
  100% { box-shadow: 0 0 0 0 rgba(43,209,126,0); }
}

.evt-sponsor {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: #fff; border: 1px solid #e3e8ee; border-radius: 16px;
  padding: 20px 18px; box-shadow: 0 1px 3px rgba(20,40,60,.05);
}
.evt-sponsor-label { font: 600 11px/1 'JetBrains Mono', monospace; letter-spacing: 1.8px; color: #97a2ad; text-transform: uppercase; }
.evt-sponsor-name { font: 700 15px/1.2 'Figtree', sans-serif; color: #1a2430; text-align: center; }
.evt-sponsor-logo { max-width: 80%; max-height: 60px; width: auto; height: auto; object-fit: contain; }

/* Daily Coverage button: "Powered by" sits in the colored section; sponsor name + full-width logo fill the white box. */
.evt-dc .evt-cta-main { padding-bottom: 4px; }
.evt-dc-label {
  display: block; text-align: center; padding: 0 18px 14px;
  font: 700 10.5px/1 'JetBrains Mono', monospace; letter-spacing: 1.8px;
  text-transform: uppercase; color: rgba(255, 255, 255, .85);
}
.evt-dc .evt-cta-sponsor { padding: 14px; gap: 8px; }
.evt-dc .evt-sponsor-logo { width: 100%; max-width: 100%; max-height: 180px; }

.evt-weather { background: #fff; border: 1px solid #e3e8ee; border-radius: 16px; padding: 18px 18px 13px; box-shadow: 0 1px 3px rgba(20,40,60,.05); }
.evt-row { display: flex; align-items: center; justify-content: space-between; }
.evt-mb { margin-bottom: 15px; }
.evt-label { font: 600 11px/1 'JetBrains Mono', monospace; letter-spacing: 1.8px; color: #97a2ad; text-transform: uppercase; }
.evt-loc { display: inline-flex; align-items: center; gap: 5px; font: 600 13px/1 'Figtree'; color: #6b7886; white-space: nowrap; }
.evt-cond { display: flex; align-items: center; gap: 10px; }
.evt-cond-ic { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; background: #eef3f8; color: #7e93a6; }
.evt-cond-txt { font: 600 15px/1.2 'Figtree'; color: #1a2430; white-space: nowrap; }
.evt-temp { font: 700 30px/1 'Figtree'; color: #1a2430; }
.evt-unit { font: 500 13px/1 'JetBrains Mono', monospace; color: #97a2ad; }

.evt-wind { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 6px; padding: 13px 8px; background: #f4f8fb; border: 1px solid #e7eef4; border-radius: 12px; margin-bottom: 11px; }
.evt-wind > div { text-align: center; }
.evt-wind .mid { border-left: 1px solid #e2eaf1; border-right: 1px solid #e2eaf1; }
.evt-k { font: 600 10px/1 'JetBrains Mono', monospace; letter-spacing: 1px; color: #97a2ad; margin-bottom: 5px; text-transform: uppercase; }
.evt-v { font: 700 23px/1 'Figtree'; color: #1a2430; }
.evt-v small { font: 500 11px/1 'JetBrains Mono', monospace; color: #97a2ad; margin-left: 2px; }
.evt-arrow { display: inline-flex; align-items: center; justify-content: center; width: 21px; height: 21px; border-radius: 50%; background: #15406b; color: #fff; font-size: 12px; line-height: 1; }
.evt-from { display: inline-flex; align-items: center; gap: 6px; justify-content: center; }
.evt-from b { font: 700 19px/1 'Figtree'; color: #1a2430; }

.evt-metrics { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-bottom: 11px; }
.evt-metrics > div { text-align: center; padding: 2px 0; }
.evt-metrics .m-k { font: 600 11px/1 'Figtree'; color: #97a2ad; margin-bottom: 3px; }
.evt-metrics .m-v { font: 700 15px/1 'Figtree'; color: #42505e; }
.evt-metrics .m-v small { font: 500 10px/1 'JetBrains Mono', monospace; color: #a8b1ba; }
.evt-src { text-align: right; font: 400 9.5px/1 'JetBrains Mono', monospace; letter-spacing: .3px; color: #bcc4cc; }

.evt-actions { display: flex; gap: 10px; }
.evt-web {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px; border: 1.5px solid #d4dce4; border-radius: 13px; background: #fff;
  color: #15406b !important; font: 600 15px/1 'Figtree'; cursor: pointer;
  transition: .15s; text-decoration: none !important;
}
.evt-web:hover { background: #f4f8fb; border-color: #15406b; color: #15406b !important; transform: translateY(-1px); }
.evt-share {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; border: 1.5px solid #e3e8ee; border-radius: 13px;
  background: #fff; color: #42505e; cursor: pointer; transition: .15s;
}
.evt-share:hover { background: #f4f8fb; color: #15406b; border-color: #cdd6df; transform: translateY(-1px); }
