/* ============================================
   FILENAME: styles.css (MOBILE RESPONSIVE)
   PURPOSE: All styling for the church website
   DESCRIPTION: Fixed text overflow and mobile responsiveness
   ============================================ */

/* ============================================
   RESET AND BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* ============================================
   NAVIGATION BAR STYLES
   ============================================ */
nav {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
    white-space: nowrap;
}

nav a:hover {
    opacity: 0.8;
}

.mobile-menu {
    display: none;
    background: white;
    color: #667eea;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

/* ============================================
   HERO SECTION STYLES
   ============================================ */
.hero {
    background: linear-gradient(rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8)), 
                url('https://images.unsplash.com/photo-1438032005730-c779502df39b?w=1600&q=80') center/cover;
    color: white;
    text-align: center;
    padding: 8rem 2rem;
    min-height: 500px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ============================================
   BUTTON STYLES
   ============================================ */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: #667eea;
    color: white;
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   SECTION STYLES
   ============================================ */
section {
    padding: 4rem 2rem;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #667eea;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ============================================
   MORNING DEVOTION STYLES
   ============================================ */
#devotion {
    position: relative;
    overflow: hidden;
    color: white;
    background: linear-gradient(rgba(102, 126, 234, 0.85), rgba(118, 75, 162, 0.85)), 
                url('https://images.unsplash.com/photo-1439066615861-d1af74d74000?w=1600&q=80') center/cover;
    background-attachment: fixed;
    padding: 4rem 2rem;
}

#devotion h2 {
    color: white !important;
}

#devotion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255,255,255,0.06) 0%, transparent 50%);
    animation: waterFlow 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

#devotion::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 80%, white, transparent),
        radial-gradient(1px 1px at 15% 60%, white, transparent);
    background-size: 200% 200%;
    animation: floatingParticles 20s linear infinite;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

@keyframes waterFlow {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(-5%, 5%) scale(1.1);
        opacity: 0.4;
    }
    50% {
        transform: translate(5%, -5%) scale(1.05);
        opacity: 0.35;
    }
    75% {
        transform: translate(-3%, 3%) scale(1.08);
        opacity: 0.4;
    }
}

@keyframes floatingParticles {
    0% {
        background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    }
    100% {
        background-position: 100% 100%, -100% 100%, 50% -50%, 100% 50%, -50% -50%, 80% 100%, 20% -100%;
    }
}

#devotion .container {
    position: relative;
    z-index: 10;
}

.devotion-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.devotion-card {
    background: white;
    color: #333;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.devotion-date {
    text-align: center;
    font-size: 1rem;
    color: #667eea;
    font-weight: bold;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.devotion-verse {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 5px solid #667eea;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: hidden;
}

.verse-text {
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #333;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

.verse-reference {
    text-align: right;
    font-weight: bold;
    color: #667eea;
    font-size: 1.1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.devotion-message h3 {
    color: #667eea;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.devotion-message p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #555;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

/* ============================================
   DEVOTION ENGAGEMENT (Comments & Likes)
   ============================================ */
.devotion-engagement {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.devotion-stats {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 1rem;
}

.like-btn:hover {
    background: #f0f0ff;
    transform: scale(1.05);
}

.like-btn.liked {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border-color: #e74c3c;
}

.comment-count {
    color: #667eea;
    font-weight: 600;
    font-size: 1rem;
}

.comments-section {
    margin-top: 2rem;
}

.comments-section h4 {
    color: #667eea;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.comment-form {
    background: #f9f9ff;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.comment-form input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.comment-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    margin-bottom: 0.5rem;
    resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #667eea;
}

.comment-form .btn {
    width: 100%;
    margin-top: 0.5rem;
}

.comments-list {
    margin-top: 2rem;
}

.comment-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border-left: 4px solid #667eea;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.comment-header strong {
    color: #667eea;
    font-size: 1rem;
}

.comment-time {
    color: #999;
    font-size: 0.85rem;
}

.comment-text {
    color: #555;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

/* ============================================
   EVENTS GRID
   ============================================ */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.event-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-card-content {
    padding: 1.5rem;
}

.event-card h3 {
    color: #667eea;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.event-card p {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.event-date {
    color: #764ba2;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* ============================================
   GALLERY GRID
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery-item img, 
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img, 
.gallery-item:hover video {
    transform: scale(1.1);
}

.gallery-item .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #667eea;
}

/* ============================================
   PRAYER REQUEST SECTION STYLES
   ============================================ */
#prayers {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 30%);
}

.prayer-submit-card {
    max-width: 800px;
    margin: 0 auto 4rem;
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-top: 4px solid #667eea;
}

.prayer-submit-card h3 {
    color: #667eea;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.prayer-submit-card select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    cursor: pointer;
}

.prayer-submit-card select:focus {
    outline: none;
    border-color: #667eea;
}

.prayer-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.filter-btn:hover {
    background: #f0f0ff;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.prayer-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.prayer-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border-left: 5px solid #667eea;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: hidden;
}

.prayer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.prayer-card.answered {
    border-left-color: #27ae60;
    background: linear-gradient(to bottom, #f0fff4 0%, white 100%);
}

.prayer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.prayer-meta {
    flex: 1;
    min-width: 0;
}

.prayer-author {
    font-weight: bold;
    color: #333;
    font-size: 1rem;
    margin-bottom: 0.3rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.prayer-time {
    color: #999;
    font-size: 0.85rem;
}

.prayer-category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.prayer-title {
    color: #667eea;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
}

.prayer-description {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

.answered-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.answered-testimony {
    background: #f0fff4;
    padding: 1rem;
    border-radius: 10px;
    border-left: 3px solid #27ae60;
    font-style: italic;
    color: #27ae60;
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

.prayer-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    gap: 1rem;
    flex-wrap: wrap;
}

.pray-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.pray-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.pray-btn:active {
    transform: scale(0.98);
}

.pray-btn.prayed {
    background: #e0e0e0;
    color: #666;
    cursor: default;
}

.pray-btn.prayed:hover {
    transform: none;
    box-shadow: none;
}

.prayer-count {
    color: #667eea;
    font-weight: bold;
    font-size: 1rem;
}

.anonymous-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: #f0f0f0;
    color: #666;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.mark-answered-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.mark-answered-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
}

.prayer-wall .empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #999;
    font-style: italic;
    font-size: 1.1rem;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
}

.about-content p {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ============================================
   CONTACT FORM STYLES
   ============================================ */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #667eea;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.form-group small {
    display: block;
    margin-top: 0.3rem;
    color: #999;
    font-size: 0.85rem;
}

/* ============================================
   FOOTER STYLES
   ============================================ */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem;
}

footer p {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ============================================
   MODAL STYLES
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
}

.modal-content img,
.modal-content video {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 10px;
}

.close-modal {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    color: white;
    cursor: pointer;
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE
   ============================================ */
@media (max-width: 768px) {
    /* Navigation */
    nav .logo {
        font-size: 1rem;
        max-width: 150px;
    }

    nav ul {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    /* Hero Section */
    .hero {
        padding: 4rem 1rem;
        min-height: 400px;
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .btn-primary {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    /* Section Headings */
    section {
        padding: 3rem 1rem;
    }

    section h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    /* Devotion Section */
    .devotion-card {
        padding: 1.5rem;
    }

    .devotion-date {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .devotion-verse {
        padding: 1.5rem;
    }

    .verse-text {
        font-size: 1rem;
        line-height: 1.6;
    }

    .verse-reference {
        font-size: 0.9rem;
    }

    .devotion-message h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .devotion-message p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Comments & Likes - Mobile */
    .devotion-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .like-btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }

    .comment-count {
        font-size: 0.9rem;
    }

    .comments-section h4 {
        font-size: 1.2rem;
    }

    .comment-form {
        padding: 1rem;
    }

    .comment-form input,
    .comment-form textarea {
        font-size: 0.9rem;
        padding: 0.7rem;
    }

    .comment-item {
        padding: 1rem;
    }

    .comment-header strong {
        font-size: 0.9rem;
    }

    .comment-text {
        font-size: 0.9rem;
    }

    /* Events Grid */
    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .event-card h3 {
        font-size: 1.2rem;
    }

    .event-card p {
        font-size: 0.9rem;
    }

    /* Gallery Grid */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.5rem;
    }

    /* Prayer Wall */
    .prayer-wall {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .prayer-card {
        padding: 1.5rem;
    }

    .prayer-title {
        font-size: 1.1rem;
    }

    .prayer-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .prayer-category {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }

    .pray-btn {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }

    .prayer-count {
        font-size: 0.85rem;
    }

    .pray-btn {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }

    .prayer-count {
        font-size: 0.85rem;
    }

    .mark-answered-btn {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }

    .prayer-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-btn {
        width: 100%;
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }

    .prayer-submit-card {
        padding: 1.5rem;
    }

    .prayer-submit-card h3 {
        font-size: 1.4rem;
    }

    /* About Section */
    .about-content {
        font-size: 0.95rem;
    }

    /* Contact Form */
    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 0.9rem;
        padding: 0.7rem;
    }

    /* Footer */
    footer {
        padding: 1.5rem;
        font-size: 0.85rem;
    }

    /* Modal */
    .close-modal {
        font-size: 2rem;
        top: 1rem;
        right: 1rem;
    }

    /* Container */
    .container {
        padding: 0 1rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    nav .logo {
        font-size: 0.85rem;
        max-width: 120px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    section h2 {
        font-size: 1.5rem;
    }

    .devotion-card {
        padding: 1rem;
    }

    .verse-text {
        font-size: 0.9rem;
    }

    .devotion-message h3 {
        font-size: 1.1rem;
    }

    .devotion-message p {
        font-size: 0.85rem;
    }

    .prayer-title {
        font-size: 1rem;
    }

    .prayer-description {
        font-size: 0.85rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.75rem;
    }

    .pray-btn {
        font-size: 0.7rem;
        padding: 0.5rem 0.8rem;
    }

    .mark-answered-btn {
        font-size: 0.7rem;
        padding: 0.5rem 0.8rem;
    }

    .filter-btn {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }

    /* Comments - Extra Small */
    .like-btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    .comment-count {
        font-size: 0.8rem;
    }

    .comments-section h4 {
        font-size: 1.1rem;
    }

    .comment-form input,
    .comment-form textarea {
        font-size: 0.85rem;
    }

    .comment-text {
        font-size: 0.85rem;
    }
}
