/* Project Details Page - Enhanced & Harmonious Design */
.project-detail-page {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    min-height: 100vh;
}

/* Enhanced Header with Logo */
.project-header {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.12);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-section {
    flex: 1;
}

.logo-link {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-image {
    height: 55px;
    width: auto;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(255, 107, 53, 0.2));
}

.logo-link:hover .logo-image {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 16px rgba(255, 107, 53, 0.3));
}

.header-actions {
    display: flex;
    gap: 20px;
}

.back-to-home {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.25);
}

.back-to-home:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
}

.back-to-home-mobile {
    display: none;
    position: fixed;
    top: 25px;
    left: 25px;
    z-index: 1001;
    padding: 14px 24px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: #ffffff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
}

.back-to-home-mobile:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.4);
}

/* Enhanced Hero Section */
.project-hero {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 50%, #ffa726 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.2);
}

.project-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.project-hero .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.project-status-badge {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.status-completed { 
    background: linear-gradient(135deg, #10b981, #059669);
    color: white; 
}

.status-in_progress { 
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white; 
}

.status-planning { 
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white; 
}

.project-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    color: #ffffff;
}

.project-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
    color: #f8fafc;
    max-width: 600px;
}

.project-meta {
    display: flex;
    gap: 30px;
    margin: 35px 0;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.15);
    padding: 15px 25px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.meta-item:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255,255,255,0.2);
}

.meta-item i {
    font-size: 22px;
    color: #ffffff;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.meta-item span {
    color: #ffffff;
    font-weight: 500;
    font-size: 1rem;
}

/* Enhanced Project Content */
.project-content {
    padding: 100px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.project-details-card {
    background: #ffffff;
    border-radius: 25px;
    padding: 0;
    box-shadow: 0 25px 80px rgba(255, 107, 53, 0.08);
    margin: 60px 0;
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 107, 53, 0.1);
}

.project-details-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 35px 100px rgba(255, 107, 53, 0.15);
    border-color: rgba(255, 107, 53, 0.2);
}

.card-header {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: white;
    padding: 35px 40px;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 30px 30px 0;
    border-color: transparent rgba(255,255,255,0.2) transparent transparent;
}

.card-header h3 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-header i {
    font-size: 1.4rem;
    color: #ffffff;
}

.card-content {
    padding: 40px;
}

/* Enhanced Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    padding: 40px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: linear-gradient(135deg, #fff8e1 0%, #fff3e0 100%);
    border-radius: 18px;
    border-left: 5px solid #ff6b35;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.detail-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(255, 140, 66, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.detail-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(255, 107, 53, 0.15);
    border-left-color: #ff8c42;
}

.detail-item:hover::before {
    opacity: 1;
}

.detail-item.full-width {
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.detail-label {
    font-weight: 600;
    color: #e65100;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-value {
    font-weight: 500;
    color: #bf360c;
    font-size: 16px;
    text-align: right;
}

/* Enhanced Budget Item */
.budget-item {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%) !important;
    border-left: 5px solid #ff6b35 !important;
    position: relative;
    overflow: hidden;
}

.budget-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 25px 25px 0;
    border-color: transparent #ff6b35 transparent transparent;
}

.budget-value {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: #e65100 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.budget-item .detail-label {
    color: #e65100 !important;
    font-weight: 600 !important;
}

/* Enhanced Date Items */
.detail-item:has(.detail-label:contains('Start Date')),
.detail-item:has(.detail-label:contains('End Date')) {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left-color: #ff8c42;
}

.detail-item:has(.detail-label:contains('Start Date')) .detail-label,
.detail-item:has(.detail-label:contains('End Date')) .detail-label {
    color: #e65100;
}

.detail-item:has(.detail-label:contains('Start Date')) .detail-value,
.detail-item:has(.detail-label:contains('End Date')) .detail-value {
    color: #bf360c;
    font-weight: 600;
}

/* Enhanced Attachments Section */
.attachments-section {
    background: linear-gradient(135deg, #fff8e1 0%, #ffe0b2 100%);
    padding: 100px 0;
    margin: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #e65100;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.section-header i {
    color: #ff6b35;
    font-size: 2.2rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #bf360c;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Enhanced Attachments Grid */
.attachments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 35px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.attachment-item {
    background: #ffffff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.1);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 107, 53, 0.1);
}

.attachment-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(255, 107, 53, 0.2);
    border-color: rgba(255, 107, 53, 0.3);
}

.attachment-preview {
    height: 280px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: #ffffff;
}

.attachment-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.attachment-image:hover {
    transform: scale(1.08);
    border-color: #ff8c42;
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.3);
}

.pdf-preview, .file-preview {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: white;
    font-size: 3.5rem;
    transition: all 0.3s ease;
}

.pdf-preview:hover, .file-preview:hover {
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
    transform: scale(1.05);
}

.pdf-preview span, .file-preview span {
    font-size: 1.1rem;
    margin-top: 15px;
    font-weight: 600;
}

.attachment-info {
    padding: 30px;
    background: #ffffff;
}

.attachment-info h5 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #e65100;
    margin-bottom: 18px;
    line-height: 1.4;
}

.file-meta {
    color: #bf360c;
    font-size: 0.95rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Enhanced Image Info */
.image-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ff6b35;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 12px 20px;
    background: linear-gradient(135deg, #fff8e1 0%, #ffe0b2 100%);
    border-radius: 25px;
    border: 2px solid #ffe0b2;
    transition: all 0.3s ease;
}

.image-info:hover {
    background: linear-gradient(135deg, #ffe0b2 0%, #fff8e1 100%);
    border-color: #ff6b35;
    transform: translateY(-2px);
}

.image-info i {
    color: #ff8c42;
    font-size: 1.1rem;
}

/* Enhanced CTA Section */
.cta-section {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain2" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain2)"/></svg>');
    opacity: 0.2;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-content h3 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    color: #ffffff;
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 45px;
    opacity: 0.95;
    line-height: 1.6;
    color: #f8fafc;
}

.cta-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 35px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.btn-primary {
    background: #ffffff;
    border: 2px solid #ffffff;
    color: #ff6b35;
}

.btn-primary:hover {
    background: #ff6b35;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.btn-outline:hover {
    background: #ffffff;
    color: #ff6b35;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255,255,255,0.3);
}

/* Enhanced Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 107, 53, 0.9);
    backdrop-filter: blur(8px);
}

.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 25px;
    border-radius: 25px;
    width: 90%;
    max-width: 900px;
    position: relative;
    animation: modalSlideIn 0.4s ease-out;
    border: 3px solid #ff6b35;
    box-shadow: 0 30px 100px rgba(255, 107, 53, 0.3);
}

.pdf-modal {
    max-width: 1100px;
}

.close {
    color: #bf360c;
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 25px;
    top: 20px;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ff6b35;
}

#modalImage {
    width: 100%;
    height: auto;
    border-radius: 20px;
    border: 3px solid #ffe0b2;
    box-shadow: 0 20px 50px rgba(255, 107, 53, 0.2);
}

#modalCaption {
    text-align: center;
    margin-top: 25px;
    font-weight: 600;
    color: #ff6b35;
    font-size: 1.2rem;
    padding: 20px;
    background: linear-gradient(135deg, #fff8e1 0%, #ffe0b2 100%);
    border-radius: 15px;
    border: 2px solid #ffe0b2;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
    .project-title {
        font-size: 3rem;
    }
    
    .details-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .attachments-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

@media (max-width: 992px) {
    .project-hero {
        padding: 100px 0 70px;
    }
    
    .project-title {
        font-size: 2.5rem;
    }
    
    .project-meta {
        gap: 20px;
    }
    
    .attachments-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .logo-image {
        height: 45px;
    }
    
    .back-to-home {
        display: none;
    }
    
    .back-to-home-mobile {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .project-hero {
        padding: 80px 0 60px;
    }
    
    .project-title {
        font-size: 2.2rem;
    }
    
    .project-subtitle {
        font-size: 1.1rem;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .meta-item {
        width: 100%;
        justify-content: center;
    }
    
    .project-content {
        padding: 70px 0;
    }
    
    .project-details-card {
        margin: 40px 0;
    }
    
    .card-header, .card-content {
        padding: 30px;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 30px;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        text-align: center;
    }
    
    .detail-value {
        text-align: center;
        width: 100%;
    }
    
    .attachments-section {
        padding: 80px 0;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .attachments-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .cta-content h3 {
        font-size: 2.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 350px;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .project-hero {
        padding: 70px 0 50px;
    }
    
    .project-title {
        font-size: 1.9rem;
    }
    
    .project-subtitle {
        font-size: 1rem;
    }
    
    .project-meta {
        gap: 12px;
    }
    
    .meta-item {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .meta-item i {
        font-size: 20px;
    }
    
    .card-header, .card-content {
        padding: 25px;
    }
    
    .details-grid {
        padding: 25px;
        gap: 20px;
    }
    
    .detail-item {
        padding: 20px 25px;
    }
    
    .section-header h2 {
        font-size: 1.9rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
    
    .logo-image {
        height: 40px;
    }
    
    .back-to-home-mobile {
        top: 20px;
        left: 20px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* Enhanced RTL Support */
[dir="rtl"] .back-to-home {
    left: auto;
    right: 30px;
}

[dir="rtl"] .back-to-home:hover {
    transform: translateX(8px);
}

[dir="rtl"] .back-to-home i {
    margin-right: 0;
    margin-left: 10px;
}

[dir="rtl"] .detail-value {
    text-align: left;
}

[dir="rtl"] .meta-item i {
    margin-left: 12px;
    margin-right: 0;
}

[dir="rtl"] .detail-item {
    border-left: none;
    border-right: 5px solid #ff6b35;
}

[dir="rtl"] .detail-item:hover {
    transform: translateX(-5px);
}

[dir="rtl"] .budget-item::before {
    right: auto;
    left: 0;
    border-width: 0 0 25px 25px;
    border-color: transparent transparent transparent #ff6b35;
}

/* Enhanced Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #fff8e1 25%, #ffe0b2 50%, #fff8e1 75%);
    background-size: 200% 100%;
    animation: loading 2s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Enhanced Custom Scrollbar */
.project-detail-page::-webkit-scrollbar {
    width: 10px;
}

.project-detail-page::-webkit-scrollbar-track {
    background: #fff8e1;
}

.project-detail-page::-webkit-scrollbar-thumb {
    background: #ff6b35;
    border-radius: 5px;
}

.project-detail-page::-webkit-scrollbar-thumb:hover {
    background: #ff8c42;
}

/* Enhanced Attachments Gallery */
.attachments-gallery {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-container {
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    box-shadow: 0 25px 80px rgba(255, 107, 53, 0.15);
    background: #ffffff;
    border: 2px solid rgba(255, 107, 53, 0.1);
}

.gallery-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.gallery-item {
    min-width: 100%;
    flex-shrink: 0;
    background: #ffffff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.1);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 107, 53, 0.1);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(255, 107, 53, 0.2);
    border-color: rgba(255, 107, 53, 0.3);
}

/* Gallery Navigation Controls */
.gallery-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding: 0 20px;
}

.nav-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.25);
    font-size: 1.2rem;
}

.nav-btn:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: scale(0.9);
}

.nav-btn i {
    color: #ffffff;
    font-size: 1.3rem;
}

/* Gallery Indicators */
.gallery-indicators {
    display: flex;
    gap: 12px;
    align-items: center;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.3);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    background: rgba(255, 107, 53, 0.6);
    transform: scale(1.2);
}

.indicator.active {
    background: #ff6b35;
    border-color: #ff8c42;
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
}

/* Gallery Info */
.gallery-info {
    text-align: center;
    margin-top: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #e65100;
}

.current-slide {
    color: #ff6b35;
    font-weight: 700;
}

.separator {
    margin: 0 8px;
    color: #bf360c;
}

.total-slides {
    color: #bf360c;
}

/* Enhanced Attachment Preview in Gallery */
.gallery-item .attachment-preview {
    height: 350px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: #ffffff;
}

.gallery-item .attachment-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.gallery-item .attachment-image:hover {
    transform: scale(1.05);
    border-color: #ff8c42;
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.3);
}

.gallery-item .pdf-preview,
.gallery-item .file-preview {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: white;
    font-size: 4rem;
    transition: all 0.3s ease;
}

.gallery-item .pdf-preview:hover,
.gallery-item .file-preview:hover {
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
    transform: scale(1.05);
}

.gallery-item .pdf-preview span,
.gallery-item .file-preview span {
    font-size: 1.2rem;
    margin-top: 20px;
    font-weight: 600;
}

.gallery-item .attachment-info {
    padding: 30px;
    background: #ffffff;
}

.gallery-item .attachment-info h5 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #e65100;
    margin-bottom: 20px;
    line-height: 1.4;
}

.gallery-item .file-meta {
    color: #bf360c;
    font-size: 1rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Responsive Gallery Design */
@media (max-width: 1200px) {
    .gallery-item .attachment-preview {
        height: 320px;
    }
}

@media (max-width: 992px) {
    .gallery-item .attachment-preview {
        height: 300px;
    }
    
    .gallery-controls {
        margin-top: 25px;
    }
    
    .nav-btn {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 768px) {
    .gallery-item .attachment-preview {
        height: 280px;
    }
    
    .gallery-controls {
        flex-direction: column;
        gap: 20px;
        margin-top: 20px;
    }
    
    .nav-btn {
        width: 50px;
        height: 50px;
    }
    
    .gallery-indicators {
        order: -1;
    }
    
    .gallery-info {
        margin-top: 15px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .gallery-item .attachment-preview {
        height: 250px;
    }
    
    .gallery-item .attachment-info {
        padding: 25px;
    }
    
    .gallery-item .attachment-info h5 {
        font-size: 1.2rem;
    }
    
    .nav-btn {
        width: 45px;
        height: 45px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

/* RTL Support for Gallery */
[dir="rtl"] .nav-btn.prev-btn i {
    transform: scaleX(-1);
}

[dir="rtl"] .nav-btn.next-btn i {
    transform: scaleX(-1);
}

[dir="rtl"] .gallery-track {
    flex-direction: row-reverse;
}

/* Gallery Loading States */
.gallery-container.loading {
    position: relative;
}

.gallery-container.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #fff8e1 25%, #ffe0b2 50%, #fff8e1 75%);
    background-size: 200% 100%;
    animation: loading 2s infinite;
    border-radius: 25px;
}

/* Gallery Animation Enhancements */
.gallery-item {
    animation: fadeInSlide 0.6s ease-out;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gallery Hover Effects */
.gallery-container:hover .gallery-controls {
    opacity: 1;
}

.gallery-controls {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* Enhanced Touch Support */
.gallery-container {
    touch-action: pan-y pinch-zoom;
}

/* Gallery Focus States */
.nav-btn:focus,
.indicator:focus {
    outline: 3px solid #ff8c42;
    outline-offset: 2px;
}

/* Gallery Accessibility */
.nav-btn[aria-label] {
    position: relative;
}

.nav-btn[aria-label]::after {
    content: attr(aria-label);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.nav-btn[aria-label]:hover::after {
    opacity: 1;
}
