/********** Template CSS **********/

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/* Domyślny wygląd dla dużych ekranów */
/* Bazowe ustawienia logo z płynnym przejściem */
.logo-navbar {
    height: 120px;
    width: 120px;
    object-fit: contain;
    transition: all 0.4s ease-in-out; /* Kluczowe dla płynnego efektu */
}

/* Klasa, którą jQuery aktywuje po przewinięciu strony */
.logo-scrolled {
    height: 60px !important;
    width: 60px !important;
}

/* Klasa do wykonania fikołka */
.logo-flip {
    transform: rotate(360deg);
}

/* Responsywne pomniejszenie dla mniejszych ekranów */
@media (max-width: 991.98px) {
    .logo-navbar {
        height: 80px;
        width: 80px;
    }
}

@media (max-width: 576px) {
    .logo-navbar {
        height: 50px;
        width: 50px;
    }
}


/*** Button ***/
.btn {
    font-weight: 600;
    transition: .5s;
    border-radius: 50px;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: inherit;
}

.btn-primary {
    color: var(--bs-white);
}

.btn-custom {
    color: #ffffff !important;
    background-color: #969ddf !important;
    border-color: #969ddf !important;
}

.btn-outline-custom {
  color: #35c3ef;
  border-color: #35c3ef;
}

.text-custom {
    color: #35c3ef !important;
}

/*** Navbar ***/
.navbar {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 9;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    margin-right: 25px;
    padding: 40px 0;
    color: var(--bs-white);
    font-size: 17px;
    text-transform: uppercase;
    outline: none;
    transition: .5s;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: #35c3ef !important;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link,
    .navbar.bg-dark .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 8px;
        border-top: 1px solid var(--bs-light);
    }
}

@media (min-width: 992px) {
    .navbar.bg-dark .navbar-nav .nav-link {
        padding: 20px 0;
    }

    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding-top: 100px;
    background: rgba(0, 0, 0, .7);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 550px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    padding-top: 200px;
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/carousel-1.jpg) top center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: var(--bs-white);
}


/*** Title ***/
.title {
    margin-bottom: 2rem;
}

.title .title-left,
.title .title-center,
.title .title-right {
    display: inline-block;
    text-transform: uppercase;
    overflow: hidden;
}

.title .title-center {
    text-align: center;
}

.title .title-right {
    text-align: right;
}

.title .title-left h5,
.title .title-center h5,
.title .title-right h5 {
    position: relative;
    display: inline-block;
    font-size: 18px;
    font-weight: 300;
}

.title .title-left h5::after,
.title .title-center h5::before,
.title .title-center h5::after,
.title .title-right h5::before {
    position: absolute;
    content: "";
    width: 500%;
    height: 0;
    top: 9px;
    border-bottom: 1px solid var(--bs-white);
}

.title .title-left h5::after,
.title .title-center h5::after {
    left: calc(100% + 15px);
}

.title .title-right h5::before,
.title .title-center h5::before {
    right: calc(100% + 15px);
}

.title .title-left h1,
.title .title-center h1,
.title .title-right h1 {
    border-bottom: 1px solid var(--bs-white);
}

/* Pancerne zmniejszenie nagłówków sekcji wyłącznie dla telefonów */
@media (max-width: 767.98px) {
    .title .title-left h1,
    .title .title-center h1,
    .title .title-right h1,
    .title .title-left .display-1,
    .title .title-center .display-1,
    .title .title-right .display-1 {
        font-size: 1.8rem !important; /* Sztywny, czytelny rozmiar na telefonie */
        line-height: 1.3 !important;  /* Bezpieczna interlinia, żeby linie na siebie nie nachodziły */
    }
}

/* Dopisek do reguł mobilnych dla ekranów poniżej 768px */
@media (max-width: 767.98px) {
    /* Opis pod nagłówkiem głównym */
    p.fs-5 {
        font-size: 1.05rem !important; /* Zmniejszamy z 1.25rem - tekst zyskuje idealną proporcję */
        line-height: 1.4 !important;   /* Luźniejsza, czytelniejsza interlinia */
    }

    /* Skrócenie gigantycznego odstępu pod tekstem */
    .mb-5 {
        margin-bottom: 1.5rem !important; /* Zmniejszamy o połowę z 3rem, dzięki czemu przyciski "podbiją" do góry */
    }
}


/*** Service ***/
.service-item {
    position: relative;
    margin-top: 2.5rem;
    overflow: hidden;
}

.service-item .service-img {
    position: relative;
    display: inline-block;
}

.service-item .service-img::before {
    position: absolute;
    content: "";
    width: calc(100% - 12rem);
    height: calc(100% - 12rem);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3rem solid rgba(0, 0, 0, .5);
    border-radius: 300px;
    z-index: 1;
}

.service-item.service-item-left {
    border-radius: 500px 0 0 500px;
    background: linear-gradient(to right, var(--bs-secondary), var(--bs-dark));
}

.service-item.service-item-right {
    border-radius: 0 500px 500px 0;
    background: linear-gradient(to left, var(--bs-secondary), var(--bs-dark));
}

@media (max-width: 767.98px) {
    .service-item.service-item-left,
    .service-item.service-item-right {
        border-radius: 500px 500px 0 0;
        background: linear-gradient(to bottom, var(--bs-secondary), var(--bs-dark));
        text-align: center;
    }
}


/*** Team ***/
.team-item {
    position: relative;
}

.team-item .team-name {
    position: absolute;
    width: 100%;
    height: 60px;
    left: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .7);
}

.team-item .team-body {
    position: relative;
    overflow: hidden;
}

.team-item .team-body .team-before,
.team-item .team-body .team-after {
    position: absolute;
    content: "";
    width: 0;
    height: calc(100% - 60px);
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: .5s;
}

.team-item .team-body .team-after {
    left: auto;
    right: 0;
}

.team-item .team-body .team-before {
    text-align: right;
}

.team-item:hover .team-body .team-before,
.team-item:hover .team-body .team-after {
    width: 50%;
}

.team-item .team-body .team-before span,
.team-item .team-body .team-after span {
    margin: 5px;
    color: var(--bs-white);
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-body .team-before span,
.team-item:hover .team-body .team-after span {
    opacity: 1;
    transition-delay: .2s;
}


/*** Testimonial ***/
.testimonial-carousel {
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-carousel .owl-dots {
    margin-top: 35px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dots .owl-dot {
    width: 60px;
    height: 60px;
    margin: 0 5px;
    padding: 10px;
    background: var(--bs-dark);
    border-radius: 100px;
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-dots .owl-dot img {
    opacity: .1;
    transition: .5s;
    border-radius: 100px;
}

.testimonial-carousel .owl-dots .owl-dot.active img {
    opacity: 1;
}


/*** Footer ***/
@keyframes footerAnimatedBg {
	0% {
        background-position: 0 0;
    }

	100% {
        background-position: -1000px 0;
    }
}

.footer {
	background-image: url(../img/footer-bg.png);
	background-position: 0px 0px;
    background-repeat: repeat-x;
	animation: footerAnimatedBg 50s linear infinite;
}

/* Tło dla rozwijanego menu mobilnego (hamburgera) */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(15, 15, 15, 0.98); /* Bardzo ciemne, głębokie tło pasujące do klimatu gry */
        border-radius: 8px;                        /* Eleganckie zaokrąglenie rogów menu */
        padding: 10px 20px;                        /* Bezpieczny wewnętrzny odstęp dla linków */
        margin-top: 15px;                          /* Delikatne odsunięcie całego bloku od linii logo i hamburgera */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7); /* Mocny cień, który całkowicie odcina menu od slidera w tle */
        border: 1px solid rgba(255, 255, 255, 0.05); /* Minimalna, subtelna ramka podbijająca krawędź */
    }

    /* Dopasowanie dropdownów (np. zakładki Pages), aby nie rozpychały menu w brzydki sposób */
    .navbar-collapse .dropdown-menu {
        background-color: rgba(25, 25, 25, 0.95) !important;
        border: none;
        padding-left: 15px; /* Lekkie wcięcie dla podpunktów, żeby zachować hierarchię */
    }
    
    .navbar-collapse .dropdown-item {
        color: rgba(255, 255, 255, 0.7) !important;
    }
    
    .navbar-collapse .dropdown-item:hover {
        color: var(--text-custom) !important; /* Zamieni się na Twój główny złoty/customowy kolor */
        background-color: transparent;
    }
}

/* Kolorystyka i zachowanie dla elementów sekcji changelogu */
.border-custom {
    border-color: var(--text-custom) !important;
}
.bugfix-item:last-child {
    border-bottom: none !important; /* Usuwa kreskę z ostatniego elementu listy bugfixów */
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Kontener i sam obrazek newsa */
#news-image-wrapper {
    width: 100%;
    max-height: 400px; /* Tutaj ustaw maksymalną wysokość, jaka Ci odpowiada */
    overflow: hidden;
    border-radius: 0.375rem; /* Dopasowanie do klasy .rounded z Bootstrapa */
}

.news-img-crop {
    width: 100%;
    height: 400px; /* Tyle samo co max-height kontenera */
    object-fit: cover; /* Kadruje obrazek do środka, nie rozciąga go */
    object-position: top; /* Centruje kadr */
}

/* Styl kartki z kalendarza */
.calendar-card {
    width: 55px;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
    border: 1px solid #111;
}
.calendar-card .cal-month {
    background: #ce2121; /* Twój kolor customowy lub czerwony */
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 2px 0;
    line-height: 1.2;
}
.calendar-card .cal-day {
    color: #222;
    font-size: 18px;
    font-weight: 800;
    padding: 2px 0;
    line-height: 1.2;
}

/* Mały obrazek eventu */
.event-mini-img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    object-position: top;
    border: 2px solid #343a40;
}

/* Dodatki stylistyczne */
.event-meta-item {
    font-size: 12px;
    color: #adb5bd;
}
.border-custom {
    border-color: #ce2121 !important; /* dopasuj do koloru przewodniego serwera */
}

/* Kadrowanie baneru na górze strony teamu */
#team-banner-wrapper {
    width: 100%;
    height: 350px; /* Wysokość baneru */
    position: relative;
}

.team-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* Centrowanie grafiki zespołu */
}

/* Ciemna nakładka na baner dla lepszej czytelności napisu */
.team-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Przyciemnienie 60% */
}

.shadow-text {
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
}

/* Efekt uniesienia kart ekipy po najechaniu myszką */
.card-team {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card-team:hover {
    transform: translateY(-5px); /* Delikatne uniesienie do góry */
    border-color: #ce2121 !important; /* Twój kolor przewodniczący podświetli kartę */
}

.team-avatar-wrapper i {
    filter: drop-shadow(0 4px 6px rgba(0,0,0, 0.3));
}

/* Stylizacja lewego dolnego rogu */
.aion-cookie-box {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 350px;
    z-index: 9999;
    background: #0f1115;
    border: 1px solid #1a1f26;
    border-radius: 6px;
    /* Efekt poświaty Otchłani (Asmodian style) - możesz zmienić na złoty dla Elyosów */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(206, 33, 33, 0.15);
    animation: slideInUpCookie 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.aion-cookie-inner {
    padding: 15px;
}

.aion-cookie-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #1a1f26;
    padding-bottom: 8px;
}

/* Animacja wjazdu okienka */
@keyframes slideInUpCookie {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsywność dla smartfonów */
@media (max-width: 400px) {
    .aion-cookie-box {
        left: 10px;
        right: 10px;
        width: auto;
        bottom: 10px;
    }
}

/* Styl dla ikon klas */
.class-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    vertical-align: middle;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
    transition: transform 0.2s ease, filter 0.2s ease;
}

/* Efekt po najechaniu myszką na ikonę klasy */
.class-icon:hover {
    transform: scale(1.25);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5));
    cursor: pointer;
}