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

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header Styles */
.header {
    background-color: #007bff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 75px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

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

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

/* Breadcrumb */
.breadcrumb {
    background-color: #007bff;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
    color: #fff;
}

.breadcrumb .container {
    font-size: 18px;
    font-weight: 500;
}

.breadcrumb a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
    color: #e6f3ff;
}

/* Main Layout */
.main-content {
    padding: 30px 0;
}

.main-content .container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.content-area {
    flex: 1;
}

/* Page Title */
.page-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Project Card */
.project-card {
    background: #f5f5dc;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 25px;
}

.project-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.tag.qs-ranking {
    background: #8B0000;
    background: linear-gradient(135deg, #8B0000 0%, #B22222 100%);
}

.project-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Sidebar */
.sidebar {
    width: 300px;
    flex-shrink: 0;
}

.search-box {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.search-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #007bff;
}

.search-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
}

.sidebar-menu {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.sidebar-menu h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f8f9fa;
}

.menu-list {
    list-style: disc;
    padding-left: 20px;
}

.menu-list > li {
    margin-bottom: 15px;
}

.menu-list > li > a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    display: block;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.menu-list > li > a:hover {
    color: #007bff;
}

.submenu {
    list-style: none;
    margin-top: 10px;
    padding-left: 15px;
}

.submenu li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.submenu li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 14px;
}

.submenu a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    display: block;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.submenu a:hover {
    color: #007bff;
}

/* Top Content */
.top-content {
    background-color: #f8f9fa;
    padding: 30px 0;
    margin-bottom: 30px;
}

.top-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.note-section,
.suggestions-section {
    background: #f5f5dc;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f8f9fa;
}

.note-list,
.suggestions-list {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}

.note-list li,
.suggestions-list li {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
    font-size: 14px;
}

.requirements-list {
    list-style: none;
    margin-top: 10px;
    padding-left: 15px;
}

.requirements-list li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.requirements-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 14px;
}

/* Footer */
.footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 30px 0;
    margin-top: 0;
}

.footer p {
    font-size: 14px;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .top-sections {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-content {
        padding: 20px;
    }
    
    .project-title {
        font-size: 16px;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 13px;
    }
    
    .page-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .project-content {
        padding: 15px;
    }
    
    .search-box,
    .sidebar-menu {
        padding: 20px;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card {
    animation: fadeInUp 0.6s ease forwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }
.project-card:nth-child(7) { animation-delay: 0.7s; }
.project-card:nth-child(8) { animation-delay: 0.8s; }
.project-card:nth-child(9) { animation-delay: 0.9s; }

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.nav-link:focus,
.read-more:focus,
.search-input:focus,
.search-btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}
