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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: linear-gradient(135deg, #000000 0%, #010306 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

a {
    text-decoration: none;
}

.subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    font-weight: 300;
    font-style: italic;
}

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

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

.topic-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

.topic-header {
    background: linear-gradient(135deg, #8B4513, #D2691E);
    padding: 2rem;
    color: white;
    text-align: center;
}

.topic-header.legal-writing {
    background: linear-gradient(135deg, #4a5568, #718096);
    background-image: linear-gradient(135deg, rgba(45, 55, 72, 0.7), rgba(74, 85, 104, 0.7)), url('../images/writing.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.topic-header.legal-research {
    background: linear-gradient(135deg, #2d3748, #4a5568);
    background-image: linear-gradient(135deg, rgba(45, 55, 72, 0.7), rgba(74, 85, 104, 0.7)), url('../images/research.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.topic-header.estate-planning {
    background: linear-gradient(135deg, #553c9a, #7c3aed);
    background-image: linear-gradient(135deg, rgba(45, 55, 72, 0.7), rgba(74, 85, 104, 0.7)), url('../images/will.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.topic-header.remedies {
    background: linear-gradient(135deg, #b91c1c, #dc2626);
    background-image: linear-gradient(135deg, rgba(45, 55, 72, 0.7), rgba(74, 85, 104, 0.7)), url('../images/money.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.topic-header.torts {
    background: linear-gradient(135deg, #059669, #10b981);
    background-image: linear-gradient(135deg, rgba(45, 55, 72, 0.7), rgba(74, 85, 104, 0.7)), url('../images/ambulance.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.topic-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

.topic-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

.topic-description {
    opacity: 0.9;
    font-size: 1rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

.topic-content {
    padding: 2rem;
}

.resource-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resource-list {
    list-style: none;
}

.resource-item {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 10px;
    border-left: 4px solid #4299e1;
    transition: all 0.2s ease;
}

.resource-item:hover {
    background: #edf2f7;
    transform: translateX(5px);
}

.resource-link {
    color: #2b6cb0;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resource-link:hover {
    color: #2c5282;
    text-decoration: underline;
}

.resource-description {
    color: #4a5568;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.resource-type {
    background: #4299e1;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.resource-type.video {
    background: #e53e3e;
}

.resource-type.document {
    background: #38a169;
}

.search-bar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-input {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-input:focus {
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.quick-links {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.quick-links h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.quick-link {
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
}

.quick-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .topics-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .container {
        padding: 1rem;
    }

    .topic-header {
        padding: 1.5rem;
    }

    .topic-content {
        padding: 1.5rem;
    }
}

.hidden {
    display: none;
}
