.programs-scroll-wrapper {
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.programs-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.programs-scroll-track {
    display: flex;
    gap: 20px;
    padding: 0 20px;
    min-width: max-content;
}

.programs-scroll-track .program-card {
    flex: 0 0 280px;
    background-color: #FAF8F5;
    border-radius: 0.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    direction: rtl;
    text-align: right;
    margin: 0;
    box-sizing: border-box;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.program-card .card-img-top {
    width: 100%;
    display: block;
    object-fit: cover;
    object-position: center bottom;
    transition: object-position 1.8s ease, transform 0.8s ease;
    padding: 12px;
    border-radius: 16px;
    box-sizing: border-box;
}

.program-card .card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    min-height: 180px;
}

.program-card .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgb(7, 28, 74);
    margin-bottom: 0.5rem;
}

.program-card .card-text {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 1rem;
    text-align: right;
    flex: 1;
}

.program-card .btn {
    background-color: rgb(7, 28, 74);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    padding: 0.4rem 2.2rem;
    font-size: 0.9rem;
    align-self: flex-start;
    margin-inline-start: 0;
    margin-inline-end: 0;
}

.program-card .btn:hover {
    background-color: #f4b748;
    color: rgb(7, 28, 74);
}

.section-title {
    color: rgb(7, 28, 74);
    font-weight: 400;
    text-align: right;
    border-bottom: 2px solid #916627;
    display: inline-block;
    padding-bottom: 9px;
    margin-bottom: 2rem;
    margin-inline-start: 0;
    position: relative;
    right: 2rem;
    font-size: 32px !important;
}



/*.carousel-controls {*/
/*    display: flex;*/
/*    gap: 10px;*/
/*    margin: 20px;*/
/*    justify-content: flex-start;*/
/*}*/

/*.ctl-btn {*/
/*    width: 40px;*/
/*    height: 40px;*/
/*    border-radius: 50%;*/
/*    border: 2px solid #007bff;*/
/*    background: transparent;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    cursor: pointer;*/
/*    transition: all 0.3s ease;*/
/*}*/

/*.ctl-btn.filled {*/
/*    background: #007bff;*/
/*    color: white;*/
/*}*/

/*.ctl-btn.outline {*/
/*    background: transparent;*/
/*    color: #007bff;*/
/*}*/

/*.ctl-btn:hover {*/
/*    transform: scale(1.1);*/
/*}*/

.carousel-controls {
    display: flex;

    gap: 0.5rem;
    margin-top: 1rem;

    align-items: flex-start;
}

/* Base control button */
.ctl-btn {
  width: 46px;
  height: 46px;
  border-radius: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  outline: none;

  /* Default (not hovered): dark border + dark arrow */
  background-color: transparent;
  border: 2px solid rgb(7, 28, 74);
  color: rgb(7, 28, 74);     /* arrow color (via inheritance) */
}

/* Ensure arrow inherits and doesn't intercept events */
.ctl-btn span {
  color: inherit;
  pointer-events: none;
  vertical-align: middle;
  display: inline-block;
  padding-bottom: 4px;
}

/* Variant presets (both share same hover behavior) */
.ctl-btn.filled  { background-color: #efefef; } /* subtle filled bg */
.ctl-btn.outline { background-color: transparent; }

/* Hover: dark background + WHITE border + WHITE arrow */
.ctl-btn:hover {
  background-color: rgb(7, 28, 74);
  color: #fff;          /* arrow becomes white */
  border-color: #fff;   /* border becomes white */
}

/* Keyboard focus */
.ctl-btn:focus-visible { box-shadow: 0 0 0 3px rgba(7,28,74,.25); }
