/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #007bff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 150px 0 100px;
    text-align: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.profile-image-container {
    margin-bottom: 2rem;
}

.profile-image-round {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid rgba(255,255,255,0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.profile-image-round:hover {
    transform: scale(1.05);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero h2 {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: #fff;
    color: #667eea;
}

.btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

/* Services Section */
.services {
    padding: 100px 0;
    background: #f8f9fa;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.services p {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

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

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-card i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* Stats Section */
.stats {
    padding: 80px 0;
    background: #667eea;
    color: white;
}

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

.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Newsletter Section */
.newsletter {
    padding: 80px 0;
    background: #f8f9fa;
    text-align: center;
}

.newsletter h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.newsletter p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    min-width: 250px;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 50px;
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #667eea;
}

.newsletter-form button {
    padding: 12px 30px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #5a6cd8;
}

/* Chatbot Styles */
#chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

#chatbot-toggle {
    width: 60px;
    height: 60px;
    background: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

#chatbot-toggle:hover {
    background: #5a6cd8;
    transform: scale(1.1);
}

#chatbot {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.chatbot-hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.chatbot-header {
    background: #667eea;
    color: white;
    padding: 1rem;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h4 {
    margin: 0;
    font-size: 1.1rem;
}

#chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.chatbot-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 80%;
    padding: 0.8rem 1rem;
    border-radius: 15px;
    word-wrap: break-word;
}

.bot-message {
    background: #f1f3f4;
    align-self: flex-start;
}

.user-message {
    background: #667eea;
    color: white;
    align-self: flex-end;
}

.chatbot-input {
    padding: 1rem;
    border-top: 1px solid #eee;
    display: flex;
    gap: 0.5rem;
}

.chatbot-input input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
}

#chatbot-send {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.footer-section p,
.footer-section li {
    color: #bdc3c7;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #667eea;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #34495e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #667eea;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
    text-align: center;
    color: #bdc3c7;
}

/* Wikipedia-style About Page */
.wiki-container {
    max-width: 1000px;
    margin: 100px auto 50px;
    padding: 0 20px;
    background: white;
}

.wiki-header {
    border-bottom: 3px solid #a2a9b1;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.wiki-title {
    font-size: 2.5rem;
    font-weight: normal;
    color: #000;
    margin-bottom: 5px;
}

.wiki-subtitle {
    color: #54595d;
    font-size: 0.9rem;
}

.wiki-infobox {
    float: right;
    width: 300px;
    margin: 0 0 20px 20px;
    border: 1px solid #a2a9b1;
    background: #f8f9fa;
    padding: 15px;
    font-size: 0.9rem;
}

.wiki-infobox h3 {
    background: #eaecf0;
    margin: -15px -15px 10px -15px;
    padding: 10px 15px;
    font-size: 1.1rem;
    text-align: center;
    border-bottom: 1px solid #a2a9b1;
}

.wiki-infobox img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.wiki-infobox table {
    width: 100%;
    border-spacing: 0;
}

.wiki-infobox td {
    padding: 3px 5px;
    border-bottom: 1px solid #eaecf0;
}

.wiki-infobox td:first-child {
    font-weight: bold;
    width: 40%;
}

.wiki-content {
    line-height: 1.6;
    font-size: 1rem;
}

.wiki-content h2 {
    border-bottom: 1px solid #a2a9b1;
    padding-bottom: 5px;
    margin: 30px 0 15px 0;
    font-size: 1.5rem;
    font-weight: normal;
}

.wiki-content h3 {
    margin: 20px 0 10px 0;
    font-size: 1.2rem;
    font-weight: bold;
}

.wiki-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.wiki-toc {
    border: 1px solid #a2a9b1;
    background: #f8f9fa;
    padding: 15px;
    margin: 20px 0;
    display: inline-block;
}

.wiki-toc h3 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    text-align: center;
}

.wiki-toc ol {
    margin: 0;
    padding-left: 20px;
}

.wiki-toc a {
    color: #0645ad;
    text-decoration: none;
}

.wiki-toc a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-form input {
        min-width: auto;
        width: 100%;
    }

    #chatbot {
        width: 90vw;
        height: 70vh;
        right: 5vw;
    }

    .wiki-infobox {
        float: none;
        width: 100%;
        margin: 20px 0;
    }

    .profile-image-round {
        width: 150px;
        height: 150px;
    }
}

/* Loading and animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Admin specific styles */
.admin-nav {
    background: #343a40;
}

.admin-nav .nav-link {
    color: #fff;
}

.admin-nav .nav-link:hover {
    color: #007bff;
}

/* Blog Styles */
.blog-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

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

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.blog-card h2 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.blog-card h2 a {
    color: #333;
    text-decoration: none;
}

.blog-card h2 a:hover {
    color: #667eea;
}

.read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.no-posts {
    text-align: center;
    padding: 3rem;
    grid-column: 1 / -1;
}

/* Blog Post Page */
.blog-post {
    padding: 100px 0 50px;
}

.post-header {
    text-align: center;
    margin-bottom: 3rem;
}

.post-meta {
    margin-bottom: 1rem;
    color: #666;
}

.post-image {
    margin: 2rem 0;
}

.post-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.post-content {
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.post-video {
    margin: 2rem 0;
}

.post-video iframe {
    width: 100%;
    height: 400px;
    border-radius: 10px;
}

.post-footer {
    border-top: 1px solid #eee;
    padding-top: 2rem;
    margin-top: 2rem;
}

.post-tags {
    margin-bottom: 1rem;
}

.tag {
    background: #667eea;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    display: inline-block;
}

.post-share {
    margin-top: 1rem;
}

.post-share a {
    color: #667eea;
    text-decoration: none;
    margin-right: 1rem;
    display: inline-block;
    padding: 0.5rem;
}

.post-share a:hover {
    background: #f8f9fa;
    border-radius: 5px;
}

/* Categories Section */
.categories-section {
    padding: 60px 0;
    background: white;
}

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

.category-item {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: #f8f9fa;
    transition: transform 0.3s ease;
}

.category-item:hover {
    transform: translateY(-5px);
    background: #667eea;
    color: white;
}

.category-item i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #667eea;
}

.category-item:hover i {
    color: white;
}

/* Related Posts */
.related-posts {
    padding: 60px 0;
    background: #f8f9fa;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.related-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.related-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.related-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.related-card h3 a {
    color: #333;
    text-decoration: none;
}

.related-card h3 a:hover {
    color: #667eea;
}

/* Admin Blog Styles */
.admin-container .blog-container {
    margin-top: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .post-video iframe {
        height: 250px;
    }
}

.post-video iframe {
    width: 100%;
    height: 400px;
    border-radius: 10px;
}

.post-footer {
    border-top: 1px solid #eee;
    padding-top: 2rem;
}

.post-tags {
    margin-bottom: 1rem;
}

.tag {
    background: #f1f3f4;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.post-share a {
    margin-right: 1rem;
    color: #667eea;
    text-decoration: none;
}

/* Categories Section */
.categories-section {
    padding: 80px 0;
    background: white;
}

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

.category-item {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background: #f8f9fa;
}

.category-item i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

/* Contact Page */
.contact-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #667eea;
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.contact-form-container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-form .form-group {
    margin-bottom: 1rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.form-message {
    margin-top: 1rem;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #f5c6cb;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: white;
}

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

.faq-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
}

.faq-item h3 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: #667eea;
    color: white;
    text-align: center;
}

.cta-buttons {
    margin-top: 2rem;
}

/* Related Posts */
.related-posts {
    padding: 80px 0;
    background: #f8f9fa;
}

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

.related-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.related-card h3 {
    padding: 1rem 1rem 0.5rem;
    margin: 0;
    font-size: 1.1rem;
}

.related-card h3 a {
    color: #333;
    text-decoration: none;
}

.related-card p {
    padding: 0 1rem 1rem;
    margin: 0;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}