/* sources.css */
/* Base Styles */
body {
    font-family: 'Teko', sans-serif;
    background: #f0e6d2;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.6;
}

/* Header matching Culture tab */
.sources-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), url('../assets/images/mumbai-library.jpg'));
    background-size: cover;
    background-position: center;
    color: black;
    padding-bottom: 4rem;
    border-bottom: 3px solid #e63946;
}

.sources-nav {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    font-family: 'Teko', sans-serif;
    font-size: 1.2rem;
}

.nav-left a {
    color: black;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.5rem;
}

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

.nav-right a {
    color: rgba(0, 0, 0, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-right a:hover, .nav-right a.active {
    color: rgb(0, 0, 0);
    text-decoration: underline;
}

.header-content {
    text-align: center;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.sources-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    margin: 0;
    letter-spacing: -1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Main Content */
.sources-container {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 2rem;
}

h2 {
    font-family: 'Playfair Display', serif;
    color: #e63946;
    font-size: 2.2rem;
    margin: 3rem 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon {
    font-size: 1.8rem;
}

.narrative-text {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    font-size: 1.2rem;
    line-height: 1.8;
}

/* Timeline Section */
.timeline {
    position: relative;
    padding-left: 50px;
    margin: 3rem 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: -50px;
    top: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.marker-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e63946;
    border: 3px solid #1d3557;
    z-index: 2;
}

.marker-line {
    width: 2px;
    flex-grow: 1;
    background: #1d3557;
    margin-top: 5px;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-content h3 {
    color: #1d3557;
    margin-top: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.resource-list li {
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.resource-list li::before {
    content: "•";
    color: #e63946;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -3px;
}

.resource-desc {
    display: block;
    color: #555;
    font-size: 1.1rem;
    margin-top: 0.3rem;
}

.resource-link {
    display: inline-block;
    color: #457b9d;
    text-decoration: none;
    font-size: 1.2rem;
    margin: 1rem 0;
    transition: color 0.3s;
}

.resource-link:hover {
    color: #e63946;
}

.link-icon {
    margin-left: 5px;
}

/* Video Resources */
.video-resource {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0;
    align-items: center;
}

.video-thumbnail {
    position: relative;
    cursor: pointer;
    min-width: 160px;
}

.video-thumbnail img {
    width: 160px;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.video-thumbnail:hover img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(230, 57, 70, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button i {
    color: white;
    margin-left: 3px;
}

.video-info h4 {
    margin: 0 0 0.3rem;
    font-size: 1.3rem;
}

.video-info p {
    margin: 0;
    color: #555;
}

/* Footer */
.sources-footer {
    text-align: center;
    padding: 3rem 2rem;
    background: #1d3557;
    color: white;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: #a8dadc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #e63946;
}

.back-home a {
    color: #a8dadc;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
    display: inline-block;
    margin: 1rem 0;
}

.back-home a:hover {
    color: #e63946;
}

.sources-footer p {
    margin: 1rem 0 0;
    opacity: 0.8;
}

/* Sanskrit Glyphs */
.sanskrit-glyph {
    position: absolute;
    font-family: 'Teko', sans-serif;
    font-weight: 400;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.9;
    animation: glyphFade 1.5s ease-out forwards;
}

@keyframes glyphFade {
    0% {
        transform: translate(-50%, -50%) scale(0.8) translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.3) translateY(-30px) rotate(15deg);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .sources-nav {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .sources-header h1 {
        font-size: 3rem;
    }
    
    .timeline {
        padding-left: 30px;
    }
    
    .timeline-marker {
        left: -30px;
    }
    
    .video-resource {
        flex-direction: column;
        align-items: flex-start;
    }
}