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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #fff;
    color: #333;
    line-height: 1.6;
}

/* Features Section */
.features {
    padding: 80px 20px;
    background: #f9f9f9;
    text-align: center;
}

.features h2 {
    font-family: 'Lora', serif;
    font-size: 2.8rem;
    color: #2c3e50;
    margin-bottom: 40px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature {
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.feature:hover {
    transform: translateY(-10px);
}

.feature img {
    height: 60px;
    margin-bottom: 20px;
}

.feature h2 {
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.feature p {
    font-size: 1.1rem;
    color: #666;
}

/* Daily Verse Section */
.daily-verse {
    padding: 60px 20px;
    background: #fff;
    text-align: center;
    position: relative;
}

.daily-verse h2 {
    font-family: 'Lora', serif;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 40px;
}

.verse-card {
    display: block;
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: linear-gradient(135deg, #ffffff, #f9f9f9);
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(142, 68, 173, 0.3);
    text-decoration: none;
    color: #333;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.verse-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(142, 68, 173, 0.2) 0%, transparent 70%);
    animation: glowPulse 8s infinite ease-in-out;
    z-index: -1;
}

.verse-card:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15), 0 0 0 4px rgba(142, 68, 173, 0.5);
}

.verse-card p {
    font-family: 'Lora', serif;
    font-size: 1.4rem;
    font-style: italic;
    color: #2c3e50;
    margin-bottom: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.verse-card .reference {
    font-size: 1.1rem;
    color: #8e44ad;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Explore Links */
.explore-links {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.study-tools {
    flex: 1;
    min-width: 300px;
    background: #f5f6f5;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.study-tools h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #2c3e50;
}

.study-tools p {
    margin-bottom: 10px;
}

.error {
    color: #d32f2f;
}

.original-language,
.translations {
    margin-bottom: 20px;
}

.original-language h3,
.translations h3 {
    font-size: 1.2em;
    color: #34495e;
}

.translation {
    margin-bottom: 15px;
}

.translation h4 {
    font-size: 1em;
    color: #34495e;
    margin-bottom: 5px;
}

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

.study-tools a:hover {
    text-decoration: underline;
}

.explore-links h2 {
    font-family: 'Lora', serif;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.explore-links p {
    font-size: 1.2rem;
    margin: 15px 0;
}

.explore-links a {
    color: #8e44ad;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.explore-links a:hover {
    color: #2c3e50;
    text-decoration: underline;
}

/* Latest Blogs Section */
.latest-blogs {
    padding: 80px 20px;
    background: radial-gradient(circle at center, rgba(142, 68, 173, 0.3) 0%, rgba(255, 255, 255, 0.8) 70%);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.latest-blogs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.5);
}

.latest-blogs h2 {
    font-family: 'Lora', serif;
    font-size: 3rem;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.blog-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 30px;
    padding: 20px 0;
    flex: 1;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.blog-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 1);
}

.carousel-btn.prev {
    margin-right: 20px;
}

.carousel-btn.next {
    margin-left: 20px;
}

/* Subscribe Form */
.subscribe {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.subscribe h2 {
    font-family: 'Lora', serif;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.subscribe input[type="email"] {
    width: 70%;
    padding: 10px;
    margin-bottom: 15px;
    border: 2px solid #8e44ad;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
}

.subscribe button {
    padding: 10px 20px;
    background: #8e44ad;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
}

.subscribe button:hover {
    background: #2c3e50;
}

.subscribe-msg {
    margin-top: 15px;
    font-size: 1rem;
}

.subscribe-msg.success {
    color: #2c3e50;
}

.subscribe-msg.error {
    color: #d9534f;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #8e44ad;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
}

.back-to-top:hover {
    transform: scale(1.1);
}

/* Animations */
@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: rotate(0deg);
    }

    50% {
        opacity: 0.8;
        transform: rotate(180deg);
    }
}

/* Error Message */
.error {
    color: #d9534f;
    text-align: center;
    margin: 20px 0;
}

/* Media Queries */
@media (max-width: 768px) {
    .features h2 {
        font-size: 2rem;
    }

    .daily-verse h2 {
        font-size: 1.8rem;
    }

    .verse-card {
        padding: 20px;
    }

    .verse-card p {
        font-size: 1.2rem;
    }

    .verse-card .reference {
        font-size: 0.9rem;
    }

    .explore-links {
        margin: 20px;
        padding: 20px;
    }

    .explore-links h2 {
        font-size: 2rem;
    }

    .explore-links p {
        font-size: 1rem;
    }

    .latest-blogs h2 {
        font-size: 2rem;
    }

    .carousel-container {
        flex-direction: row;
        gap: 10px;
    }

    .carousel-btn {
        padding: 8px;
        font-size: 1.2rem;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}