/*
Theme Name: Uncode Child
Description: Child theme for Uncode theme
Author: Undsgn™
Author URI: http://www.undsgn.com
Template: uncode
Version: 1.0.0
Text Domain: uncode
*/

/* === Custom Awards Matrix Styles === */

/* === Awards Matrix Layout === */
/* === Awards Matrix Layout === */
/* === Awards Matrix Layout === */
.custom-matrix-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 40px;

}

.award-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 50px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 30px;
  flex-wrap: wrap;
}

.award-text {
  flex: 1;
  min-width: 250px;
}

.award-text h3 {
  margin-top: 0px;
  font-size: 24px;
  margin-bottom: 10px;
  line-height: 1.3;
}

.award-excerpt {
  font-size: 16px;
  color: #555;
  max-width: 700px;
}

/* ✅ Fixed Width on Image Container */
.award-image {
  flex-shrink: 0;
  width: 350px !important;       /* Fixed section width */
  max-width: 100%;
}

.award-image img {
  width: auto;        /* Natural image width */
  max-width: 100%;    /* Prevent overflow */
  height: auto;       /* Maintain aspect ratio */
  border-radius: 10px;
  display: block;
}

/* === Pagination Styling === */
.custom-pagination-wrapper {
  padding: 40px 60px;
  text-align: center;
}

.custom-pagination-wrapper ul {
  display: inline-flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.custom-pagination-wrapper li a,
.custom-pagination-wrapper li span {
  display: inline;
  padding: 10px 16px;
  border-radius: 50%;
  text-decoration: none;
  background: transparent;
  color: #222;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

.custom-pagination-wrapper li a:hover {
  background-color: #e0e0e0;
}

.custom-pagination-wrapper li span.current {
  background-color: #e0e0e0;
  color: #000;
  font-weight: bold;
}

.custom-pagination-wrapper li {
  display: inline-block;
}

.custom-pagination-wrapper li.prev a,
.custom-pagination-wrapper li.next a {
  font-size: 20px;
  font-weight: bold;
  padding: 8px 14px;
  border-radius: 50%;
}

/* === Responsive Fixes for Mobile === */
@media screen and (max-width: 768px) {
  .award-item {
    flex-direction: column-reverse;
    align-items: revert-layer;
    text-align: -webkit-center;
    gap: 20px;
  }

  .award-image {
    width: 100%;
    max-width: 100%;
    margin-top: 20px;
  }

  .award-image img {
    max-width: 100%;
    height: auto;
  }

  .award-text {
    text-align: left;
  }
}