

    :root {
      --orange: #f58220;
      --orange-light: #ff9d3c;
      --orange-dark: #d95e00;
      --black: #111111;
      --black-soft: #1d1d1d;
      --gray: #ececec;
      --sidebar-width: 290px;
    }

    * { box-sizing: border-box; }

    html { scroll-behavior: smooth; }

    body {
      margin: 0;
      background: #fff;
      color: #222;
      font-family: Helvetica, "Arial Narrow", Arial, sans-serif;
      font-size: 16px;
      line-height: 1.55;
      position: relative;
    }

    /* =========================================================
       OLDALSÁV (A tartalommal együtt gördülő)
       ========================================================= */

    .school-sidebar {
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      width: var(--sidebar-width);
      min-height: 100vh;
      overflow: visible;
      z-index: 1030;
      color: #111;

      /* Gusztusos narancs átmenet */
      background:
        radial-gradient(circle at 100% 8%, rgba(255,255,255,.22), transparent 25%),
        linear-gradient(155deg,
          #ffad50 0%,
          var(--orange) 38%,
          #e86d08 72%,
          #c84f00 100%
        );

      border-right: 7px solid #111;
      box-shadow: 7px 0 25px rgba(0,0,0,.12);
    }

    .brand {
      display: block;
      padding: 24px 22px 20px;
      color: #111;
      text-decoration: none;
      border-bottom: 2px solid rgba(17,17,17,.18);
    }

    .brand-mark {
      width: 56px;
      height: 56px;
      margin-bottom: 13px;
      display: grid;
      place-items: center;
      background: #111;
      color: var(--orange-light);
      font-weight: 900;
      font-size: 24px;
      transform: skew(-7deg);
      box-shadow: 6px 6px 0 rgba(255,255,255,.18);
    }

    .brand-title {
      display: block;
      font-size: 1.2rem;
      line-height: 1.08;
      font-weight: 900;
      letter-spacing: -.025em;
    }

    .brand-subtitle {
      display: block;
      margin-top: 7px;
      color: rgba(17,17,17,.72);
      font-size: .73rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .08em;
    }

    .side-section-title {
      display: block;
      padding: 10px 22px; /* Függőleges hely a szöveg körül */
      margin-top: 15px;    /* Távolság a felette lévő menüponttól */
      margin-bottom: 5px;  /* Távolság az alatta lévő menüponttól */
      
      color: #111;
      font-size: .7rem;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: .14em;

      /* Visszafogott háttérszín */
      background-color: rgba(0, 0, 0, 0.08); /* vagy a választott pasztell kódod */

      /* Léniák pontosan a háttérszín tetején és alján */
      border-top: 1px solid var(--orange-dark);
      border-bottom: 1px solid var(--orange-dark);
    }
    /* Főmenüpontok */
    .sidebar-nav .nav-link {
      position: relative;
      color: #111;
      padding: 10px 22px;
      border-left: 5px solid transparent;
      border-radius: 0;
      font-weight: 700;
      transition:
        background .18s ease,
        color .18s ease,
        border-color .18s ease,
        padding-left .18s ease;
    }

    .sidebar-nav .nav-link:hover {
      color: #fff;
      background: rgba(17,17,17,.45);
      border-left-color: #fff;
      padding-left: 27px;
    }

    .sidebar-nav .nav-link.active {
      color: #fff;
      background: rgba(17,17,17,.45);
      border-left-color: #fff;
    }

    /* A lenyíló főmenüpont kap egy kis nyilat */
    .menu-toggle {
      display: flex !important;
      align-items: center;
      justify-content: space-between;
      cursor: pointer;
    }

    .menu-toggle::after {
      content: "›";
      display: inline-block;
      font-size: 1.35rem;
      line-height: 1;
      transform: rotate(90deg);
      transition: transform .2s ease;
    }

    .menu-toggle[aria-expanded="true"]::after {
      transform: rotate(-90deg);
    }

    /* Rejtett almenü */
    .submenu {
      display: none;
      overflow: hidden;
      background: rgba(17,17,17,.10);
      border-top: 1px solid rgba(17,17,17,.12);
      border-bottom: 1px solid rgba(17,17,17,.12);
    }

    .submenu.show {
      display: block;
      animation: menuDrop .2s ease-out;
    }

    @keyframes menuDrop {
      from {
        opacity: 0;
        transform: translateY(-5px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .sidebar-nav .submenu .nav-link {
      padding: 8px 22px 8px 45px;
      color: rgba(17,17,17,.82);
      font-size: .92rem;
      font-weight: 600;
      border-left: 5px solid transparent;
    }

    .sidebar-nav .submenu .nav-link::before {
      content: "—";
      color: #111;
      position: absolute;
      left: 27px;
      font-weight: 900;
    }

    .sidebar-nav .submenu .nav-link:hover {
      color: #fff;
      background: rgba(17,17,17,.85);
      border-left-color: #fff;
      padding-left: 50px;
    }

    .sidebar-box {
      margin: 22px;
      padding: 16px;
      background: rgba(17,17,17,.9);
      color: #eee;
      border: 1px solid rgba(255,255,255,.18);
      border-top: 4px solid #fff;
      box-shadow: 5px 5px 0 rgba(17,17,17,.15);
      font-size: .9rem;
    }

    .sidebar-box strong { color: #fff; }

    /* =========================================================
       FŐ TARTALOM
       ========================================================= */

    .page {
      position: relative;
      margin-left: var(--sidebar-width);
      min-height: 100vh;
    }

    .topbar {
      min-height: 58px;
      background: #fff;
      border-bottom: 1px solid #ddd;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      padding: 0 30px;
    }

    .topbar small { color: #666; }

    .topbar-links a {
      color: #222;
      text-decoration: none;
      margin-left: 18px;
      font-size: .9rem;
      font-weight: 600;
    }

    .topbar-links a:hover { color: var(--orange-dark); }

    .hero {
      position: relative;
      overflow: hidden;
      min-height: 330px;
      margin: 28px 30px 0;
      padding: 48px;
      background:
        radial-gradient(circle at 88% 15%, rgba(245,130,32,.28), transparent 25%),
        linear-gradient(120deg, #111 0%, #222 58%, #303030 100%);
      color: #fff;
    }

    .hero::before {
      content: "";
      position: absolute;
      width: 320px;
      height: 320px;
      right: -90px;
      top: -100px;
      border: 38px solid var(--orange);
      border-radius: 50%;
      opacity: .8;
    }

    .hero::after {
      content: "";
      position: absolute;
      width: 160px;
      height: 160px;
      right: 110px;
      bottom: -100px;
      background: var(--orange);
      transform: rotate(25deg);
      opacity: .15;
    }

    .hero-content {
      position: relative;
      z-index: 1;
      max-width: 700px;
    }

    .eyebrow {
      color: var(--orange);
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: .1em;
      font-size: .76rem;
    }

    .hero h1 {
      margin: 8px 0 12px;
      font-size: clamp(2.1rem, 4vw, 3.6rem);
      line-height: 1.02;
      letter-spacing: -.04em;
      font-weight: 900;
    }

    .hero p {
      max-width: 650px;
      color: #ddd;
      font-size: 1.08rem;
    }

    .content { padding: 30px; }

    .section-title {
      margin: 0 0 18px;
      font-weight: 900;
      letter-spacing: -.025em;
    }

    .section-title span { color: var(--orange-dark); }

    .news-card {
      height: 100%;
      border: 1px solid #ddd;
      border-top: 5px solid var(--orange);
      border-radius: 0;
      background: #fff;
      box-shadow: 0 8px 24px rgba(0,0,0,.055);
    }

    .placeholder-image {
      min-height: 145px;
      background:
        linear-gradient(135deg, #c8c8c8, #9d9d9d);
      color: #666;
      display: grid;
      place-items: center;
      font-weight: 800;
      letter-spacing: .05em;
    }

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

    .news-date {
      color: #777;
      font-size: .8rem;
      text-transform: uppercase;
      letter-spacing: .06em;
    }

    .quick-link {
      display: flex;
      align-items: center;
      min-height: 92px;
      padding: 18px;
      background: #f7f7f7;
      border-left: 6px solid var(--orange);
      color: #111;
      text-decoration: none;
      transition: transform .15s ease, background .15s ease;
    }

    .quick-link:hover {
      color: #111;
      background: #ededed;
      transform: translateX(4px);
    }

    .quick-link strong {
      display: block;
      font-size: 1.02rem;
    }

    .quick-link small { color: #666; }

    .feature {
      position: relative;
      min-height: 240px;
      overflow: hidden;
      background: #ddd;
    }

    .feature .placeholder-image {
      position: absolute;
      inset: 0;
      height: 100%;
    }

    .feature-caption {
      position: absolute;
      inset: auto 0 0;
      padding: 18px;
      color: #fff;
      background: linear-gradient(transparent, rgba(0,0,0,.85));
    }

    .feature-caption strong { font-size: 1.25rem; }

    .footer {
      margin-top: 10px;
      padding: 30px;
      background: #111;
      color: #aaa;
    }

    .footer strong { color: #fff; }


    .training-carousel { position: relative; padding: 0 42px 34px; }
    .training-card { min-height: 170px; padding: 24px; box-shadow: 0 8px 22px rgba(0,0,0,.07); transition: transform .18s ease, box-shadow .18s ease; }
    .training-card:hover { transform: translateY(-4px); box-shadow: 0 13px 28px rgba(0,0,0,.12); }
    .training-dark { background:#111; color:#fff; }
    .training-light { background:#f7f7f7; color:#222; border-left:5px solid var(--orange); }
    .training-orange { color:#111; background:linear-gradient(135deg,#ffae53,var(--orange),#db6200); border-left:5px solid #111; }
    .training-control { width:38px; opacity:1; top:50%; bottom:auto; transform:translateY(-50%); }
    .training-control.carousel-control-prev { left:0; } .training-control.carousel-control-next { right:0; }
    .training-arrow { width:36px; height:52px; display:grid; place-items:center; background:#111; color:#fff; font-size:38px; line-height:1; }
    .training-control:hover .training-arrow { background:var(--orange); color:#111; }
    .training-indicators { bottom:0; margin-bottom:0; }
    .training-indicators [data-bs-target] { width:28px; height:4px; margin:0 4px; border:0; background:#bbb; opacity:1; }
    .training-indicators .active { background:var(--orange); }

    /* =========================================================
       MOBIL
       ========================================================= */

    /* Mobil Offcanvas háttér átállítása a narancs átmenetre */
    #mobileMenu {
      background:
        radial-gradient(circle at 100% 8%, rgba(255,255,255,.22), transparent 25%),
        linear-gradient(155deg,
          #ffad50 0%,
          var(--orange) 38%,
          #e86d08 72%,
          #c84f00 100%
        ) !important;
      color: #111 !important;
    }

    /* Mobil fejléc (Címsor és Bezáró 'X' gomb) igazítása a világos háttérhez */
    #mobileMenu .offcanvas-header {
      border-bottom-color: rgba(17, 17, 17, 0.2) !important;
    }

    #mobileMenu .offcanvas-title {
      color: #111 !important;
      font-weight: 900;
    }

    /* A fehér 'X' gomb kicserélése sötét 'X'-re */
    #mobileMenu .btn-close {
      filter: none !important; 
    }


    .mobile-header {
      display: none;
      position: sticky;
      top: 0;
      z-index: 1040;
      background: #111;
      color: #fff;
      border-bottom: 4px solid var(--orange);
    }

    @media (max-width: 991.98px) {
      .training-carousel { padding-left:35px; padding-right:35px; }
      .training-card { min-height:145px; }
      .school-sidebar { display: none; }

      .page { margin-left: 0; }

      .mobile-header { display: block; }

      .topbar { display: none; }

      .hero {
        margin: 18px 18px 0;
        padding: 34px 28px;
      }

      .content { padding: 24px 18px; }

      .footer { padding: 24px 18px; }
    }


    /* hírek modul */
    
  /* Kolping Narancs Lénia elválasztó */
  .kolping-divider {
    border: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--orange) 0%, var(--orange-dark) 50%, transparent 100%);
    opacity: 1;
    margin: 35px 0;
  }

  /* Az utolsó hír után ne legyen dupla elválasztás */
  .news-item:last-child .kolping-divider {
    display: none;
  }

  /* Kép beállítások a listában */
  .news-img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-left: 4px solid var(--orange);
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.08);
  }

  /* Álló kép specifikus igazítása a kártyában */
  .news-img-portrait {
    max-height: 260px;
    object-position: center top;
  }

  /* Cím hover hatás */
  .news-title a:hover {
    color: var(--orange-dark) !important;
    transition: color 0.18s ease;
  }


  /* =========================================================
   LAPOZÓ MODUL
   ========================================================= */
	/* A pagination konténer átrendezése: középre zárás és törlés a jobb oldalról (pull-right felülírása) */
.pagination {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 20px 0;
    float: none !important; /* Felülírja az eredeti pull-right-ot, hogy ne tolja szélre */
}

/* A lista alapbeállításainak nullázása (ha a sablon nem tenné meg) */
.pagination ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 6px; /* Kicsi távolság a gombok/számok között */
}

/* A listaelemek (és az aktív állapot megjelenítése) */
.pagination li {
    display: inline-block;
}

/* Alapértelmezett (kattintható) hivatkozások stílusa: narancssárga */
.pagination li a {
    display: block;
    padding: 6px 12px;
    color: #ff7f00; /* Narancssárga szín (igazíthatod a saját narancs kódodhoz) */
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
}

/* Hover hatás a linkekre */
.pagination li.active a,
.pagination li a:hover {
    background-color: #ff7f00;
    color: #fff;
    border-color: #ff7f00;
}

/* Ha az aktuális oldalt egy aktív class-szal vagy külön jelölöd, íme a szürke / nem kattintható állapot:
   (Ha a PHP-dbban még nincs benne az 'active' class hozzáadása, alább mutatom, hogyan egészítheted ki) */
.pagination li.active span,
.pagination li.disabled a {
    color: #6c757d; /* Szürke szín */
    background-color: #e9ecef;
    border-color: #dee2e6;
    pointer-events: none; /* Letiltja a kattintást */
    cursor: default;
    display: block;
    padding: 6px 12px;
    border-radius: 4px;
}


  /* =========================================================
   OLDALSÁV NAPTÁR MODUL
   ========================================================= */

.sidebar-calendar-box {
  /* background: rgba(17, 17, 17, 0.92) !important; */
  background: rgb(246, 194, 126) !important;
  color: #333333;
  padding: 14px !important;
}

.calendar-month-title {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: #333;
  border-bottom: 1px solid darkorange;
  padding-bottom: 8px;
  margin-bottom: 10px !important;
}

/* Naptár rács elrendezés (7 oszlop) */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px; /* Biztosítja a fehér hajszál léniák alapját */
  background-color: rgb(248, 208, 154) !important; /* Ez adja ki a fehér hajszál léniát a cellák között */
  border: 1px solid #ffffff;
}

/* Hét napjai fejléc */
.cal-day-name {
  /* background-color: #262626; */
  color: #aaa;
  font-size: 0.65rem;
  font-weight: 800;
  text-align: center;
  padding: 6px 0;
  text-transform: uppercase;
}

/* Napi cellák alapstílusa */
.cal-day {
  /* background-color: #e6e6e6; */ /* Sötétszürke/világosszürke alapszín a kontraszthoz */
  color: var(--black-soft);  /* Sötétszürke betűk */
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  aspect-ratio: 1;           /* Négyzet alakú cellák */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.15s ease;
}

/* Üres cellák a hónap elején/végén */
.cal-day.empty {
  /* background-color: #1a1a1a; */
  pointer-events: none;
}

/* Eseménnyel rendelkező nap: Narancs háttér */
.cal-day.has-event {
  background-color: var(--orange);
  color: #111;
  font-weight: 900;
  cursor: pointer;
}

.cal-day.has-event:hover {
  filter: brightness(1.1);
}

/* Aktuális nap: Narancs színű szöveg */
.cal-day.current-day {
  color: var(--orange-dark);
  background-color: rgb(246, 194, 126) !important;
  box-shadow: inset 0 0 0 2px var(--orange); /* Kicsi keret, hogy kiemelkedjen */
}

/* Ha az aktuális napon esemény is van */
.cal-day.current-day.has-event {
  color: #fff;
  background-color: var(--orange);
  box-shadow: inset 0 0 0 2px #111;
}

/* A naptári események linkje: átveszi a doboz színét (fekete vagy fehér), nincs aláhúzás */
.calendar-day-link,
.calendar-day-link:hover,
.calendar-day-link:focus {
    color: inherit !important;          /* Örökli a .cal-day által megadott színt (#111 vagy #fff) */
    text-decoration: none !important;   /* Nincs aláhúzás */
    display: block;                     /* Kitölti a teljes cellát, hogy bárhová kattintva működjön */
    width: 100%;
    height: 100%;
}


/* Alapértelmezett (inaktív) tab gomb stílus */
.btn-kolping-light {
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: all 0.2s ease-in-ease-out;
}

.btn-kolping-light:hover {
    background-color: #e2e6ea;
    color: #212529;
}

/* Aktív (kiválasztott) tab gomb stílus - Kolping narancs */
.btn-kolping-active {
    background-color: #fd7e14; /* A jól ismert Kolping narancs */
    color: #ffffff;
    border: 1px solid #e86d0b;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}