/**
 * @file
 * The Latest Section Styling
 * Three-column layout matching legacy D7 homepage EXACTLY
 */

/* Main section title */
.Latest h2 {
  font-family: YanoneKaffeesatz-Thin;
  font-size: 40px;
  color: #333;
  text-align: center;
  padding: 30px 0;
  margin: 0;
}

/* The Latest Section Container */
.the-latest-section {
  margin-bottom: 70px;
}

.the-latest-section::after {
  clear: both;
  content: "";
  display: block;
}

/* Three Column Layout - Float based like legacy */
.the-latest-columns {
  display: block;
}

.the-latest-columns::after {
  clear: both;
  content: "";
  display: block;
}

.the-latest-column {
  float: left;
  position: relative;
  margin: 0 2% 70px 0;
  width: 32%;
}

.the-latest-column:nth-child(3n+3) {
  margin-right: 0;
}

/* Column Headers */
.the-latest-column h3 {
  color: #444444;
  display: block;
  font-size: 13px;
  margin-bottom: 10px;
  text-transform: uppercase;
  display: none; /* Hidden like legacy */
}

/* Content Container with Border */
.the-latest-column .views-element-container,
.the-latest-column > div > div {
  border: 1px solid #dddddd;
  border-radius: 2px;
  padding: 5px;
  text-align: center;
  min-height: 380px;
  position: relative;
}

/* Images */
.the-latest-column .views-field-field-image {
  margin-bottom: 10px;
}

.the-latest-column .views-field-field-image img {
  width: 287px;
  max-width: 100%;
  height: auto;
  display: inline-block;
}

/* Title Styling */
.the-latest-column .views-field-title,
.the-latest-column .latest-item-title {
  border-bottom: 1px solid #dddddd;
  color: #ff6000;
  padding: 13px 0px;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-family: clearsans-medium;
  font-weight: normal;
  font-size: 15px;
}

.the-latest-column .views-field-title a,
.the-latest-column .latest-item-title a {
  color: #ff6000;
  text-decoration: none;
}

.the-latest-column .views-field-title a:hover,
.the-latest-column .latest-item-title a:hover {
  color: #ff6000;
  text-decoration: underline;
}

/* Body/Description Text */
.the-latest-column .views-field-body p,
.the-latest-column .latest-item-summary p {
  font-size: 15px;
  line-height: 19px;
  margin: 0 0 15px;
  font-family: clearsans-regular;
  text-align: center;
}

/* Date Field */
.the-latest-column .views-field-created,
.the-latest-column .latest-item-date {
  display: none; /* Hide date - not shown in legacy */
}

/* Button Styling */
.the-latest-column .btn,
.the-latest-column .dwnload-btn {
  background: #253980;
  cursor: pointer;
  border-radius: 3px;
  color: #ffffff;
  display: inline-block;
  font-size: 15px;
  line-height: 35px;
  min-width: 100px;
  text-transform: uppercase;
  font-family: clearsans-medium;
  padding: 0 15px 2px;
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  text-decoration: none;
}

.the-latest-column .btn:hover,
.the-latest-column .dwnload-btn:hover {
  background: #1a2a60;
  color: #ffffff;
  text-decoration: none;
}

/* View More Link */
.view-more-link {
  display: none; /* Hidden in legacy */
}

/* Make sure items don't have extra margins */
.latest-blog-item,
.latest-resource-item,
.latest-event-item {
  margin: 0;
  padding: 0;
  border: none;
}

/* Responsive */
@media (max-width: 992px) {
  .the-latest-column {
    float: none;
    width: 100%;
    margin: 0 0 30px 0;
  }
}
