/* Hero Section */
.devotional-hero {
    color: white;
    padding: 10rem 0 4rem;
    position: relative;
    overflow: hidden;
    background: url('../images/devotion.jpg') center center/cover no-repeat;
}

.devotional-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .80);
    z-index: 1;
    backdrop-filter: blur(2px);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease;
}

.hero-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-verse {
    background: rgba(255,255,255,0.15);
    padding: 1.5rem 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    max-width: 600px;
    margin: 0 auto;
}

.hero-verse i {
    font-size: 1.5rem;
    opacity: 0.7;
    margin-bottom: 0.8rem;
}

.hero-verse p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.hero-verse span {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Today's Section */
.today-section {
    padding: 3rem 0;
    background: linear-gradient(to bottom, #f8f9fa 0%, white 100%);
}

.today-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.today-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.today-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.today-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}

.today-content {
    flex: 1;
}

.today-content h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.today-content p {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.6;
}

.btn-today {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    border: none;
    white-space: nowrap;
}

.btn-today:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.3);
}

/* Devotionals Section */
.devotionals-section {
    padding: 4rem 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.header-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    max-width: 200px;
}

.section-heading {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    white-space: nowrap;
}

.section-heading i {
    font-size: 1.8rem;
}

.section-description {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Devotional Grid */
.devotional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.devotional-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
}

.devotional-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

/* Card Image */
.card-image {
    width: 100%;
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
    transition: all 0.3s ease;
}

.devotional-card:hover .image-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.5) 100%);
}

.card-ribbon {
    position: absolute;
    top: 15px;
    right: -35px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.5rem 3rem;
    transform: rotate(45deg);
    font-size: 0.9rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    z-index: 2;
}

.card-header {
    padding: 1.5rem 1.5rem 1rem;
}

.date-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
}

.date-badge i {
    font-size: 0.95rem;
}

.card-content {
    padding: 0 1.5rem 1.5rem;
    flex: 1;
}

.devotional-title {
    color: #333;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 1rem 0 0.8rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.author-info i {
    color: var(--secondary-color);
}

.devotional-excerpt {
    color: #666;
    line-height: 1.7;
    font-size: 1rem;
}

.card-footer {
    padding: 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.btn-read-more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-read-more:hover {
    background: var(--secondary-color);
    transform: translateX(3px);
}

.btn-read-more i {
    transition: transform 0.3s ease;
}

.btn-read-more:hover i {
    transform: translateX(5px);
}

/* Empty State */
.empty-state {
    grid-column: 1/-1;
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.empty-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 3rem;
    color: white;
}

.empty-state h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.empty-state p {
    color: #666;
    font-size: 1.1rem;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .devotional-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 992px) {
    .devotional-hero {
        padding: 8rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
    }
    
    .today-card {
        padding: 2rem;
    }
    
    .devotional-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .section-heading {
        font-size: 1.8rem;
    }
    
    .card-image {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .devotional-hero {
        padding: 8rem 0 2rem;
    }
    
    .hero-icon {
        font-size: 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
    }
    
    .hero-verse {
        padding: 1.2rem 1.5rem;
    }
    
    .hero-verse p {
        font-size: 1rem;
    }
    
    .today-section {
        padding: 2rem 0;
    }
    
    .today-card {
        flex-direction: column;
        text-align: center;
        padding: 1.8rem;
    }
    
    .today-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .today-content h2 {
        font-size: 1.5rem;
    }
    
    .today-content p {
        font-size: 1rem;
    }
    
    .btn-today {
        width: 100%;
        justify-content: center;
    }
    
    .devotionals-section {
        padding: 3rem 0;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-line {
        display: none;
    }
    
    .section-heading {
        font-size: 1.6rem;
    }
    
    .devotional-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .card-image {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .devotional-hero {
        padding: 7rem 0 1.5rem;
    }
    
    .hero-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-verse {
        padding: 1rem;
    }
    
    .hero-verse i {
        font-size: 1.2rem;
    }
    
    .hero-verse p {
        font-size: 0.95rem;
    }
    
    .hero-verse span {
        font-size: 0.85rem;
    }
    
    .today-card {
        padding: 1.5rem;
    }
    
    .today-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .today-content h2 {
        font-size: 1.3rem;
    }
    
    .today-content p {
        font-size: 0.95rem;
    }
    
    .btn-today {
        padding: 0.85rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .section-heading {
        font-size: 1.4rem;
    }
    
    .section-heading i {
        font-size: 1.3rem;
    }
    
    .section-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .devotional-card {
        border-radius: 12px;
    }
    
    .card-image {
        height: 180px;
    }
    
    .card-header {
        padding: 1.2rem 1.2rem 0.8rem;
    }
    
    .date-badge {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    
    .card-content {
        padding: 0 1.2rem 1.2rem;
    }
    
    .devotional-title {
        font-size: 1.2rem;
        margin: 0.8rem 0 0.6rem;
    }
    
    .author-info {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    .devotional-excerpt {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .card-footer {
        padding: 1.2rem;
    }
    
    .btn-read-more {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }
    
    .empty-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .empty-state h3 {
        font-size: 1.5rem;
    }
    
    .empty-state p {
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    .hero-title {
        font-size: 1.4rem;
    }
    
    .today-card {
        padding: 1.2rem;
    }
    
    .today-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .today-content h2 {
        font-size: 1.2rem;
    }
    
    .section-heading {
        font-size: 1.2rem;
        gap: 0.5rem;
    }
    
    .devotional-grid {
        gap: 1.2rem;
    }
    
    .card-image {
        height: 160px;
    }
}
