.pagination-wrapper {
    margin-top: 30px;
    text-align: center;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.page-link {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: #f5f5f5;
    text-decoration: none;
}

.page-link.current {
    background-color: #007cba;
    color: white;
    border-color: #007cba;
}

.page-dots {
    padding: 8px 12px;
    color: #666;
}

.pagination-info {
    color: #666;
    font-size: 14px;
}

.lightbox{
    cursor: pointer;
}
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.achievement-item {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.achievement-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.achievement-image {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.achievement-image img {
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.achievement-placeholder {
    width: 120px;
    height: 120px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ddd;
}

.achievement-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin: 0;
}



/* Responsive design */
@media (max-width: 768px) {
    .achievements-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .achievement-item {
        padding: 20px;
    }
    
    .achievement-name {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}
.wrapper_single_gallery .big,.wrapper_single_gallery .group_small{
    width: calc(50% - 10px);
}
.wrapper_single_gallery .group_small{
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
}
.wrapper_single_gallery .small{
    width: calc(50% - 10px);
    margin-bottom: 21px;
    max-height: 276px;
    overflow: hidden;
}
.wrapper_single_gallery .big a{
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    transition: all 0.3s ease;
    min-height: 566px;
    max-height: 566px;
    overflow: hidden;
    border-radius: 10px;
    display: block;
    /* box-shadow: 1px 1px 11px -1px rgba(0,0,0,0.5);
    -webkit-box-shadow: 1px 1px 11px -1px rgba(0,0,0,0.5);
    -moz-box-shadow: 1px 1px 11px -1px rgba(0,0,0,0.5); */
}
.wrapper_single_gallery .small a{
    width: 100%;
    max-height: 276px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    /* box-shadow: 1px 1px 11px -1px rgba(0,0,0,0.5);
    -webkit-box-shadow: 1px 1px 11px -1px rgba(0,0,0,0.5);
    -moz-box-shadow: 1px 1px 11px -1px rgba(0,0,0,0.5); */
}
.wrapper_single_gallery .big a img,.wrapper_single_gallery .small a img{
    width: 107%;
    height: initial;
    object-fit: cover;
}
.wrapper_single_gallery .big a img{
    width: 110%;
}
.group_together{
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}
.group_together:nth-child(even){
    flex-direction: row-reverse;
}


.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 40px 0 20px;
    list-style: none;
    padding: 0;
}

.pagination ul {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination li {
    margin: 0;
    padding-left: 6px !important;
}

.pagination li a,
.pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    border: 2px solid #FDC800;
    text-decoration: none;
    color: #333;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
}

.pagination li a:hover {
    background-color: #FDC800;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253, 200, 0, 0.3);
}

.pagination li.active a {
    background-color: #FDC800;
    color: #fff;
    border-color: #FDC800;
    font-weight: 600;
}

.pagination li.pag-arrow a {
    position: relative;
    min-width: 40px;
    width: 40px;
    height: 40px;
    padding: 0;
}

.pagination li.pag-arrow a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border: 2px solid currentColor;
    border-top: none;
    border-right: none;
    transform: translate(-50%, -50%);
}

.pagination li.pag-arrow:first-child a::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.pagination li.pag-arrow:last-child a::before {
    transform: translate(-50%, -50%) rotate(-135deg);
}

.pagination li.dots {
    color: #666;
    font-weight: 600;
    padding: 8px 12px;
    min-width: auto;
    border: none;
    background: transparent;
}

.pagination li.dots:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
}
.pagination li:before{
    display: none;
}
.back-button{
    margin-bottom: 20px;
    display: block;
}
.single-teacher-photo{
    width: 100%;
}
.single-teacher-photo img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.single iframe{
    margin: 0px auto;
    display: block;
}
.document_link .document_name{
    padding-right: 30px;
}


.schedule {
    padding: 40px;
}

.time-block {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
    padding: 15px 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    border-left: 5px solid #FDC800;
}

.time-block:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

.time-block:nth-child(even) {
    border-left-color: #45679A;
}

.time-slot {
    background: #FDC800;
    color: #333333;
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1em;
    min-width: 130px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(253, 200, 0, 0.3);
    position: relative;
    overflow: hidden;
}
.time-block img{
    width: 44px;
    height: initial;
    object-fit: contain;
}
.time-block:nth-child(even) .time-slot {
    background: #45679A;
    color: white;
    box-shadow: 0 4px 15px rgba(69, 103, 154, 0.3);
}

.time-slot::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.time-block:hover .time-slot::before {
    left: 100%;
}

.activity {
    flex: 1;
    margin-left: 30px;
    color: #333333;
}

.activity p {
    font-size: 1.1em;
    line-height: 1.5;
    font-weight: 500;
    font-style: italic;
}
.group_image{
    margin-bottom: 60px;
}
.group_image img{
    width: 100%;
    height: initial;
    object-fit: cover;
}
.icon {
    width: 40px;
    height: 40px;
    margin-left: 20px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.time-block:hover .icon {
    opacity: 1;
    transform: scale(1.1);
}

.decorative-element {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    height: 100px;
    opacity: 0.1;
    pointer-events: none;
}

.sun {
    fill: #FDC800;
}

.moon {
    fill: #45679A;
}


.description-card {
    max-width: 600px;
    background: white;
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    padding: 60px 50px;
    text-align: center;
    transition: all 0.4s ease;
}

.description-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* Декоративні елементи в кутах */
.corner-decoration {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 0 0 50px 0;
    background: #FDC800;
}

.corner-decoration.top-left {
    top: 0;
    left: 0;
    border-radius: 25px 0 50px 0;
}

.corner-decoration.bottom-right {
    bottom: 0;
    right: 0;
    background: #45679A;
    border-radius: 50px 0 25px 0;
}

.title {
    font-size: 3.5em;
    font-weight: 700;
    color: #45679A;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.view-all-btn-width{
    width: 410px;
    margin: 30px auto 0px;
}

.verse-line {
    color: #333333;
    font-weight: 600;
    font-size: 1.5em;
    margin-top: 30px;
    animation-delay: 1s;
    line-height: 40px;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Декоративні кружечки що плавають */
.floating-circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.circle:nth-child(1) {
    width: 60px;
    height: 60px;
    background: #FDC800;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.circle:nth-child(2) {
    width: 40px;
    height: 40px;
    background: #45679A;
    top: 60%;
    right: 15%;
    animation-delay: -2s;
}

.circle:nth-child(3) {
    width: 30px;
    height: 30px;
    background: #FDC800;
    bottom: 30%;
    left: 20%;
    animation-delay: -4s;
}

.circle:nth-child(4) {
    width: 50px;
    height: 50px;
    background: #45679A;
    top: 40%;
    right: 10%;
    animation-delay: -1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-15px) rotate(120deg);
    }
    66% {
        transform: translateY(-5px) rotate(240deg);
    }
}

/* Спеціальні акценти для ключових слів */
.highlight-yellow {
    color: #FDC800;
    font-weight: 600;
    position: relative;
}

.highlight-blue {
    color: #45679A;
    font-weight: 600;
    position: relative;
}

.highlight-yellow::after,
.highlight-blue::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.description-card:hover .highlight-yellow::after,
.description-card:hover .highlight-blue::after {
    transform: scaleX(1);
}
.banner_group_image{
    max-width: 40%;
}
.banner_group_image img{
    width: 100%;
    height: initial;
    object-fit: cover;
}
.description-card .title-page:before{
    content: '';
}
.banner_group{
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
}

@media (max-width: 1400px) {
    .description-card {
        padding: 50px 40px;
    }
}

/* Респонсивність */
@media (max-width: 768px) {
    .banner_group {
        flex-direction: column-reverse;
    }
    .banner_group_image {
        max-width: 60%;
    }
    /* .single-section .container{
        padding: 0px;
        margin: 0px !important;
    } */
    .description-card {
        margin: 0px;
        padding: 40px 30px;
        width: 100%;
        margin-bottom: 40px;
        margin-top: 30px;
    }
    .verse-line {
        line-height: 32px;
    }

    .title {
        font-size: 2.8em;
        margin-bottom: 30px;
    }

    .verse-line {
        font-size: 1.2em;
        margin-bottom: 15px;
    }

    .verse-line:last-child {
        font-size: 1.3em;
        margin-top: 20px;
    }

    .corner-decoration {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .description-card {
        padding: 30px 20px;
    }

    .title {
        font-size: 2.3em;
    }

    .verse-line {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {

    .header h1 {
        font-size: 2.2em;
    }

    .schedule {
        padding: 20px;
    }

    .time-block {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }

    .activity {
        margin-left: 0;
        margin-top: 15px;
    }

    .icon {
        margin: 15px 0 0 0;
    }
}


/* Responsive pagination */
@media (max-width: 768px) {
    .news-title {
        font-size: 1.25rem;
        line-height: 1.3;
        margin-bottom: 10px;
    }
    .pagination {
        gap: 6px;
    }
    .wrapper_single_gallery .big, .wrapper_single_gallery .group_small{
        width: 100%;
    }
    .wrapper_single_gallery .big a {
        min-height: auto;
        margin-bottom: 20px;
    }
    .wrapper_single_gallery .small a {
        max-height: 242px;
    }
    .wrapper_single_gallery .small {
        max-height: 242px;
    }
    
    .pagination li a,
    .pagination li span {
        min-width: 36px;
        height: 36px;
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .pagination li.pag-arrow a {
        min-width: 36px;
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .pagination {
        gap: 4px;
    }
    
    .pagination li a,
    .pagination li span {
        min-width: 32px;
        height: 32px;
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .pagination li.pag-arrow a {
        min-width: 32px;
        width: 32px;
        height: 32px;
    }
}