/* Forum Page Styles */

/* Forum Hero Section */
.hero{
    min-height: 45vh;
}
.forum-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

.forum-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png');
    opacity: 0.05;
    animation: slide 20s linear infinite;
}

#gallery-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    margin-top: 2rem;
    position: relative;
    display: block;
}

@keyframes slide {
    from { background-position: 0 0; }
    to { background-position: 1000px 0; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    margin-top: 2.5rem;
}

.hero-text {
    margin-bottom: 2rem;
}

.hero-text h1 {
    font-size: 4rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Image Slider Section */
.slider-section {
    
    margin: 0.5rem;
    background-color: var(--bg-color);
    overflow: hidden;
}

.slider-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 400px;
    position: relative;
    width: 100%;
}

.slide {
    min-width: 100%;
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    width: 100%;
    height: 100%;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Navigation Arrows */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--color-dark);
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

/* Bullet Indicators */
.slider-bullets {
    position: relative;
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    background: transparent;
}

.bullet {
    width: 50px;
    height: 6px;
    border: none;
    background: #e2e8f0;
    cursor: pointer;
    position: relative;
    border-radius: 3px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bullet.active {
    background: #7a7a7abd;
}

.bullet .progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #000000, #000000);
    transform: scaleX(0);
    transform-origin: left;
    border-radius: 3px;
}

.bullet.active .progress {
    animation: bulletProgress 3s linear forwards;
}

@keyframes bulletProgress {
    0% {
        transform: scaleX(0);
    }
    100% {
        transform: scaleX(1);
    }
}

/* Dark Mode Styles */
.dark-mode .bullet {
    background: #1f2937;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dark-mode .bullet .progress {
    background: linear-gradient(90deg, #60a5fa, #3b82f6);
}

/* Dark Mode Styles */
.dark-mode .forum-section,
.dark-mode .back-section {
    background-color: var(--bg-color-dark);
}

/* Dark Mode Hamburger Menu */
.dark-mode .mobile-menu-btn {
    color: var(--text-color);
}

.dark-mode .mobile-menu-btn i {
    color: var(--text-color);
}

/* Student Gallery Section */
.gallery-section {
    background-color: var(--bg-color);
}

.gallery-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 3rem;
    position: relative;
    display: block;
    width: 100%;
}

.gallery-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-color-dark));
    border-radius: 2px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    aspect-ratio: 1;
}

/* Unique arrangement for different items */
.gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item:nth-child(2) {
    grid-column: span 1;
    grid-row: span 1;
}

.gallery-item:nth-child(3) {
    grid-column: span 1;
    grid-row: span 1;
}

.gallery-item:nth-child(4) {
    grid-column: span 1;
    grid-row: span 1;
}

.gallery-item:nth-child(5) {
    grid-column: span 1;
    grid-row: span 1;
}

.gallery-item:nth-child(6) {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

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

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

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

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

/* Dark Mode Styles */
.dark-mode .gallery-section {
    background-color: var(--bg-color-dark);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-item:nth-child(1),
    .gallery-item:nth-child(6) {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .gallery-item:nth-child(1),
    .gallery-item:nth-child(6) {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    
    .gallery-section h2 {
        font-size: 2rem;
    }

    .slider {
        height: 300px;
    }

    .slider-nav {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .bullet {
        width: 25px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        padding: 0 0.5rem;
    }

    .slider {
        height: 200px;
    }

    .slider-nav {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .bullet {
        width: 20px;
    }
}

/* Back Button Section */
.back-section {
    padding: 2rem;
    background-color: var(--bg-color);
    margin-top: 2rem;
}

.back-section .container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.back-btn { 
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    background-color: var(--primary-color);
    color: rgb(0, 47, 255);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.back-btn:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.back-btn i {
    font-size: 1.1rem;
}

/* Dark Mode Styles for Back Button */
.dark-mode .back-btn {
    background-color: var(--primary-color-dark);
}

.dark-mode .back-btn:hover {
    background-color: var(--primary-color);
} 
