/* Dark Theme Global Styles */
:root {
    --primary-color: #999966;
    --secondary-color: #437707;
    --accent-color: #ff6b6b;
    --dark-bg: #121212;
    --darker-bg: #0d0d0d;
    --card-bg: #1e1e1e;
    --text-color: #e0e0e0;
    --text-light: #b0b0b0;
    --text-lighter: #757575;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --error-color: #f44336;
    --border-color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--dark-bg);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s;
}

a:hover {
    color: var(--secondary-color);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 6px;
    transition: all 0.3s;
    font-weight: 500;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Header Styles */
header {
    background-color: var(--darker-bg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

header h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    font-size: 0.95rem;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li.active a {
    color: var(--primary-color);
}

nav ul li.active a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* Main Content Styles */
main {
    padding: 40px 0;
    min-height: calc(100vh - 150px);
}

h2 {
    margin-bottom: 25px;
    color: var(--text-color);
    font-size: 2.2rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 0;
    background: linear-gradient(rgba(12, 12, 12, 0.4), rgba(18, 18, 18, 0.9)), 
            url('file:///C:/Users/Dell/OneDrive/Desktop/community-learning-hub/img/img1.jpeg') no-repeat center center / cover;

    border-radius: 10px;
    margin-bottom: 50px;
    border: 1px solid var(--border-color);
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero h2::after {
    display: none;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.feature-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Testimonials Section */
.testimonials {
    text-align: center;
    margin-bottom: 60px;
}

.testimonial {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--border-color);
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial p {
    font-size: 1.1rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.testimonial .author {
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 20px;
    font-size: 1.1rem;
}

/* Courses Page Styles */
.search-section {
    margin-bottom: 40px;
}

.search-bar {
    display: flex;
    margin-bottom: 25px;
}

.search-bar input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px 0 0 6px;
    font-size: 1rem;
    background-color: var(--card-bg);
    color: var(--text-color);
    transition: all 0.3s;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(114, 153, 102, 0.3);
}

.search-bar button {
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.search-bar button:hover {
    background-color: var(--secondary-color);
}

.filter-options {
    display: flex;
    align-items: center;
}

.filter-options label {
    margin-right: 15px;
    color: var(--text-light);
}

.filter-options select {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s;
}

.filter-options select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(114, 153, 102, 0.3);
}

.course-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.course-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.course-img {
    height: 180px;
    background-color: #333;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.7));
}

.course-img h3 {
    position: relative;
    z-index: 1;
    color: white;
    font-size: 1.8rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.course-info {
    padding: 25px;
}

.course-info h3 {
    margin-bottom: 15px;
    color: var(--text-color);
    font-size: 1.3rem;
}

.course-info p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.9rem;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

/* Resources Page Styles */
.resource-categories {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.category {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.category h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
    font-size: 1.4rem;
}

.resource-list {
    list-style: none;
}

.resource-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--border-color);
    transition: all 0.3s;
}

.resource-list li:hover {
    border-bottom-color: var(--primary-color);
}

.resource-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.resource-list li a {
    display: flex;
    align-items: center;
    color: var(--text-color);
    transition: all 0.3s;
}

.resource-list li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.resource-list li a::before {
    content: '→';
    margin-right: 10px;
    color: var(--primary-color);
    transition: all 0.3s;
}

.resource-list li a:hover::before {
    margin-right: 15px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.video-item {
    background-color: var(--darker-bg);
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.video-item h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-color);
}

.video-placeholder {
    height: 160px;
    background-color: var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.video-placeholder::before {
    content: '▶';
    position: absolute;
    width: 60px;
    height: 60px;
    background-color: rgba(114, 153, 102, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

/* Forum Page Styles */
.forum-container {
    max-width: 1000px;
    margin: 0 auto;
}

.forum-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.forum-search {
    display: flex;
    flex: 1;
    min-width: 250px;
}

.forum-search input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px 0 0 6px;
    background-color: var(--card-bg);
    color: var(--text-color);
    transition: all 0.3s;
}

.forum-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(114, 153, 102, 0.3);
}

.forum-search button {
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.forum-search button:hover {
    background-color: var(--secondary-color);
}

#new-topic-btn {
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

#new-topic-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.new-topic-form {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-light);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    background-color: var(--darker-bg);
    color: var(--text-color);
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(114, 153, 102, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.forum-categories {
    margin-top: 40px;
}

.forum-category {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
}

.forum-category h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.5rem;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.topic {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s;
}

.topic:hover {
    background-color: rgba(114, 153, 102, 0.05);
    padding-left: 10px;
    padding-right: 10px;
    margin-left: -10px;
    margin-right: -10px;
    border-bottom-color: var(--primary-color);
}

.topic:last-child {
    border-bottom: none;
}

.topic-title {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.topic-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Contact Page Styles */
.contact-section {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-info {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.contact-info h3 {
    margin-bottom: 25px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
    font-size: 1.4rem;
}

.contact-info p {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.contact-info p strong {
    margin-right: 10px;
    color: var(--primary-color);
    min-width: 70px;
}

.contact-form {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.error-message {
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.success-message {
    background-color: rgba(76, 175, 80, 0.2);
    color: var(--success-color);
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    text-align: center;
    border: 1px solid var(--success-color);
}

.submit-btn {
    background: linear-gradient(135deg, #999966, #2E8B57); /* Green gradient */
    color: white; 
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #45a049, #1e6d44); /* Darker green on hover */
    transform: scale(1.05); /* Slight zoom */
}

.submit-btn:active {
    transform: scale(0.95); /* Click effect */
}


/* Footer Styles */
footer {
    background-color: var(--darker-bg);
    color: var(--text-light);
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
}

footer p {
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form {
        order: 1;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 20px;
    }
    
    nav ul li {
        margin-left: 15px;
        margin-right: 15px;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .forum-actions {
        flex-direction: column;
    }
    
    .forum-search {
        width: 100%;
        margin-top: 15px;
    }
}

@media (max-width: 576px) {
    .features {
        grid-template-columns: 1fr;
    }
    
    .course-list {
        grid-template-columns: 1fr;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 60px 20px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .category,
    .forum-category,
    .contact-info,
    .contact-form,
    .new-topic-form,
    .testimonial,
    .feature-card,
    .course-card {
        padding: 25px 20px;
    }
}