/* Base Styles */
:root {
    --primary-color: #7e3ff2;
    --primary-dark: #5c2ab5;
    --primary-light: #9e6ff4;
    --secondary-color: #ff5722;
    --secondary-dark: #e64a19;
    --secondary-light: #ff7e55;
    --tertiary-color: #00bcd4;
    --accent-color: #ffeb3b;
    --text-color: #333;
    --text-light: #777;
    --text-dark: #111;
    --bg-color: #f8f9fa;
    --bg-dark: #222831;
    --bg-card: #ffffff;
    --bg-accent: #f1f5f9;
    --border-color: #e1e4e8;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.section-heading {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    font-size: 2rem;
}

.section-heading::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* Button Styles */
.btn-primary, .btn-secondary, .btn-tertiary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(126, 63, 242, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 87, 34, 0.3);
}

.btn-tertiary {
    background-color: var(--tertiary-color);
    color: white;
}

.btn-tertiary:hover {
    background-color: #008ba3;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 188, 212, 0.3);
}

/* Header & Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--bg-card);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.logo-container h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.nav-links a i {
    margin-right: 0.5rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
    background-color: rgba(126, 63, 242, 0.1);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/4.jpg');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 1rem;
}

.hero-content {
    max-width: 800px;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Page Banner */
.page-banner {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/4.jpg');
    background-size: cover;
    background-position: center;
    padding: 4rem 1rem;
    text-align: center;
    color: white;
}

.page-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.page-banner p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

/* Main Content Sections */
main {
    padding: 4rem 5%;
}

/* Featured Posts Section */
.featured-posts {
    margin-bottom: 4rem;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.post-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
}

.post-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.post-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
}

.read-more::after {
    content: '→';
    margin-left: 5px;
    transition: var(--transition);
}

.read-more:hover::after {
    margin-left: 10px;
}

/* Community Section */
.community {
    margin-bottom: 4rem;
    background-color: var(--bg-accent);
    padding: 3rem;
    border-radius: var(--border-radius);
}

.community-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.community-text {
    flex: 1;
}

.community-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.community-image {
    flex: 1;
}

.community-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Terminology Preview */
.terminology-preview {
    text-align: center;
    margin-bottom: 4rem;
}

.terminology-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.term-card {
    background-color: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 250px;
    text-align: center;
    transition: var(--transition);
}

.term-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.term-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Blog Page Styles */
.blog-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 3rem;
}

.blog-post {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: 3rem;
}

.blog-post .post-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.blog-post .post-content {
    padding: 2rem;
}

.blog-post .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.blog-post .post-meta span {
    display: flex;
    align-items: center;
}

.blog-post .post-meta i {
    margin-right: 0.5rem;
}

.blog-post .post-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
}

.sidebar-widget h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.category-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.category-list li:last-child {
    border-bottom: none;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-cloud a {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: var(--bg-accent);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.tag-cloud a:hover {
    background-color: var(--primary-light);
    color: white;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-form input {
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

/* Forum Styles */
.forum-container {
    max-width: 1200px;
    margin: 0 auto;
}

.forum-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.search-container {
    display: flex;
    align-items: center;
}

.search-container input {
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    width: 300px;
    font-size: 1rem;
}

.search-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
}

.forum-categories {
    margin-bottom: 3rem;
}

.category-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.category-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
}

.category-header h3 {
    margin-bottom: 0;
}

.category-stats {
    display: flex;
    gap: 2rem;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.category-description {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.latest-post {
    font-size: 0.9rem;
}

.trending-topics {
    margin-bottom: 3rem;
}

.topic-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.topic-item {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
}

.topic-item:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.topic-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.topic-icon.hot {
    background-color: rgba(255, 87, 34, 0.1);
    color: var(--secondary-color);
}

.topic-details {
    flex: 1;
}

.topic-details h4 {
    margin-bottom: 0.5rem;
}

.topic-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.topic-timestamp {
    color: var(--text-light);
    font-size: 0.9rem;
}

.forum-stats {
    margin-bottom: 3rem;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-item {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

.stat-details h4 {
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.stat-details p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.join-community {
    display: flex;
    align-items: center;
    gap: 3rem;
    background-color: var(--bg-accent);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--box-shadow);
}

.join-content {
    flex: 1;
}

.join-content p {
    margin-bottom: 1.5rem;
}

.join-buttons {
    display: flex;
    gap: 1rem;
}

.join-image {
    flex: 1;
}

.join-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Terminology Page Styles */
.terminology-container {
    max-width: 1200px;
    margin: 0 auto;
}

.terminology-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.search-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filter-container select {
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    min-width: 200px;
}

.terminology-section {
    margin-bottom: 4rem;
}

.term-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.terminology-contribute {
    text-align: center;
    background-color: var(--bg-accent);
    padding: 3rem;
    border-radius: var(--border-radius);
    margin-top: 3rem;
}

.terminology-contribute h3 {
    margin-bottom: 1rem;
}

.terminology-contribute p {
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Page Styles */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.info-card {
    padding: 1.5rem;
    background-color: var(--bg-accent);
    border-radius: var(--border-radius);
    text-align: center;
}

.info-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-card h4 {
    margin-bottom: 0.5rem;
}

.social-connect {
    text-align: center;
    margin-top: 2rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icon:hover {
    transform: translateY(-5px);
    background-color: var(--primary-dark);
    color: white;
}

.contact-form-section {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
}

.form-group input, .form-group textarea {
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
}

.checkbox-group input {
    width: 18px;
    height: 18px;
}

.map-section {
    max-width: 1200px;
    margin: 0 auto 4rem;
    text-align: center;
}

.map-section h3 {
    margin-bottom: 1.5rem;
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* Modal Styles */
.thank-you-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.modal-icon {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 1.5rem;
}

.modal-btn {
    margin-top: 1.5rem;
}

/* Footer Styles */
footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.footer-links h3, .footer-contact h3 {
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h3::after, .footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-contact p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-contact i {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-dark);
    color: white;
    padding: 1rem;
    z-index: 1500;
    display: none;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.cookie-content h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.btn-accept {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
}

.btn-customize {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
}

.btn-reject {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
}

.cookie-link a {
    color: var(--primary-light);
    text-decoration: underline;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .page-banner h2 {
        font-size: 2rem;
    }
    
    .community-content {
        flex-direction: column;
    }
    
    .blog-container {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .join-community {
        flex-direction: column;
    }
}

@media screen and (max-width: 768px) {
    header {
        padding: 1rem 3%;
    }
    
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-card);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        padding: 2rem 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 1rem 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hero {
        height: 50vh;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .page-banner h2 {
        font-size: 1.8rem;
    }
    
    main {
        padding: 3rem 3%;
    }
    
    .post-grid {
        grid-template-columns: 1fr;
    }
    
    .terminology-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .forum-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .search-container {
        width: 100%;
    }
    
    .search-container input {
        width: 100%;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .logo-container h1 {
        font-size: 1.2rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .page-banner h2 {
        font-size: 1.5rem;
    }
    
    .section-heading {
        font-size: 1.5rem;
    }
    
    .post-card .post-content h3 {
        font-size: 1.2rem;
    }
    
    .topic-meta {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
}
