/**
 * @file
 * Homepage Layout Styling
 * Matches legacy D7 homepage structure
 * IMPORTANT: These styles only apply to the front page
 */

/* Banner Section - Full width with background image - FRONT PAGE ONLY */
.path-frontpage .banner {
  background: url('../images/banner2.jpg') no-repeat center center;
  background-size: cover;
  min-height: 423px;
  position: relative;
  margin-bottom: 30px;
}

.path-frontpage .banner .container {
  position: relative;
}

/* Banner Section - Two Column Layout - FRONT PAGE ONLY */
.path-frontpage #highlighted {
  display: flex;
  align-items: stretch;
  min-height: 423px;
  position: relative;
}

/* Left section - text content - Matches legacy exactly */
.path-frontpage #highlighted .left-section,
.path-frontpage #block-cagp-block-1 {
  float: left;
  width: 65%;
  min-height: 423px;
}

.path-frontpage #highlighted .left-section h2,
.path-frontpage #block-cagp-block-1 h2 {
  color: #ffffff;
  font-size: 32px;
  margin-bottom: 15px;
  line-height: 1.3;
}

.path-frontpage #highlighted .left-section p,
.path-frontpage #block-cagp-block-1 p {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.path-frontpage #highlighted .left-section li,
.path-frontpage #block-cagp-block-1 li {
  display: inline-block;
}

/* Right section - icon boxes - Matches legacy exactly */
.path-frontpage #highlighted .right-section,
.path-frontpage #block-cagp-block-2 {
  background: #c4bcba none repeat scroll 0 0;
  bottom: 0;
  float: right;
  right: 0px;
  max-width: 320px;
  padding: 5px;
  position: absolute;
  top: 59px;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  border-bottom-right-radius: 0px;
  border-bottom-left-radius: 0px;
}

/* Events info styling within right section - Matches legacy exactly */
.path-frontpage .banner #block-cagp-block-2 .events-info,
.path-frontpage .banner .events-info {
  background: #ffffff none repeat scroll 0 0;
  display: table;
  width: 100%;
  margin-bottom: 5px;
  min-height: 100px;
  padding: 22px 12px 15px;
  font-size: 14px;
  color: #474747;
  text-transform: uppercase;
  border: 0 none !important;
  border-radius: 0 !important;
  flex: none !important;
  align-items: normal !important;
}

/* Events info paragraph styling */
.path-frontpage .banner .events-info > p {
  display: table-cell;
}

.path-frontpage .banner .events-info > p:last-child {
  padding: 0;
  width: auto;
  vertical-align: middle;
}

.path-frontpage .banner .events-info > p:first-child {
  width: 67px;
}

/* Events info links and paragraphs */
.path-frontpage .banner #block-cagp-block-2 .events-info a,
.path-frontpage .banner .events-info a,
.path-frontpage .banner .events-info > p {
  color: #444 !important;
  display: inline-block;
  font-family: clearsans-medium;
  font-size: 16px !important;
  font-weight: 400 !important;
  text-decoration: none !important;
}

/* Events info icons */
.path-frontpage .banner #block-cagp-block-2 .events-info i,
.path-frontpage .banner .events-info i {
  display: inline-block !important;
  height: 57px !important;
  width: 57px !important;
  margin-right: 10px;
  vertical-align: middle;
  border-radius: 0 !important;
  line-height: normal !important;
  text-align: left !important;
}

.path-frontpage .banner #block-cagp-block-2 .folder-icon,
.path-frontpage .banner .folder-icon {
  background: rgba(0, 0, 0, 0) url("../images/folder.png") repeat scroll 0 0 !important;
  color: transparent !important;
}

.path-frontpage .banner #block-cagp-block-2 .folder-icon:before {
  content: "" !important;
}

.path-frontpage .banner #block-cagp-block-2 .results-icon,
.path-frontpage .banner .results-icon {
  background: rgba(0, 0, 0, 0) url("../images/results-icon.png") no-repeat scroll 0 0 !important;
  color: transparent !important;
}

.path-frontpage .banner #block-cagp-block-2 .results-icon:before {
  content: "" !important;
}

.path-frontpage .banner #block-cagp-block-2 .event-icon,
.path-frontpage .banner .event-icon {
  background: rgba(0, 0, 0, 0) url("../images/events.png") no-repeat scroll 0 0 !important;
  color: #ff6100 !important;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  padding: 20px 0;
  text-align: center !important;
}

.path-frontpage .banner #block-cagp-block-2 .resource-icon,
.path-frontpage .banner .resource-icon {
  background: rgba(0, 0, 0, 0) url("../images/book.png") no-repeat scroll 0 0 !important;
  color: transparent !important;
}

.path-frontpage .banner #block-cagp-block-2 .resource-icon:before {
  content: "" !important;
}

/* Button styling */
.right-section .btn-sec a,
.banner-section .btn {
  font-family: ClearSans-Medium, Arial, sans-serif;
  background: #253980;
  border-radius: 3px;
  color: #ffffff;
  display: inline-block;
  font-size: 15px;
  line-height: 37px;
  min-width: 165px;
  text-align: center;
  text-transform: uppercase;
  padding: 0 15px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.right-section .btn-sec a:hover,
.banner-section .btn:hover {
  background: #1a2a60;
}

/* Layout Builder sections spacing */
.node--type-homepage .layout__region {
  margin-bottom: 0;
}

.node--type-homepage .layout-builder__section {
  margin-bottom: 0;
}

/* Slider section spacing */
.node--type-homepage .slider-section {
  margin-bottom: 30px;
}

/* The Latest section - Legacy compatibility */
.three-column-section {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}

.three-column-section > div {
  flex: 1;
}

/* News Slider Section Wrapper */
.news-slider-section {
  margin-bottom: 30px;
}

.news-slider-section .slider-section {
  margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .block-banner-section .banner-section {
    flex-direction: column;
    min-height: auto;
  }

  .block-banner-section .left-section,
  .block-banner-section .right-section {
    float: none;
    width: 100%;
    max-width: 100%;
    position: relative;
  }

  .three-column-section {
    flex-direction: column;
  }
}
