/*
 * Globals
 */

/* Links */
a,
a:focus,
a:hover {
  color: #fff;
}

/* Custom default button */
.btn-secondary,
.btn-secondary:hover,
.btn-secondary:focus {
  color: #333;
  text-shadow: none; /* Prevent inheritance from `body` */
  background-color: #fff;
  border: .05rem solid #fff;
}


/*
 * Base structure
 */

html,
body {
  height: 100%;
  background-color: #333;
}

body {
  display: -ms-flexbox;
  display: flex;
  color: #fff;
  text-shadow: 0 .05rem .1rem rgba(0, 0, 0, .5);
  box-shadow: inset 0 0 5rem rgba(0, 0, 0, .5);
}

.cover-container {
  max-width: 42em;
}


/*
 * Header
 */
.masthead {
  margin-bottom: 2rem;
}

.masthead-brand {
  margin-bottom: 0;
}

.nav-masthead .nav-link {
  padding: .25rem 0;
  font-weight: 700;
  color: rgba(255, 255, 255, .5);
  background-color: transparent;
  border-bottom: .25rem solid transparent;
}

.nav-masthead .nav-link:hover,
.nav-masthead .nav-link:focus {
  border-bottom-color: rgba(255, 255, 255, .25);
}

.nav-masthead .nav-link + .nav-link {
  margin-left: 1rem;
}

.nav-masthead .active {
  color: #fff;
  border-bottom-color: #fff;
}

@media (min-width: 48em) {
  .masthead-brand {
    float: left;
  }
  .nav-masthead {
    float: right;
  }
}


/*
 * Cover
 */
.cover {
  padding: 0 1.5rem;
}
.cover .btn-lg {
  padding: .75rem 1.25rem;
  font-weight: 700;
}


/*
 * Footer
 */
.mastfoot {
  color: rgba(255, 255, 255, 0.5);
  background-color: #070707;
}
.footer-text {
  width: 60%;
  margin: auto;
  font-size: small;
  padding-top: 25px;
  padding-bottom: 25px;
}
/* Enhanced Styles for Tool and Kit Cards */
.tool-card, 
.kit-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  height: 100%;
}

.tool-card:hover, 
.kit-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.tool-card h3, 
.kit-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-card p, 
.kit-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  min-height: 3rem;
}

/* Button Styles */
.dc-btn {
  transition: all 0.3s ease;
  margin: 0.25rem;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
}

.dc-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.dc-btn:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Section Headers */
.section-header {
  margin: 3rem 0 2rem 0;
  padding: 1.5rem 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.section-header h2,
.section-header h3 {
  font-size: 1.75rem;
  letter-spacing: 2px;
  margin: 0;
}

/* Content Wrapper */
.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Grid Layouts */
.tools-grid, 
.kits-grid {
  display: flex;
  gap: 1.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
  justify-content: center;
}

.tools-grid > div, 
.kits-grid > div {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
}

/* Title Container Layout */
.title-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  text-align: left;
}

.title-text {
  flex-shrink: 0;
  min-width: -webkit-fit-content;
  min-width: -moz-fit-content;
  min-width: fit-content;
}

.title-description {
  flex: 1;
}

.title-description p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .title-container {
    flex-direction: column;
    text-align: center;
  }
  
  .title-text {
    min-width: auto;
  }
}

@media (max-width: 768px) {
  .tools-grid > div, 
  .kits-grid > div {
    max-width: 100%;
  }
}