/* Dark Mode Base Styles */
:root {
    --temple-maroon: #B52E5A;
    --temple-gold: #FFC107;
    --temple-saffron: #FFA000;
    --temple-ochre: #D45A2A;
    --temple-stone: #A0A0A0;
    --temple-sacred-blue: #1E4D6B;
    --temple-spiritual-purple: #7A4D9C;
    --temple-forest-green: #3A7D1C;
    --font-cormorant: 'Cormorant Garamond', serif;
    --font-poppins: 'Poppins', sans-serif;
    --bg-dark: #121212;
    --bg-darker: #0D0D0D;
    --text-primary: #E0E0E0;
    --text-secondary: #B0B0B0;
    --card-bg: #1E1E1E;
    --border-color: #333333;
}

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

body {
    font-family: var(--font-poppins);
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-dark);
    overflow-x: hidden;
}

.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pattern-bg.png');
    background-size: 300px;
    opacity: 0.05;
    z-index: -1;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    filter: brightness(0.9);
}

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

.sacred-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--temple-gold), var(--temple-saffron), var(--temple-ochre));
    margin: 15px auto 25px;
    border-radius: 2px;
}

.sacred-divider.left {
    margin-left: 0;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.btn.primary {
    background-color: var(--temple-maroon);
    color: white;
}

.btn.primary:hover {
    background-color: var(--temple-ochre);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(181, 46, 90, 0.3);
}

.btn.secondary {
    background-color: transparent;
    border: 2px solid var(--text-primary);
    color: var(--text-primary);
}

.btn.secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn.gold {
    background-color: var(--temple-gold);
    color: var(--bg-dark);
    font-weight: 600;
}

.btn.gold:hover {
    background-color: var(--temple-saffron);
    transform: translateY(-2px);
}

.center {
    text-align: center;
    margin-top: 30px;
}

/* Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.temple-shadow {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: var(--bg-darker);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.logo h1 {
    font-family: var(--font-cormorant);
    font-size: 28px;
    font-weight: 700;
    color: var(--temple-maroon);
}

.logo h1 span {
    color: var(--temple-gold);
}

nav ul {
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
}

nav ul li a:hover {
    color: var(--temple-maroon);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--temple-gold);
    transition: width 0.3s;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--temple-maroon);
    margin: 3px 0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hero { 
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/3/32/Chennai_Central.jpg?20191216051641');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-family: var(--font-cormorant);
    font-size: 4rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 5px;
    font-family: var(--font-cormorant);
}

.hero-content .subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-family: var(--font-poppins);
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-indicator {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 2;
}

.hero-indicator span {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-indicator span.active {
    width: 30px;
    background-color: var(--temple-gold);
    border-radius: 10px;
}

/* About Section Styles */
.about {
    padding: 80px 0;
    background-color: var(--bg-darker);
}

.about .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-family: var(--font-cormorant);
    font-size: 2.5rem;
    color: var(--temple-maroon);
    margin-bottom: 15px;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.about-images {
    flex: 1;
}

.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

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

.image-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.5s ease;
    border: 1px solid var(--border-color);
}

.image-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Featured Temples Section */
.featured-temples {
    padding: 80px 0;
    background-color: var(--bg-darker);
}

.featured-temples h2 {
    font-family: var(--font-cormorant);
    font-size: 2.5rem;
    color: var(--temple-maroon);
    text-align: center;
    margin-bottom: 10px;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--text-secondary);
}

.category-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.category-filter button {
    padding: 8px 16px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: var(--text-primary);
}

.category-filter button:hover {
    background-color: var(--temple-sacred-blue);
}

.category-filter button.active {
    background-color: var(--temple-maroon);
    color: white;
    border-color: var(--temple-maroon);
}

.temple-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.temple-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.temple-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--temple-gold);
}

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

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

.temple-card:hover .temple-image img {
    transform: scale(1.1);
}

.temple-location {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 8px 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 14px;
}

.temple-content {
    padding: 20px;
}

.temple-content h3 {
    font-family: var(--font-cormorant);
    font-size: 1.5rem;
    color: var(--temple-maroon);
    margin-bottom: 10px;
}

.temple-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.temple-tags span {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

.temple-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.5;
}

.temple-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.temple-link {
    color: var(--temple-maroon);
    font-weight: 500;
    font-size: 14px;
}

.temple-link:hover {
    color: var(--temple-ochre);
}

.temple-arrow {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(243, 167, 18, 0.1);
    border-radius: 50%;
    color: var(--temple-gold);
    transition: all 0.3s ease;
}

.temple-card:hover .temple-arrow {
    background-color: var(--temple-gold);
    color: var(--bg-dark);
    transform: translateX(5px);
}

/* Stats Section */
.stats {
    background-color: var(--bg-darker);
    color: white;
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--temple-gold);
    font-family: var(--font-cormorant);
    margin-bottom: 10px;
}

.stat-box p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Sacred Stories Section */
.sacred-stories {
    padding: 80px 0;
    background-color: var(--bg-darker);
}

.sacred-stories h2 {
    font-family: var(--font-cormorant);
    font-size: 2.5rem;
    color: var(--temple-maroon);
    text-align: center;
    margin-bottom: 10px;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.story-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.story-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--temple-gold);
}

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

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

.story-card:hover .story-image img {
    transform: scale(1.1);
}

.story-category {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 10px;
    background-color: var(--temple-gold);
    color: var(--bg-dark);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.story-content {
    padding: 20px;
}

.story-content h3 {
    font-family: var(--font-cormorant);
    font-size: 1.3rem;
    color: var(--temple-maroon);
    margin-bottom: 10px;
}

.story-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.5;
}

.story-link {
    display: inline-block;
    color: var(--temple-gold);
    font-weight: 500;
    font-size: 14px;
    position: relative;
    padding-bottom: 2px;
}

.story-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--temple-gold);
    transition: width 0.3s;
}

.story-link:hover::after {
    width: 100%;
}

/* Virtual Tour Section */
.virtual-tour {
    position: relative;
    padding: 80px 0;
    background-image: url('https://images.unsplash.com/photo-1558451911-c18db11dce67?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
}

.tour-video {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.ornate-border {
    border: 4px solid var(--temple-gold);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    background-color: var(--card-bg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
}

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

.tour-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-darker);
}

.virtual-tour .container {
    position: relative;
    z-index: 2;
}

.virtual-tour h2 {
    font-family: var(--font-cormorant);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
}

.tour-video {
    margin: 40px auto;
    max-width: 800px;
}

.ornate-border {
    background: linear-gradient(45deg, var(--temple-gold), var(--temple-ochre), var(--temple-maroon));
    padding: 5px;
    border-radius: 12px;
}

.video-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background-color: black;
}

.video-container img {
    width: 100%;
    display: block;
    transition: opacity 0.3s ease;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-container:hover img {
    opacity: 0.7;
}

.video-container:hover .play-button {
    background-color: var(--temple-gold);
    transform: translate(-50%, -50%) scale(1.1);
    color: var(--bg-dark);
}

.tour-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 60px;
    text-align: center;
}

.feature-box h3 {
    font-family: var(--font-cormorant);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--temple-gold);
}

.feature-box p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Newsletter Section */
.newsletter {
    padding: 80px 0;
    background-color: var(--bg-darker);
}

.newsletter .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.newsletter-content h2 {
    font-family: var(--font-cormorant);
    font-size: 2.2rem;
    color: var(--temple-maroon);
    margin-bottom: 20px;
}

.newsletter-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.benefits {
    margin-top: 30px;
}

.benefits li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--temple-gold);
    font-weight: bold;
}

.newsletter-form {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.newsletter-form h3 {
    font-family: var(--font-cormorant);
    font-size: 1.5rem;
    color: var(--temple-maroon);
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: var(--text-secondary);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    color: var(--text-primary);
}

.form-group input:focus {
    border-color: var(--temple-gold);
    outline: none;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.form-check input {
    margin-right: 10px;
}

.form-check label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Footer Styles */
footer {
    background-color: var(--bg-darker);
    padding: 60px 0 30px;
    color: var(--text-primary);
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3 {
    font-family: var(--font-cormorant);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-about h3 span {
    color: var(--temple-gold);
}

.footer-about p {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--temple-gold);
    transform: translateY(-3px);
    color: var(--bg-dark);
}

.footer-links h4 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--temple-gold);
    bottom: -10px;
    left: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    font-size: 14px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--temple-gold);
    padding-left: 5px;
}

.footer-newsletter h4 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-newsletter h4::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--temple-gold);
    bottom: -10px;
    left: 0;
}

.footer-newsletter p {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 20px;
}

.footer-form {
    display: flex;
    height: 45px;
}

.footer-form input {
    flex: 1;
    padding: 10px 15px;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    color: var(--text-primary);
}

.footer-form button {
    width: 45px;
    background-color: var(--temple-maroon);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.footer-form button:hover {
    background-color: var(--temple-ochre);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    font-size: 14px;
    flex-wrap: wrap;
    gap: 20px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    opacity: 0.7;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    opacity: 0.7;
    transition: all 0.3s ease;
}

.footer-legal a:hover {
    opacity: 1;
    color: var(--temple-gold);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 20px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .about .container {
        flex-direction: column;
    }
    
    .newsletter .container {
        grid-template-columns: 1fr;
    }
    
    nav {
        display: none;
    }
    
    nav.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--bg-darker);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
        padding: 20px;
        z-index: 100;
        border-bottom: 1px solid var(--border-color);
    }
    
    nav.active ul {
        flex-direction: column;
    }
    
    nav.active ul li {
        margin: 10px 0;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-intro {
        font-size: 0.9rem;
    }
    
    .category-filter {
        flex-wrap: wrap;
    }
    
    .temple-grid {
        grid-template-columns: 1fr;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
    }
    
    .tour-features {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }


}

    .dynamic-feeds {
        background-color: var(--bg-darker);
        padding: 2rem 1rem;
    }
    
    .feed-grid {
        display: grid;
        gap: 1.5rem;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .feed-card {
        background: white;
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        height: 100%; /* Ensure full card fills grid height */
        overflow: hidden;
    }
    
    /* Ensures all images are same size */
    .feed-card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }
    
    /* Padding only for the content (not image) */
    .feed-card .feed-content {
        padding: 1rem;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .feed-card h4 {
        margin: 0 0 0.5rem;
        font-weight: 600;
        color: #333;
        font-size: 1rem;
        line-height: 1.3;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* Limits title to 2 lines */
        -webkit-box-orient: vertical;
    }
    
    .feed-card p {
        margin: 0.5rem 0;
        color: #555;
        font-size: 0.95rem;
        line-height: 1.4;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 3; /* Limits desc to 3 lines */
        -webkit-box-orient: vertical;
    }
    
    .feed-card .timestamp {
        font-size: 0.8rem;
        color: #999;
        margin-top: auto;
    }

    .tweet-slider {
            width: 80%;
            margin: 0 auto;
            padding: 20px;
        }
        .tweet-slide {
            background: #f5f8fa;
            border-radius: 10px;
            padding: 15px;
            margin: 10px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        .tweet-image {
            max-width: 100%;
            height: auto;
            border-radius: 5px;
            margin-bottom: 10px;
        }
        .tweet-text {
            margin-bottom: 10px;
            color: #14171a;
        }
        .tweet-link {
            display: inline-block;
            color: #1da1f2;
            text-decoration: none;
        }
        .tweet-link:hover {
            text-decoration: underline;
        }
        .tweet-date {
            font-size: 0.8em;
            color: #657786;
        }
        .error {
            color: #e0245e;
        }
        /* Alternative to Slick */
        .tweet-slider {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding: 10px 0;
        }
        .tweet-slide {
        scroll-snap-align: start;
        flex: 0 0 80%;
        }