/* =================================================== */
/* === Modern Program Section Design === */
/* =================================================== */


/*
  This creates an invisible "flag" for JavaScript to read,
  ensuring the JS and CSS breakpoints are always in sync.
*/
body::before {
  content: 'desktop';
  display: none;
}

@media (max-width: 768px) {
  body::before {
    content: 'mobile';
  }
}


/* Program Section Styling */
.program-section {
  padding: 40px 0;

  min-height: 100vh;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.main-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0;
  background: linear-gradient(135deg, #7f1d07 0%, #b84909 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section Titles */
.section-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #1a202c;
  margin: 0 0 24px 0;
  padding-bottom: 12px;
  border-bottom: 3px solid #7f1d07;
  display: inline-block;
}

/* Program Sections */
.owned-programs-section {
  margin-bottom: 50px;
}

.available-programs-section {
  margin-bottom: 30px;
}

.owned-programs-grid {
  margin-top: 20px;
}

.available-programs-grid {
  margin-top: 20px;
}

/* Badge Styles */
.card-badge-available {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  position: absolute;
  top: 12px;
  z-index: 2;
}

/* Programs Grid */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 30px;
  justify-items: center;
}

/* Program Card */
.program-card {
  background: white;
  border-radius: 20px;
  border-bottom: 8px solid #851B06;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  width: 100%;
  max-width: 400px;
}

.program-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-link:hover {
  text-decoration: none;
  color: inherit;
}

/* Card Image */
.card-image {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.program-card:hover .card-image img {
  transform: scale(1.1);
}

/* Card Badge */
.card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(135deg, #7f1d07 0%, #b84909 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Owned Badge - positioned on the right side */
.card-badge-owned {
  left: auto;
  right: 16px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  z-index: 2;
}

/* Card Overlay */
.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(108, 91, 88, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.program-card:hover .card-overlay {
  opacity: 1;
}

.overlay-content {
  text-align: center;
  color: white;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.program-card:hover .overlay-content {
  transform: translateY(0);
}

.overlay-content i {
  font-size: 3rem;
  margin-bottom: 8px;
  display: block;
}

.overlay-content span {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Card Content */
.card-content {
  padding: 24px;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.card-description {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 20px 0;
}

/* Card Price */
.card-price {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.price-original {
  color: #94a3b8;
  text-decoration: line-through;
  font-size: 0.9rem;
}

.price-current {
  color: #059669;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Card Meta */
.card-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 500;
}

.card-meta i {
  color: #94a3b8;
  font-size: 0.8rem;
}



/* Responsive Design */

/* Mobile Styles */
@media (max-width: 576px) {
  .program-section {
    padding: 20px 0;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .main-title {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.4rem;
    margin-bottom: 16px;
  }

  .owned-programs-section {
    margin-bottom: 40px;
  }

  .available-programs-section {
    margin-bottom: 20px;
  }

  .programs-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    justify-items: center;
  }

  .program-card {
    max-width: 100%;
    width: 100%;
  }

  .card-image {
    height: 200px;
  }

  .card-content {
    padding: 20px;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .card-description {
    font-size: 0.9rem;
  }

  .card-meta {
    gap: 12px;
  }

  #gantipass {
    font-size: 15px;
    padding: 0;
  }
}

/* Tablet Styles */
@media (min-width: 577px) and (max-width: 768px) {
  .program-section {
    padding: 30px 0;
  }

  .main-title {
    font-size: 2.2rem;
  }

  .programs-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    justify-items: center;
  }

  .program-card {
    max-width: 400px;
    width: 100%;
  }

  .card-image {
    height: 220px;
  }
}

/* Desktop Styles */
@media (min-width: 769px) {
  .section-header {
    margin-bottom: 50px;
  }

  .programs-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    justify-items: center;
  }

  .program-card {
    max-width: 400px;
    width: 100%;
  }
}

/* Large Desktop Styles */
@media (min-width: 1200px) {
  .container {
    max-width: 1400px;
    padding: 0 40px;
  }

  .programs-grid {
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 40px;
    justify-items: center;
  }

  .program-card {
    max-width: 420px;
    width: 100%;
  }

  .card-content {
    padding: 28px;
  }

  .card-title {
    font-size: 1.4rem;
  }
}

/* Animation Enhancements */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.program-card {
  animation: fadeInUp 0.6s ease forwards;
}

.program-card:nth-child(1) {
  animation-delay: 0.1s;
}

.program-card:nth-child(2) {
  animation-delay: 0.2s;
}

.program-card:nth-child(3) {
  animation-delay: 0.3s;
}

.program-card:nth-child(4) {
  animation-delay: 0.4s;
}

/* Focus States for Accessibility */
.card-link:focus {
  outline: 2px solid #667eea;
  outline-offset: 4px;
  border-radius: 20px;
}

/* Print Styles */
@media print {
  .program-section {
    background: white;
    padding: 20px 0;
  }

  .section-title {
    color: #000;
    border-bottom-color: #000;
  }

  .card-overlay {
    display: none;
  }

  .program-card {
    break-inside: avoid;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
}

/* Optional: Widen the main container on large desktops for better layout */
@media (min-width: 1200px) {
  #main.quest .container {
    max-width: 1200px;
    margin: 0 auto;
  }
}

/* =================================================== */
/* === Purchase History Styles === */
/* =================================================== */

/* Purchase History Styles */
.purchase-history-section {
    padding: 2rem 0;
}

.purchase-history-section .main-title{
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    text-align: justify;
    margin: 0;
    background: linear-gradient(135deg, #7f1d07 0%, #b84909 100%);
    background-clip: text;
}

.purchase-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
    gap: 2rem;
}

.form-set {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-set label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

/* .form-set select {
    padding: 0.75rem 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    min-width: 200px;
    transition: border-color 0.3s ease;
    max-width: 100%;
}

.form-set select:focus {
    outline: none;
    border-color: #851B06;
} */

.purchase-tabs {
    display: flex;
    gap: 0.5rem;
}

.purchase-tabs .tab-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e1e5e9;
    background: white;
    color: #666;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.purchase-tabs .tab-btn:hover {
    border-color: #851B06;
    color: #851B06;
}

.purchase-tabs .tab-btn.active {
    background: linear-gradient(135deg, #7f1d07 0%, #b84909 100%);
    border-color: #851B06;
    color: white;
}

.purchase-history-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.purchase-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e1e5e9;
}

.purchase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.purchase-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.purchase-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.purchase-date i {
    color: #851B06;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-confirmed {
    background: #d4edda;
    color: #155724;
}

.status-not-confirmed {
    background: #f8d7da;
    color: #721c24;
}

.purchase-card-content {
    padding: 1.5rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.program-info {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.program-image {
    position: relative;
    flex-shrink: 0;
}

.program-image img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    max-width: 100%;
}

.program-placeholder {
    width: 120px;
    height: 80px;
    background: linear-gradient(135deg, #7f1d07 0%, #b84909 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    border-radius: 8px;
}

.program-level-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #851B06;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.program-details {
    flex: 1;
}

.program-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.program-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.purchase-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.invoice-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.invoice-label {
    color: #666;
    font-size: 0.8rem;
}

.invoice-number {
    font-weight: 600;
    color: #333;
    font-family: monospace;
}

.purchase-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #851B06;
}

.date-info {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.date-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.date-label {
    color: #666;
    font-weight: 500;
    min-width: 70px;
}

.purchase-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.action-btn.primary {
    background: #851B06;
    color: white;
}

.action-btn.primary:hover {
    background: #541204;
    transform: translateY(-2px);
}

.action-btn.secondary {
    background: #6c757d;
    color: white;
}

.action-btn.secondary:hover {
    background: #545b62;
    transform: translateY(-2px);
}

.action-btn.certificate {
    background: #28a745;
    color: white;
}

.action-btn.certificate:hover {
    background: #1e7e34;
    transform: translateY(-2px);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.empty-state-icon {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1.5rem;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.empty-state-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: #851B06;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.link-btn:hover {
    background: linear-gradient(135deg, #7f1d07 0%, #b84909 100%);
    transform: translateY(-2px);
    color: white;
}

/* Purchase History Responsive Design */
@media (max-width: 768px) {
    .purchase-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .purchase-tabs {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .purchase-tabs .tab-btn {
        flex: 1;
        text-align: center;
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
        min-width: 80px;
    }
    
    .program-info {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .program-image {
        align-self: center;
        width: 100%;
        /* max-width: 200px; */
        height: auto;
    }
    
    .program-image img {
        width: 100%;
        height: auto;
        max-width: 100%;
        aspect-ratio: 3/2;
        object-fit: cover;
    }
    
    .program-placeholder {
        width: 100%;
        height: auto;
        aspect-ratio: 3/2;
        font-size: 32px;
    }
    
    .date-info {
        margin-top: 0.5rem;
    }
    
    .date-item {
        font-size: 0.75rem;
    }
    
    .date-label {
        min-width: 60px;
    }
    
    .purchase-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        width: 100%;
    }
    
    .purchase-actions {
        justify-content: center;
        width: 100%;
        gap: 0.5rem;
    }
    
    .action-btn {
        flex: 1;
        justify-content: center;
        min-width: 0;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        text-align: center;
    }
    
    .action-btn span {
        display: none;
    }
    
    .action-btn i {
        margin: 0 auto;
        font-size: 1.1rem;
    }
    
    .purchase-card-header {
        padding: 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .purchase-card-content {
        padding: 1rem;
        overflow-wrap: break-word;
        word-wrap: break-word;
        word-break: break-word;
    }
    
    .program-title {
        font-size: 1.1rem;
        overflow-wrap: break-word;
    }
    
    .program-description {
        font-size: 0.85rem;
        overflow-wrap: break-word;
    }
    
    .purchase-history-section .main-title {
        font-size: 1.8rem;
    }
    
    .form-set select {
        min-width: 100%;
        width: 100%;
        max-width: 100%;
    }
    
    .invoice-number {
        font-size: 0.8rem;
        word-break: break-all;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .purchase-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .status-badge {
        margin-top: 0.5rem;
        align-self: flex-start;
    }
    
    .purchase-date {
        font-size: 0.8rem;
    }
    
    .action-btn {
        padding: 0.6rem 0.8rem;
    }
    
    .program-title {
        font-size: 1rem;
    }
    
    .program-description {
        font-size: 0.8rem;
    }
}

/* =================================================== */
/* === Purchase History Styles === */
/* =================================================== */

/* Purchase History Styles */
.purchase-history-section {
    padding: 2rem 0;
}

.purchase-history-section .main-title{
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    text-align: start;
    margin: 0;
    background: linear-gradient(135deg, #7f1d07 0%, #b84909 100%);
    background-clip: text;
}

.purchase-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
    gap: 2rem;
}

.form-set {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-set label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

/* .form-set select {
    padding: 0.75rem 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    min-width: 200px;
    max-width: 100%;
    transition: border-color 0.3s ease;
}

.form-set select:focus {
    outline: none;
    border-color: #851B06;
} */

.purchase-tabs {
    display: flex;
    gap: 0.5rem;
}

.purchase-tabs .tab-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e1e5e9;
    background: white;
    color: #666;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.purchase-tabs .tab-btn:hover {
    border-color: #851B06;
    color: #851B06;
}

.purchase-tabs .tab-btn.active {
    background: linear-gradient(135deg, #7f1d07 0%, #b84909 100%);
    border-color: #851B06;
    color: white;
}

.purchase-history-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.purchase-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e1e5e9;
}

.purchase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.purchase-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
}

.purchase-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.purchase-date i {
    color: #851B06;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-completed {
    background: #cce5ff;
    color: #004085;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.purchase-card-content {
    padding: 1.5rem;
}

.program-info {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.program-image {
    position: relative;
    flex-shrink: 0;
}

.program-image img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.program-level-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #851B06;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.program-details {
    flex: 1;
}

.program-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.program-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.purchase-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.invoice-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.invoice-label {
    color: #666;
    font-size: 0.8rem;
}

.invoice-number {
    font-weight: 600;
    color: #333;
    font-family: monospace;
}

.purchase-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #851B06;
}

.purchase-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.action-btn.primary {
    background: #851B06;
    color: white;
}

.action-btn.primary:hover {
    background: #541204;
    transform: translateY(-2px);
}

.action-btn.secondary {
    background: #6c757d;
    color: white;
}

.action-btn.secondary:hover {
    background: #545b62;
    transform: translateY(-2px);
}

.action-btn.certificate {
    background: #28a745;
    color: white;
}

.action-btn.certificate:hover {
    background: #1e7e34;
    transform: translateY(-2px);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.empty-state-icon {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1.5rem;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.empty-state-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: #851B06;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.link-btn:hover {
    background: linear-gradient(135deg, #7f1d07 0%, #b84909 100%);
    transform: translateY(-2px);
    color: white;
}

/* Purchase History Responsive Design */
@media (max-width: 768px) {
    .purchase-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .purchase-tabs {
        justify-content: center;
    }
    
    .purchase-tabs .tab-btn {
        flex: 1;
        text-align: center;
        font-size: 20px;
    }
    
    .program-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .program-image {
        align-self: center;
    }
    
    .purchase-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .purchase-actions {
        justify-content: center;
    }
    
    .action-btn {
        flex: 1;
        justify-content: center;
        min-width: 120px;
    }
}

.dashboard-container {
  display: flex;
  flex-direction: row;
}

.sidebar-nav {
  width: 260px;
  /* Fixed width for the sidebar */
  flex-shrink: 0;
  /* Prevents sidebar from shrinking */
  height: 100vh;
  position: sticky;
  top: 0;
  background-color: #0F172A;
  /* A common dark sidebar color */
  overflow-y: visible;
}

.main-content-area {
  /* background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); */
  /* padding: 2rem; */
  background-color: #fff;
  /* A light grey background for the content */
}

/* For mobile screens, stack the sidebar on top */
@media (max-width: 768px) {
  .dashboard-container {
    flex-direction: column;
  }

  .sidebar-nav {
    width: 100%;
    height: auto;
    position: static;
  }

  /*
      Corrected rules to prevent jitter when resizing from desktop-collapsed
      to mobile, using a more specific selector to avoid conflicts.
    */
  html.sidebar-collapsed .sidebar {
    width: 100vw;
    /* Ensures the width is correct for mobile */
    transform: translateX(-100%);
    /* Ensures sidebar is hidden off-screen */
  }

  html.sidebar-collapsed .content {
    margin-left: 0;
  }

}

/* =========================================
   FIX FOR SIDEBAR AND CONTENT OVERLAP
========================================= */

/* 1. The main container for the whole page layout */
.dashboard-container {
  display: flex;
  /* This is the key property to create columns */
  flex-direction: row;
}

/* 2. The sidebar itself */
.sidebar-nav {
  width: 260px;
  /* A fixed width for the sidebar */
  flex-shrink: 0;
  /* Prevents the sidebar from getting smaller */
  background: #fff;
  /* Give it a solid background */
}

/* 3. The main content area */
.main-content-area {
  flex-grow: 1;
  /* Tells the content to take up all remaining space */
  /* padding: 2rem; */
  /* Adds some nice spacing around your content */

}

/*
   FIX FOR CENTERING THE MAIN CONTENT
*/
#main.quest {
  width: 100%;
  /* max-width: 1200px; Sets a maximum width for your content */
  margin: 0 auto;   /* The key property that centers the block */
  overflow: visible;
}


:root {
  --primary-color: #851B06;
  --secondary-color: #E9D6D2;
  --sidebar-bg: #FFFFFF;
  --sidebar-link-color: #5F5F5F;
  --sidebar-link-hover: var(--secondary-color);
  --sidebar-width: 280px;
  --sidebar-collapsed-width: 80px;
  --header-height: 70px;
}

body {
  background-color: var(--secondary-color);
  /* Light background for content area */
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

.main-wrapper {
  display: flex;
  background: #fff;
  min-height: 100vh;
}

/* --- Sidebar Styles --- */

.sidebar {
  width: var(--sidebar-width);
  background-color: var(--sidebar-bg);
  padding: 0 20px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  z-index: 1000;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  transform: translateX(0);
  will-change: width, padding;
}

.sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
  padding: 20px 10px;
}



.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  margin-top: 1rem;
  padding-left: 1rem;
}

.sidebar.collapsed .sidebar-header {
  margin-bottom: 2rem;
  margin-top: 1rem;
  padding-left: 0rem;
  justify-content: center;
}

.sidebar-hamburger {
  font-size: 1.2rem;
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.2s;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-hamburger:hover {
  background-color: var(--secondary-color);
}

.sidebar-header .logo {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: opacity 0.3s ease;
}

.sidebar.collapsed .sidebar-header .logo {
  opacity: 0;
  visibility: hidden;
  display: none;
  height: 0;
  overflow: hidden;
}

.user-profile {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  padding: 10px;
  border-radius: 8px;
}

.user-profile img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
}

.user-profile .user-info h5 {
  margin: 0;
  font-size: 1rem;
  font-weight: bold;
}

.user-profile .user-info p {
  margin: 0;
  font-size: 0.8rem;
  color: #888;
}

.sidebar-nav {
  width: 100%;
  /* Ensure the nav takes the full width of the sidebar */
}

.sidebar.collapsed .sidebar-nav {
  padding: 0 5px;
  /* Reduce padding when collapsed */
}

.no-bullets {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.nav-item {
  margin-bottom: 0.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 15px;
  color: var(--sidebar-link-color);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
  margin: 4px 0;
  position: relative;
  white-space: nowrap;
}

.sidebar.collapsed .nav-link {
  justify-content: center;
  padding: 12px;
  border-radius: 12px;
  width: 48px;
  height: 48px;
  margin: 8px auto;
  display: flex;
  align-items: center;
  position: relative;
}

/* Tooltip for collapsed sidebar */
.sidebar.collapsed .nav-link:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  white-space: nowrap;
  z-index: 1001;
  opacity: 0;
  animation: fadeInTooltip 0.3s ease forwards;
}

@keyframes fadeInTooltip {
  to {
    opacity: 1;
  }
}

.nav-link i {
  font-size: 1.3rem;
  margin-right: 12px;
  min-width: 20px;
  text-align: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.sidebar.collapsed .nav-link i {
  margin-right: 0;
  font-size: 1.2rem;
}

.nav-link span {
  transition: all 0.3s ease;
  flex-grow: 1;
}

.sidebar.collapsed .nav-link span {
  display: none;
}

.nav-link:hover {
  background-color: var(--sidebar-link-hover);
  color: var(--primary-color);
  transform: translateX(2px);
}

.sidebar.collapsed .nav-link:hover {
  transform: scale(1.05);
  background-color: var(--sidebar-link-hover);
}

.nav-link.active {
  background-color: var(--primary-color);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(127, 29, 7, 0.3);
}

.sidebar.collapsed .nav-link.active {
  background-color: var(--primary-color);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(127, 29, 7, 0.4);
}

.nav-section-title {
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: bold;
  color: #aaa;
  padding: 0 15px;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* Notification Badge Styles */
.notification-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 12px;
  height: 12px;
  background-color: #ff4757;
  border-radius: 50%;
  border: 2px solid #ffffff;
  animation: pulse 2s infinite;
  z-index: 10;
}

/* Pulse animation for notification badge */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Adjust badge position for collapsed sidebar */
.sidebar.collapsed .nav-link .notification-badge {
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
}

/* Ensure notification badge is visible in collapsed sidebar */
.sidebar.collapsed .nav-link {
  overflow: visible;
}

.sidebar.collapsed .notification-badge {
  display: block !important;
  z-index: 1000;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .notification-badge {
    width: 10px !important;
    height: 10px;
    top: 6px;
    right: 6px;
  }
  
  /* Hide sidebar notification badge on mobile when sidebar is hidden */
  .sidebar:not(.mobile-open) .notification-badge {
    display: none;
  }
  
  /* Show notification on mobile hamburger button */
  .header-hamburger-btn {
    position: relative;
  }
  
  .header-hamburger-btn .mobile-notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background-color: #ff4757;
    border-radius: 50%;
    border: 1px solid #ffffff;
    animation: pulse 2s infinite;
    z-index: 10;
  }
}

/* Mobile header styles removed - using main header only */

/* --- Content Area --- */
.content {
  flex-grow: 1;
  margin-left: var(--sidebar-width);
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: calc(100% - var(--sidebar-width));
  max-width: calc(100% - var(--sidebar-width));
  will-change: margin-left, width;
}

html.sidebar-collapsed .content {
  margin-left: var(--sidebar-collapsed-width);
  width: calc(100% - var(--sidebar-collapsed-width));
  max-width: calc(100% - var(--sidebar-collapsed-width));
}

/* --- Content Header --- */
.content-header {
  background: linear-gradient(to bottom, #FFF 45%, rgba(255, 255, 255, 0) 100%);
  padding: 45px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-center {
  display: none;
}

/* Header logo that appears when sidebar is collapsed */
.header-logo {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

html.sidebar-collapsed .header-logo {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.header-logo svg {
  height: 35px;
  width: auto;
}

.header-hamburger-btn {
  font-size: 1.2rem;
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.header-hamburger-btn:hover {
  background-color: var(--secondary-color);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --- Main Content Area --- */
.main-content-area {
  flex-grow: 1;
  /* padding: 20px; */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* --- Page Title --- */
.page-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}

/* --- Button Styles --- */

/* Style for the "Masuk" (Login) button */
.btn.btn-custom-login {
    width: 150px;
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
    padding: 8px 16px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn.btn-custom-login:hover {
    background-color: #6b1906; /* A darker shade for hover */
    border-color: #6b1906;
    color: white;
    text-decoration: none;
}

/* Style for the "Sign up" (Register) button */
.btn.btn-custom-register {
    width: 150px;
    background-color: #fff;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 8px 16px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn.btn-custom-register:hover {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
}

/* Style for the "Logout" button */
.btn.btn-custom-logout {
    background-color: #dc3545; /* Bootstrap's danger color */
    color: white;
    border: 1px solid #dc3545;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn.btn-custom-logout:hover {
    background-color: #c82333; /* A darker shade for hover */
    border-color: #c82333;
    color: white;
    text-decoration: none;
}

/* --- Enhanced Responsive Styles --- */

/* Mobile First - Base styles for mobile devices */
@media (max-width: 768px) {
  :root {
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 60px;
    --header-height: 60px;
  }

  /* Header logo always visible on mobile */
  .header-logo {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
  }

  .header-logo img {
    height: 30px !important;
  }

  /* Header hamburger button styles for mobile */
  .header-hamburger-btn {
    display: block !important;
    font-size: 1.2rem;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0px;
    flex-shrink: 0;
  }

  .header-hamburger-btn:hover {
    background-color: var(--secondary-color);
  }

  .header-left {
    justify-content: start;
    display: flex;
    align-items: center;
  }

  .header-left a {
    display: none;
  }


    .header-center {
        display: flex;
    }
    
    .sidebar {
        transform: translateX(-100%);
        z-index: 1001;
        width: var(--sidebar-width);
        transition: transform 0.3s ease;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    /* Add overlay for mobile when sidebar is open */
    .sidebar.mobile-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: var(--sidebar-width);
        width: calc(100vw - var(--sidebar-width));
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
        pointer-events: auto;
    }
    
    /* Ensure hamburger is always visible on mobile */
    .sidebar-hamburger {
        display: block !important;
    }
    
    /* Show full text on mobile when open */
    .sidebar.mobile-open .nav-link span {
        display: inline;
        opacity: 1;
        visibility: visible;
    }
    
    .sidebar.mobile-open .sidebar-header .logo {
        display: block;
        opacity: 1;
        visibility: visible;
        height: auto;
    }
    
    .content {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .content-header {
        background: linear-gradient(to bottom, #FFF 55%, rgba(255, 255, 255, 0) 100%);
        padding: 45px 15px;
        height: var(--header-height);
        position: sticky;
        top: 0;
        z-index: 999;
    }
    
    .header-left {
    }
    
    .header-right {
        gap: 8px;
        flex-shrink: 0;
    }
    
    .btn.btn-custom-login,
    .btn.btn-custom-register {
        width: auto;
        min-width: 70px;
        padding: 6px 12px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

  .btn.btn-custom-register {
    display: none !important;
  }

  .main-content-area {
    /* padding: 15px 10px; */
    padding: 0px;
  }

  .page-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
  }

  .sidebar-header {
    margin-bottom: 2rem;
    padding: 0 0.5rem;
  }

  .sidebar-header .logo img {
    height: 35px !important;
  }

  .nav-link {
    padding: 12px 15px;
    font-size: 1rem;
    min-height: 48px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    width: auto;
    height: auto;
    margin: 4px 0;
    justify-content: flex-start;
  }

  .nav-link i {
    margin-left: 0;
    margin-right: 15px;
    font-size: 1.3rem;
    min-width: 24px;
    flex-shrink: 0;
  }

  .nav-link span {
    opacity: 1;
    visibility: visible;
    width: auto;
    flex-grow: 1;
  }

  .user-info span {
    display: none;
  }

  .btn-custom-logout {
    padding: 6px 12px;
    font-size: 0.85rem;
    min-width: 60px;
  }

  /* Fix for mobile header layout */
  .header-left .header-logo {
    flex-shrink: 0;
  }

  /* Ensure proper spacing on very small screens */
  @media (max-width: 480px) {
    .header-right {
      gap: 4px;
    }

    .btn.btn-custom-login,
    .btn.btn-custom-register {
      min-width: 60px;
      padding: 5px 8px;
      font-size: 0.8rem;
    }

    .btn-custom-logout {
      min-width: 50px;
      padding: 5px 8px;
      font-size: 0.8rem;
    }

    .main-content-area {
      /* padding: 10px 8px; */
      padding: 0px;
    }
  }
}

/* Small tablets and large phones */
@media (min-width: 577px) and (max-width: 768px) {
  :root {
    --sidebar-width: 320px;
  }

  /* Show header hamburger on tablets too */
  .header-hamburger-btn {
    display: block !important;
    font-size: 1.2rem;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
  }

  .header-hamburger-btn:hover {
    background-color: var(--secondary-color);
  }

  .sidebar {
    transform: translateX(-100%);
    z-index: 1001;
    width: var(--sidebar-width);
    transition: transform 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .sidebar.mobile-open::after {
    content: '';
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    width: calc(100vw - var(--sidebar-width));
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    pointer-events: auto;
  }

  .content {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
  }

  .main-content-area {
    /* padding: 18px 15px; */
    padding: 0px;
  }

  .nav-link {
    padding: 12px 15px;
    justify-content: flex-start;
  }

  .nav-link i {
    margin-left: 0;
    margin-right: 15px;
    flex-shrink: 0;
  }

  .nav-link span {
    opacity: 1;
    visibility: visible;
    flex-grow: 1;
  }

  .btn.btn-custom-login,
  .btn.btn-custom-register {
    width: 100px;
    font-size: 0.9rem;
  }
}

/* Tablets */
@media (min-width: 769px) and (max-width: 992px) {
  .main-content-area {
    /* padding: 20px 18px; */
    padding: 0px;
  }

  .sidebar {
    z-index: 1001;
  }

  /* Hide header hamburger on larger tablets */
  .header-hamburger-btn {
    display: none !important;
  }

  .nav-link i {
    margin-left: 0;
    margin-right: 12px;
  }

  /* Ensure proper sidebar behavior on tablets */
  .content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    max-width: calc(100% - var(--sidebar-width));
  }

  html.sidebar-collapsed .content {
    margin-left: var(--sidebar-collapsed-width);
    width: calc(100% - var(--sidebar-collapsed-width));
    max-width: calc(100% - var(--sidebar-collapsed-width));
  }
}

/* Large tablets and small desktops */
@media (min-width: 993px) and (max-width: 1200px) {
  .sidebar.is-expanded~.content {
    width: calc(100vw - var(--sidebar-width));
    max-width: calc(100vw - var(--sidebar-width));
  }

  .main-content-area {
    /* padding: 25px 20px; */
    padding: 0px;
  }
}

/* Large desktops */
@media (min-width: 1201px) {
  .sidebar.is-expanded~.content {
    width: calc(100vw - var(--sidebar-width));
    max-width: calc(100vw - var(--sidebar-width));
  }

  .main-content-area {
    /* padding: 30px 25px; */
    /* max-width: 1400px;
        margin: 0 auto; */
    padding: 0px;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .header-hamburger-btn,
    .btn.btn-custom-login,
    .btn.btn-custom-register,
    .btn.btn-custom-logout {
        min-height: 40px;
        min-width: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

  .nav-link,
  .sidebar-hamburger {
    min-height: 40px;
    display: flex;
    align-items: center;
  }

  .nav-link:hover {
    background-color: transparent;
  }

  .nav-link:active {
    background-color: var(--sidebar-link-hover);
  }

  .header-hamburger-btn:hover {
    background-color: transparent;
  }

  .header-hamburger-btn:active {
    background-color: var(--secondary-color);
  }
}



/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
  :root {
    --sidebar-width: 260px;
    --header-height: 50px;
  }

  .content-header {
    height: var(--header-height);
    padding: 8px 15px;
  }

  .header-logo img {
    height: 28px !important;
  }

  .sidebar {
    width: var(--sidebar-width);
  }

  .sidebar.mobile-open::after {
    left: var(--sidebar-width);
    width: calc(100vw - var(--sidebar-width));
  }

  .main-content-area {
    /* padding: 10px; */
    padding: 0px;
  }

  .nav-link {
    padding: 8px 12px;
    min-height: 40px;
  }

  .nav-link i {
    font-size: 1.1rem;
  }
}

/* Print styles */
@media print {

  .sidebar,
  .content-header,
  .header-hamburger-btn,
  .sidebar-hamburger {
    display: none !important;
  }

  .content {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .main-content-area {
    padding: 0px;
  }

  .page-title {
    border-bottom: 1px solid #000;
    color: #000;
  }
}

/* === News Page Responsive Styles === */

.news-list {
  margin-top: 20px;
}

.news-list .card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

.news-list .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-list .card-img-top {
  transition: transform 0.3s ease;
}

.news-list .card:hover .card-img-top {
  transform: scale(1.05);
}

.news-list .card-body {
  padding: 20px;
}

.news-list .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-list .btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.news-list .btn-primary:hover {
  background-color: #6b1906;
  border-color: #6b1906;
  transform: translateY(-1px);
}

/* News page responsive adjustments */
@media (max-width: 576px) {
  .news-list .row {
    margin: 0 -5px;
  }

  .news-list .col-md-6,
  .news-list .col-lg-4 {
    padding: 0 5px;
    margin-bottom: 15px;
  }

  .news-list .card-body {
    padding: 15px;
  }

  .news-list .card-title {
    font-size: 1rem;
  }

  .p-4 {
    padding: 15px !important;
  }

  .text-2xl {
    font-size: 1.3rem !important;
  }
}

@media (min-width: 577px) and (max-width: 768px) {
  .news-list .row {
    margin: 0 -10px;
  }

  .news-list .col-md-6,
  .news-list .col-lg-4 {
    padding: 0 10px;
    margin-bottom: 20px;
  }
}

@media (min-width: 769px) {
  .news-list .card-title {
    font-size: 1.2rem;
  }

  .text-2xl {
    font-size: 1.8rem !important;
  }
}

/* === General Content Improvements === */

/* Improve text readability */
.main-content-area p {
  line-height: 1.6;
  color: #333;
}

.main-content-area h1,
.main-content-area h2,
.main-content-area h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* Alert improvements */
.alert {
  border-radius: 8px;
  border: none;
  padding: 15px 20px;
}

.alert-info {
  background-color: #e7f3ff;
  color: #0c5460;
}

/* ===== BREADCRUMB NAVIGATION ===== */
.breadcrumb {
  background-color: transparent;
  padding: 0;
  margin-bottom: 1rem;
  font-size: 14px;
}

.breadcrumb-item {
  color: #6c757d;
}

.breadcrumb-item+.breadcrumb-item::before {
  content: ">";
  color: #6c757d;
  padding: 0 0.5rem;
}

.breadcrumb-item a {
  color: #8B4513;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  color: #5d2e0a;
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: #495057;
  font-weight: 500;
}

@media (max-width: 576px) {
  .breadcrumb {
    font-size: 12px;
  }

  .breadcrumb-item+.breadcrumb-item::before {
    padding: 0 0.25rem;
  }
}

/* ===== ACCESSIBILITY & PERFORMANCE ENHANCEMENTS ===== */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus styles for better accessibility */
*:focus {
  outline: 2px solid #8B4513;
  outline-offset: 2px;
}



/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #8B4513;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Sidebar toggle animation improvements */
.sidebar {
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.content {
  will-change: margin-left, width;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Hardware acceleration for better performance */
.header-hamburger-btn,
.sidebar-hamburger {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Improved button states */
.header-hamburger-btn:active,
.sidebar-hamburger:active {
  transform: translateZ(0) scale(0.95);
  -webkit-transform: translateZ(0) scale(0.95);
}

/* Better touch targets for mobile */
@media (max-width: 768px) {

  .header-hamburger-btn,
  .sidebar-hamburger,
  .nav-link {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-link {
    padding: 12px 20px;
    justify-content: flex-start;
  }
}

/* Improved contrast for better readability */
.nav-link {
  color: #333;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
  background-color: rgba(139, 69, 19, 0.1);
  color: #8B4513;
}

/* Better visual feedback for interactive elements */
.section-card,
.news-list .card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-card:hover,
.news-list .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Improved form elements */
input,
textarea,
select,
button {
  font-size: 16px;
  /* Prevents zoom on iOS */
}

/* Better error states */
.error {
  color: #d32f2f;
  font-size: 14px;
  margin-top: 4px;
}

.form-field.error input,
.form-field.error textarea,
.form-field.error select {
  border-color: #d32f2f;
  box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.2);
}

/* Success states */
.success {
  color: #2e7d32;
  font-size: 14px;
  margin-top: 4px;
}

.form-field.success input,
.form-field.success textarea,
.form-field.success select {
  border-color: #2e7d32;
  box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.2);
}

/* Animation for sidebar toggle */
@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .section-card:hover,
  .news-list .card:hover {
    transform: none;
  }
}

/* =================================================== */
/* === Modern News Section Design === */
/* =================================================== */

/* News Section Styling */
.news-section {
  padding: 40px 0;
  min-height: 100vh;
}

.news-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.news-section .main-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0;
  background: linear-gradient(135deg, #7f1d07 0%, #b84909 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* News Tab Navigation */
.news-tabs {
  display: flex;
  gap: 8px;
  background: white;
  padding: 6px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-tabs .tab-btn {
  padding: 12px 24px;
  border: none;
  background: transparent;
  color: #64748b;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.news-tabs .tab-btn:hover {
  background: #f1f5f9;
  color: #334155;
}

.news-tabs .tab-btn.active {
  background: linear-gradient(135deg, #7f1d07 0%, #b84909 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(127, 29, 7, 0.3);
}

/* Section Subtitles */
.section-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-subtitle i {
  font-size: 1.2rem;
}



/* News Link */
.news-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.news-link:hover {
  text-decoration: none;
  color: inherit;
}

/* News Image */
.news-image {
  position: relative;
  height: 280px;
  overflow: hidden;
}



.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.1);
}

/* News Badge */
.news-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

/* News Overlay */
.news-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(108, 91, 88, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.news-card:hover .news-overlay {
  opacity: 1;
}

.overlay-content {
  text-align: center;
  color: white;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.news-card:hover .overlay-content {
  transform: translateY(0);
}

.overlay-content i {
  font-size: 2.5rem;
  margin-bottom: 8px;
  display: block;
}

.overlay-content span {
  font-size: 1rem;
  font-weight: 600;
}

/* News Content */
.news-content {
  padding: 24px;
}



/* News Meta */
.news-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.news-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 500;
}

.news-meta i {
  color: #94a3b8;
  font-size: 0.8rem;
}

.news-date {
  color: #7f1d07 !important;
}

.news-category {
  background: #f1f5f9;
  padding: 4px 8px;
  border-radius: 12px;
  color: #334155 !important;
}

/* News Title */
.news-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 12px 0;
  line-height: 1.3;
}



/* News Excerpt */
.news-excerpt {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}



/* Recent News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

/* News Card */
.news-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.news-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.news-card .news-image {
  height: 220px;
}

/* News Footer */
.news-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.read-more-btn {
  color: #7f1d07;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.read-more-btn:hover {
  color: #b84909;
}

.read-more-btn i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.news-card:hover .read-more-btn i {
  transform: translateX(4px);
}



/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}

.empty-state-content {
  max-width: 400px;
  margin: 0 auto;
}

.empty-state-content i {
  font-size: 4rem;
  color: #cbd5e1;
  margin-bottom: 24px;
  display: block;
}

.empty-state-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 12px;
}

.empty-state-content p {
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* Responsive Design for News Section */

/* Mobile Styles */
@media (max-width: 576px) {
  .news-section {
    padding: 20px 0;
  }

  .news-section .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .news-section .main-title {
    font-size: 1.8rem;
  }

  .news-tabs {
    width: 100%;
    justify-content: center;
  }

  .news-tabs .tab-btn {
    flex: 1;
    text-align: center;
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .news-card .news-image {
    height: 200px;
  }

  .news-content {
    padding: 20px;
  }

  .news-title {
    font-size: 1.1rem;
  }
}

/* Tablet Styles */
@media (min-width: 577px) and (max-width: 768px) {
  .news-section {
    padding: 30px 0;
  }

  .news-section .main-title {
    font-size: 2.2rem;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .news-card .news-image {
    height: 200px;
  }
}

/* Desktop Styles */
@media (min-width: 769px) {
  .news-section .section-header {
    margin-bottom: 50px;
  }

  .news-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

/* Large Desktop Styles */
@media (min-width: 1200px) {
  .news-section .container {
    max-width: 1400px;
    padding: 0 40px;
  }

  .news-grid {
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
  }

  .news-content {
    padding: 28px;
  }

  .news-title {
    font-size: 1.4rem;
  }
}

/* Animation Enhancements for News */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-card {
  animation: fadeInUp 0.6s ease forwards;
}

.news-card:nth-child(1) {
  animation-delay: 0.1s;
}

.news-card:nth-child(2) {
  animation-delay: 0.2s;
}

.news-card:nth-child(3) {
  animation-delay: 0.3s;
}

.news-card:nth-child(4) {
  animation-delay: 0.4s;
}



/* Focus States for Accessibility */
.news-tabs .tab-btn:focus {
  outline: 2px solid #7f1d07;
  outline-offset: 2px;
}

.news-link:focus {
  outline: 2px solid #7f1d07;
  outline-offset: 4px;
  border-radius: 20px;
}

.newsletter-form .form-control:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.newsletter-form .btn:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

/* Print Styles for News */
@media print {

  .news-tabs,
  .news-overlay {
    display: none !important;
  }

  .news-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #e2e8f0;
  }

  .news-image {
    height: auto;
    max-height: 200px;
  }
}

/* =================================================== */
/* === Modern Tryout Section Design === */
/* =================================================== */

/* Tryout Section Styling */
.tryout-section {
  padding: 40px 0;
  min-height: 100vh;
}

.tryout-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: justify;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.tryout-section .main-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a202c;
  text-align: left; 
  margin: 0;
  background: linear-gradient(135deg, #7f1d07 0%, #b84909 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}



/* Tryouts Grid */
.tryouts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Tryout Card */
.tryout-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid #e2e8f0;
}

.tryout-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.tryout-card .card-link {
  text-decoration: none;
  color: inherit;
  /* display: block; */
}

/* Card Image */
.tryout-card .card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #7f1d07 0%, #b84909 100%);
}

.tryout-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tryout-card:hover .card-image img {
  transform: scale(1.1);
}

/* Card Badge */
.tryout-card .card-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  z-index: 2;
}

.tryout-card .n5-badge {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.tryout-card .n4-badge {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.tryout-card .n3-badge {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* Card Overlay */
.tryout-card .card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(108, 91, 88, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1;
}

.tryout-card:hover .card-overlay {
  opacity: 1;
}

.tryout-card .overlay-content {
  text-align: center;
  color: white;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.tryout-card:hover .overlay-content {
  transform: translateY(0);
}

.tryout-card .overlay-content i {
  font-size: 3rem;
  margin-bottom: 10px;
  display: block;
}

.tryout-card .overlay-content span {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Card Content */
.tryout-card .card-content {
  padding: 25px;
}

.tryout-card .card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.tryout-card .card-description {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 20px 0;
}

/* Card Stats */
.tryout-card .card-stats {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tryout-card .stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 500;
}

.tryout-card .stat-item i {
  color: #1e40af;
  font-size: 0.9rem;
}



/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tryout-card {
  animation: fadeInUp 0.6s ease forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
  .tryout-section {
    padding: 20px 0;
  }

  .tryout-section .main-title {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .tryout-section .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .tryout-tabs {
    width: 100%;
    justify-content: center;
    overflow-x: auto;
    padding: 4px;
  }

  .tryout-tabs .tab-btn {
    padding: 10px 16px;
    font-size: 0.9rem;
    flex-shrink: 0;
  }

  .tryouts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tryout-card .card-image {
    height: 180px;
  }

  .tryout-card .card-content {
    padding: 20px;
  }

  .tryout-card .card-title {
    font-size: 1.2rem;
  }

  .tryout-card .card-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .tryout-section .main-title {
    font-size: 1.8rem;
  }

  .tryout-card .card-content {
    padding: 15px;
  }

  .tryout-card .card-stats {
    flex-direction: column;
    gap: 8px;
  }
}

/* Tablet and Desktop Styles - Row layout */
@media (min-width: 769px) {
  .tryouts-grid {
    max-width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

/* Large screens - ensure proper spacing */
@media (min-width: 1200px) {
  .tryouts-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
}

/* Large Desktop */
@media (min-width: 1400px) {
  .tryout-section {
    padding: 40px 0;
  }

  .tryouts-grid {
    gap: 35px;
  }
}

/* Focus States for Accessibility */
/* .tryout-card:focus-within {
  outline: 2px solid #1e40af;
  outline-offset: 2px;
} */

/* Print Styles for Tryout */
@media print {
  .tryout-section {
    background: white !important;
    color: black !important;
  }

  .tryout-card {
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }

  .tryout-tabs {
    display: none !important;
  }
}

/* =================================================== */
/* === Header Avatar Styles === */
/* =================================================== */

.header__avatar {
  display: inline-block;
  transition: transform 0.3s ease;
  margin-right: 5px;
}

.header__avatar:hover {
  transform: scale(1.05);
}

.header__avatar img {
  border: 2px solid #e1e5e9;
  transition: border-color 0.3s ease;
  margin-right: 5px;
}

.header__avatar:hover img {
  border-color: #851B06;
}

.user-info {
  gap: 0.75rem;
}

.user-info span {
  font-weight: 500;
  color: #333;
  white-space: nowrap;
}

/* Responsive header styles */
@media (max-width: 768px) {
  .user-info {
    gap: 0.5rem;
  }
  
  .user-info span {
    font-size: 0.9rem;
  }
  
  .header__avatar img {
    width: 35px !important;
    height: 35px !important;
  }
}

@media (max-width: 480px) {
  .user-info span {
    display: none;
  }
  
  .header__avatar img {
    width: 32px !important;
    height: 32px !important;
  }
}

/* =================================================== */
/* === Sidebar User Actions Styles === */
/* =================================================== */

/* Sidebar layout to push user actions to bottom */
.sidebar {
  display: flex;
  flex-direction: column;
}

.sidebar-nav {
  flex: 1;
}

.sidebar-user-actions {
  margin-top: auto;
  padding-bottom: 1rem;
}

/* Navigation divider */
.nav-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  margin: 0.75rem 1rem;
  border: none;
}

/* Logout link styling */
.logout-link {
  color: var(--primary-color) !important;
  transition: all 0.3s ease;
}

.logout-link:hover {
  background-color: rgba(255, 107, 107, 0.1) !important;
  color: var(--primary-color) !important;
}

.logout-link i {
  color: var(--primary-color);
}

.logout-link:hover i {
  color: var(--primary-color);
}

/* Responsive adjustments for sidebar user actions */
@media (max-width: 768px) {
  .nav-divider {
    margin: 0.5rem 0.75rem;
  }
  
  .sidebar-user-actions {
    padding-bottom: 0.5rem;
  }
}

/* Collapsed sidebar adjustments */
html.sidebar-collapsed .nav-divider {
  margin: 0.75rem 0.5rem;
}

html.sidebar-collapsed .logout-link:hover,
html.sidebar-collapsed .nav-link[href*="member/user"]:hover {
  background-color: rgba(133, 27, 6, 0.1);
}

html.sidebar-collapsed .sidebar-user-actions {
  padding-bottom: 1rem;
}


/* profile */
    #main.quest .profile__head__name {
      font-size: 25px;
    }

    #main.quest .profile__head__loc {
      margin-top: 10px;
      font-size: 16px;
    }

    #main.quest .profile__head__motiv {
      margin-top: 20px;
    }

    .profile__head__actions {
      margin-top: 1.5rem;
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
      justify-content: center;
      align-content: center;
    }

    .btn-edit-profile,
    .btn-edit-password {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      color: white;
      text-decoration: none;
      border-radius: 25px;
      font-weight: 600;
      font-size: 0.95rem;
      transition: all 0.3s ease;
      border: none;
      cursor: pointer;
      width: 100%;
      height: 5vh;
      justify-content: center;
    }

    .btn-edit-profile:active,
    .btn-edit-password:active {
      transform: translateY(0);
    }


    /* History Section */
    .history {
      background: white;
      border-radius: 15px;
      padding: 2rem;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
      margin-top: 2rem;
      margin-bottom: 3rem;
    }

    .history .tag {
      color: #2c3e50;
      font-weight: 700;
      margin-bottom: 1.5rem;
      display: block;
      padding-bottom: 0.5rem;
      border-bottom: 2px solid #ecf0f1;
    }

    .history-data {
      border-radius: 10px;
      height: 600px;
      overflow-y: scroll;
    }

    #profile.table {
      width: 100%;
      border-collapse: collapse;
    }

    #profile.table th {
      background: linear-gradient(135deg, #7f1d07  0%, #b84909 100%);
      color: white;
      padding: 1rem;
      text-align: left;
      font-weight: 600;
      border: none;
    }

    #profile.table td {
      padding: 1rem;
      border-bottom: 1px solid #ecf0f1;
      color: #2c3e50;
    }

    #profile.table tr:hover {
      background: #f8f9fa;
    }

    .fa-eye {
      position: relative;
    }

    /* Responsive Design */
    @media (max-width: 768px) {
      .profile__head__actions {
        flex-direction: column;
        gap: 0.75rem;
      }

      .btn-edit-profile,
      .btn-edit-password {
        width: 100%;
        justify-content: center;
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
      }

      #profile.table th,
      #profile.table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
      }

      .history {
      padding: 1rem;
    }
    }

.progress {
  overflow: inherit;
}

#main .profile {
  width: 100%;
}

.progress .progress-bar span.progress-btn2 {
  width: 60px;
  height: 30px;
}

/* edit profile */
#main .nav-tabs {
  width: 100%;
  margin-bottom: 3vh;
}

.tab-content--custom {
  width: 100%;
}

.tab-pane .link-btn {
  border-radius: 21px ;
  justify-content: center;
}

.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 45px;
    margin-bottom: 35px;
    width: 100%;
}

.button-container .link-btn {
    margin: 0;
}

#gantipass,
#simpan {
  background: #7f1d07;
  color: #EFEFEF;
  border: 1px solid #7f1d07;
  border-radius: 100px;
}

#gantipass:hover,
#simpan:hover{
  background: #6b1906;
  color: #FFFFFF;
}


#kembali {
  background: #FFFFFF;
  color: #7f1d07;
  border: 1px solid #7f1d07;
  border-radius: 100px;
}

#kembali:hover {
  background: #7f1d07;
  color: #EFEFEF;
}

.mvWebapps img {width: 100%;}
.mvWebapps .sp {
  display: none;
}

@media screen and (max-width: 767px) {
  .mvWebapps .sp {
  display: block;
}
.mvWebapps .pc {
  display: none;
}
}