.projects-hero {
    background-color: #f5f5f5;
    padding: 60px 0;
    text-align: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../projects/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    color: #333;
}

.page-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #C24914;
    margin: 15px auto 0;
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-top: 15px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.projects-filter {
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 80px;
    z-index: 100;
}

.filter-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-container h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    background-color: #f5f5f5;
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    color: #555;
}

.filter-btn:hover {
    background-color: #e0e0e0;
}

.filter-btn.active {
    background-color: #C24914;
    color: white;
}

.projects-grid-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.project-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-item:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-category {
    background-color: #C24914;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.view-project {
    background-color: white;
    color: #333;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.view-project:hover {
    background-color: #f0f0f0;
}

.project-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    font-size: 1.3rem;
    margin: 0 0 10px;
    color: #333;
}

.project-info p {
    color: #666;
    margin: 0 0 15px;
    flex-grow: 1;
    line-height: 1.5;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #888;
    margin-top: auto;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.project-author, .project-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.submit-project {
    padding: 60px 0;
    background-color: #fff;
}

.submit-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.submit-info {
    flex: 1;
}

.submit-info h2 {
    font-size: 2rem;
    color: #333;
    margin-top: 0;
}

.submit-info p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.submit-image {
    flex: 1;
}

.submit-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cta-button {
    display: inline-block;
    background-color: #C24914;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(194, 73, 20, 0.3);
    margin-top: 10px;
}

.cta-button:hover {
    background-color: #9a3a10;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(194, 73, 20, 0.4);
}

.section-separator {
    height: 2px;
    background-color: #eee;
    position: relative;
    margin: 30px 0;
}

.separator-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.separator-icon i {
    color: #555;
    font-size: 1.2rem;
}

.video-carousel-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 40px;
    color: #666;
}

.video-carousel-container {
    max-width: 900px;
    margin: 0 auto 50px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding-bottom: 20px;
    position: relative;
}

.video-carousel {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    overflow: hidden;
    background-color: #000;
}

.video-carousel video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.video-carousel video.active {
    display: block;
}

.video-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.prev-btn, .next-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #C24914;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.prev-btn:hover, .next-btn:hover {
    background-color: rgba(194, 73, 20, 0.1);
}

.video-info {
    flex: 1;
    padding: 0 20px;
    text-align: center;
}

.video-title {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #333;
}

.video-description {
    font-size: 0.9rem;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-seekbar-container {
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.custom-seekbar {
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.seekbar-fill {
    height: 100%;
    background-color: #C24914;
    width: 0;
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 3px;
}

.video-time {
    display: flex;
    justify-content: flex-end;
    font-size: 0.8rem;
    color: #777;
}

.playback-controls {
    display: flex;
    align-items: center;
    padding: 0 20px 10px;
    gap: 15px;
}

.play-pause-btn, .mute-btn, .fullscreen-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #555;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, color 0.3s;
}

.play-pause-btn:hover, .mute-btn:hover, .fullscreen-btn:hover {
    background-color: #f0f0f0;
    color: #C24914;
}

.hidden {
    display: none;
}

.volume-slider-container {
    flex: 1;
    max-width: 100px;
}

.volume-slider {
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.volume-fill {
    height: 100%;
    background-color: #555;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 2px;
}

.carousel-dots-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.carousel-dot.active {
    background-color: #C24914;
    transform: scale(1.3);
}

.video-carousel-description {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.video-carousel-description h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
}

.video-carousel-description p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

.cta-button {
    display: inline-block;
    background-color: #C24914;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    margin-top: 20px;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
}

.cta-button:hover {
    background-color: #9a3a10;
    transform: translateY(-2px);
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    color: white;
    font-size: 1.1rem;
}

.loading-overlay.hidden {
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #C24914;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.video-carousel video.carousel-video {
    display: none;
}

.video-carousel video.carousel-video.active {
    display: block;
}

.video-carousel video {
    background-color: #000;
    object-fit: contain;
}

@media (max-width: 992px) {
    .submit-content {
        flex-direction: column;
    }
    
    .submit-info, .submit-image {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .projects-filter {
        top: 0;
        padding: 15px 0;
    }
    
    .filter-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .video-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .video-info {
        order: -1;
        padding: 0 0 10px;
    }
    
    .prev-btn, .next-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background-color: rgba(255, 255, 255, 0.7);
        z-index: 10;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    .playback-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .filter-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .video-carousel-section {
        padding: 40px 0;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .video-title {
        font-size: 1.1rem;
    }
    
    .video-carousel-description h2 {
        font-size: 1.5rem;
    }
    
    .cta-button {
        padding: 10px 25px;
    }
}
