/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */
:root {
  --primary-color: #000;
  --secondary-color: #666;
  --background-light: #f8f8f8;
  --background-white: #fff;
  --border-radius-sm: 5px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 20px;
  --spacing-xl: 24px;
  --font-family-base: 'sst-roman', sans-serif;
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  --transition-default: all 0.2s ease;
}

/* ==========================================================================
   Layout & Container
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.tab-container {
  max-width: 100%;
  margin: 0 auto;
  padding: var(--spacing-lg) 0;
}

/* ==========================================================================
   Tab Navigation Components
   ========================================================================== */
.tab-buttons {
  display: flex;
  gap: 0;
  margin-bottom: var(--spacing-lg);
  justify-content: center;
  border-bottom: none;
  -ms-overflow-style: none;
  scrollbar-width: none;
  font-family: var(--font-family-base);
}

.tab-buttons::-webkit-scrollbar {
  display: none;
}

.tab-description {
  padding-bottom: var(--spacing-lg);
  font-size: 1.125rem;
}

.tab-info {
  text-align: center;
}

/* Tab Button Styles */
.tab-btn {
  padding: 15px 30px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.5rem;
  transition: var(--transition-default);
  position: relative;
  text-decoration: none !important;
  color: var(--primary-color);
  font-family: var(--font-family-base);
  letter-spacing: 1px;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #e0e0e0;
  transition: background-color 0.3s ease;
}

.tab-btn.active::after {
  background-color: #FF6B00;
}

/* Tab Content Area */
.tab-content {
  position: relative;
}

.tab-panel {
  display: none;
  padding: var(--spacing-lg);
  background: var(--background-white);
  animation: fadeIn 0.5s ease;
}

.tab-panel.active {
  display: block;
}

/* No Content Message */
.no-content {
  text-align: center;
  padding: 30px;
  font-family: 'sst-roman', sans-serif;
  font-size: 1rem;
  color: #666;
  background: #f8f8f8;
  border-radius: 5px;
  max-width: 1200px;
  margin: 20px auto;
}

@media (max-width: 768px) {
  .no-content {
    padding: 20px;
    font-size: 0.875rem;
    margin: 15px 0;
  }
}

/* ==========================================================================
   Content Grid Layout
   ========================================================================== */
.courses-grid,
.highlights-grid,
.tutorials-grid,
.casestudy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 0;
  max-width: 1200px;
  margin: 0 auto;
}

.courses,
.highlights,
.tutorials,
.casestudy {
  padding-bottom: 50px;
}

/* ==========================================================================
   Content Cards
   ========================================================================== */
.course-card {
  text-decoration: none;
  color: inherit;
  background: var(--background-white);
  overflow: hidden;
  transition: var(--transition-default);
  box-shadow: var(--box-shadow);
  position: relative;
}

.image-container {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
}

.new-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: #FF6B00;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  z-index: 10;
  text-transform: uppercase;
  font-family: 'sst-heavy', sans-serif;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.5px;
}

.save-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.9);
}

.image-container:hover .save-btn {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.save-btn:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: scale(1.1);
}

.save-btn svg {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
  stroke-width: 2;
  fill: none;
  transition: all 0.3s ease;
}

.save-btn.is-saved svg {
  fill: #ffffff;
}

.save-btn:active {
  transform: scale(0.95);
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-info {
  padding: var(--spacing-md);
}

.course-url {
  position: absolute;
  right: var(--spacing-md);
  bottom: 0.875rem;
}

.course-info h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary-color);
  line-height: 1.4;
  font-family: 'sst-medium', sans-serif;
}

.course-description-text {
  margin-bottom: 12px;
  margin-top: 8px;
  color: var(--secondary-color);
  font-size: 0.875rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--secondary-color);
  font-family: 'sst-medium', sans-serif;
  margin-top: auto;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #666;
}

.stat-item svg {
  stroke: #666;
}

.stat-item.stat-rating svg {
  stroke: none;
}

.progress-bars {
  display: flex;
  gap: 3px;
  align-items: center;
  margin-left: 8px;
}

.progress-bar {
  width: 6px;
  height: 12px;
  background: #dbdbdb;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.progress-bar.filled {
  background: #FF6B00;
}

.course-arrow-icon {
  width: 10px;
  object-fit: contain;
}

.date {
  color: #888;
}

.visit-course {
  color: #666;
}

.visit-text {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: #666;
}

.visit-arrow {
  font-size: 1.25em;
  font-weight: 400;
}

/* Banner/Carousel Section
     ========================================================================== */
.carousel-section {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.carousel-container {
  width: 100%;
  position: relative;
}


/* Workshop Content Area
     ========================================================================== */
.workshops-content {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  width: 80%;
  max-width: 800px;
  padding: 20px;
}

.workshops-content h2 {
  font-size: 2rem;
  margin-bottom: clamp(0.5rem, 2vw, 1rem);
  letter-spacing: 1px;
  font-family: 'sst-roman';
  font-weight: normal;
}

.workshops-content p {
  font-size: 1.125rem;
  max-width: 800px;
  margin: 0 auto;
}

.workshop-counter {
  margin: 1rem 0;
  color: #666;
  font-size: 1.125rem;
  font-weight: 500;
  text-align: center;
  font-family: 'sst-roman', sans-serif;
}

.no-results,
.no-content {
  text-align: center;
  grid-column-start: 2;
}

/* Filter Components
     ========================================================================== */

.course-filter-bar {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 16px;
  border: 1px solid black;
  border-radius: 5px;
  background-color: var(--background-white);
  margin-bottom: var(--spacing-lg);
  justify-content: center;
}

.course-filter-item {
  background: transparent;
  border: 1px solid transparent;
  color: var(--secondary-color);
  font-family: 'sst-medium', sans-serif;
  font-size: 0.95rem;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.course-filter-item:hover {
  color: var(--primary-color);
  background: #f8f8f8;
}

.course-filter-item.active {
  color: #FF6B00;
  border: 1px solid #f0f0f0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

@media (min-width: 769px) {
  .course-filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    justify-content: flex-start;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  
  .course-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .course-filter-item {
    flex-shrink: 0;
    white-space: nowrap;
  }
}

.tab-filter {
  position: relative;
  display: inline-block;
  padding-bottom: 20px;
}

.filter-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #f8f8f8;
  border: 1px solid black;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.875rem;
  color: #333;
  transition: all 0.2s ease;
}

.filter-button:hover {
  background: #f0f0f0;
}

.filter-text {
  font-size: 1rem;
  font-weight: 500;
  font-family: 'sst-roman', sans-serif;
}

.filter-icon {
  width: 20px;
  height: 20px;
}

/* Filter Dropdown Menu
     ========================================================================== */
.filter-dropdown {
  position: absolute;
  top: calc(100% - 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 16px 10px;
  z-index: 1000;
}

.filter-section {
  margin-bottom: 16px;
}

.filter-section:last-child {
  margin-bottom: 0;
}

.filter-section h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: #333;
}

/* Filter Options
     ========================================================================== */
.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  color: #666;
}

.filter-option:last-child {
  margin-bottom: 0;
}

.filter-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 2px solid #ddd;
  cursor: pointer;
}

.filter-option span {
  user-select: none;
}

.filter-dropdown[hidden] {
  display: none;
}

.filter-dropdown:not([hidden]) {
  animation: slideDown 0.2s ease;
}

/* Filter Section Styles
     ========================================================================== */
.filter-section {
  margin-bottom: 20px;
  text-align: left;
}

.filter-section:last-child {
  margin-bottom: 0;
}

.filter-section h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 12px;
  margin-top: 12px;
  color: #333;
}

/* Button Groups
     ========================================================================== */
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  padding: 8px 10px;
  border-radius: 5px;
  border: 1px solid #000;
  background: white;
  color: black;
  font-size: 0.875rem;
  width: 48%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: #f8f8f8;
}

.filter-btn.active {
  background: #000;
  color: white;
  border-color: #000;
}

/* Date Range Controls
     ========================================================================== */
.date-range {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  justify-content: center;
  flex-direction: column;
}

.date-input {
  padding: var(--spacing-xs) var(--spacing-sm);
  border: 1px solid var(--primary-color);
  border-radius: var(--border-radius-md);
  font-size: 0.875rem;
  color: var(--primary-color);
  width: 150px;
  font-family: var(--font-family-base);
}

.date-separator {
  color: var(--secondary-color);
  font-size: 0.875rem;
}

/* Filter Counter
     ========================================================================== */
.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--spacing-lg);
  height: var(--spacing-lg);
  color: var(--primary-color);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0 6px;
  font-family: var(--font-family-base);
}

/* User Interface Elements
     ========================================================================== */


.load-more-btn {
  display: block;
  margin: 2rem auto;
  margin-bottom: 0 !important;
  padding: 0.75rem 1.5rem;
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-size: 1.125rem;
  transition: var(--transition-default);
  font-family: var(--font-family-base);
}

.load-more-btn:hover {
  background-color: var(--primary-color);
  color: var(--background-white);
}

/* Utility Classes
     ========================================================================== */
.level-badge {
  position: absolute;
  top: unset;
  bottom: 0;
  left: var(--spacing-sm);
  background: rgba(0, 0, 0, 0.7);
  color: var(--background-white);
  padding: 4px var(--spacing-sm);
  font-size: 1.125rem;
  font-weight: 600;
  text-transform: uppercase;
  font-family: 'sst-heavy';
}

.font-bold {
  font-weight: bold;
}

/* Animations
     ========================================================================== */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translate(-50%, -8px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}




.alpha-universe-logo {
  max-width: 100%;
  height: auto !important;
}



/* Tips Styles
----------------------------------------*/
.headerEx {
  text-align: center;
}

.headerEx h2 {
  padding: 15px 30px;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  transition: var(--transition-default);
  position: relative;
  text-decoration: none !important;
  color: var(--primary-color);
  font-family: var(--font-family-base);
  letter-spacing: 1px;
  font-weight: normal;
}

.headerEx div {
  padding-bottom: 20px;
  font-size: 1.125rem;
}



.my-sony-academy {
  padding: 0px !important;
}

.desktop-banner {
  display: block;
}

.mobile-banner {
  display: none;
}

.mobile-br {
  display: none;
}

.desktop-br {
  display: block;
}

.my-sony-academy-description {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 2;
  width: 80%;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.my-sony-academy-description h2 {
  font-size: 2rem;
  font-family: var(--font-family-base);
  font-weight: normal;
  letter-spacing: 1px;
}

/* ==========================================================================
   Promotions Section
   ========================================================================== */
.promotions {
  padding: 50px 0;
}

.promotions-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  position: relative;
  overflow: hidden;
}

.promotions-swiper {
  width: 100%;
  position: relative;
  padding: var(--spacing-lg) 0;
}

.promotions-slide {
  background: var(--background-white);
  border-bottom-left-radius: var(--border-radius-lg);
  border-bottom-right-radius: var(--border-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--box-shadow);
  transition: var(--transition-default);
}

.promotions-slide:hover {
  transform: translateY(-5px);
}

.promotions-slide-image {
  width: 100%;
  object-fit: cover;
}

.promotions-slide-description {
  padding: var(--spacing-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--background-white);
  color: var(--primary-color);
}

.promotions-slide-description h2 {
  margin: 0 0 5px 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary-color);
  line-height: 1.4;
  font-family: 'sst-medium', sans-serif;
}

.promotions-slide-description p {
  font-size: 1rem;
  color: var(--secondary-color);
  font-family: 'sst-light';
  line-height: 1.4;
}

.promotions .title h1 {
  padding: 15px 30px;
  border: none;
  background: transparent;
  font-size: 1.5rem !important;
  transition: var(--transition-default);
  position: relative;
  text-decoration: none !important;
  color: var(--primary-color);
  font-family: var(--font-family-base) !important;
  letter-spacing: 1px;
  font-weight: normal;
}

.promotions-slide a {
  text-decoration: none;
}

/* Responsive adjustments for promotions */
@media (max-width: 768px) {
  .promotions {
    padding: calc(var(--spacing-lg) + 10px) 0;
  }

  .promotions .title {
    padding-bottom: 0px !important;
  }

  .promotions .title h1 {
    font-size: 1.5rem;
  }

  .promotions-slide-description {
    padding: var(--spacing-md);
  }

  .promotions-slide-description h2 {
    font-size: 0.875rem;
    line-height: 1.3;
  }

}



/* Responsive Styles
     ========================================================================== */
@media screen and (max-width: 768px) {
  .carousel-slide img {
    width: 80%;
  }

  .mobile-br {
    display: block;
  }

  .desktop-br {
    display: none;
  }

  .courses,
  .highlights,
  .tutorials,
  .casestudy {
    padding-bottom: calc(var(--spacing-lg) + 10px);
  }

  .desktop-banner {
    display: none;
  }

  .mobile-banner {
    display: block;
  }

  .my-sony-academy-description {
    top: 25%;
  }

  .workshops-content h2 {
    font-size: 1.5rem;
    font-weight: normal;
  }

  .workshops-content p {
    font-size: 0.875rem;
    max-width: 100%;
    max-height: 100px;
  }

  .level-badge {
    font-size: 0.875rem;
  }

  .tab-btn {
    width: 100%;
    text-align: center;
    padding: calc(var(--spacing-xs) - 2px) var(--spacing-md);
    font-size: 1.25rem;
  }

  .tab-description,
  .headerEx div {
    font-size: 0.875rem;
  }

  .courses-grid,
  .highlights-grid,
  .tutorials-grid,
  .casestudy-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0;
    gap: 20px;
  }

  .course-info h3 {
    font-size: 0.875rem;
  }

  .course-meta {
    font-size: 13px;
  }

  .tab-buttons {
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0 var(--spacing-lg) 5px;
    margin-bottom: 0;
  }

  .tab-content::-webkit-scrollbar {
    display: none;
  }

  .tab-content {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .workshop-counter,
  .load-more-btn {
    font-size: 0.875rem;
  }

  .load-more-btn {
    margin-bottom: 1rem !important;
  }

  .course-filter-wrapper {
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    width: 100%;
    display: block;
    padding-bottom: 5px; /* small padding for any box shadows */
  }

  .course-filter-wrapper::-webkit-scrollbar {
    display: none;
  }

  .course-filter-bar {
    display: inline-flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    border: 1px solid black;
    border-radius: 5px;
    padding: 8px 16px;
    margin: 0 20px var(--spacing-md);
  }

  .course-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .course-filter-item {
    flex-shrink: 0;
    white-space: nowrap;
  }
}

/* Small Screen Adjustments
     ========================================================================== */
@media screen and (max-width: 320px) {
  .filter-dropdown {
    width: 280px;
  }

  .date-input {
    font-size: 0.75rem;
    width: 120px;
  }
}

/* Multi-Select Filter Box Styles
   ========================================================================== */
.select-box {
  position: relative;
  width: 100%;
  font-family: 'sst-roman', sans-serif;
}

.select-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  background: #fff;
  border: 1px solid #000;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
}

.select-box-header .arrow {
  border-style: solid;
  border-width: 0.15em 0.15em 0 0;
  content: '';
  display: inline-block;
  height: 0.45em;
  width: 0.45em;
  position: relative;
  transform: rotate(135deg);
  transition: transform 0.3s ease;
}

.select-box-header.active .arrow {
  transform: rotate(-45deg);
  top: 2px;
}

.options-container {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #000;
  border-top: none;
  border-radius: 0 0 5px 5px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 100;
}

.select-box.active .options-container {
  max-height: 300px;
  overflow-y: auto;
}

.search-box {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.search-box input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.875rem;
  font-family: inherit;
}

.option-list {
  padding: 0;
}

.option-item {
  padding: 10px 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.option-item:hover {
  background-color: #f5f5f5;
}

.option-item.selected {
  background-color: #f0f0f0;
}

.option-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.selected-text {
  font-size: 0.875rem;
}

/* Hide scrollbar but keep functionality */
.options-container {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.options-container::-webkit-scrollbar {
  display: none;
}


/* Course Grid - 1 Column */
@media (max-width: 568px) {

  .courses-grid,
  .highlights-grid,
  .tutorials-grid,
  .casestudy-grid {
    grid-template-columns: repeat(1, 1fr) !important;
    padding: 0;
  }
}