a.carousel-item-link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

a.carousel-item-link:hover {
    color: inherit;
    text-decoration: none;
}

a.single-history-content.carousel-item-link:hover .text-box .inner .title h3,
a.single-testimonial-style3.carousel-item-link:hover .text-box p {
    opacity: 0.85;
}

.detail-page-area {
    padding: 60px 0 80px;
}

.detail-content-box {
    max-width: 900px;
    margin: 0 auto;
}

.detail-image {
    margin-bottom: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 4px;
}

.detail-image img {
    max-width: 100%;
    max-height: 420px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

.detail-meta {
    margin-bottom: 15px;
}

.detail-date {
    display: inline-block;
    font-size: 18px;
    font-weight: 600;
    color: #c65050;
}

.detail-title {
    font-size: 28px;
    line-height: 1.4;
    margin-bottom: 20px;
    color: #27282c;
}

.detail-org {
    font-size: 18px;
    color: #525252;
    margin-bottom: 25px;
}

.detail-text {
    font-size: 17px;
    line-height: 1.8;
    color: #525252;
}

.detail-text p {
    margin-bottom: 15px;
}

.detail-back-link {
    margin-top: 50px;
}

.detail-not-found {
    text-align: center;
    font-size: 18px;
    padding: 40px 0;
}

.about-page-area {
    padding-top: 70px;
    padding-bottom: 90px;
}

.about-page-area .container {
    max-width: 1040px;
}

.projects-page-area {
    padding: 50px 0 80px;
}

.projects-list-grid {
    margin-top: 20px;
}

.project-list-card {
    display: block;
    height: 100%;
    margin-bottom: 30px;
    color: inherit;
    text-decoration: none;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 4px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.project-list-card:hover {
    color: inherit;
    text-decoration: none;
    border-color: #c65050;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.project-list-card-inner {
    padding: 28px 30px;
}

.project-list-period {
    font-size: 16px;
    font-weight: 600;
    color: #c65050;
    margin-bottom: 12px;
}

.project-list-title {
    font-size: 20px;
    line-height: 1.45;
    color: #27282c;
    margin-bottom: 12px;
}

.project-list-org {
    font-size: 16px;
    line-height: 1.6;
    color: #525252;
    margin: 0;
}

.books-page-area {
    padding: 50px 0 80px;
}

.books-page-area .books-intro-text {
    max-width: 900px;
    margin: 0 auto 30px;
    font-size: 17px;
    line-height: 1.8;
    color: #525252;
}

.books-list-grid {
    margin-top: 20px;
}

.book-list-card {
    display: block;
    height: 100%;
    margin-bottom: 30px;
    color: inherit;
    text-decoration: none;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.book-list-card:hover {
    color: inherit;
    text-decoration: none;
    border-color: #c65050;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.book-list-image {
    background: #f5f5f5;
    text-align: center;
    height: 280px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.book-list-image img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

.history-carousel {
    --history-slide-height: 450px;
}

.history-carousel .owl-item {
    display: flex;
}

.history-carousel .owl-item > .carousel-item-link,
.single-history-content.carousel-item-link {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: var(--history-slide-height);
    min-height: var(--history-slide-height);
    max-height: var(--history-slide-height);
    overflow: hidden;
}

.single-history-content .img-box {
    float: none;
    flex: 0 0 50%;
    width: 50%;
    height: var(--history-slide-height);
    min-height: var(--history-slide-height);
    max-height: var(--history-slide-height);
    overflow: hidden;
}

.single-history-content .img-box .inner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 0;
    padding-right: 15px;
    background: #f5f5f5;
    box-sizing: border-box;
}

.single-history-content .img-box .inner img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.single-history-content .text-box {
    float: none;
    flex: 0 0 50%;
    width: 50%;
    height: var(--history-slide-height);
    min-height: var(--history-slide-height);
    max-height: var(--history-slide-height);
    overflow: hidden;
    box-sizing: border-box;
}

.single-history-content .text-box .inner {
    height: 100%;
    padding-top: 30px;
    padding-right: 50px;
    padding-bottom: 24px;
    overflow: visible;
    box-sizing: border-box;
}

@media only screen and (max-width: 991px) {
    .history-carousel {
        --history-slide-height: auto;
    }

    .history-carousel .owl-item {
        display: block;
    }

    .single-history-content.carousel-item-link {
        display: block;
        height: auto;
        min-height: 0;
        max-height: none;
    }

    .single-history-content .img-box,
    .single-history-content .text-box {
        flex: none;
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
    }

    .single-history-content .img-box .inner {
        height: 320px;
    }

    .single-history-content .text-box .inner {
        height: auto;
        overflow-y: visible;
        padding-bottom: 50px;
    }
}

.book-list-image-placeholder span {
    font-size: 48px;
    color: #ccc;
}

.book-list-card-inner {
    padding: 22px 24px 28px;
}

.book-list-year {
    font-size: 15px;
    font-weight: 600;
    color: #c65050;
    margin-bottom: 10px;
}

.book-list-title {
    font-size: 18px;
    line-height: 1.45;
    color: #27282c;
    margin-bottom: 10px;
}

.book-list-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #525252;
    margin: 0;
}

.about-page-header {
    margin-bottom: 50px;
}

.about-page-header .sec-title {
    max-width: 100%;
    margin: 0 auto;
    padding-bottom: 0;
}

.about-page-header .sec-title .title {
    font-size: 36px;
    line-height: 1.25;
}

.about-intro-cards {
    margin-bottom: 50px;
}

.about-intro-card {
    height: 100%;
    background: #fff;
    border: 1px solid #ebebeb;
    border-top: 3px solid #c65050;
    border-radius: 4px;
    padding: 28px 30px 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.about-intro-card__label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #c65050;
    margin-bottom: 14px;
}

.about-intro-card p {
    margin: 0;
    font-size: 17px;
    line-height: 1.8;
    color: #525252;
}

.about-section {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 6px;
    padding: 36px 40px 40px;
    margin-bottom: 36px;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.05);
}

.about-section__header {
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid #ebebeb;
}

.about-subheading {
    font-size: 24px;
    line-height: 1.35;
    color: #27282c;
    margin: 0 0 10px;
    font-weight: 600;
    padding-left: 16px;
    border-left: 4px solid #c65050;
}

.about-list-intro,
.about-section__lead {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #757575;
}

.about-list-intro {
    font-style: italic;
}

.about-content-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.about-content-list a {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.about-content-list a:hover {
    color: #c65050;
}

.about-section--projects .about-content-list li:has(a:hover),
.about-content-list--check li:has(a:hover) {
    border-color: #c65050;
}

.about-section--projects .about-content-list li {
    position: relative;
    padding: 0;
    margin-bottom: 10px;
    line-height: 1.7;
    font-size: 16px;
    color: #525252;
    background: #fafafa;
    border-radius: 4px;
    border: 1px solid #f0f0f0;
}

.about-section--projects .about-content-list li a {
    padding: 16px 18px 16px 28px;
    margin: 0;
}

.about-section--projects .about-content-list li:last-child {
    margin-bottom: 0;
}

.about-section--projects .about-content-list li::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 22px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c65050;
}

.about-content-list--check {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 32px;
}

.about-content-list--check li {
    position: relative;
    padding: 0;
    margin: 0;
    line-height: 1.65;
    font-size: 16px;
    color: #525252;
    background: #fafafa;
    border-radius: 4px;
    border: 1px solid #f0f0f0;
}

.about-content-list--check li a {
    padding: 12px 12px 12px 2em;
    margin: 0;
}

.about-content-list--check li:not(:has(a)) {
    padding: 12px 12px 12px 2em;
}

.about-content-list--check li::before {
    content: "\2713";
    position: absolute;
    left: 12px;
    top: 12px;
    color: #c65050;
    font-weight: 700;
    font-size: 1em;
    line-height: 1.65;
}

.about-closing-banner {
    margin-top: 10px;
    padding: 32px 24px;
    background: #27282c;
    border-radius: 6px;
}

.about-closing-banner p {
    margin: 0;
    font-size: 20px;
    letter-spacing: 0.02em;
    color: #fff;
}

.about-closing-banner strong {
    font-weight: 600;
}

@media only screen and (max-width: 991px) {
    .about-section {
        padding: 28px 24px 32px;
    }

    .about-content-list--check {
        grid-template-columns: 1fr;
    }
}

@media only screen and (max-width: 767px) {
    .about-page-header .sec-title .title {
        font-size: 28px;
    }

    .about-intro-cards .col-md-6 + .col-md-6 {
        margin-top: 20px;
    }

    .about-section {
        padding: 24px 18px 28px;
    }

    .about-subheading {
        font-size: 20px;
    }
}

.contact-address-area {
    padding: 60px 0 80px;
}

.single-contact-address-box p a {
    color: inherit;
    text-decoration: none;
}

.single-contact-address-box p a:hover {
    color: #c65050;
}

.breadcrumb-menu #detail-breadcrumb-active {
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Projects carousel (home) */
.project-carousel-text {
    color: #525252;
    font-size: 20px;
    line-height: 1.55;
    margin: 0;
}

.testimonial-style3-service-page .single-testimonial-style3 .inner-content {
    min-height: 0;
}

/* Site responsive — detail & list pages */
@media only screen and (max-width: 991px) {
    .books-page-area,
    .projects-page-area,
    .about-page-area,
    .detail-page-area {
        padding-top: 50px;
        padding-bottom: 60px;
    }

    .contact-address-area {
        padding-top: 40px;
        padding-bottom: 60px;
    }
}

@media only screen and (max-width: 767px) {
    .single-contact-address-box {
        margin-top: -40px;
        margin-bottom: 24px;
        padding: 32px 22px 28px;
    }

    .contact-address-area .row > [class*="col-"] {
        margin-bottom: 0;
    }

    .detail-title {
        font-size: 22px;
        line-height: 1.35;
    }

    .detail-text,
    .detail-org {
        font-size: 16px;
    }

    .book-list-image {
        height: 220px;
    }

    .book-list-card-inner,
    .project-list-card-inner {
        padding: 20px 18px 24px;
    }

    .book-list-title,
    .project-list-title {
        font-size: 17px;
    }

    .project-carousel-text {
        font-size: 16px;
        line-height: 1.6;
    }

    .testimonial-style3-service-page .single-testimonial-style3 .inner-content {
        padding: 28px 20px 36px;
    }

    .testimonial-style3-service-page .single-testimonial-style3 .inner-content:before {
        font-size: 72px;
        line-height: 60px;
        right: 16px;
        bottom: 20px;
    }

    .testimonial-style3-service-page .sec-title {
        padding-bottom: 28px;
    }

    .testimonial-style3-service-page .owl-carousel .owl-nav {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        margin: 20px auto 0;
        width: 200px;
    }

    .testimonial-style3-service-page .owl-carousel .owl-nav .owl-prev,
    .testimonial-style3-service-page .owl-carousel .owl-nav .owl-next {
        position: relative;
        left: auto;
        right: auto;
        margin: 0 5px;
        display: inline-block;
    }

    .single-history-content .img-box .inner {
        height: 280px;
        max-height: 280px;
    }

    .single-history-content .text-box .inner {
        padding: 24px 20px 32px;
    }

    .single-history-content .text-box .inner .title h3 {
        font-size: 18px;
        line-height: 1.4;
    }

    .single-history-content .text-box .inner .text p {
        font-size: 15px;
        line-height: 1.65;
        margin-bottom: 0;
    }

    .about-closing-banner {
        padding: 24px 18px;
    }

    .about-closing-banner p {
        font-size: 17px;
    }

    .about-page-header .sec-title .title {
        font-size: 28px;
    }
}

@media only screen and (max-width: 479px) {
    .detail-image {
        min-height: 200px;
        padding: 14px;
    }

    .detail-image img {
        max-height: 320px;
    }

    .book-list-image {
        height: 200px;
    }

    .about-subheading {
        font-size: 18px;
    }

    .about-section {
        padding: 20px 14px 24px;
    }
}
