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

:root {
    --primary-color: #0066cc;
    --secondary-color: #00a8e8;
    --accent-color: #ff6b35;
    --bg-light: #f5f7fa;
    --bg-dark: #1a1a2e;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #ddd;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
}

/* Navigation */
.navbar {
    background-color: var(--bg-dark);
    padding: 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    color: var(--secondary-color);
    font-size: 1.8rem;
    font-weight: bold;
}

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

.nav-menu a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

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

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.welcome {
    text-align: center;
    margin: 3rem 0;
}

.welcome h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.category-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: var(--shadow);
}

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

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    margin: 1rem 0;
    color: var(--primary-color);
}

.category-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.category-card h3 a:hover {
    color: var(--accent-color);
}

.category-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Featured Resources */
.featured {
    background: var(--bg-light);
    padding: 3rem 2rem;
    border-radius: 8px;
    margin: 3rem 0;
}

.featured h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

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

.resource-item {
    background: white;
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid var(--secondary-color);
}

.main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2rem;
    align-items: start;
}

.main-content {
    display: grid;
    gap: 2rem;
}

.sidebar {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 110px;
    align-self: start;
}

.rss-card {
    display: grid;
    gap: 1rem;
}

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

.rss-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.rss-header a {
    color: var(--secondary-color);
    text-decoration: none;
}

.rss-source {
    display: grid;
    gap: 0.5rem;
}

.rss-source label {
    font-weight: 600;
    color: var(--text-dark);
}

.rss-source select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: #fff;
}

.rss-status {
    color: var(--text-light);
    font-size: 0.95rem;
}

.rss-item-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.rss-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.rss-item a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
}

.rss-item a:hover {
    color: var(--primary-color);
}

@media (max-width: 1024px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
}

.resource-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.resource-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Buttons */
.button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s;
    font-weight: 500;
}

.button:hover {
    background: var(--secondary-color);
}

.button-secondary {
    background: var(--accent-color);
}

.button-secondary:hover {
    background: #e55a2b;
}

/* Content Sections */
.content-header {
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.content-header h2 {
    color: var(--primary-color);
    font-size: 2rem;
}

/* Video Container */
.video-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.video-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.video-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 1rem;
}

.video-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.video-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Links Section */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.link-card {
    background: white;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 6px;
    transition: border-color 0.3s;
}

.link-card:hover {
    border-color: var(--primary-color);
}

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

.link-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

.footer p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    box-shadow: var(--shadow);
}

th {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

tr:hover {
    background: var(--bg-light);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

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

    table {
        font-size: 0.85rem;
    }

    th, td {
        padding: 0.5rem;
    }
}
