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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

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

/* Header */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 1.25rem;
}

.logo img {
    margin-right: 10px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #4a90e2;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Main Content */
.main {
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: #4a90e2;
    color: white;
}

.btn-primary:hover {
    background-color: #357abd;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-outline {
    background-color: transparent;
    color: #4a90e2;
    border-color: #4a90e2;
}

.btn-outline:hover {
    background-color: #4a90e2;
    color: white;
}

/* Page Header */
.page-header {
    background-color: #f8f9fa;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.page-header p {
    font-size: 1.125rem;
    color: #666;
}

/* Sections */
.featured-section,
.categories-preview,
.videos-section,
.categories-section {
    padding: 4rem 0;
}

.featured-section h2,
.categories-preview h2,
.videos-section h2,
.categories-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #333;
}

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

.video-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

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

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.875rem;
}

.video-info {
    padding: 1.5rem;
}

.video-info h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: #333;
    line-height: 1.4;
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #666;
}

.video-description {
    color: #666;
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

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

.category-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #4a90e2;
}

.category-card p {
    color: #666;
    font-size: 0.9375rem;
}

/* Controls */
.videos-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #4a90e2;
}

.filter-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-select {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #4a90e2;
}

/* Category Filter */
.category-filter {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.category-btn {
    padding: 10px 20px;
    border: 2px solid #e9ecef;
    background-color: white;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
    background-color: #4a90e2;
    border-color: #4a90e2;
    color: white;
}

/* Results Info */
.results-info,
.category-stats {
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9375rem;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

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

/* Video Details */
.breadcrumb {
    margin-bottom: 2rem;
    color: #666;
    font-size: 0.9375rem;
}

.breadcrumb a {
    color: #4a90e2;
    text-decoration: none;
}

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

.video-details {
    margin-bottom: 3rem;
}

.video-player-section {
    margin-bottom: 2rem;
}

.video-embed-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin-bottom: 1rem;
}

.video-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.video-disclaimer {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #4a90e2;
}

.video-disclaimer p {
    margin: 0;
    font-size: 0.9375rem;
    color: #666;
}

.video-header h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.9375rem;
    color: #666;
}

.video-description,
.video-topics {
    margin-bottom: 2rem;
}

.video-description h3,
.video-topics h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #333;
}

.topics-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.topic-tag {
    background-color: #e9ecef;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    color: #495057;
}

.video-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* About Page */
.about-content {
    padding: 3rem 0;
}

.about-grid {
    display: grid;
    gap: 3rem;
}

.about-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.about-section p {
    margin-bottom: 1rem;
    color: #666;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    margin-left: 0;
}

.feature-list li {
    margin-bottom: 1rem;
    padding-left: 0;
    color: #666;
    line-height: 1.6;
}

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

.value-card {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.value-card h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: #4a90e2;
}

.value-card p {
    color: #666;
    font-size: 0.9375rem;
    margin: 0;
}

.contact-info {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.contact-info p {
    margin-bottom: 1rem;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

/* Contact Page */
.contact-section {
    padding: 3rem 0;
}

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

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.contact-item p,
.contact-item address {
    color: #666;
    font-style: normal;
    line-height: 1.6;
}

.contact-item a {
    color: #4a90e2;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-form {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a90e2;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.form-message {
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
}

.form-message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.form-message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.form-message h3 {
    margin-bottom: 0.5rem;
}

.form-message p {
    margin: 0;
}

/* FAQ Section */
.faq-section {
    margin-top: 3rem;
}

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

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

.faq-item h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: #333;
}

.faq-item p {
    color: #666;
    font-size: 0.9375rem;
    margin: 0;
}

/* Legal Pages */
.legal-content {
    padding: 3rem 0;
}

.legal-document {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.legal-document h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    color: #333;
}

.legal-document h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem 0;
    color: #333;
}

.legal-document p {
    margin-bottom: 1rem;
    color: #666;
}

.legal-document ul,
.legal-document ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.legal-document li {
    margin-bottom: 0.5rem;
    color: #666;
}

.legal-document address {
    font-style: normal;
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
}

.disclaimer-highlight {
    background-color: #e7f3ff;
    border: 2px solid #4a90e2;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.disclaimer-highlight h2 {
    color: #4a90e2;
    margin-bottom: 1rem;
}

.disclaimer-highlight p {
    color: #333;
    font-size: 1.125rem;
    margin: 0;
}

/* Category Overview */
.category-overview {
    background-color: #f8f9fa;
    padding: 3rem 0;
}

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

.category-info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #4a90e2;
}

.category-info-card p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.category-count {
    font-size: 0.875rem;
    color: #999;
    font-weight: 500;
}

/* Section Footer */
.section-footer {
    text-align: center;
    margin-top: 2rem;
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.error-message h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.error-message p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 3rem 0 1rem 0;
    margin-top: 4rem;
}

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

.footer-section h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

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

.footer-section ul li a:hover {
    color: #ffffff;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .videos-controls {
        flex-direction: column;
    }
    
    .filter-controls {
        justify-content: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .video-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .video-actions {
        flex-direction: column;
    }
    
    .category-filter {
        justify-content: flex-start;
    }
    
    .hero-actions .btn {
        width: 200px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .page-header {
        padding: 2rem 0;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .featured-section,
    .categories-preview,
    .videos-section,
    .categories-section {
        padding: 2rem 0;
    }
    
    .video-info {
        padding: 1rem;
    }
    
    .category-card {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .legal-document {
        padding: 0 1rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .video-actions,
    .hero-actions,
    .videos-controls,
    .category-filter {
        display: none;
    }
    
    .main {
        margin: 0;
    }
    
    .video-embed-container {
        border: 2px solid #333;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #f8f9fa;
    }
    
    .video-embed-container::after {
        content: "Video content available online";
        font-size: 1rem;
        color: #666;
    }
}