/* ===== gml-common.css – shared styles for GML pages ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Gotham', sans-serif;
  border: none;
  outline: none;
  background: none;
  text-decoration: none;
  list-style: none;
}

.wrapper {
  max-width: 1400px;
  padding: 0 1rem;
  margin: 0 auto;
}

.section_group {
  padding: 3rem 0;
}
.section_group.bg-color {
  background-color: #E9E9E9;
}
.section_group.bg-color-white {
  background-color: #ffffff;
}

/* ===== Carousel / Banner (used in details) ===== */
.GML-section .carousel-inner .carousel-content {
  position: relative;
  width: 100% !important;
  height: 30rem !important;
}
.GML-section .carousel-inner .carousel-content img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}
.GML-section .carousel-inner .carousel-content .wrapper {
  position: relative;
  height: 100%;
  z-index: 2;
}
.GML-section .carousel-inner .carousel-content .content {
  max-width: 30rem;
  position: absolute;
  bottom: 6rem;
  right: 5rem;
}
.GML-section .carousel-inner .carousel-content .content h3 {
  position: relative;
  font-size: 10rem;
  line-height: 0;
  font-weight: 800;
  margin-bottom: 5rem;
  text-align: left;
}
.GML-section .carousel-inner .carousel-content .content h3 span {
  position: absolute;
  right: 10.8rem;
  top: 50%;
  transform: translate(-50%);
  font-size: 2rem;
  font-weight: 400;
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  width: 100%;
  text-align: right;
  letter-spacing: normal;
}
.GML-section .carousel-inner .carousel-content .content p {
  font-size: 1rem;
  color: #B3221E;
  max-width: 12rem;
  width: 100%;
  margin-bottom: 1rem;
}
.GML-section .carousel-inner .carousel-content .content button {
  background-color: #ffffff;
  color: #000000;
}
.GML-section .carousel-inner .carousel-content .content button i {
  color: #B3221E;
  font-size: 1.5rem;
}
.GML-section .carousel-inner .carousel-content .content button:hover {
  color: #B3221E;
}

/* ===== Page Banner (used in list) ===== */
.page-banner {
  height: 30rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}
.page-banner .explore-section {
  position: absolute;
  top: 90%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20rem;
  font-family: 'Coneria Script Demo', sans-serif;
  opacity: .1;
}
.page-banner .content {
  margin-top: 5rem;
  margin-left: 15rem;
}
.page-banner .content h3 {
  position: relative;
  font-size: 12rem;
  line-height: 0;
  font-weight: 800;
  margin-bottom: 6rem;
  text-align: left;
  color: #ffffff;
}
.page-banner .content h3 span {
  position: absolute;
  right: 14rem;
  top: 50%;
  transform: translate(-50%);
  font-size: 3.5rem;
  font-weight: 400;
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  width: 100%;
  text-align: right;
  color: #000000;
}
.page-banner .content p {
  font-size: 1rem;
  line-height: 1.1rem;
  color: #E6A045;
  max-width: 22rem;
  width: 100%;
}
.page-banner .content p strong {
  text-transform: uppercase;
}
.page-banner .content button {
  background-color: #ffffff;
  color: #000000;
}
.page-banner .content button i {
  color: #B3221E;
  font-size: 1.5rem;
}
.page-banner .content button:hover {
  color: #B3221E;
}

/* ===== Newest Issue (featured on list) ===== */
.new-GML img {
  width: 100%;
}
.new-GML .content {
  margin-top: 1rem;
}
.new-GML .content h6 {
  font-size: 1.3rem;
  font-weight: 400;
}
.new-GML .content h4 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-transform: uppercase;
}
.new-GML .content .button-group {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.new-GML .content .button-group .read-more-btn {
  background-color: #0D76BB;
  color: #ffffff;
  padding: 0.75rem 2rem;
  border-radius: 40px;
  font-weight: 600;
  transition: all 0.3s;
}
.new-GML .content .button-group .read-more-btn:hover {
  background-color: #0b67a3;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(13,118,187,0.2);
}
.new-GML .content .button-group .download-btn {
  background-color: #0c9444;
  color: #ffffff;
  padding: 0.75rem 2rem;
  border-radius: 40px;
  font-weight: 600;
  transition: all 0.3s;
}
.new-GML .content .button-group .download-btn:hover {
  background-color: #0a7c39;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(12,148,68,0.2);
}

/* ===== GML List / Card styles (used in both pages) ===== */
.GML-list.details-page-GML-list .hidden-line::after {
  background-color: #E9E9E9;
}
.GML-list.details-page-GML-list .card {
  background: none;
  margin: 2rem 0;
}
.GML-list.details-page-GML-list .card .card-body .card-title {
  margin-bottom: 0;
}
.GML-list .hidden-line,
.GML-list .hidden-line-new {
  position: relative;
}
.GML-list .hidden-line::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background-color: #ffffff;
}
.details-page-GML-list .hidden-line-new::after {
  content: "";
  position: absolute;
  right: 0px;
  top: 0;
  width: 2px;
  height: 100%;
  background-color: #E9E9E9;
  z-index: 3;
}
.details-page-GML-list .swiper-button-next,
.details-page-GML-list .swiper-button-prev {
  color: #000000;
}

.GML-list .col-md-4,
.GML-list .col-md-6,
.GML-list .col-sm-12,
.GML-list .col-xl-3,
.GML-list .col-sm-6 {
  padding: 0 0.75rem;
}
.GML-list .card {
  padding: 0 1.5rem;
  border: none;
  border-radius: 0;
  border-right: 1px solid gray;
  margin-bottom: 3rem;
}
.GML-list .card .card-body {
  padding: 1rem 0;
}
.GML-list .card .card-body .card-title {
  margin: 1.2rem 0;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
}
.GML-list .card .card-body .button-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}
.GML-list .card .card-body .button-group .read-more-btn {
  background-color: #0D76BB;
  color: #ffffff;
  font-size: 0.75rem;
  padding: 0.4rem 1rem;
  border-radius: 40px;
  font-weight: 500;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.GML-list .card .card-body .button-group .read-more-btn i {
  transition: transform 0.3s;
}
.GML-list .card .card-body .button-group .read-more-btn:hover {
  background-color: #0b67a3;
  transform: translateY(-2px);
}
.GML-list .card .card-body .button-group .read-more-btn:hover i {
  transform: translateX(4px);
}
.GML-list .card .card-body .button-group .download-btn {
  background-color: #0c9444;
  color: #ffffff;
  font-size: 0.75rem;
  padding: 0.4rem 1rem;
  border-radius: 40px;
  font-weight: 500;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.GML-list .card .card-body .button-group .download-btn i {
  transition: transform 0.3s;
}
.GML-list .card .card-body .button-group .download-btn:hover {
  background-color: #0a7c39;
  transform: translateY(-2px);
}
.GML-list .card .card-body .button-group .download-btn:hover i {
  transform: translateY(-2px);
}

/* ===== Filter dropdown (only used on list) ===== */
.filter-wrapper {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0 3rem;
  padding: 0 1rem;
}
.filter-wrapper label {
  font-weight: 600;
  color: #0D76BB;
  font-size: 1rem;
}
.filter-wrapper select {
  padding: 0.6rem 2.5rem 0.6rem 1.2rem;
  border: 1px solid #ddd;
  border-radius: 40px;
  background-color: white;
  font-size: 1rem;
  color: #333;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
}

/* ===== Year group heading (list) ===== */
.year-group h3 {
  margin: 2rem 0 1.5rem 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #0D76BB;
}

/* ===== GML details specific styles ===== */
.GML-details-content .detail-header h6 {
  font-size: 1rem;
  text-transform: uppercase;
  color: #B3221E;
  font-weight: 700;
  margin-bottom: 2rem;
}
.GML-details-content .detail-header h1 {
  font-weight: 300;
  max-width: 25rem;
  font-size: 2.5rem;
  line-height: 2.4rem;
  letter-spacing: normal;
  position: relative;
  margin-bottom: 3rem;
}
.GML-details-content .detail-header h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1.5rem;
  height: 0.6rem;
  width: 2.5rem;
  background-color: #B3221E;
}
.GML-details-content .detail-header h1 strong {
  font-weight: 700;
}
.GML-details-content .detail-header .button-group {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}
.GML-details-content .detail-header .button-group .btn-view,
.GML-details-content .detail-header .button-group .btn-download {
  padding: 0.6rem 1.5rem;
  border-radius: 40px;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  text-decoration: none;
}
.GML-details-content .detail-header .button-group .btn-view {
  background-color: #0D76BB;
}
.GML-details-content .detail-header .button-group .btn-view:hover {
  background-color: #0b67a3;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(13,118,187,0.2);
}
.GML-details-content .detail-header .button-group .btn-download {
  background-color: #0c9444;
}
.GML-details-content .detail-header .button-group .btn-download:hover {
  background-color: #0a7c39;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(12,148,68,0.2);
}
.GML-details-content .user {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 3rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}
.GML-details-content .image-area {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.GML-details-content .user img {
  height: 5rem;
  width: 5rem;
  border-radius: 50%;
  object-fit: cover;
}
.GML-details-content .user-details h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: #0D76BB;
}
.GML-details-content .user-details p {
  font-size: 0.8rem;
  color: #B3221E;
}
.GML-details-content .description-area {
  flex: 1;
  font-size: 1rem;
  line-height: 1.6rem;
  color: #333333;
}

/* ===== Swiper overrides (used in details) ===== */
.GML-list .swiper {
  padding: 1rem 0.5rem;
}
.GML-list .swiper-slide {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e9ecf0;
  transition: all 0.3s;
}
.GML-list .swiper-slide:hover {
  transform: translateY(-4px);
  border-color: #0D76BB;
  box-shadow: 0 12px 24px rgba(13,118,187,0.1);
}
.GML-list .swiper-slide a {
  text-decoration: none;
  color: inherit;
}
.GML-list .swiper-slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.GML-list .swiper-slide .card-body {
  padding: 1rem;
  text-align: center;
}
.GML-list .swiper-slide .card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0D76BB;
  margin: 0;
  text-transform: uppercase;
}
.GML-list .swiper-button-next,
.GML-list .swiper-button-prev {
  color: #0D76BB;
  background: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.GML-list .swiper-button-next::after,
.GML-list .swiper-button-prev::after {
  font-size: 1.2rem;
}
.GML-list .swiper-button-next:hover,
.GML-list .swiper-button-prev:hover {
  background: #0D76BB;
  color: white;
}

/* ===== Responsive ===== */
@media only screen and (max-width: 1400px) {
  .details-page-GML-list .hidden-line-new::after {
    right: 15px;
  }
}
@media only screen and (max-width: 1000px) {
  .GML-section .carousel-inner .carousel-content {
    height: 25rem;
  }
  .GML-section .carousel-inner .carousel-content .content {
    max-width: 30rem;
    bottom: 6rem;
  }
  .GML-section .carousel-inner .carousel-content .content h3 {
    font-size: 8rem;
    margin-bottom: 4rem;
  }
  .GML-section .carousel-inner .carousel-content .content h3 span {
    right: 8rem;
    font-size: 1.2rem;
  }
  .GML-section .carousel-inner .carousel-content .content p {
    font-size: 0.9rem;
    max-width: 10rem;
  }
  .page-banner {
    height: 30rem;
  }
  .page-banner .explore-section {
    font-size: 16rem;
  }
  .page-banner .content h3 {
    font-size: 7rem;
    margin-bottom: 4rem;
  }
  .page-banner .content h3 span {
    right: 11rem;
    font-size: 2.5rem;
  }
  .page-banner .content p {
    font-size: 1.1rem;
    max-width: 20rem;
  }
}
@media only screen and (max-width: 991px) {
  .GML-details-content .user {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media only screen and (max-width: 800px) {
  .GML-section .carousel-inner .carousel-content {
    height: 25rem;
  }
  .GML-section .carousel-inner .carousel-content .content {
    max-width: 30rem;
    bottom: 5rem;
  }
  .GML-section .carousel-inner .carousel-content .content h3 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
  }
  .GML-section .carousel-inner .carousel-content .content h3 span {
    right: 5.5rem;
    font-size: 1rem;
  }
  .GML-section .carousel-inner .carousel-content .content p {
    font-size: 0.8rem;
  }
}
@media only screen and (max-width: 767px) {
  .page-banner .explore-section {
    font-size: 13rem;
  }
  .GML-details-content .detail-header .button-group {
    justify-content: flex-start;
  }
  .GML-details-content .detail-header h6 {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  .GML-details-content .detail-header h1 {
    font-size: 1.6rem;
  }
  .GML-details-content .detail-header .button-group .btn {
    padding: 0.3rem 1rem;
    font-size: 0.8rem;
  }
  .GML-details-content .user {
    margin-top: 2rem;
    gap: 0.6rem;
  }
  .GML-details-content .user p {
    font-size: 1rem;
  }
}
@media only screen and (max-width: 620px) {
  .GML-section .carousel-inner .carousel-content {
    height: 15rem !important;
  }
  .GML-section .carousel-inner .carousel-content .content {
    max-width: 30rem;
    bottom: 2rem !important;
    right: 1rem;
  }
  .GML-section .carousel-inner .carousel-content .content h3 {
    font-size: 3rem;
    margin-bottom: 2rem;
  }
  .GML-section .carousel-inner .carousel-content .content h3 span {
    right: 5.5rem;
    font-size: 0.8rem;
  }
  .GML-section .carousel-inner .carousel-content .content p {
    font-size: 0.7rem;
  }
  .page-banner {
    height: 20rem;
  }
  .page-banner .content {
    margin-left: 10rem;
  }
  .page-banner .content h3 {
    font-size: 5rem;
    margin-bottom: 3rem;
  }
  .page-banner .content h3 span {
    right: 11rem;
    font-size: 1.5rem;
  }
  .page-banner .content p {
    font-size: 0.9rem;
    max-width: 20rem;
  }
}
@media only screen and (max-width: 570px) {
  .page-banner .explore-section {
    font-size: 10rem;
  }
  .GML-section .carousel-inner .carousel-content {
    height: 20rem;
  }
  .GML-section .carousel-inner .carousel-content .content {
    max-width: 30rem;
    bottom: 5rem;
  }
  .GML-section .carousel-inner .carousel-content .content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  .GML-section .carousel-inner .carousel-content .content h3 span {
    right: 5.5rem;
    font-size: 0.8rem;
  }
  .GML-section .carousel-inner .carousel-content .content p {
    font-size: 0.7rem;
  }
}
@media only screen and (max-width: 500px) {
  .page-banner {
    height: 16rem;
  }
  .page-banner .explore-section {
    font-size: 8rem;
  }
  .page-banner .content {
    margin-left: 7rem;
  }
  .page-banner .content h3 {
    font-size: 3rem;
    margin-bottom: 2rem;
  }
  .page-banner .content h3 span {
    right: 8rem;
    font-size: 1rem;
  }
  .page-banner .content p {
    font-size: 0.8rem;
    max-width: 15rem;
  }
}
