/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: #333;
}

/* Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease-in-out;
    animation: slideIn 0.5s ease-out;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo h1 {
    color: #2ecc71;
    font-size: 1.8rem;
    animation: pulse 2s infinite;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    margin: 0 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #2ecc71;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.login-btn {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-btn:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('https://images.unsplash.com/photo-1625246333195-78d9c38ad449?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
}

.hero-content {
    max-width: 800px;
    color: white;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 600px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.primary-btn {
    background-color: #2ecc71;
    color: white;
}

.primary-btn:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.secondary-btn:hover {
    background-color: white;
    color: #2c3e50;
    transform: translateY(-2px);
}

/* Marketplace Section */
.marketplace {
    padding: 5rem 5%;
    background-color: #f9f9f9;
    animation: fadeIn 1s ease-out;
}

.marketplace h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.product-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid #2ecc71;
    background-color: transparent;
    color: #2ecc71;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover {
    background-color: #2ecc71;
    color: white;
}

.filter-btn.active {
    background-color: #2ecc71;
    color: white;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
}

.product-card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.product-card .description {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.product-card .farmer {
    color: #2ecc71;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.product-card .price {
    color: #e74c3c;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.buy-btn {
    width: 100%;
    padding: 0.8rem;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.buy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.buy-btn:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
}

.buy-btn:hover::before {
    left: 100%;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 1.1rem;
}

/* Error State */
.error {
    text-align: center;
    padding: 2rem;
    color: #e74c3c;
    font-size: 1.1rem;
}

/* Search Container */
.search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.search-container input {
    padding: 0.8rem 1.5rem;
    border: 2px solid #ddd;
    border-radius: 25px;
    width: 100%;
    max-width: 500px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-container input:focus {
    outline: none;
    border-color: #2ecc71;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

.search-container button {
    padding: 0.8rem 1.5rem;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.search-container button:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .product-filters {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 100%;
        max-width: 200px;
    }

    .search-container {
        flex-direction: column;
        align-items: center;
    }

    .search-container input,
    .search-container button {
        width: 100%;
        max-width: 300px;
    }
}

/* Disease Detection Section */
.disease-detection {
    padding: 5rem 5%;
    background-color: white;
    animation: fadeIn 1s ease-out;
}

.disease-detection h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.detection-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.upload-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.upload-box {
    width: 100%;
    max-width: 500px;
    height: 200px;
    border: 2px dashed #2ecc71;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-box:hover {
    background-color: #f0f9f0;
}

.upload-box i {
    font-size: 3rem;
    color: #2ecc71;
    margin-bottom: 1rem;
}

.upload-box p {
    color: #666;
    font-size: 1.1rem;
}

.crop-type-selector {
    width: 100%;
    max-width: 500px;
    margin-top: 1rem;
}

.crop-type-selector label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
    font-size: 1.1rem;
}

.crop-type-selector select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.crop-type-selector select:focus {
    outline: none;
    border-color: #2ecc71;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
}

.crop-type-selector select:hover {
    border-color: #2ecc71;
}

.result-box {
    border: 1px solid #ddd;
    padding: 2rem;
    border-radius: 10px;
    min-height: 200px;
    transition: all 0.3s ease;
}

.result-box:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.result-box .warning {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.2rem;
}

.result-box .success {
    color: #2ecc71;
    font-weight: bold;
    font-size: 1.2rem;
}

.result-box ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.result-box li {
    margin: 0.5rem 0;
    color: #666;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.action-buttons .btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.action-buttons .primary-btn {
    background-color: #2ecc71;
    color: white;
}

.action-buttons .secondary-btn {
    background-color: #3498db;
    color: white;
}

.action-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.action-buttons .btn:active {
    transform: translateY(0);
}

.action-buttons .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.action-buttons .btn i {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .action-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* About Section */
.about {
    padding: 5rem 5%;
    background-color: #f9f9f9;
}

.about h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    text-align: center;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-out backwards;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-card i {
    font-size: 2.5rem;
    color: #2ecc71;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

/* Contact Section */
.contact {
    padding: 5rem 5%;
    background-color: white;
}

.contact h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

#contactForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#contactForm input,
#contactForm textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#contactForm input:focus,
#contactForm textarea:focus {
    border-color: #2ecc71;
    box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.2);
    outline: none;
}

.submit-btn {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 3rem 5% 1rem;
    animation: fadeIn 1s ease-out;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #2ecc71;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Login Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    position: relative;
    transform: translateY(-50px);
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal.show .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: #e74c3c;
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.modal-header p {
    color: #666;
    font-size: 0.9rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem 2.5rem 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: #2ecc71;
    box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.2);
    outline: none;
}

.form-group i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    transition: all 0.3s ease;
}

.form-group input:focus + i {
    color: #2ecc71;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.forgot-password {
    color: #2ecc71;
    text-decoration: none;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: #27ae60;
    text-decoration: underline;
}

.login-submit-btn {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-submit-btn:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.social-login {
    text-align: center;
}

.social-login p {
    color: #666;
    margin-bottom: 1rem;
    position: relative;
}

.social-login p::before,
.social-login p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background-color: #ddd;
}

.social-login p::before {
    left: 0;
}

.social-login p::after {
    right: 0;
}

.social-buttons {
    display: flex;
    gap: 1rem;
}

.google-btn,
.facebook-btn {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.google-btn:hover,
.facebook-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.google-btn i {
    color: #db4437;
}

.facebook-btn i {
    color: #4267B2;
}

.register-link {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.register-btn {
    color: #2ecc71;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.register-btn:hover {
    color: #27ae60;
    text-decoration: underline;
}

/* Add animation for form elements */
.form-group,
.form-options,
.login-submit-btn,
.social-login,
.register-link {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s ease forwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-options { animation-delay: 0.3s; }
.login-submit-btn { animation-delay: 0.4s; }
.social-login { animation-delay: 0.5s; }
.register-link { animation-delay: 0.6s; }

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #2ecc71;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-btn:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #e74c3c;
    color: white;
    font-size: 0.8rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Cart Modal Styles */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.cart-modal.show {
    display: block;
}

.cart-content {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background-color: white;
    padding: 2rem;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-modal.show .cart-content {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.cart-header h2 {
    color: #2c3e50;
    font-size: 1.5rem;
}

.close-cart {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 1rem;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-name {
    font-weight: 500;
    color: #2c3e50;
}

.cart-item-price {
    color: #2ecc71;
    font-weight: 500;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quantity-btn {
    background: none;
    border: 1px solid #ddd;
    width: 25px;
    height: 25px;
    border-radius: 5px;
    cursor: pointer;
}

.cart-item-remove {
    color: #e74c3c;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 1rem;
}

.cart-footer {
    margin-top: 2rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    background-color: #27ae60;
}

@media (max-width: 768px) {
    .cart-content {
        width: 100%;
    }
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: -300px;
    background-color: #2ecc71;
    color: white;
    padding: 1rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease;
    z-index: 2000;
}

.notification.show {
    right: 20px;
}

.notification i {
    font-size: 1.2rem;
}

/* Cart item highlight effect */
.cart-item {
    transition: all 0.3s ease;
}

.cart-item.highlight {
    background-color: rgba(46, 204, 113, 0.1);
    transform: translateX(10px);
}

/* Empty cart message */
.empty-cart {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.empty-cart i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.empty-cart p {
    font-size: 1.1rem;
}

/* Enhance cart item hover effect */
.cart-item {
    transition: all 0.3s ease;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.cart-item:hover {
    background-color: #f9f9f9;
    transform: translateX(5px);
}

/* Quantity button enhancements */
.quantity-btn {
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background-color: #2ecc71;
    color: white;
    border-color: #2ecc71;
}

.quantity-btn:active {
    transform: scale(0.95);
}

.uploaded-image-container {
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

.uploaded-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.analyzing-text {
    text-align: center;
    color: #2ecc71;
    font-weight: 500;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.analyzing-text::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #2ecc71;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.analysis-results {
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #2ecc71;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.error {
    text-align: center;
    padding: 2rem;
    color: #e74c3c;
    background-color: #fdf0ed;
    border-radius: 5px;
    margin: 1rem 0;
}

.error-message {
    text-align: center;
    padding: 1rem;
    color: #e74c3c;
    background-color: #fdf0ed;
    border-radius: 5px;
    margin-top: 1rem;
}

/* Enhanced Search Styles */
.search-container {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    max-width: 600px;
    margin: 20px auto;
    position: relative;
}

.search-container input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-container input:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.search-container button {
    padding: 12px 30px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-container button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

.search-results {
    display: none;
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-result-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #f9f9f9;
    transform: translateX(5px);
}

.search-result-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
}

.search-result-info {
    flex: 1;
}

.search-result-info h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.2em;
}

.search-result-info p {
    margin: 0 0 15px 0;
    color: #666;
    line-height: 1.5;
}

.search-result-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    color: #666;
}

.search-result-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-result-price {
    font-size: 1.2em;
    color: #4CAF50;
    font-weight: bold;
    margin-bottom: 15px;
}

.search-result-benefits {
    margin-bottom: 15px;
}

.search-result-benefits h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.search-result-benefits ul {
    margin: 0;
    padding-left: 20px;
    color: #666;
}

.search-result-benefits li {
    margin-bottom: 5px;
}

.buy-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.buy-btn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #666;
}

.no-results i {
    font-size: 3em;
    color: #ddd;
    margin-bottom: 20px;
}

.no-results h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #4CAF50;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Soil Analysis Section */
.soil-analysis {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.analysis-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.analysis-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.analysis-card:hover {
    transform: translateY(-5px);
}

.analysis-card i {
    font-size: 2.5rem;
    color: #4CAF50;
    margin-bottom: 20px;
}

.analysis-card h3 {
    margin: 15px 0;
    color: #333;
}

.analysis-card p {
    color: #666;
    margin-bottom: 20px;
}

.analysis-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.analysis-btn:hover {
    background-color: #45a049;
}

.soil-results {
    margin-top: 40px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


.weather-monitoring {
    padding: 80px 0;
    background-color: #e8f5e9;
}

.weather-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.weather-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.weather-card i {
    font-size: 2rem;
    color: #2196F3;
    margin-bottom: 15px;
}

.weather-card h3 {
    margin: 15px 0;
    color: #333;
}

.weather-info, .temperature-info, .forecast-info {
    color: #666;
    margin-top: 15px;
}

.weather-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.refresh-btn, .alerts-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.refresh-btn {
    background-color: #2196F3;
    color: white;
}

.alerts-btn {
    background-color: #FF9800;
    color: white;
}

.refresh-btn:hover, .alerts-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.crop-type-selector {
    margin-top: 2rem;
    text-align: center;
}

.crop-type-selector h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.crop-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.crop-option {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    border: 2px solid transparent;
}

.crop-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: #2ecc71;
}

.crop-option.active {
    border-color: #2ecc71;
    background: #f0f9f0;
}

.crop-option img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.crop-option span {
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .crop-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .crop-option {
        padding: 1rem;
    }
    
    .crop-option img {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .crop-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .crop-option {
        padding: 0.8rem;
    }
    
    .crop-option img {
        width: 35px;
        height: 35px;
    }
}

/* Community Section Styles */
.community {
    padding: 5rem 5%;
    background-color: #f9f9f9;
}

.community h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    position: relative;
}

.community h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #2ecc71;
    margin: 1rem auto 0;
}

.resources-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.resource-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0 1.5rem 0;
    width: calc(25% - 1.125rem); /* Equal width for all 4 cards with gap consideration */
    min-width: 250px;
}

.resource-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 15px rgba(46, 204, 113, 0.2);
}

.guide-image {
    width: 100%;
    height: 180px; /* Reduced height to fit better in row */
    overflow: hidden;
}

.guide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.resource-card:hover .guide-image img {
    transform: scale(1.05);
}

.resource-card i {
    font-size: 2rem;
    color: #2ecc71;
    margin: 1.2rem 0 0.8rem;
    transition: transform 0.3s ease;
}

.resource-card:hover i {
    transform: scale(1.1);
}

.resource-card h3 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    text-align: center;
    padding: 0 0.5rem;
}

.resource-card p {
    color: #666;
    text-align: center;
    padding: 0 1rem;
    margin-bottom: 1.2rem;
    flex-grow: 1;
    line-height: 1.5;
    font-size: 0.9rem;
}

.resource-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background-color: #2ecc71;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.resource-link:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.resource-link i {
    font-size: 0.9rem;
    color: white;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .resources-grid {
        flex-wrap: wrap;
        justify-content: center;
    }

    .resource-card {
        width: calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .community {
        padding: 3rem 1rem;
    }

    .community h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .resources-grid {
        flex-direction: column;
    }

    .resource-card {
        width: 100%;
    }
}

/* Chatbot Styles */
.chatbot-container {
    max-width: 1000px;
    margin: 2rem auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 80vh;
}

/* Chatbot Header */
.chatbot-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bot-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.bot-status h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.status-indicator {
    color: #2ecc71;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-indicator::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
}

.header-actions button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.1rem;
}

/* Chat Messages Area */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.message {
    display: flex;
    gap: 1rem;
    max-width: 80%;
}

.bot-message {
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.message-content {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 12px;
    position: relative;
}

.user-message .message-content {
    background: #e8f5e9;
}

.bot-capabilities {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.bot-capabilities li {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.bot-capabilities li::before {
    content: '•';
    color: #2ecc71;
    position: absolute;
    left: 0;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.action-btn {
    background: #f8f9fa;
    border: 1px solid #eee;
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #e8f5e9;
    border-color: #2ecc71;
    color: #2ecc71;
}

/* Chat Input Area */
.chat-input-area {
    padding: 1.5rem;
    border-top: 1px solid #eee;
}

.input-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 8px;
}

.input-wrapper input {
    flex: 1;
    border: none;
    background: none;
    padding: 0.5rem;
    font-size: 1rem;
}

.input-wrapper input:focus {
    outline: none;
}

.input-wrapper button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.input-wrapper button:hover {
    color: #2ecc71;
}

.send-btn {
    background: #2ecc71 !important;
    color: white !important;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-suggestions {
    margin-top: 1rem;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.suggestion-chip {
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 16px;
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.suggestion-chip:hover {
    background: #e8f5e9;
    color: #2ecc71;
}

/* Responsive Design */
@media (max-width: 768px) {
    .chatbot-container {
        margin: 0;
        height: 100vh;
        border-radius: 0;
    }

    .message {
        max-width: 90%;
    }

    .quick-actions {
        justify-content: center;
    }
}

/* Updated Video Tutorial Card Styles */
.video-tutorials {
    text-align: center !important;
    transition: all 0.3s ease !important;
    padding: 2rem !important;
    min-height: 350px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.tutorial-header {
    margin-bottom: 2rem;
}

.video-tutorials i.fa-video {
    font-size: 2.5rem;
    color: #2ecc71;
    margin-bottom: 1rem;
}

.video-tutorials h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 0.8rem;
}

.video-tutorials > p {
    color: #666;
    font-size: 1rem;
}

.stats-container {
    background: rgba(46, 204, 113, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 0 auto;
    max-width: 280px;
}

.stats-title {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.tutorial-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stat-item i {
    color: #2ecc71;
    font-size: 1.2rem;
    margin-right: 1rem;
    width: 24px;
    text-align: center;
}

.stat-item span {
    color: #2c3e50;
    font-size: 0.95rem;
    font-weight: 500;
}

.play-videos-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.8rem 2.5rem;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 1.5rem auto 0;
    width: fit-content;
    min-width: 200px;
    max-width: 80%;
}

.play-videos-btn i {
    font-size: 1.2rem;
}

.play-videos-btn:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

/* Hover effect for stat items */
.stat-item:hover {
    transform: translateX(5px);
    transition: transform 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-tutorials {
        padding: 1.5rem !important;
    }

    .stats-container {
        padding: 1rem;
    }

    .stat-item {
        padding: 0.4rem;
    }

    .stat-item i {
        font-size: 1.1rem;
    }

    .stat-item span {
        font-size: 0.9rem;
    }

    .play-videos-btn {
        padding: 0.7rem 2rem;
        font-size: 0.9rem;
    }
}

/* Video Access Modal */
.video-access-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1100;
    justify-content: center;
    align-items: center;
}

.video-access-modal.active {
    display: flex;
}

.access-modal-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
}

.close-access-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.access-modal-content h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.access-modal-content p {
    color: #666;
    margin-bottom: 1.5rem;
}

.access-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.access-form input {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.access-form button {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.access-form button:hover {
    background-color: #27ae60;
}

/* Video Page Styles */
.video-page {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.video-header {
    text-align: center;
    margin-bottom: 3rem;
}

.video-header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.video-header p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.search-bar {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
}

.search-bar input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
}

.search-bar button {
    padding: 0 1.5rem;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-bar button:hover {
    background: #27ae60;
}

/* Video Content Layout */
.video-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

/* Sidebar Styles */
.video-sidebar {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.video-sidebar h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.category-list, .duration-list {
    list-style: none;
    padding: 0;
}

.category-list li, .duration-list li {
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.category-list li:hover, .duration-list li:hover {
    background: #f0f9f4;
    color: #2ecc71;
}

.category-list li.active {
    background: #e8f5e9;
    color: #2ecc71;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.video-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.video-info {
    padding: 1.5rem;
}

.video-info h3 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.video-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.video-stats {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 0.9rem;
}

.video-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .video-content {
        grid-template-columns: 1fr;
    }

    .video-sidebar {
        margin-bottom: 2rem;
    }

    .category-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .category-list li {
        flex: 1;
        min-width: 150px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .video-page {
        padding: 1rem;
    }

    .video-header h1 {
        font-size: 2rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* Forum Page Styles */
.forum-page {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.forum-header {
    text-align: center;
    margin-bottom: 3rem;
}

.forum-header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.new-topic-btn {
    background: #2ecc71;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.new-topic-btn:hover {
    background: #27ae60;
}

.forum-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

.forum-sidebar {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.search-box input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #eee;
    border-radius: 6px;
}

.search-box button {
    padding: 0 1rem;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.discussion-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    gap: 2rem;
}

.discussion-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 100px;
}

.stat {
    text-align: center;
}

.number {
    font-size: 1.5rem;
    color: #2c3e50;
    font-weight: bold;
}

.label {
    color: #666;
    font-size: 0.9rem;
}

.discussion-content h3 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
}

.discussion-meta {
    margin-top: 1rem;
    display: flex;
    gap: 1.5rem;
    color: #666;
    font-size: 0.9rem;
}

/* Articles Page Styles */
.articles-page {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.articles-header {
    text-align: center;
    margin-bottom: 3rem;
}

.articles-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.article-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-image {
    position: relative;
    height: 200px;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-image .category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(46, 204, 113, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.article-info {
    padding: 1.5rem;
}

.article-info h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.article-info p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .forum-content,
    .articles-content {
        grid-template-columns: 1fr;
    }

    .forum-sidebar,
    .articles-sidebar {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .discussion-card {
        flex-direction: column;
        gap: 1rem;
    }

    .discussion-stats {
        flex-direction: row;
        justify-content: center;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }
}

/* Floating Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.chat-widget-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #2ecc71;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.3s ease;
}

.chat-widget-button i {
    color: white;
    font-size: 24px;
}

.chat-widget-button:hover {
    transform: scale(1.1);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-widget-container {
    position: fixed;
    bottom: 5rem;
    right: 2rem;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chat-widget-container.active {
    display: flex;
}

.widget-header {
    padding: 12px 16px;
    background: #ffffff;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bot-branding {
    display: flex;
    align-items: center;
    gap: 8px;
}

.agriconnect-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.bot-title {
    display: flex;
    flex-direction: column;
}

.bot-title h3 {
    margin: 0;
    font-size: 16px;
    color: #2c3e50;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.online-status {
    font-size: 14px;
    color: #4CAF50;
    display: flex;
    align-items: center;
    gap: 4px;
}

.widget-actions {
    display: flex;
    gap: 8px;
}

.widget-actions button {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #666;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.widget-actions button:hover {
    color: #333;
}

.widget-header-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.widget-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.company-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.widget-title {
    display: flex;
    flex-direction: column;
}

.widget-title h3 {
    margin: 0;
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-status {
    font-size: 0.8rem;
    color: #2ecc71;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.widget-status::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #2ecc71;
    border-radius: 50%;
}

.widget-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.widget-message {
    display: flex;
    gap: 0.8rem;
    max-width: 80%;
}

.widget-message.bot {
    align-self: flex-start;
}

.widget-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-bubble {
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.widget-message.bot .message-bubble {
    background: #f8f9fa;
}

.widget-message.user .message-bubble {
    background: #e3f2fd;
}

.widget-quick-actions {
    padding: 0.8rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.quick-action-btn {
    background: #f8f9fa;
    border: 1px solid #eee;
    padding: 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.quick-action-btn:hover {
    background: #e8f5e9;
    border-color: #2ecc71;
    color: #2ecc71;
}

.widget-input {
    padding: 1rem;
    border-top: 1px solid #eee;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.widget-input input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 0.9rem;
}

.widget-input input:focus {
    outline: none;
    border-color: #2ecc71;
}

.widget-attach,
.widget-send {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.1rem;
}

.widget-send {
    color: #2ecc71;
}

.typing-indicator {
    display: flex;
    gap: 4px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #90caf9;
    border-radius: 50%;
    animation: typing 1s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .chat-widget-container {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }
}

/* Guides Page Styles */
.guides-header {
    background: linear-gradient(rgba(46, 204, 113, 0.1), rgba(46, 204, 113, 0.05));
    padding: 3rem 2rem;
    text-align: center;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
}

.header-content h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.header-content p {
    color: #666;
    margin-bottom: 2rem;
}

.search-container {
    display: flex;
    gap: 0.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.search-container input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
}

.search-container button {
    padding: 0 1.5rem;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* Main Content Layout */
.guides-content {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

/* Sidebar Styles */
.guides-sidebar {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: fit-content;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
}

.category-list li:hover {
    background: #f0f9f4;
    color: #2ecc71;
}

.category-list li.active {
    background: #e8f5e9;
    color: #2ecc71;
}

.difficulty-filters {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.difficulty-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.difficulty-label span {
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.9rem;
}

.beginner {
    background: #e8f5e9;
    color: #2ecc71;
}

.intermediate {
    background: #fff3e0;
    color: #f39c12;
}

.advanced {
    background: #fde0dd;
    color: #e74c3c;
}

/* Guides Grid */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.guide-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-5px);
}

.guide-image {
    position: relative;
    height: 200px;
}

.guide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guide-image .difficulty {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.guide-info {
    padding: 1.5rem;
}

.guide-info h3 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.guide-info p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.guide-meta {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.read-guide {
    width: 100%;
    padding: 0.8rem;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.read-guide:hover {
    background: #27ae60;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .guides-content {
        grid-template-columns: 1fr;
    }

    .guides-sidebar {
        position: sticky;
        top: 1rem;
    }
}

@media (max-width: 768px) {
    .guides-header {
        padding: 2rem 1rem;
    }

    .header-content h1 {
        font-size: 2rem;
    }

    .guides-grid {
        grid-template-columns: 1fr;
    }
}

/* Guide Modal Styles */
.guide-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
}

.guide-modal.active {
    display: block;
}

.guide-modal-content {
    background: white;
    max-width: 1200px;
    margin: 2rem auto;
    border-radius: 12px;
    position: relative;
    min-height: 80vh;
}

.guide-modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.modal-title h2 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.8rem;
}

.guide-badges {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
}

.guide-modal-body {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: calc(80vh - 80px);
}

/* Guide Sidebar Styles */
.guide-sidebar {
    background: #f8f9fa;
    padding: 1.5rem;
    border-right: 1px solid #eee;
}

.toc-header h3 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 0.5rem;
}

.toc-list a {
    display: block;
    padding: 0.8rem 1rem;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.toc-list li.active a {
    background: #e8f5e9;
    color: #2ecc71;
}

.toc-list a:hover {
    background: #f0f9f4;
    color: #2ecc71;
}

/* Guide Content Styles */
.guide-content {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.guide-content section {
    margin-bottom: 3rem;
}

.guide-content h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.guide-content img {
    width: 100%;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.guide-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.key-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.point {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.point i {
    font-size: 2rem;
    color: #2ecc71;
    margin-bottom: 1rem;
}

.info-box {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.certification-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.step {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    position: relative;
}

.step-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: #2ecc71;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .guide-modal-body {
        grid-template-columns: 1fr;
    }

    .guide-sidebar {
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .certification-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .guide-modal-content {
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
    }

    .key-points {
        grid-template-columns: 1fr;
    }

    .certification-steps {
        grid-template-columns: 1fr;
    }
}

/* Forums Page Styles */
.forums-header {
    background: linear-gradient(rgba(46, 204, 113, 0.1), rgba(46, 204, 113, 0.05));
    padding: 3rem 2rem;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.header-content h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.header-content p {
    color: #666;
    margin-bottom: 2rem;
}

.forum-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.search-container {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    flex: 1;
}

.search-container input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
}

.search-container button {
    padding: 0 1.5rem;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.new-topic-btn {
    padding: 1rem 2rem;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.new-topic-btn:hover {
    background: #27ae60;
}

/* Forums Content Layout */
.forums-content {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

/* Forums Sidebar */
.forums-sidebar {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: fit-content;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.forum-categories {
    list-style: none;
    padding: 0;
}

.forum-categories li {
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
}

.forum-categories li:hover {
    background: #f0f9f4;
    color: #2ecc71;
}

.forum-categories li.active {
    background: #e8f5e9;
    color: #2ecc71;
}

.forum-categories li i {
    width: 20px;
}

.forum-categories li span {
    flex: 1;
}

.forum-categories li .count {
    background: #eee;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.9rem;
}

.forum-filters {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* Discussion List */
.discussion-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.discussion-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    gap: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.discussion-card:hover {
    transform: translateY(-2px);
}

.discussion-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 100px;
}

.stat {
    text-align: center;
}

.number {
    font-size: 1.5rem;
    color: #2c3e50;
    font-weight: bold;
}

.label {
    color: #666;
    font-size: 0.9rem;
}

.discussion-content {
    flex: 1;
}

.discussion-content h3 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.discussion-content p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.discussion-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.meta-left, .meta-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category {
    background: #e8f5e9;
    color: #2ecc71;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
}

.author {
    color: #666;
}

.time {
    color: #666;
}

.status {
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.9rem;
}

.status.solved {
    background: #e8f5e9;
    color: #2ecc71;
}

.status.active {
    background: #e3f2fd;
    color: #2196f3;
}

.status.unanswered {
    background: #fff3e0;
    color: #f39c12;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .forums-content {
        grid-template-columns: 1fr;
    }

    .forums-sidebar {
        position: sticky;
        top: 1rem;
    }
}

@media (max-width: 768px) {
    .forums-header {
        padding: 2rem 1rem;
    }

    .header-content h1 {
        font-size: 2rem;
    }

    .forum-actions {
        flex-direction: column;
    }

    .search-container {
        width: 100%;
    }

    .new-topic-btn {
        width: 100%;
        justify-content: center;
    }

    .discussion-card {
        flex-direction: column;
        gap: 1rem;
    }

    .discussion-stats {
        flex-direction: row;
        justify-content: center;
    }

    .discussion-meta {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* Video Tutorials Page Styles */
.video-header {
    background: linear-gradient(rgba(46, 204, 113, 0.1), rgba(46, 204, 113, 0.05));
    padding: 3rem 2rem;
    text-align: center;
}

.video-content {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

/* Sidebar Styles */
.video-sidebar {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.video-categories {
    list-style: none;
    padding: 0;
}

.video-categories li {
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
}

.video-categories li:hover {
    background: #f0f9f4;
    color: #2ecc71;
}

.video-categories li.active {
    background: #e8f5e9;
    color: #2ecc71;
}

.count {
    background: #eee;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.9rem;
}

.duration-filters {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.duration-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* Video Grid Styles */
.video-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Featured Video */
.featured-video {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.video-player {
    position: relative;
    aspect-ratio: 16/9;
    cursor: pointer;
}

.video-player img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(46, 204, 113, 0.9);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-btn:hover {
    background: #2ecc71;
    transform: translate(-50%, -50%) scale(1.1);
}

.featured-info {
    padding: 1.5rem;
}

.featured-info h2 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
}

.video-meta {
    display: flex;
    gap: 1.5rem;
    color: #666;
    font-size: 0.9rem;
}

/* Video Cards */
.video-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.video-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

.thumbnail {
    position: relative;
    aspect-ratio: 16/9;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.video-info {
    padding: 1.5rem;
}

.video-info h3 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.video-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
}

.video-modal.active {
    display: block;
}

.modal-content {
    position: relative;
    max-width: 1000px;
    margin: 2rem auto;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal-info {
    padding: 1.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .video-content {
        grid-template-columns: 1fr;
    }

    .video-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .video-cards {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 1rem;
    }
}

/* Video Grid Layout Improvements */
.video-content {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 250px 1fr; /* Reduced sidebar width for more video space */
    gap: 2rem;
}

/* Featured Video Improvements */
.featured-video {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.video-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

/* Video Cards Grid Layout */
.video-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Show 3 videos per row */
    gap: 1.5rem;
}

.video-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure all cards are same height */
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .thumbnail img {
    transform: scale(1.05);
}

.video-info {
    padding: 1.2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.video-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.video-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
    flex-grow: 1;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.8rem;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: #666;
}

/* Duration Badge */
.duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Play Button Improvements */
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(46, 204, 113, 0.9);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.video-card:hover .play-btn,
.featured-video:hover .play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Responsive Design Improvements */
@media (max-width: 1200px) {
    .video-cards {
        grid-template-columns: repeat(2, 1fr); /* 2 videos per row on medium screens */
    }
}

@media (max-width: 1024px) {
    .video-content {
        grid-template-columns: 1fr; /* Stack sidebar and content on tablet */
    }
    
    .video-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .video-cards {
        grid-template-columns: 1fr; /* 1 video per row on mobile */
    }
    
    .video-content {
        padding: 0 1rem;
    }
    
    .featured-video {
        margin-bottom: 1.5rem;
    }
}

/* Category Pills in Video Cards */
.category-pill {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: #e8f5e9;
    color: #2ecc71;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

/* Video Stats */
.video-stats {
    display: flex;
    gap: 1rem;
    color: #666;
    font-size: 0.85rem;
}

.video-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.video-stats i {
    font-size: 0.9rem;
    color: #999;
}

/* Loading Placeholder Animation */
@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

.loading-placeholder {
    background: linear-gradient(to right, #f6f7f8 8%, #edeef1 18%, #f6f7f8 33%);
    background-size: 800px 104px;
    animation: shimmer 1.5s infinite linear;
    border-radius: 12px;
    height: 200px;
}

/* Research Articles Styles */
.research-header {
    background: linear-gradient(rgba(46, 204, 113, 0.1), rgba(46, 204, 113, 0.05));
    padding: 4rem 2rem;
    text-align: center;
}

.research-content {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}