/* ===== Twój oryginalny CSS ===== */
.toggle-password {
  position: absolute;
  right: 20px;
  top: 25px;
  transform: scale(1.4);
}
.hide-password {
  right: 19px;
}
.toggle-password:hover {
  cursor: pointer;
}
.register-form {
  font-size: 18px;
}
.register-form .error {
  color: white;
}
.aktualnosci-header .slick-prev,
.aktualnosci-header .slick-next {
  background: #ed1c24;
}
.text-color h2 {
  color: #68737a !important ;
}
div .text-content {
  font-size: 97%;
  color: #68737a !important ;
}
.logo-orlen-mobile {
  display: none !important;
}
.text-gray {
  color: #68737a !important ;
  font-weight: normal !important;
}
.yellow-bg {
  background-color: #f8e79e !important;
}
.text-yellow {
  color: #f8dd6c !important;
}
.red-bg {
  background-color: #ed1c24 !important;
}
.footer-menu-item a {
  color: #68737a !important;
}
.patron-logo {
  max-height: 80px;
  width: auto;
  object-fit: contain;
}
.next-line {
  white-space: nowrap;
  text-overflow: ellipsis;
}
.footer-menu-item {
  font-weight: normal;
}
.text-adjust {
  font-size: 90%;
}
.text-clean {
  font-weight: normal !important;
  text-decoration: none !important;
}
.img-change {
  width: 50px;
  height: 50px;
  object-fit: contain;
}
.logo-fb {
  height: 40px;
  max-width: 50px;
}
.banner-img {
  width: auto;
}
.banner-wrapper {
  position: relative;
}
.banner-wrapper .banner-img {
  display: flex;
}
.banner-button {
  position: absolute;
  top: 75%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}
.banner-button .btn {
  padding: 2rem 3rem;
  font-size: 1.2rem;
}
.patron .p-3 {
  padding: 0.5rem;
}
.patron .p-2 {
  padding: 0.25rem;
}
.patron-h4 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}
.link-underline {
  color: #68737a;
  text-decoration: underline;
  text-decoration-color: #68737a;
}
.link-underline b {
  color: #68737a;
  font-weight: bold;
}
.box-science-packages .circle-box {
  margin-bottom: 5px !important;
}
.box-science-packages .circle-image img {
  max-width: 320px;
  height: auto;
}
.box-science-packages .col-text {
  margin-top: 20px;
}
.banner-wrapper {
  width: 100%;
  max-height: 100vh;
  overflow: hidden;
  position: relative;
}
.banner-wrapper img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.read-more-text {
  line-height: 1.4em;
  max-height: calc(1.4em * 4);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  transition: max-height 0.3s ease;
  margin-bottom: 12px;
}
.read-more-text.expanded {
  max-height: 15000px;
  -webkit-line-clamp: unset;
}
.text-version1 {
  font-size: 21px !important;
}
.program-text {
  padding-left: 1rem;
  padding-right: 1rem;
  max-width: 800px;
  word-break: normal;
  line-height: 1.6;
  margin: 0 auto;
}
.item-button-wrapper {
  margin-top: 40px;
  text-align: center;
}
.box-science-packages .circle-image img.img-max-width-270 {
  max-width: 330px !important;
  width: auto !important;
  height: auto !important;
  display: block;
  margin: 0 auto;
}
.part-intro {
  font-size: 140%;
}
.text-content {
  word-break: normal;
}
.gray-bg {
  background-color: #c9cfd2 !important;
}
.login-section {
  background-color: #f8e79e !important;
}

/* ===== Wyrównanie logotypów na desktopie ===== */
.patron {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
}
.patron .patron-header {
  flex: 1 1 25%;
  text-align: center;
  font-size: 1rem;
  font-weight: bold;
}
.patron .patron-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  justify-items: center;
  width: 100%;
}
/* Wspólny styl dla wszystkich logotypów patronów */
.patron-logo,
.patron-orlen-logo,
.patron-instytut-logo,
.patron-tvp-logo {
  width: 100%;
  max-width: 180px;
  height: 80px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.patron-edu-logo,
.patron-ore-logo {
  width: 100%;
  max-width: 200px;
  height: 100px;
  object-fit: contain;
  display: block;
  gap: 10px;
}
.banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.banner-button {
  padding: clamp(1rem, 1.5vw, 1.5rem) clamp(1.5rem, 3vw, 3rem) !important;
  font-size: clamp(0.9rem, 2vw, 1.5rem) !important;
  border: white 1px solid;
}
.patron {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
}
.media a:hover {
  text-decoration: none;
}
.media a:hover {
  text-decoration: none;
}
.account-menu-container .btn.btn-third,
.account-menu .btn.btn-third.active {
  padding-left: 40px;
  padding-right: 40px;
  max-width: 100%;
  width: 400px;
}
.account-menu-container .account-link {
  background-color: #68737a;
  color: white;
}
.account-menu-container .account-link:hover {
  background-color: #79837a;
}
.account-menu-container .account-link.active {
  background-color: #f8dd6c;
  color: rgba(255, 0, 0, 1);
}
.account-menu-container .account-link.active:hover {
  background-color: #f9ee8e;
}
.o-programie-second {
  display: none;
}
.loader .check_school_number {
  color: #f8dd6c;
  text-shadow: none;
}
.loader .check_school_number:hover, .loader .check_school_number:focus {
  color: #f8dd6c;
  background-color: #f8dd6c !important;
  cursor: default;
}
.loader .loader-div{
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 135px;
  height: 60px;
  right: 0;
}
.loader .loader-div div {
  display: block;
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 0, 0, 1);
  border-top: 3px solid #f8dd6c;
  border-radius: 50%;
  animation: spin 1.5s linear infinite;
}
.alert.alert-danger, .alert.alert-success {
  width: auto;
  display: inline-block;
}
.submit-div.loader span {
  opacity: 0;
}
.submit-div.loader button:hover {
  cursor: default;
  background-color: #f8dd6c;
}
.submit-div.loader .loader-div {
  top: calc(50% - 15px);
  left: calc(50% - 15px);
  position: absolute;
  display: none;
  width: 30px;
  height: 30px;
}
.submit-div.loader .loader-div div{
  border: 3px solid rgba(255, 0, 0, 1);
  border-top: 3px solid #f8dd6c;
  border-radius: 50%;
  animation: spin 1.5s linear infinite;
}
.submit-div.loader .loader-div {
  display: block;
}
.shortName {
  display: none;
}
.gray-arrow {
  height: 40px;
}

.fw-20 {
  font-size: 22px;
}
.footer-row .footer-first-col {
  margin-left: 6px;
}
.footer-row .footer-second-col {
  padding-left: 12px;
}
.footer-row .footer-menu-col {
  padding-left: 20px;"
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@media (max-width: 1469px) {
  .account-nav-container .navbar-expand-lg {
    flex-wrap: wrap;
  }
  .account-nav-container .navbar-expand-lg .navbar-collapse {
    display: block !important;
    flex-basis: 100%;
  }
  .account-nav-container .navbar-expand-lg .navbar-collapse.collapse:not(.show) {
    display: none !important;
  }
  .account-nav-container .navbar-expand-lg .navbar-collapse .navbar-nav {
    flex-direction: column;
  }
  .account-nav-container .navbar-toggler {
    display: block !important;
    margin-left: auto;
    border: none;
  }
  .account-nav-container .navbar-toggler .navbar-toggler-line {
    height: 5px;
    width: 28px;
    margin-bottom: 4px;
    border-radius: 5px;
    background-color: #7f95f1;
    display: block;
  }
  .account-nav-container .logo-orlen-mobile {
    display: inline-block !important;
  }
  .account-nav-container .logo-orlen-desktop {
    display: none !important;
  }
}
@media (max-width: 1200px) {
  .patron-logo {
    max-height: 60px;
  }
  #checkboxValidate label:nth-of-type(6) label {
    bottom: -125px;
  }
  .fw-20 {
    font-size: 18px;
  }
}
@media (max-width: 1100px) {
  .navbar .navbar-toggler {
    display: block !important;
    margin-left: auto;
  }
  .logo-orlen-desktop {
    display: none !important;
  }
  .logo-orlen-mobile {
    display: inline-block !important;
  }
  .box-science-packages .circle-box {
    width: 100%;
  }
  .box-science-packages .circle-box .circle-content {
    width: 100%;
    overflow: hidden;
  }
  .box-science-packages .circle-box .circle-content img {
    width: 100% !important;
    height: auto !important;
  }
  .fw-20 {
    font-size: 16px;
  }
}
@media (max-width: 1000px) {
  .read-more-btn {
    display: inline-block;
  }
}
@media (max-width: 991px) {
  .patron .patron-logos {
    grid-template-columns: 1fr 1fr;
  }
  .patron-logo {
    max-height: 80px;
  }
}
/* Mobile: dokładnie 2x2 */
@media (max-width: 900px) {
  .patron > div {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    text-align: center;
  }
}
@media (max-width: 767px) {
  .banner-img {
    height: 150px; /* wysokość prostokątnego baneru */
    object-fit: cover;
  }
  .banner-button {
    padding: 0.7rem 1.5rem !important;
    font-size: 1rem !important;
  }
  .circle-box {
    height: auto;
    max-width: 421px;
  }
  .circle-box .circle-content {
    position: relative;
    top: 0%;
    left: 0%;
    transform: translate(0%, 0%);
  }
  .box-science-packages .circle-image img.img-max-width-270 {
    max-width: none !important;
  }
  .box-science-packages .col-text {
    max-width: 421px;
  }
  .fw-20 {
    font-size: 15px;
  }
}
@media (max-width: 576px) {
  .o-programie-first {
    display: none;
  }
  .o-programie-second {
    display: block;
    width: 100%;
  }
  .banner-wrapper img {
    object-fit: contain;
  }
  .patron > div {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    text-align: center;
  }
  .patron-row {
    margin-bottom: 10px;
  }
  .patron-h4 {
    padding-bottom: 10px;
  }
  .patron-honorowy {
    flex-wrap: wrap;
  }
  .patron-honorowy div {
    width: 100%;
  }
  .patron-honorowy div:first-of-type{
    margin-bottom: 10px;
  }
  .patron-honorowy div:first-of-type img {
    max-height: 80px;
  }
  .patron-honorowy div img{
    max-height: 110px;
    height: auto;
  }
  .shortName {
    display: inline-block;
  }
  .footer-row .footer-menu-col {
    padding-left: 0px;"
  }
  .footer-row .footer-first-col {
    margin-left: 0px;
  }
  .footer-row .footer-second-col {
    padding-left: 0px;
  }
}
.item-title p.text-gray {
  font-weight: 800 !important;
}
@media (min-width: 1470px) {
  .account-menu-container {
    max-width: 1300px;
  }
  .account-nav-container {
    max-width: 1300px;
  }
}
@media (min-width: 1200px) {
  .toggle-password {
    top: 23px;
  }
  .register-form .form-control {
    font-size: 18px;
  }
}
@media (min-width: 991px) {
  .patron > div {
    flex: 0 0 25% !important;
    max-width: 25% !important;
    text-align: center;
  }
}
@media (min-width: 767px) and (max-width: 1024px)  {
  .loader .loader-div{
    width: 100%;
    right: 70px;
    top: 101px;
  }
}
@media (max-width: 540px)  {
  .loader .loader-div{
    width: 100%;
    right: 70px;
    top: 101px;
  }
}
