/* Homepage Specific Styles - Moved from inline CSS for better performance */

/* Boşlukları azaltmak için ek stiller */
#homeContent {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

#homeContent+#page {
    margin-top: 0 !important;
}

#homeContent+#homeContentBottom {
    margin-top: 0 !important;
}

#page+#homeContentBottom {
    margin-top: 0 !important;
}

#page {
    margin-bottom: 0 !important;
}

#page .container {
    padding-bottom: 0 !important;
}

#catalogSearch {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

#ourPublications {
    padding-top: 0 !important;
    padding-bottom: 0.5rem !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

#ourPublications .ourPublicationsBox {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

#sliderBottom {
    margin-bottom: 0 !important;
}

#page {
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: auto !important;
}

#page .container {
    padding-top: 0 !important;
}

#homeTimeline {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    margin-top: 0 !important;
}

#homeContentBottom .row {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

#homeContentBottom {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

#homeContentBottom .container {
    padding-top: 0 !important;
}

.publishSlider .item .publish-image-container {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #f3f6ff 0%, #ffffff 100%);
    border: 1px solid #d9e2f3;
    border-radius: 8px;
    overflow: hidden;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.publishSlider .item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.boxContentSliderPhoto {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.boxContentSliderPhoto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    #catalogSearch {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    #ourPublications {
        padding-top: 0 !important;
        padding-bottom: 0.25rem !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    #page {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    #page {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    #homeTimeline {
        padding-top: 0 !important;
        padding-bottom: 0.25rem !important;
        margin-top: 0 !important;
    }

    #homeContentBottom .row {
        padding-top: 0.25rem !important;
        padding-bottom: 0.25rem !important;
        margin-top: 0 !important;
    }

    .sectionTitle {
        font-size: 2rem;
    }

    .sectionSubTitle {
        font-size: 0.9rem;
    }

    .sectionDesc {
        font-size: 0.95rem;
    }

    #homeStatistic .statisticItem strong {
        font-size: 2.5rem;
    }

    .catalogSearchTop {
        display: flex;
    }

    .catalogSearchTop .searchInput {
        flex-grow: 1;
    }

    .catalogSearchTop .btn {
        padding: 0.5rem 0.75rem;
    }

    #homeTimeline .row>div {
        text-align: center;
    }

    #homeTimeline .d-flex {
        justify-content: center !important;
    }

    .timeline-items-home-grid {
        margin-top: 2rem;
    }

    .timeline-content-small {
        text-align: left;
    }

    .boxContent {
        margin-bottom: 2rem;
    }
}

/* Pagination styles */
.pagination {
    flex-wrap: wrap;
    justify-content: center;
}

/* Owl Carousel customizations */
.owl-nav button {
    font-size: 2rem !important;
    line-height: 1;
    padding: 5px 10px !important;
    color: #333 !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 50% !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.owl-nav button:hover {
    background: #ffffff !important;
    border-color: #007bff !important;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3) !important;
}

.owl-nav {
    position: static;
}

#eventBox .owl-nav,
#newsBox .owl-nav {
    margin: 5px 0;
}

/* Event and News slider navigation */
.boxcontentnavs button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0, 0, 0, 0.8) !important;
    width: 24px !important;
    height: 24px !important;
    border: 0 !important;
    color: #000000 !important;
    border-radius: 50% !important;
    position: relative !important;
    z-index: 10 !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin: 0 2px !important;
}

.boxcontentnavs button:hover {
    background: rgba(0, 0, 0, 0.9) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.boxcontentnavs button::before,
.boxcontentnavs button::after {
    content: '' !important;
    position: absolute !important;
    background: #000000 !important;
    display: block !important;
}

/* Left arrow */
.boxcontentnavs button.owl-prev::before {
    width: 8px !important;
    height: 2px !important;
    transform: rotate(-45deg) !important;
    left: 8px !important;
    top: 12px !important;
}

.boxcontentnavs button.owl-prev::after {
    width: 8px !important;
    height: 2px !important;
    transform: rotate(45deg) !important;
    left: 8px !important;
    top: 10px !important;
}

/* Right arrow */
.boxcontentnavs button.owl-next::before {
    width: 8px !important;
    height: 2px !important;
    transform: rotate(45deg) !important;
    right: 8px !important;
    top: 12px !important;
}

.boxcontentnavs button.owl-next::after {
    width: 8px !important;
    height: 2px !important;
    transform: rotate(-45deg) !important;
    right: 8px !important;
    top: 10px !important;
}

#eventBox .boxContentSliderPhoto img,
#newsBox .boxContentSliderPhoto img {
    object-fit: contain;
    background-color: #f8f9fa;
}

/* Link styles */
.see-all-link {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1D398D;
    transition: color 0.2s ease-in-out;
}

.see-all-link:hover {
    color: #152a5e;
}

/* Section header */
.section-header {
    background: linear-gradient(90deg, rgba(29, 57, 141, 0.08) 0%, rgba(29, 57, 141, 0.02) 100%);
    border: 1px solid rgba(29, 57, 141, 0.12);
    border-radius: 14px;
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.5rem;
}
.section-title {
    color: #1D398D;
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0.3px;
}

/* Modern card styles */
.main-event-card,
.main-news-card {
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(29, 57, 141, 0.12);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(29, 57, 141, 0.08);
    position: relative;
}

.main-event-card:hover,
.main-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(29, 57, 141, 0.18);
}

.main-event-photo,
.main-news-photo {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.main-event-photo img,
.main-news-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-event-card:hover .main-event-photo img,
.main-news-card:hover .main-news-photo img {
    transform: scale(1.05);
}

.main-event-content,
.main-news-content {
    padding: 1.5rem;
}

.main-event-title,
.main-news-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.main-event-title a,
.main-news-title a {
    color: #1D398D;
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-event-title a:hover,
.main-news-title a:hover {
    color: #152a5e;
}

.main-event-date,
.main-news-date {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.main-event-readmore,
.main-news-readmore {
    display: inline-block;
    background: linear-gradient(135deg, #1D398D 0%, #2d4fa8 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(29, 57, 141, 0.2);
}

.main-event-readmore:hover,
.main-news-readmore:hover {
    background: #152a5e;
    color: white;
    transform: translateY(-2px);
}

/* Side content lists */
.side-event-list,
.side-news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.side-event-list {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 10px 28px rgba(29, 57, 141, 0.12);
    height: 100%;
    border: 1px solid rgba(29, 57, 141, 0.08);
}

.side-event-item,
.side-news-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: transparent;
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
    border-left: 4px solid #1D398D;
}

.side-event-item:hover,
.side-news-item:hover {
    transform: translateX(5px);
    background: rgba(29, 57, 141, 0.06);
}

.side-event-photo,
.side-news-photo {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.side-event-photo img,
.side-news-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.side-event-item:hover .side-event-photo img,
.side-news-item:hover .side-news-photo img {
    transform: scale(1.1);
}

.side-event-content,
.side-news-content {
    flex-grow: 1;
}

.side-event-title,
.side-news-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.side-event-title a,
.side-news-title a {
    color: #1D398D;
    text-decoration: none;
    transition: color 0.3s ease;
}

.side-event-title a:hover,
.side-news-title a:hover {
    color: #152a5e;
}

.side-event-date,
.side-news-date {
    color: #6c757d;
    font-size: 0.8rem;
    margin-bottom: 0;
}

.side-news-readmore {
    display: inline-block;
    color: #1D398D;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.5rem;
    transition: color 0.3s ease;
}

.side-news-readmore:hover {
    color: #152a5e;
}

.side-news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 10px 28px rgba(29, 57, 141, 0.12);
    height: 100%;
    border: 1px solid rgba(29, 57, 141, 0.08);
}

/* Unified container */
.unified-content-container {
    background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
    border-radius: 20px;
    padding: 2.25rem;
    box-shadow: 0 12px 36px rgba(29, 57, 141, 0.12);
    margin: 0;
    border: 1px solid rgba(29, 57, 141, 0.08);
}

.unified-content-container .row {
    margin: 0;
}

.unified-content-container .col-lg-6 {
    padding: 0 1rem;
}

.unified-content-container .col-lg-6:first-child {
    padding-left: 0;
}

.unified-content-container .col-lg-6:last-child {
    padding-right: 0;
}

/* Responsive design */
@media (max-width: 991.98px) {
    .main-event-photo,
    .main-news-photo {
        height: 250px;
    }

    .side-event-item,
    .side-news-item {
        padding: 0.8rem;
    }

    .side-event-photo,
    .side-news-photo {
        width: 70px;
        height: 70px;
    }

    .unified-content-container {
        padding: 1.5rem;
    }

    .unified-content-container .col-lg-6 {
        padding: 0 0.5rem;
    }
}

@media (max-width: 767.98px) {
    .main-event-photo,
    .main-news-photo {
        height: 200px;
    }

    .main-event-title,
    .main-news-title {
        font-size: 1.2rem;
    }

    .side-event-title,
    .side-news-title {
        font-size: 0.9rem;
    }

    .unified-content-container {
        padding: 1rem;
    }

    .unified-content-container .col-lg-6 {
        padding: 0;
        margin-bottom: 1rem;
    }
}

/* Statistics icons */
.statisticItem img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Search box detail toggle */
.catalogSearchBoxDetail {
    display: none;
}

.catalogSearchBoxDetail.open {
    display: block;
}

/* Katalog Arama Temaya Uygun Stiller */
#catalogSearch {
    background: transparent;
    padding: 4rem 0 !important;
    margin-bottom: 3rem;
}

#catalogSearch .sectionTitle {
    color: #1D398D;
    font-weight: 700;
    font-size: 2.25rem;
    margin-bottom: 2rem;
    text-align: center;
}

.catalogSearchBox {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 3.25rem;
    border: 1px solid rgba(29, 57, 141, 0.1);
    box-shadow: 0 8px 32px rgba(29, 57, 141, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
}

.catalogSearchBox:hover {
    box-shadow: 0 12px 48px rgba(29, 57, 141, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.catalogSearchBox::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1D398D 0%, #2d4fa8 50%, #1D398D 100%);
    opacity: 0.8;
}

.catalogSearchTop {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.catalogSearchTop .searchInput {
    flex: 1;
    border: 2px solid #d9e2f3;
    border-radius: 12px;
    padding: 16px 24px;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(29, 57, 141, 0.05);
}

.catalogSearchTop .searchInput:focus {
    border-color: #1D398D;
    box-shadow: 0 0 0 0.2rem rgba(29, 57, 141, 0.15), 0 4px 12px rgba(29, 57, 141, 0.1);
    outline: none;
}

.catalogSearchTop .btn-primary {
    background: linear-gradient(135deg, #1D398D 0%, #2d4fa8 100%);
    border: 2px solid #1D398D;
    border-radius: 12px;
    color: white;
    padding: 16px 28px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(29, 57, 141, 0.2);
    min-width: 60px;
}

.catalogSearchTop .btn-primary i,
.catalogSearchTop .btn-primary .fas,
.catalogSearchTop .btn-primary .fa {
    color: #ffffff !important;
}

.catalogSearchTop .btn-primary:hover {
    background: linear-gradient(135deg, #142a6b 0%, #1D398D 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29, 57, 141, 0.3);
    color: white;
}

.catalogSearchTop .btn-primary:hover i,
.catalogSearchTop .btn-primary:hover .fas,
.catalogSearchTop .btn-primary:hover .fa {
    color: #ffffff !important;
}

.catalogSearchTop .btn-danger {
    background: white;
    border: 2px solid #dc3545;
    border-radius: 12px;
    color: #dc3545;
    padding: 16px 24px;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    min-width: 60px;
}

.catalogSearchTop .btn-danger:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.catalogSearchBoxDetail {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 2rem;
    border-radius: 18px;
    border: 1px solid rgba(29, 57, 141, 0.1);
    box-shadow: 0 4px 16px rgba(29, 57, 141, 0.06);
    margin-top: 1.5rem;
    transition: all 0.3s ease;
}

.catalogSearchBoxDetail:hover {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 6px 20px rgba(29, 57, 141, 0.1);
}

.catalogSearchBoxDetail .searchInput,
.catalogSearchBoxDetail .form-control,
.catalogSearchBoxDetail .form-select {
    border: 2px solid #d9e2f3;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(29, 57, 141, 0.05);
}

.catalogSearchBoxDetail .searchInput:focus,
.catalogSearchBoxDetail .form-control:focus,
.catalogSearchBoxDetail .form-select:focus {
    border-color: #1D398D;
    box-shadow: 0 0 0 0.2rem rgba(29, 57, 141, 0.1), 0 4px 12px rgba(29, 57, 141, 0.1);
    outline: none;
}

.catalogSearchBoxDetail .form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231D398D' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.catalogSearchBoxDetail .form-select:hover {
    border-color: #1D398D;
    background-color: #f8f9ff;
}

/* Select2 özel stilleri */
.catalogSearchBoxDetail .select2-container {
    width: 100% !important;
    min-width: 280px;
}

.catalogSearchBoxDetail .select2-container--bootstrap-5 .select2-selection {
    border: 2px solid #d9e2f3;
    border-radius: 10px;
    padding: 0;
    min-height: 48px;
    background: white;
    box-shadow: 0 2px 6px rgba(29, 57, 141, 0.05);
}

.catalogSearchBoxDetail .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    padding: 12px 18px;
    line-height: 24px;
    color: #495057;
    font-size: 0.95rem;
    white-space: normal;
    word-wrap: break-word;
    min-height: 24px;
}

.catalogSearchBoxDetail .select2-container--bootstrap-5 .select2-selection--single .select2-selection__placeholder {
    color: #6c757d;
}

.catalogSearchBoxDetail .select2-container--bootstrap-5.select2-container--focus .select2-selection,
.catalogSearchBoxDetail .select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: #1D398D;
    box-shadow: 0 0 0 0.2rem rgba(29, 57, 141, 0.1), 0 4px 12px rgba(29, 57, 141, 0.1);
}

.catalogSearchBoxDetail .select2-dropdown {
    border: 2px solid #1D398D;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(29, 57, 141, 0.15);
    margin-top: 4px;
    min-width: 300px;
    width: 100% !important;
}

.catalogSearchBoxDetail .select2-search--dropdown .select2-search__field {
    border: 2px solid #d9e2f3;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 0.95rem;
    margin: 8px;
    width: calc(100% - 16px);
}

.catalogSearchBoxDetail .select2-search--dropdown .select2-search__field:focus {
    border-color: #1D398D;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(29, 57, 141, 0.1);
}

/* Yazı türleri seçimi için daha geniş alan */
.catalogSearchBoxDetail .type-select-col {
    flex: 0 0 100%;
    max-width: 100%;
}
@media (min-width: 992px) {
    .catalogSearchBoxDetail .type-select-col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

.catalogSearchBoxDetail .select2-results__option {
    padding: 12px 18px;
    font-size: 0.95rem;
    color: #1D398D;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.5;
}

.catalogSearchBoxDetail .select2-results__option--highlighted {
    background: linear-gradient(135deg, #f3f6ff 0%, #e8edff 100%);
    color: #1D398D;
    font-weight: 600;
}

.catalogSearchBoxDetail .select2-results__option[aria-selected=true] {
    background: linear-gradient(135deg, #1D398D 0%, #2d4fa8 100%);
    color: #ffffff;
    font-weight: 600;
}

.catalogSearchBoxDetail .btn-primary {
    background: linear-gradient(135deg, #1D398D 0%, #2d4fa8 100%);
    border: none;
    border-radius: 12px;
    color: white;
    padding: 14px 36px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(29, 57, 141, 0.2);
}

.catalogSearchBoxDetail .btn-primary:hover {
    background: linear-gradient(135deg, #142a6b 0%, #1D398D 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29, 57, 141, 0.3);
    color: white;
}

.catalogSearchBoxDetail .btn-danger {
    background: white;
    border: 2px solid #dc3545;
    border-radius: 12px;
    color: #dc3545;
    padding: 14px 36px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.catalogSearchBoxDetail .btn-danger:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.catalogSearchBox .moreSearch {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #1D398D;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 2rem;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(29, 57, 141, 0.08) 0%, rgba(29, 57, 141, 0.05) 100%);
    border: 2px solid rgba(29, 57, 141, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.catalogSearchBox .moreSearch::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1D398D 0%, #2d4fa8 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.catalogSearchBox .moreSearch:hover {
    color: #ffffff;
    border-color: #1D398D;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 57, 141, 0.2);
}

.catalogSearchBox .moreSearch:hover::before {
    left: 0;
}

.catalogSearchBox .moreSearch i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.catalogSearchBox .moreSearch:hover i {
    transform: rotate(180deg);
}

/* Responsive adjustments for catalog search */
@media (max-width: 767.98px) {
    #catalogSearch {
        padding: 2.5rem 0 !important;
    }
    
    .catalogSearchBox {
        padding: 2rem;
        border-radius: 20px;
    }
    
    #catalogSearch .sectionTitle {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .catalogSearchTop {
        flex-direction: column;
    }
    
    .catalogSearchTop .searchInput {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .catalogSearchTop .btn {
        width: 100%;
    }
    
    .catalogSearchBoxDetail .d-flex {
        flex-direction: column;
    }
    
    .catalogSearchBoxDetail .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .catalogSearchBoxDetail .btn.ms-2 {
        margin-left: 0 !important;
    }
}

/* Publications carousel */
#ourPublications {
    background: linear-gradient(135deg, #f3f6ff 0%, #ffffff 100%);
    overflow: hidden;
    padding: 4rem 0;
}

#publishCarousel .owl-stage-outer {
    padding: 50px 0;
    margin: -50px 0;
    overflow: visible;
}

#publishCarousel .owl-item {
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: scale(0.85);
    opacity: 0.5;
    filter: grayscale(100%);
    z-index: 1;
    margin-top: 15px;
}

.publish-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(29, 57, 141, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #d9e2f3;
    position: relative;
}

.publish-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.publish-card-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

#publishCarousel .owl-item.center .publish-card-link {
    pointer-events: auto;
    cursor: pointer;
}

#publishCarousel .owl-item:not(.center) .publish-card-link {
    pointer-events: none;
    cursor: default;
}

#publishCarousel .owl-item.center {
    transform: scale(1.1);
    opacity: 1;
    filter: grayscale(0%);
    z-index: 100;
    margin-top: 0;
}

#publishCarousel .owl-item.center .publish-card {
    box-shadow: 0 15px 40px rgba(29, 57, 141, 0.2);
    border-color: #1D398D;
}

.item-info {
    padding: 15px;
    background: #fff;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(29, 57, 141, 0.95) 0%, rgba(29, 57, 141, 0.7) 50%, rgba(29, 57, 141, 0) 100%);
    backdrop-filter: blur(5px);
    z-index: 2;
}

.item-info .pub-title {
    color: #fff;
}

.item-info .pub-author {
    color: rgba(255, 255, 255, 0.9);
}

.item-info .badge {
    background: #fff !important;
    color: #1D398D !important;
}

#publishCarousel .owl-item.center .item-info {
    opacity: 1;
    transform: translateY(0);
}

.pub-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1D398D;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.pub-author {
    font-size: 0.85rem;
    color: #7f8c8d;
}

#publishCarousel .owl-nav button.owl-prev,
#publishCarousel .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: #fff !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 15px rgba(29, 57, 141, 0.15) !important;
    color: #1D398D !important;
    font-size: 20px !important;
    transition: all 0.3s ease;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d9e2f3 !important;
}

#publishCarousel .owl-nav button.owl-prev {
    left: -10px;
}

#publishCarousel .owl-nav button.owl-next {
    right: -10px;
}

#publishCarousel .owl-nav button:hover {
    background: #1D398D !important;
    color: #fff !important;
    transform: translateY(-50%) scale(1.1);
    border-color: #1D398D !important;
}

#publishCarousel .owl-dots {
    margin-top: 30px;
    text-align: center;
}

#publishCarousel .owl-dots .owl-dot span {
    width: 10px;
    height: 10px;
    margin: 5px 7px;
    background: #ccc;
    display: block;
    border-radius: 30px;
    transition: all 0.3s ease;
}

#publishCarousel .owl-dots .owl-dot.active span {
    width: 30px;
    background: #1D398D;
}

#publishCarousel .owl-dots .owl-dot span {
    background: #d9e2f3;
}

#publishCarousel .owl-dots .owl-dot:hover span {
    background: #1D398D;
}