/**
 * Graham Centennial Helper - Styles
 * Version: 1.0.0
 */

/* ========================================
   Slider Styles
   ======================================== */

/* Slider Wrapper */
.graham-slider-wrapper {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0;
}

/* Slide Card */
.graham-slide-card {
  background-color: #FFFFFF;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.graham-slide-card.has-video {
  cursor: pointer;
}

/* Slide Image */
.graham-slide-image {
  width: 100%;
  height: 550px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #f5f5f5;
  border-bottom: 5px solid #B5121B;
}

.graham-slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
}

/* Red overlay on hover */
.graham-slide-card.has-video .graham-slide-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(181, 18, 27, 0.8);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.graham-slide-card.has-video:hover .graham-slide-image::after {
  opacity: 1;
}

/* Slide Play Button */
.graham-slide-play-btn {
  transition: all 0.3s ease;
  z-index: 2;
  pointer-events: none;
  opacity: 0.5;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #FFFFFF;
  border-radius: 50%;
  background-color: transparent;
}

.graham-slide-card.has-video:hover .graham-slide-play-btn {
  opacity: 0.9;
}

/* Slide Content */
.graham-slide-content {
  padding: 20px 0 0 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Slide Title */
.graham-slide-title {
  font-family: 'Roboto Condensed', 'Roboto', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.3;
  color: #000000;
  margin: 0;
  padding: 0;
}

/* Slide Tags */
.graham-slide-tags {
  font-family: 'Roboto Condensed', 'Roboto', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #B5121B;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Slide Excerpt */
.graham-slide-excerpt {
  font-family: 'Roboto', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  color: #666666;
  margin: 0;
  padding: 0;
}

/* Custom Arrows */
.graham-slider-arrows {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 550px;
  pointer-events: none;
  z-index: 10;
}

.graham-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  width: 45px;
  height: 45px;
  border: 2px solid #949598;
  background-color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  pointer-events: auto;
}

.graham-slider-arrow svg polyline {
  transition: stroke 0.3s ease;
}

.graham-slider-arrow:hover {
  border-color: #B5121B;
  background-color: #B5121B;
}

.graham-slider-arrow:hover svg polyline {
  stroke: #FFFFFF;
}

.graham-slider-prev {
  left: -60px;
}

.graham-slider-next {
  right: -60px;
}

/* Splide Overrides */
.graham-splide .splide__track {
  overflow: hidden;
}

.graham-splide .splide__list {
  list-style: none;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.graham-splide .splide__slide {
  list-style: none;
  list-style-type: none;
}

/* Splide Pagination */
.graham-splide .splide__pagination {
  display: none;
  margin-top: 30px;
  position: relative;
  padding: 0;
}

.graham-splide .splide__pagination__page {
  background-color: #949598;
  border: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 6px;
  padding: 0;
  transition: all 0.3s ease;
  opacity: 1;
}

.graham-splide .splide__pagination__page.is-active {
  background-color: #B5121B;
  transform: scale(1.2);
}

@media (max-width: 767px) {
  .graham-splide .splide__pagination {
    display: flex;
    justify-content: center;
  }
}

/* ========================================
   Main Menu Styles
   ======================================== */

/* Menu Container */
.graham-main-menu-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Desktop Menu */
.graham-main-menu {
  display: flex;
}

.graham-menu-list {
  display: flex;
  flex-wrap: nowrap;
  list-style: none;
  list-style-type: none;
  margin: 0;
  padding: 0 !important;
  gap: 20px;
  align-items: center;
}

.graham-menu-list li {
  margin: 0;
  padding: 0;
  list-style: none;
  list-style-type: none;
}

.graham-menu-list li::before {
  display: none;
}

.graham-menu-list li::marker {
  display: none;
}

.graham-menu-list a {
  font-family: 'Roboto', Helvetica, Arial, Lucida, sans-serif;
  font-weight: 600;
  color: #FFFFFF !important;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.graham-menu-list a:hover {
  color: #b5121b !important;
}

/* Hamburger Button - Hidden on Desktop */
.graham-hamburger-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  transition: color 0.3s ease;
}

.graham-hamburger-btn svg line{
    transition: stroke 0.3s ease;
}

.graham-hamburger-btn:hover svg line {
    stroke: #b5121b !important;
}

/* Mobile Menu Overlay */
.graham-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 999997;
}

.graham-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile Menu Slide-out */
.graham-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background-color: #B5121B;
  z-index: 999998;
  transition: right 0.4s ease;
  overflow-y: auto;
  padding: 80px 40px 40px 40px;
}

.graham-mobile-menu.active {
  right: 0;
}

/* Mobile Menu Content */
.graham-mobile-menu-content {
  width: 100%;
}

.graham-mobile-menu-list {
  list-style: none;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.graham-mobile-menu-list li {
  margin: 0 0 20px 0;
  padding: 0;
  list-style: none;
  list-style-type: none;
}

.graham-mobile-menu-list li::before {
  display: none;
}

.graham-mobile-menu-list li::marker {
  display: none;
}

.graham-mobile-menu-list a {
  font-family: 'Roboto', Helvetica, Arial, Lucida, sans-serif;
  font-weight: 500;
  color: #FFFFFF !important;
  font-size: 18px;
  text-decoration: none;
  display: block;
  padding: 10px 0;
  transition: opacity 0.3s ease;
}

.graham-mobile-menu-list a:hover {
  opacity: 0.7;
}

/* Close Menu Button */
.graham-close-menu {
  transition: all 0.3s ease;
}

.graham-close-menu svg line {
  transition: stroke 0.3s ease;
}

.graham-close-menu:hover {
  border-color: #B5121B !important;
  background-color: #B5121B;
}

.graham-close-menu:hover svg line {
  stroke: #FFFFFF;
}

/* Prevent Body Scroll When Menu is Open */
body.graham-menu-open {
  overflow: hidden;
}

/* ========================================
   Video Modal Styles
   ======================================== */

/* Play Button Hover Effect */
.graham-play-button:hover {
  transform: scale(1.1);
}

/* Close Button Styles */
.graham-close-modal {
  transition: all 0.3s ease;
}

.graham-close-modal svg line {
  transition: stroke 0.3s ease;
}

/* Close Button Hover Effect */
.graham-close-modal:hover {
  border-color: #B5121B !important;
  background-color: #B5121B;
}

.graham-close-modal:hover svg line {
  stroke: #FFFFFF;
}

/* Modal Active State */
.graham-modal.active {
  display: flex !important;
}

/* Prevent Body Scroll When Modal is Open */
body.graham-modal-open {
  overflow: hidden;
}

/* Inner Scrollable Content */
.graham-modal-inner {
  scrollbar-width: thin;
  scrollbar-color: #929497 #f1f1f1;
}

/* Webkit Scrollbar Styling */
.graham-modal-inner::-webkit-scrollbar {
  width: 8px;
}

.graham-modal-inner::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.graham-modal-inner::-webkit-scrollbar-thumb {
  background: #929497;
  border-radius: 4px;
}

.graham-modal-inner::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Video Trigger Button Default Styles */
.graham-video-trigger {
  display: inline-block;
  padding: 12px 24px;
  background-color: #000000;
  color: #FFFFFF;
  border: none;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.graham-video-trigger:hover {
  background-color: #333333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.graham-video-trigger:active {
  transform: translateY(0);
}

/* ========================================
   Responsive Adjustments
   ======================================== */

   @media (max-width: 1200px) {
    .graham-menu-list {
    gap: 15px;
   }
   .graham-menu-list a{
    font-size: 13px;
   }
   
   .graham-slider-arrows {
     height: 500px;
   }
}

@media (max-width: 1100px) {
  /* Hide Desktop Menu */
  .graham-main-menu {
    display: none;
  }
  
  /* Show Hamburger Button */
  .graham-hamburger-btn {
    display: block;
  }
}

@media (max-width: 767px) {
  /* Modal Content */
  .graham-modal-content {
    padding: 45px !important;
    width: 90% !important;
  }
  
  /* Modal Inner */
  .graham-modal-inner {
    max-height: calc(90vh - 90px) !important;
  }
  
  /* Close Button */
  .graham-close-modal {
    top: 10px !important;
    right: 10px !important;
    width: 25px !important;
    height: 25px !important;
  }
  
  .graham-close-modal svg {
    width: 15px !important;
    height: 15px !important;
  }
  
  /* Play Button */
  .graham-play-button svg {
    width: 80px !important;
    height: 80px !important;
  }
  
  .graham-play-button {
    width: 80px !important;
    height: 80px !important;
  }
  
  /* Video Trigger Button */
  .graham-video-trigger {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  /* Mobile Menu */
  .graham-mobile-menu {
    max-width: 100%;
    padding: 60px 30px 30px 30px;
  }
  
  .graham-mobile-menu-list a {
    font-size: 16px;
  }
  
  /* Slider Adjustments */
  
  .graham-slide-image {
    height: 400px;
  }
  
  .graham-slider-arrows {
    height: 400px;
  }
  
  .graham-slider-arrow {
    width: 35px;
    height: 35px;
  }
  
  .graham-slider-arrow svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 767px) {
  /* Hide custom arrows */
  .graham-slider-arrows {
    display: none;
  }
}

@media (max-width: 600px) {
  /* Slider Mobile */
  .graham-slider-wrapper {
    padding: 0;
  }
  
  .graham-slide-image {
    height: 500px;
  }
}

/* ========================================
   Additional Helper Classes
   ======================================== */

/* Utility class for centering content */
.graham-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Utility class for full width sections */
.graham-full-width {
  width: 100%;
  max-width: 100%;
}

/* Utility class for container max-width */
.graham-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   Animation Classes
   ======================================== */

@keyframes graham-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.graham-fade-in {
  animation: graham-fadeIn 0.6s ease forwards;
}

@keyframes graham-slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.graham-slide-up {
  animation: graham-slideUp 0.8s ease forwards;
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
  .graham-modal,
  .graham-play-button,
  .graham-video-trigger {
    display: none !important;
  }
}

