/* Crimson Garrison 501st Legion Dark Theme Overrides */

body {
  background-color: #111111;
  color: #cccccc;
}

h1, h2, h3, h4, h5, h6 {
  color: #ffffff;
}

#header {
  background: #000000;
  border-bottom: 2px solid #C8102E;
}

#header .logo a {
  color: #ffffff;
  text-shadow: 2px 2px 4px #C8102E;
}

.navbar a, .navbar a:focus {
  color: #dddddd;
}

.navbar a:hover, .navbar .active, .navbar .active:focus, .navbar li:hover > a {
  color: #C8102E;
}

.navbar .getstarted, .navbar .getstarted:focus {
  background: #C8102E;
  color: #fff;
}

.navbar .getstarted:hover, .navbar .getstarted:focus:hover {
  background: #a90d26;
  color: #fff;
}

.section-bg, .services .icon-box, .clients {
  background-color: #1a1a1a;
}

.section-title h2 {
  color: #C8102E;
}

.section-title p {
  color: #ffffff;
}

.about .content h3 {
  color: #ffffff;
}

.about .content ul i {
  color: #C8102E;
}

.services .icon-box {
  border: 1px solid #333333;
}

.services .icon-box i {
  color: #C8102E;
}

.services .icon-box h4 a {
  color: #ffffff;
}

.services .icon-box:hover h4 a {
  color: #C8102E;
}

#hero .btn-get-started {
  background: #C8102E;
}

#hero .btn-get-started:hover {
  background: #a90d26;
}

#hero .carousel-indicators li.active {
  background: #C8102E;
}

.back-to-top {
  background: #C8102E;
}

.back-to-top:hover {
  background: #a90d26;
}

#footer {
  background: #000000;
  border-top: 2px solid #C8102E;
  color: #dddddd;
}

#footer .footer-top {
  background: #0a0a0a;
}

#footer .footer-top h3, #footer .footer-top h4 {
  color: #ffffff;
}

#footer .footer-links a {
  color: #bbbbbb;
}

#footer .footer-links a:hover {
  color: #C8102E;
}

a {
  color: #C8102E;
}

a:hover {
  color: #ff4455;
}

.portfolio #portfolio-flters li {
  color: #dddddd;
  background: #333333;
}

.portfolio #portfolio-flters li.filter-active, .portfolio #portfolio-flters li:hover {
  background: #C8102E;
  color: #ffffff;
}

.portfolio .portfolio-wrap .portfolio-info {
  background: rgba(0, 0, 0, 0.85);
}

.portfolio .portfolio-wrap::before {
  background: rgba(0, 0, 0, 0.6);
}

.portfolio .portfolio-wrap .portfolio-info p {
  color: #cccccc;
}

/* Improve contrast for some cards if needed */
.pricing h4 {
  color: #C8102E;
}

/* ------------------------------------------------------------
   Custom Team / Comando Cards Styling 
   Fixes uneven heights and matches Imperial Theme
------------------------------------------------------------ */
#comando.team .row {
  display: flex;
  flex-wrap: wrap;
}

#comando .member {
  background: #1a1a1a !important;
  border: 1px solid #333333;
  margin-bottom: 24px;
  border-radius: 8px;
  overflow: hidden;
  height: calc(100% - 24px); /* Adjusting height accounting for bottom margin */
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.7);
  transition: 0.3s;
}

#comando .member:hover {
  border-color: #C8102E;
  box-shadow: 0px 4px 15px rgba(200, 16, 46, 0.4);
}

#comando .member .pic {
  overflow: hidden;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#comando .member .pic img {
  border-radius: 0; /* Remove if you want square or keeping the photo intact */
}

#comando .member .member-info {
  background: transparent !important;
  padding-left: 20px;
  color: #dddddd;
}

#comando .member h4 {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 5px;
  font-size: 20px;
}

#comando .member span {
  display: block;
  font-size: 15px;
  padding-bottom: 10px;
  position: relative;
  font-weight: 500;
  color: #C8102E !important;
}

#comando .member span::after {
  content: '';
  position: absolute;
  display: block;
  width: 50px;
  height: 2px;
  background: #C8102E;
  bottom: 0;
  left: 0;
}

#comando .member p {
  margin: 10px 0 0 0;
  font-size: 14px;
  color: #aaaaaa;
}

#comando .member .social {
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

#comando .member .social a {
  background: transparent !important;
  padding: 0;
  margin-right: 8px;
}

#comando .member .social a img {
  filter: drop-shadow(0px 0px 2px rgba(0,0,0,0.8));
  transition: transform 0.2s;
}

#comando .member .social a:hover img {
  transform: scale(1.1);
}

/* ------------------------------------------------------------
   Custom Formulario Eventos Styling 
------------------------------------------------------------ */
#FormularioEvento .php-email-form {
  background: #1a1a1a;
  padding: 30px;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  border: 1px solid #333333;
}

#FormularioEvento .php-email-form .form-group {
  margin-bottom: 20px;
}

#FormularioEvento .php-email-form .form-control,
#FormularioEvento .php-email-form select {
  border-radius: 4px;
  box-shadow: none;
  font-size: 14px;
  background-color: #222222;
  border: 1px solid #444444;
  color: #ffffff;
  padding: 10px 15px;
  width: 100%;
}

#FormularioEvento .php-email-form select {
  height: 44px; /* Matches standard form-control height */
  appearance: auto;
}

#FormularioEvento .php-email-form .form-control:focus,
#FormularioEvento .php-email-form select:focus {
  border-color: #C8102E;
  box-shadow: 0 0 8px rgba(200, 16, 46, 0.5);
  background-color: #1a1a1a;
  color: #ffffff;
}

#FormularioEvento .php-email-form .form-control::placeholder {
  color: #888888;
}

#FormularioEvento .php-email-form button[type="submit"] {
  background: #C8102E;
  border: 0;
  padding: 10px 30px;
  color: #fff;
  transition: 0.4s;
  border-radius: 4px;
  font-weight: bold;
}

#FormularioEvento .php-email-form button[type="submit"]:hover {
  background: #a90d26;
  box-shadow: 0px 4px 15px rgba(200, 16, 46, 0.4);
}

/* Form loading/error messages adapted to dark theme */
#FormularioEvento .php-email-form .loading {
  background: rgba(26, 26, 26, 0.8);
  color: #ffffff;
}

#FormularioEvento .php-email-form .error-message {
  background: #C8102E;
  color: #fff;
}

#FormularioEvento .php-email-form .sent-message {
  background: #18d26e;
  color: #fff;
}
