.content-section {
    padding-top: 60px;
padding-bottom: 90px;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-text {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 60px;
    line-height: 1.8;
    font-size: 1.1rem;
    text-align: center;
}

.content-text-full {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 60px;
    line-height: 1.8;
    font-size: 1.1rem;
}

.content-text-full img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
}

.content-text-full h3 {
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 700;
    margin: 30px 0 20px 0;
}

.content-text-full h4 {
    color: #2c3e50;
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-text-full ul, .content-text-full ol {
    margin: 20px 0;
    padding-left: 30px;
}

.content-text-full li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.content-text img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
}

.content-text h3 {
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 700;
    margin: 30px 0 20px 0;
}

.content-text h4 {
    color: #2c3e50;
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-text ul, .content-text ol {
    margin: 20px 0;
    padding-left: 30px;
}

.content-text li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Gallery Styles */
.gallery-section {
    margin-top: 40px;
}

.gallery-header {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 15px 0;
    position: relative;
}

.gallery-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    border-radius: 2px;
}

.gallery-grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

/* Grid Layout Options */
.gallery-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.gallery-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.gallery-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.gallery-grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

.gallery-grid-6 {
    grid-template-columns: repeat(6, 1fr);
}

/* Default fallback */
.gallery-grid:not([class*="gallery-grid-"]) {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.gallery-item-modern {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-item-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #e74c3c;
}

.gallery-item-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 250px;
}

.gallery-item-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    display: block;
}


.gallery-overlay i {
    color: white;
    font-size: 1.5rem;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

/* Gallery Overlay Logo - Home sayfasındaki category-block ile uyumlu */
.overlay-logo {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    border-radius: 12px;
}

.overlay-logo .hover-logo {
    max-width: 120px;
    max-height: 120px;
    width: auto;
    height: auto;
    opacity: 0;
    transition: all 0.3s ease;
    transform: scale(0.8);
}

.gallery-item-container:hover .overlay-logo .hover-logo,
.category-block:hover .overlay-logo .hover-logo {
    opacity: 1;
    transform: scale(1);
}

/* Gallery overlay background - Resmi tam kaplayacak şekilde */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1;
    border-radius: 12px;
}

.gallery-item-container:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item-container:hover .gallery-overlay i {
    transform: scale(1);
}

.gallery-item-container:hover img {
    transform: scale(1.05);
}

.image-title-bottom {
    padding: 15px;
    text-align: center;
}

.image-title-bottom h6 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: #7f8c8d;
}

.no-images {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.no-images i {
    font-size: 4rem;
    color: #bdc3c7;
    margin-bottom: 20px;
    display: block;
}

.no-images p {
    color: #7f8c8d;
    font-size: 1.2rem;
    margin: 0;
}

/* Files Section Styles */
.files-section {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 60px;
}

.files-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.download-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.download-list li {
    margin-bottom: 15px;
}

.download-link {
    display: inline-flex;
    align-items: center;
    padding: 15px 25px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.download-link:hover {
    background: #3498db;
    color: white;
    transform: translateX(5px);
}

.download-link i {
    margin-right: 15px;
    font-size: 1.2rem;
}

.file-item {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.file-item:hover {
    border-color: #3498db;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.15);
    transform: translateY(-2px);
}

.file-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.file-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.file-icon i {
    color: white;
    font-size: 1.5rem;
}

.file-details h5 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
}

.file-details p {
    margin: 0 0 8px 0;
    color: #7f8c8d;
    font-size: 0.95rem;
}

.file-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #95a5a6;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f4e79);
    transform: scale(1.05);
    color: white;
}

.no-files {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.no-files i {
    font-size: 4rem;
    color: #bdc3c7;
    margin-bottom: 20px;
    display: block;
}

.no-files p {
    color: #7f8c8d;
    font-size: 1.2rem;
    margin: 0;
}

/* Related Pages Styles */
.related-pages-section {
    margin-top: 80px;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.related-header {
    text-align: center;
    margin-bottom: 40px;
}

.related-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    position: relative;
}

.related-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    border-radius: 2px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.related-page-item {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.related-page-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #27ae60;
}

.related-image {
    height: 180px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.related-page-item:hover .related-image img {
    transform: scale(1.05);
}

.related-content {
    padding: 20px;
}

.related-content h5 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
}

.related-content p {
    margin: 0 0 15px 0;
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.5;
}

.related-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #27ae60;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.related-link:hover {
    color: #2ecc71;
    transform: translateX(3px);
}

.related-link i {
    font-size: 0.8rem;
}

/* Iframe Styles */
.iframe-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    min-height: 400px;
}

.iframe-container iframe {
    display: block;
    border: none;
    width: 100%;
}

.no-content {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.no-content i {
    font-size: 3rem;
    color: #bdc3c7;
    margin-bottom: 20px;
    display: block;
}

.no-content p {
    color: #7f8c8d;
    font-size: 1.2rem;
    margin: 0;
}

/* Sidebar Files Widget */
.files-widget {
    margin-bottom: 30px;
}

.files-widget .widget-content {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.files-widget .sidebar-title {
    background: linear-gradient(135deg, #3498db, #2980b9);
    padding: 20px;
    margin: 0;
}

.files-widget .sidebar-title h4 {
    color: white;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

.files-widget .files-list {
    padding: 0;
}

.file-item-sidebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.file-item-sidebar:last-child {
    border-bottom: none;
}

.file-item-sidebar:hover {
    background: #f8f9fa;
}

.file-item-sidebar .file-info {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.file-item-sidebar .file-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.file-item-sidebar .file-icon i {
    color: white;
    font-size: 1.2rem;
}

.file-item-sidebar .file-details {
    flex: 1;
    min-width: 0;
}

.file-item-sidebar .file-details h6 {
    margin: 0 0 4px 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.file-item-sidebar .file-meta {
    font-size: 0.75rem;
    color: #7f8c8d;
    font-weight: 500;
}

.download-btn-small {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.download-btn-small:hover {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    transform: scale(1.1);
    color: white;
}

.download-btn-small i {
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .content-section {
        padding: 60px 0;
    }
    
    .content-text, .gallery-section, .files-section, .related-pages-section {
        padding: 25px;
        margin-bottom: 40px;
    }
    
    .content-text img {
        height: 250px;
    }
    
    .content-text h3 {
        font-size: 1.5rem;
    }
    
    .gallery-grid, .related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-item-container img {
        height: 180px;
    }
    
    .gallery-title, .related-title {
        font-size: 1.5rem;
    }
    
    .related-image {
        height: 150px;
    }
    
    .file-item {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .file-info {
        flex-direction: column;
        text-align: center;
    }
    
    .file-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .iframe-container iframe {
        height: 500px !important;
    }
    
    .file-item-sidebar {
        padding: 12px 15px;
    }
    
    .file-item-sidebar .file-icon {
        width: 35px;
        height: 35px;
        margin-right: 10px;
    }
    
    .file-item-sidebar .file-icon i {
        font-size: 1rem;
    }
    
    .file-item-sidebar .file-details h6 {
        font-size: 0.85rem;
    }
    
    .file-item-sidebar .file-meta {
        font-size: 0.7rem;
    }
    
    .download-btn-small {
        width: 30px;
        height: 30px;
    }
    
    .download-btn-small i {
        font-size: 0.8rem;
    }
    
    .files-widget .sidebar-title {
        padding: 15px;
    }
    
    .files-widget .sidebar-title h4 {
        font-size: 1rem;
    }
}


.files-section {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.files-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.files-list {
    display: grid;
    gap: 20px;
}

.file-item {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.file-item:hover {
    border-color: #3498db;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.15);
    transform: translateY(-2px);
}

.file-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.file-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.file-icon i {
    color: white;
    font-size: 1.5rem;
}

.file-details h5 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
}

.file-details p {
    margin: 0 0 8px 0;
    color: #7f8c8d;
    font-size: 0.95rem;
}

.file-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #95a5a6;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f4e79);
    transform: scale(1.05);
    color: white;
}

.no-files {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.no-files i {
    font-size: 4rem;
    color: #bdc3c7;
    margin-bottom: 20px;
    display: block;
}

.no-files p {
    color: #7f8c8d;
    font-size: 1.2rem;
    margin: 0;
}

@media (max-width: 768px) {
    .content-section {
        padding: 60px 0;
    }
    
    .content-text, .gallery-section, .files-section, .related-pages-section {
        padding: 25px;
        margin-bottom: 40px;
    }
    
    .content-text img {
        height: 250px;
    }
    
    .content-text h3 {
        font-size: 1.5rem;
    }
    
    .gallery-grid, .related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-item-container img {
        height: 220px;
    }
    
    .gallery-title, .related-title {
        font-size: 1.8rem;
    }
    
    .related-image {
        height: 150px;
    }
    
    .file-item {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .file-info {
        flex-direction: column;
        text-align: center;
    }
    
    .file-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .iframe-container iframe {
        height: 500px !important;
    }
    
    .file-item-sidebar {
        padding: 12px 15px;
    }
    
    .file-item-sidebar .file-icon {
        width: 35px;
        height: 35px;
        margin-right: 10px;
    }
    
    .file-item-sidebar .file-icon i {
        font-size: 1rem;
    }
    
    .file-item-sidebar .file-details h6 {
        font-size: 0.85rem;
    }
    
    .file-item-sidebar .file-meta {
        font-size: 0.7rem;
    }
    
    .download-btn-small {
        width: 30px;
        height: 30px;
    }
    
    .download-btn-small i {
        font-size: 0.8rem;
    }
    
    .files-widget .sidebar-title {
        padding: 15px;
    }
    
    .files-widget .sidebar-title h4 {
        font-size: 1rem;
    }
}

.related-pages-section {
    margin-top: 80px;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.related-header {
    text-align: center;
    margin-bottom: 40px;
}

.related-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    position: relative;
}

.related-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    border-radius: 2px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.related-page-item {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.related-page-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #27ae60;
}

.related-image {
    height: 180px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.related-page-item:hover .related-image img {
    transform: scale(1.05);
}

.related-content {
    padding: 20px;
}

.related-content h5 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
}

.related-content p {
    margin: 0 0 15px 0;
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.5;
}

.related-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #27ae60;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.related-link:hover {
    color: #2ecc71;
    transform: translateX(3px);
}

.related-link i {
    font-size: 0.8rem;
}

/* Quill Editor Content Styles for Frontend */
.ql-align-center {
	text-align: center !important;
}

.ql-align-left {
	text-align: left !important;
}

.ql-align-right {
	text-align: right !important;
}

.ql-align-justify {
	text-align: justify !important;
}

/* Content styling for better readability */
.content-box .text p {
	margin-bottom: 15px;
	line-height: 1.6;
}

.content-box .text h1,
.content-box .text h2,
.content-box .text h3,
.content-box .text h4,
.content-box .text h5,
.content-box .text h6 {
	margin-bottom: 15px;
	margin-top: 25px;
}

.content-box .text h1:first-child,
.content-box .text h2:first-child,
.content-box .text h3:first-child,
.content-box .text h4:first-child,
.content-box .text h5:first-child,
.content-box .text h6:first-child,
.content-box .text p:first-child {
	margin-top: 0;
}

.category-block {
	margin-bottom: 30px;
}

.category-block .inner-box {
	position: relative;
	background: #ffffff;
	box-shadow: 0 0 30px rgba(0,0,0,0.08);
	transition: all 0.3s ease;
	border-radius: 8px;
	overflow: hidden;
}

.category-block .inner-box:hover {
	box-shadow: 0 10px 40px rgba(0,0,0,0.15);
	transform: translateY(-5px);
}

.category-block .image-box {
	position: relative;
	overflow: hidden;
	height: 280px;
	border: none;
	outline: none;
}

.category-block .image-box img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: all 0.3s ease;
	border: none;
	outline: none;
}

.category-block .image-box:hover img {
	transform: scale(1);
}

.category-block .overlay-logo {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	background: rgba(50, 50, 50, 0.85);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: all 0.4s ease;
	border: none;
	outline: none;
	z-index: 2;
}

.category-block .image-box:hover .overlay-logo {
	opacity: 1;
}

.category-block .overlay-logo a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 60px;
}

.category-block .overlay-logo .hover-logo {
	max-width: 200px;
	width: auto;
	height: auto;
	object-fit: contain;
	transform: scale(0.8);
	transition: all 0.4s ease;
}

.category-block .image-box:hover .overlay-logo .hover-logo {
	transform: scale(1);
}

.category-block .lower-content {
	padding: 15px 20px;
	background: #ffffff;
	display: flex;
	flex-direction: column;
}

.category-block .lower-content h4 {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 8px;
	line-height: 1.3em;
}

.category-block .lower-content h4 a {
	color: #222222;
	transition: all 0.3s ease;
}

.category-block .lower-content h4 a:hover {
	color: #ff6600;
}

.category-block .lower-content .text {
	font-size: 15px;
	line-height: 1.7em;
	color: #666666;
	margin-bottom: 15px;
	min-height: 50px;
	flex-grow: 1;
}

.category-block .lower-content .read-more {
	color: #ff6600;
	font-weight: 600;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: all 0.3s ease;
}

.category-block .lower-content .read-more:hover {
	color: #222222;
}

.category-block .lower-content .read-more i {
	margin-left: 5px;
	transition: all 0.3s ease;
}

.category-block .lower-content .read-more:hover i {
	margin-left: 10px;
}


.related-header {
    text-align: center;
    margin-bottom: 40px;
}

.related-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    position: relative;
}

.related-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    border-radius: 2px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.related-page-item {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.related-page-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #27ae60;
}

.related-image {
    height: 180px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.related-page-item:hover .related-image img {
    transform: scale(1.05);
}

.related-content {
    padding: 20px;
}

.related-content h5 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
}

.related-content p {
    margin: 0 0 15px 0;
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.5;
}

.related-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #27ae60;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.related-link:hover {
    color: #2ecc71;
    transform: translateX(3px);
}

.related-link i {
    font-size: 0.8rem;
}

/* Gallery Slider Styles */
.gallery-slider-container {
    position: relative;
    margin-top: 40px;
}

.gallery-slider .owl-stage-outer {
    padding: 20px 0;
}

.gallery-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.gallery-prev, .gallery-next {
    width: 50px;
    height: 50px;
    border: none;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.gallery-prev:hover, .gallery-next:hover {
    background: linear-gradient(135deg, #2980b9, #1f4e79);
    transform: scale(1.1);
}

.gallery-dots {
    display: flex;
    gap: 10px;
}

.gallery-dot {
    width: 40px;
    height: 40px;
    border: 2px solid #3498db;
    background: white;
    color: #3498db;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.gallery-dot.active {
    background: #3498db;
    color: white;
    transform: scale(1.1);
}

.gallery-dot:hover {
    background: #3498db;
    color: white;
}

.gallery-slide .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* Gallery Item Hover Effects */
.gallery-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.gallery-item:hover .gallery-img {
	transform: scale(1.1);
}
.gallery-item:hover .overlay {
	opacity: 1;
}

/* Paginated Gallery Styles */
.gallery-paginated {
    position: relative;
}

.gallery-load-more {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.load-more-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.load-more-btn i {
    font-size: 1.2rem;
}

.gallery-item-modern[style*="opacity: 0"] {
    animation: fadeInUp 0.3s ease forwards;
}

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

/* Loading animation for new images */
.gallery-item-modern.loading {
    opacity: 0.5;
    position: relative;
}

.gallery-item-modern.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Responsive for Gallery Slider */
@media (max-width: 768px) {
    .gallery-nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .gallery-dots {
        order: -1;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .gallery-prev, .gallery-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .gallery-dot {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .gallery-slide .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    /* Mobile responsive for grid layouts */
    .gallery-grid-2, .gallery-grid-3, .gallery-grid-4, .gallery-grid-5, .gallery-grid-6 {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .load-more-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .gallery-load-more {
        margin-top: 30px;
        padding: 15px;
    }
}

/* Related Pages Slider Widget */
.related-pages-section {
    position: relative;
}

.related-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

.related-title {
    margin: 0;
    flex: 1;
}

.related-pages-slider-container {
    position: relative;
    margin-top: 0;
}

.related-pages-slider {
    margin-bottom: 0;
}

.related-pages-slider .owl-stage-outer {
    margin-bottom: 0 !important;
}

.related-pages-slider .owl-stage {
    margin-bottom: 0 !important;
}

.related-pages-slider .related-page-item {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    margin: 0 10px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.related-pages-slider .related-page-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.related-pages-slider .related-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-pages-slider .related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #bdc3c7;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.related-image-placeholder i {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.related-image-placeholder span {
    font-size: 14px;
    color: #95a5a6;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.related-pages-nav {
    display: flex;
    gap: 10px;
    margin-top: 0;
    position: absolute;
    top: 0;
    right: 0;
}

.related-pages-prev,
.related-pages-next {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.related-pages-prev:hover,
.related-pages-next:hover {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.related-pages-prev:active,
.related-pages-next:active {
    transform: scale(0.95);
}

.related-pages-prev:disabled,
.related-pages-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 768px) {
    .related-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .related-pages-nav {
        position: static;
        align-self: flex-end;
    }
    
    .related-pages-prev,
    .related-pages-next {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .related-pages-slider .related-image {
        height: 180px;
    }
}

.project-section-two:before {
    display: none !important;
}
