
/* ---------- GLOBAL ---------- */

body {
  background-color: #f4f6fb;
  font-size: 20px;
}

.container {
  padding-top: 20px;
  padding-bottom: 40px;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* Row that holds News + Events */
.news-events-row {
  margin-top: 24px;
}

/* ---------- MOVED ORIGINAL BITS ---------- */

.column {
  display: inline;
}

.hs.scrollbar-light-blue::-webkit-scrollbar {
  height: 3px;
}

.n_e_img {
  width: 100%;
  height: inherit;
  background-size: cover;
  background-position: center;
  float: right;
}

.carousel-item.res a {
  display: block;
  width: 100%;
}

.carousel-item.res .img-fluid {
  width: 100%;
}

.swipe {
  overflow: auto;
  white-space: nowrap;
}

/* ticker */
.ticker-headline {
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  direction: rtl;
  text-align: right;
  color: #c28b00;
}

/* vertical carousel */
.vertical .carousel-item {
  width: inherit;
  padding-right: 50px;
}

.vertical .active.carousel-item-right,
.vertical .carousel-item-next {
  transform: translate3d(0, 100%, 0);
  width: 100%;
}

.vertical .active.carousel-item-left,
.vertical .carousel-item-prev {
  transform: translate3d(0, -100%, 0);
  width: 100%;
}

.vertical .carousel-control-prev,
.vertical .carousel-control-next {
  position: absolute;
  display: block;
  right: 0;
  width: 50px;
}

.vertical .carousel-control-prev {
  top: 0;
  bottom: 50%;
}

.vertical .carousel-control-next {
  top: 50%;
  bottom: 0;
}

.vertical .carousel-control-prev-icon,
.vertical .carousel-control-next-icon {
  width: 100%;
  height: 15px;
}

/* ============================================
   ENGINEERING HERO SECTION
   ============================================ */

.eng-hero {
  background: linear-gradient(135deg, #0b3e67 0%, #0f4a7f 40%, #102a43 100%);
  padding: 38px 0 48px;
  margin-bottom: 12px;
  color: #ffffff;
  border-bottom: 4px solid #f59e0b; /* engineering orange */
}

.eng-hero-title {
  font-size: 4rem; /* bigger */
  font-weight: 900;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.eng-hero-subtitle {
  font-size: 1.5rem;
  line-height: 1.9;
  color: #e5e7eb;
  max-width: 620px;
}

/* Button strip */
.eng-hero-actions {
  text-align: right;
  margin-top: 1rem;
}

.eng-hero-actions .btn {
  margin-left: 0.4rem;
  margin-top: 0.5rem;
  padding: 0.5rem 1.2rem;
  font-size: 1.5rem;
  border-radius: 6px;
  font-weight: 600;
}

/* Primary engineering button (orange) */
.eng-btn-primary {
  background-color: #f59e0b;
  color: #1f2937;
  border: 1px solid #f59e0b;
}

.eng-btn-primary:hover {
  background-color: #d97706;
  border-color: #d97706;
  color: #ffffff;
}

/* Outline engineering button */
.eng-btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #f9fafb;
}

.eng-btn-outline:hover {
  background-color: #ffffff;
  color: #1f2937;
}

/* RESPONSIVE */
@media (max-width: 767.98px) {
  .eng-hero {
    padding: 26px 0 34px;
  }

  .eng-hero-title {
    font-size: 1.7rem;
  }

  .eng-hero-subtitle {
    font-size: 0.95rem;
  }

  .eng-hero-actions {
    margin-top: 1rem;
    text-align: right;
  }

  .eng-hero-actions .btn {
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
  }
}

/* ============================================
   MAIN IMAGE CAROUSEL (#carousel)
   ============================================ */

#carousel {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  background: #000;
}

/* Make the whole carousel row a bit tighter vertically */
#carousel .carousel-inner {
  max-height: 420px;
}

/* Images: always full-width, nicely cropped */
#carousel .carousel-inner img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;       /* keeps aspect ratio, crops edges */
  object-position: center;
}

/* Indicators: small pills, engineering colors */
#carousel .carousel-indicators {
  bottom: 10px;
}

#carousel .carousel-indicators li {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  margin: 0 3px;
}

#carousel .carousel-indicators .active {
  background-color: #f59e0b;
}

/* Caption wrapper */
#carousel .carousel-caption {
  right: 0;
  left: 0;
  bottom: 26px;              /* move a bit up from bottom */
  padding: 0 1.25rem;
  display: flex;
  justify-content: flex-end; /* push content to the right side */
  pointer-events: none;      /* so links behind remain clickable if needed */
}

/* Caption box */
#carousel .carousel-caption hgroup {
  direction: rtl;
  text-align: right;
  pointer-events: auto;      /* but caption itself is clickable if you add links */

  max-width: 420px;          /* tighter box, not full width */
  margin: 0;
  margin-left: 0;
  margin-right: 0.5rem;      /* small gap from right edge */

  padding: 0.7rem 1rem;
  font-size: 0.98rem;
  line-height: 1.9;
  color: #f9fafb;

  background: rgba(0, 0, 0, 0.6); /* simpler, more solid background */
  border-radius: 10px;

  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

#carousel .carousel-caption {
  left: auto !important;
  right: 0 !important;
  width: auto !important;
  max-width: 100%;
}

/* If old inline styles exist, neutralize them */
#carousel .carousel-caption hgroup {
  margin-right: 1rem !important;   /* push away from edge */
  margin-left: 0 !important;
}

/* Mobile tweaks */
@media (max-width: 767.98px) {
  #carousel .carousel-caption {
    bottom: 16px;
    padding: 0 0.75rem;
  }

  #carousel .carousel-caption hgroup {
    max-width: 100%;
    margin-right: 0;
    font-size: 0.9rem;
    padding: 0.55rem 0.8rem;
  }
}

/* ======================================
   SHARED CARD FRAME (News + Events)
   ====================================== */

.n_e,
.e_e {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 15px !important; /* keep Bootstrap gutters */
}

.n_e .news-card,
.e_e .mobile-wrapper {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
  border: 1px solid #dde3f0;
  padding: 0.95rem 1.15rem;
  box-sizing: border-box;
}

/* ======================================
   SHARED SECTION HEADERS (news + calendar)
   ====================================== */

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.5rem;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid #e1e7f5;
}

.news-title {
  font-weight: 700;
  color: #07416a;
  letter-spacing: 0.1px;
  display: inline-flex;
  align-items: center;
  font-size: 1.05rem;
}

.news-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 16px;
  border-radius: 999px;
  background: #c28b00;
  margin-left: 8px;
}

/* "View all" header link (news + calendar) */
.news-header-link {
  font-size: 0.9rem;
  color: #07416a;
  text-decoration: none;
}

.news-header-link:hover {
  text-decoration: underline;
}

/* Old calendar header background → neutral now */
.today-box {
  background: transparent;
  border-bottom: none;
  padding: 0;
}

/* ======================================
   NEWS COLUMN
   ====================================== */

.n_e .news-card {
  padding: 0.95rem 1.15rem;
}

/* List container */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

/* Single news item */
.news-item {
  display: flex;
  flex-direction: row-reverse;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

/* Thumbnail */
.news-item-thumb {
  flex: 0 0 110px;
  max-width: 110px;
  background-size: cover;
  background-position: center;
}

/* Body */
.news-item-body {
  flex: 1;
  padding: 0.7rem 0.8rem 0.65rem;
}

/* Meta */
.news-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
  font-size: 0.82rem;
}

.news-item-date {
  color: #6b7280;
}

.news-item-cat {
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background-color: #eef3fb;
  color: #07416a;
}

/* Title */
.news-item-title {
  font-size: 1.05rem;
  margin: 0.08rem 0 0.3rem;
}

.news-item-title a {
  color: #111827;
  text-decoration: none;
}

.news-item-title a:hover {
  color: #07416a;
}

/* Excerpt */
.news-item-excerpt {
  font-size: 0.95rem;
  color: #374151;
  margin: 0 0 0.35rem;
}

.news-item-more {
  font-size: 0.82rem;
  margin-right: 0.25rem;
  color: #07416a;
}

/* Tags */
.news-item-tags a {
  display: inline-block;
  margin: 0 0.25rem 0.25rem 0;
  padding: 0.1rem 0.5rem;
  background-color: #eef3fb;
  color: #07416a;
  border-radius: 999px;
  font-size: 0.8rem;
}

/* Hover */
.news-item:hover {
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
  border-color: #c1cee7;
  transform: translateY(-1px);
}

/* ======================================
   EVENTS COLUMN
   ====================================== */

.e_e .mobile-wrapper {
  padding: 0.95rem 1.15rem;
  color: #111827;
  overflow: hidden;
}

/* Links inside events */
.e_e .mobile-wrapper a {
  color: #111827;
}

.e_e .mobile-wrapper a:hover {
  color: #07416a;
}

/* Events scroll area */
.upcoming-events {
  padding: 0.45rem 0 0;
  overflow-y: visible;
  overflow-x: hidden;
  max-height: none;
}

.events-wrapper {
  padding: 0;
}

/* Event title "past events" */
.events-header-muted {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

/* Event card */
.event {
  border-radius: 9px;
  padding: 0.7rem 0.85rem 0.65rem;
  margin-bottom: 0.7rem;
  background: #ffffff;
  position: relative;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
  border-right: none !important;
}

/* Remove icon completely */
.event .fa {
  display: none !important;
}

/* Date */
.event__point {
  font-size: 0.9rem;
  font-weight: 700;
  color: #111827;
}

/* Description */
.event__description {
  font-size: 0.9rem;
  margin-top: 0.18rem;
  color: #374151;
}

/* Status label DOT – always on visual RIGHT */
.event::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px !important;
  left: auto !important;
  transform: translateY(-50%);

  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* Dot colors */
.event.upcoming::before { background-color: #0070f3; }
.event.active::before   { background-color: #1cb05f; }
.event.done::before     { background-color: #bdbdbd; }

/* ======================================
   RESPONSIVE TWEAKS
   ====================================== */

@media (max-width: 991.98px) {
  .news-item {
    flex-direction: column-reverse;
  }

  .news-item-thumb {
    width: 100%;
    max-width: none;
    height: 160px;
  }
}

@media (max-width: 767.98px) {
  .n_e .news-card,
  .e_e .mobile-wrapper {
    padding: 0.8rem 0.95rem;
  }

  .event__point,
  .event__description {
    padding-left: 1.3rem;
  }

  .news-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

/* =====================================
   Scrollbar cleanup (no fat blue line)
   ===================================== */

.scrollbar-light-blue::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}

.scrollbar-light-blue::-webkit-scrollbar-track {
  background: transparent;
}

.scrollbar-light-blue::-webkit-scrollbar-thumb {
  background-color: #c4cad8;
  border-radius: 3px;
}

/* ======================================
   ABOUT – Icon + dropdown panel
   ====================================== */

.eng-about-section {
  margin-top: 24px;
  margin-bottom: 36px;
  direction: rtl;
}

/* clickable header row */
.eng-about-toggle {
  background: #ffffff;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  padding: 8px 14px 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

/* circle icon on the RIGHT (RTL) */
.eng-about-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #fef3c7 0%, #fbbf24 35%, #f59e0b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  flex-shrink: 0;
  margin-left: 10px; /* space between icon and text */
}

.eng-about-icon i {
  font-size: 18px;
}

/* title + subtitle */
.eng-about-labels {
  flex: 1;
  text-align: right;
}

.eng-about-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111827;
  margin: 0 0 2px;
}

.eng-about-subtitle {
  font-size: 0.86rem;
  color: #6b7280;
  margin: 0;
}

/* chevron on the left side */
.eng-about-caret {
  margin-right: 10px;
  color: #6b7280;
  flex-shrink: 0;
}

.eng-about-caret i {
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

/* open state */
.eng-about-toggle.is-open {
  border-color: #c28b00;
  background-color: #fffbeb;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.eng-about-toggle.is-open .eng-about-caret i {
  transform: rotate(180deg);
}

/* dropdown panel */
.eng-about-panel {
  display: none; /* hidden by default; JS will slideToggle */
  margin-top: 10px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 18px 20px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  text-align: justify;
  direction: rtl;
}

.eng-about-panel p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.9;
  color: #374151;
}

/* responsive */
@media (max-width: 767.98px) {
  .eng-about-toggle {
    padding: 7px 12px 7px 10px;
  }

  .eng-about-icon {
    width: 36px;
    height: 36px;
  }

  .eng-about-title {
    font-size: 1rem;
  }

  .eng-about-subtitle {
    font-size: 0.82rem;
  }

  .eng-about-panel {
    padding: 14px 14px;
    font-size: 0.92rem;
  }
}

/* ========================================
   DARK THEME - MISURATA UNIVERSITY FOOTER
======================================== */
.mu-footer-dark {
    background: #081a2b;
    color: #e6ecf5;
    padding: 28px 0 12px;
    direction: rtl;
    font-size: 1rem;
}

.mu-footer-dark .footer-col {
    margin-bottom: 18px;
}

/* Section titles */
.mu-footer-dark .footer-title {
    font-size: 1.12rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

/* Logo */
.footer-logo {
    width: 80px;
    margin-bottom: 8px;
}

/* Visitors count */
.visitor-count {
    color: #d7dde8;
    font-size: 1rem;
}

/* List items */
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 6px;
    color: #dce3ef;
    font-size: 1rem;
}

.footer-list li i {
    margin-left: 6px;
    color: #f59e0b;
    width: 16px;
    text-align: center;
}

/* Link styling */
.footer-list a {
    color: #dce3ef;
    text-decoration: none;
}
.footer-list a:hover {
    color: #f59e0b;
}

/* Social icons */
.footer-social a {
    display: inline-block;
    margin-left: 6px;
    background: rgba(255,255,255,0.12);
    padding: 6px 8px;
    border-radius: 6px;
    color: #ffffff;
    transition: 0.2s ease;
}
.footer-social a:hover {
    background: #f59e0b;
    color: #081a2b;
}

/* Bottom small strip */
.footer-bottom {
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid #1d3348;
    font-size: 0.92rem;
    color: #cdd6e3;
}

/* Make logo block clearer, bigger */
.footer-logo-block {
    margin-bottom: 25px;
}

/* BIGGER LOGO */
.footer-logo-large {
    width: 150px;           /* was 110px */
    max-width: 100%;
    margin-bottom: 12px;
}

/* BIGGER NUMBER OF VISITORS */
.footer-visits-large {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4da3ff;         /* soft frosty blue */
    margin-bottom: 16px;
}

.footer-visits-large span {
    color: #ffffff;
}

/* Keep social icons nicely spaced */
.footer-social {
    margin-top: 12px;
}

/* Force logo + visits to stack cleanly */
.footer-logo-container {
    text-align: center;
    display: flex;
    flex-direction: column;   /* forces vertical stacking */
    align-items: center;
    justify-content: flex-start;
    gap: 10px;                /* spacing between elements */
}

/* Bigger logo */
.footer-logo-large {
    width: 150px;
    max-width: 100%;
    display: block;
}

/* Bigger visits text directly under logo */
.footer-visits-large {
    font-size: 1.35rem;
    font-weight: 700;
    color: #4da3ff;
    margin-top: 4px;          /* small spacing under logo */
}

.footer-visits-large span {
    color: #ffffff;
}

/* ============================================
   SPECIAL PROGRAMS SECTION — CENTERED CARDS
   ============================================ */

.section-title {
    font-weight: 800;
    color: #0b3e67;
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}

/* ---- Layout (FLEX instead of GRID) ---- */
.special-programs-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;   /* CENTER the cards */
    gap: 22px;                 /* space between cards */
    direction: rtl;
    padding: 10px 0;
}

/* ---- Program Card ---- */
.program-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;

    width: 100%;
    max-width: 320px;      /* CONTROLS card width */
    text-align: right;
}

/* Hover effect */
.program-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.15);
}

/* ---- Image ---- */
.program-card-img {
    display: block;
    width: 100%;
    height: 190px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid #dde3f0;
    position: relative;
}

.program-card-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.33), rgba(0,0,0,0));
}

/* ---- Body ---- */
.program-card-body {
    padding: 14px 16px;
}

/* ---- Title ---- */
.program-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
    transition: color 0.2s ease;
    line-height: 1.4;
}

.program-card-title:hover {
    color: #0b3e67;
}

/* ---- "Load More" button ---- */
.btn-load-more {
    background: #4da3ff;
    color: #ffffff;
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    transition: background 0.2s ease, transform 0.2s ease;
    display: inline-block;
    margin-top: 15px;
}

.btn-load-more:hover {
    background: #1f71c1;
    transform: translateY(-2px);
}

/* Hidden cards loaded by JS */
.hidden-card {
    display: none;
}

/* ============================================
   Templates Section – carousel + rich cards
   ============================================ */

.templates-section {
    margin-top: 20px;
    margin-bottom: 60px; /* extra for indicators */
}

/* Title consistent with other sections */
.templates-section .section-title {
    font-weight: 800;
    color: #0b3e67;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.templates-section .section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    margin: 10px auto 0;
    border-radius: 10px;
}

/* Carousel wrapper */
.templates-carousel .carousel-inner {
    padding: 10px 0 5px;
    overflow: visible;
}

/* Single template card – same style */
.template-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    border: 1px solid #dde3f0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: auto;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Fix overlapping: give columns space */
.templates-carousel .item .row > [class*="col-"] {
    margin-bottom: 20px;
}

/* Hover */
.template-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
    border-color: #c1cee7;
}

/* Top stripe: icon + thumb */
.template-card-top {
    display: flex;
    flex-direction: row-reverse;
    align-items: stretch;
    background: #f3f4f6;
}

/* Icon circle area */
.template-icon {
    width: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0b3e67;
    font-size: 1.9rem;
}

/* Colored strip / thumbnail */
.template-thumb {
    flex: 1;
    height: 72px;
    background-size: cover;
    background-position: center;
}

/* Body */
.template-body {
    padding: 12px 14px 14px;
    text-align: right;
}

/* Title */
.template-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px;
    line-height: 1.4;
}

/* Actions row (buttons) */
.template-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Base button pill */
.template-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 0.85rem;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

/* Link button */
.template-btn-link {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.template-btn-link i {
    font-size: 0.9rem;
}

/* Download button */
.template-btn-download {
    background: #ecfdf3;
    color: #15803d;
    border-color: #bbf7d0;
}

.template-btn-download i {
    font-size: 0.9rem;
}

/* Button hover */
.template-btn:hover {
    filter: brightness(0.96);
}

/* Indicators */
.templates-carousel .carousel-indicators li {
    background-color: #cbd5f5;
}

.templates-carousel .carousel-indicators .active {
    background-color: #4da3ff;
}

/* Responsive tweaks */
@media (max-width: 767.98px) {
    .template-card {
        margin-bottom: 12px;
    }

    .templates-carousel .item .row {
        display: block;
    }

    .templates-carousel .item .row > [class*="col-"] {
        width: 100%;
        max-width: 100%;
        float: none;
        margin-bottom: 18px;
    }
}

/* ============================================
   Transparent Carousel Wrapper
   ============================================ */

.templates-carousel {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* Kill any internal Bootstrap padding/margins that add white areas */
.templates-carousel .carousel-inner {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Indicators float cleanly */
.templates-carousel .carousel-indicators {
    bottom: -35px;
}

.templates-carousel .carousel-indicators li {
    background-color: #cbd5f5;
}

.templates-carousel .carousel-indicators .active {
    background-color: #4da3ff;
}

/* Make arrow buttons float with no background */
.templates-carousel .carousel-control-prev,
.templates-carousel .carousel-control-next {
    width: 40px;
    background: none !important;
    box-shadow: none !important;
}

.templates-carousel .carousel-control-prev i,
.templates-carousel .carousel-control-next i {
    color: #0b3e67;
    font-size: 28px;
    text-shadow: none !important;
}

/* ============================================
   NEWS + EVENTS LAYOUT (CLEAN, NON-BUGGY)
   ============================================ */

/* make sure cards can grow naturally */
.n_e .news-card,
.e_e .mobile-wrapper {
  height: auto !important;
  overflow: visible !important;
}

/* Desktop (≥ 992px): 2/3 + 1/3 layout, aligned */
@media (min-width: 992px) {
  .news-events-row {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: stretch;
    overflow: visible !important;
  }

  .news-events-row > .n_e,
  .news-events-row > .e_e {
    float: none !important;
    position: static !important;
    height: auto !important;
    width: auto;
  }

  .news-events-row > .n_e {
    width: 66.666% !important;
  }

  .news-events-row > .e_e {
    width: 33.333% !important;
  }
}

/* Mobile / tablet (< 992px): stack in DOM order: NEWS then CALENDAR */
@media (max-width: 991.98px) {
  .news-events-row {
    display: block !important;
    overflow: visible !important;
  }

  .news-events-row > .n_e,
  .news-events-row > .e_e {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    position: static !important;
    margin: 0 0 20px 0 !important;
  }
}