/* Container Max-Width Overrides to reduce whitespace on large screens */
@media (min-width: 1200px) {
    .back-blog-page-single .container,
    .back-breadcrumbs .container {
        max-width: 1400px !important;
        width: 95%;
    }
}
@media (min-width: 1400px) {
    .back-blog-page-single .container,
    .back-breadcrumbs .container {
        max-width: 1600px !important;
        width: 95%;
    }
}

.lead-excerpt {
    font-size: 19px;
    line-height: 1.7;
    font-weight: 500;
    color: #1a152e;
    border-left: 4px solid #0088cb;
    padding-left: 20px;
    margin-bottom: 45px;
    font-style: italic;
}
html.back-dark .lead-excerpt {
    color: #f8f8f8;
}
.page-details-text {
    font-size: 16px;
    line-height: 1.8;
}
.page-details-text p {
    margin-bottom: 25px;
}
.page-details-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Gallery Styles */
.page-gallery-section {
    margin-top: 50px;
    border-top: 1px dashed rgba(2, 3, 52, 0.1);
    padding-top: 40px;
}
html.back-dark .page-gallery-section {
    border-top-color: rgba(255, 255, 255, 0.1);
}
.page-gallery-grid {
    margin-top: 30px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #ffffff;
    padding: 6px;
    border: 1px solid rgba(2, 3, 52, 0.08);
    box-shadow: 0 10px 25px rgba(2, 3, 52, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
html.back-dark .gallery-item {
    background: #1e2640;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}
.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 35px rgba(2, 3, 52, 0.15);
    border-color: #0088cb;
}
html.back-dark .gallery-item:hover {
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.5);
    border-color: #0088cb;
}
.gallery-item a.popup-gallery-image {
    display: block;
    position: relative;
}
.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px !important;
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-hover-overlay {
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    background: rgba(0, 136, 203, 0.85); /* theme blue with opacity */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}
.gallery-item:hover .gallery-hover-overlay {
    opacity: 1;
}
.gallery-icon {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: transform 0.3s ease;
}
.gallery-item:hover .gallery-icon {
    transform: scale(1.1);
}
.gallery-item:hover .gallery-icon svg {
    stroke: #ffffff;
}

/* Prominent Team Card Custom Styles */
.team-slider-sayfa .single-team {
    background: #ffffff;
    border-radius: 12px;
    padding: 10px;
    border: 1px solid rgba(2, 3, 52, 0.06);
    box-shadow: 0 10px 25px rgba(2, 3, 52, 0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
html.back-dark .team-slider-sayfa .single-team {
    background: #1e2640;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}
.team-slider-sayfa .single-team:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(2, 3, 52, 0.12);
    border-color: #0088cb;
}
html.back-dark .team-slider-sayfa .single-team:hover {
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.45);
}
.team-slider-sayfa .single-team .team-img img {
    border-radius: 8px !important;
}
.team-slider-sayfa .single-team .team-info {
    margin-top: 20px;
    padding-bottom: 10px;
}
.team-slider-sayfa .single-team .team-info .name {
    font-size: 18px;
    font-weight: 700;
}
html.back-dark .team-slider-sayfa .single-team .team-info .name {
    color: #ffffff;
}
html.back-dark .team-slider-sayfa .single-team .team-info .desgnation {
    color: #a0aec0;
}

/* Sidebar Latest News Widget Styles */
.sayfa-sidebar-news {
    padding-left: 0;
    list-style: none;
    margin: 0;
}
.sayfa-sidebar-news li {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(2, 3, 52, 0.06);
    transition: all 0.3s ease;
}
.sayfa-sidebar-news li:last-child {
    border-bottom: none;
}
.sayfa-sidebar-news li .image-areas {
    flex: 0 0 90px;
    max-width: 90px;
    margin-inline-end: 15px;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}
.sayfa-sidebar-news li .image-areas img {
    width: 100%;
    height: 68px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.sayfa-sidebar-news li:hover .image-areas img {
    transform: scale(1.1);
}
.sayfa-sidebar-news li .back-btm-content {
    flex: 1;
}
.sayfa-sidebar-news li .back-btm-content .back-cates {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    font-family: 'SpartanBold';
    color: #0088cb;
    margin-bottom: 5px;
    font-weight: 700;
}
.sayfa-sidebar-news li .back-btm-content h3 {
    font-size: 14px;
    line-height: 1.4;
    margin: 0 0 5px;
    font-family: 'SpartanSemiBold';
}
.sayfa-sidebar-news li .back-btm-content h3 a {
    color: #1a152e;
    text-decoration: none;
    transition: color 0.2s ease;
}
.sayfa-sidebar-news li .back-btm-content h3 a:hover {
    color: #0088cb;
}
.sayfa-sidebar-news li .back-btm-content ul {
    padding-left: 0;
    list-style: none;
    margin: 0;
}
.sayfa-sidebar-news li .back-btm-content ul li {
    font-size: 12px;
    color: #777;
    padding: 0;
    border-bottom: none;
}
.sayfa-sidebar-news li .back-btm-content ul li svg {
    width: 14px;
    height: 14px;
    margin-inline-end: 4px;
    vertical-align: middle;
}

/* Dark Mode styles for Latest News Widget */
html.back-dark .sayfa-sidebar-news li {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}
html.back-dark .sayfa-sidebar-news li .back-btm-content h3 a {
    color: #ffffff;
}
html.back-dark .sayfa-sidebar-news li .back-btm-content h3 a:hover {
    color: #0088cb;
}
html.back-dark .sayfa-sidebar-news li .back-btm-content ul li {
    color: #a0aec0;
}

