/* ===== SERMONS PAGE STYLES ===== */

/* Services Section Styles */
.services {
    padding: 80px 0;
    background: var(--bg-light);
    min-height: 50vh;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-red));
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
    width: 100%;
}

.service-card {
    background: var(--bg-lighter);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: auto;
    min-height: 500px;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.service-img {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
    min-height: 280px;
    max-height: 280px;
}

.service-card:hover .service-img img {
    transform: scale(1.05);
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--primary-dark);
    font-weight: 700;
}

.service-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-gray);
}

.service-content .schedule {
    color: var(--accent-red);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: inline-block;
    background: rgba(231, 76, 60, 0.1);
    padding: 6px 12px;
    border-radius: 15px;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-red) 100%);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: 0.95rem;
}

.btn:hover {
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-orange) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.3);
    color: white;
}

.btn-disabled {
    background: var(--text-gray);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-disabled:hover {
    background: var(--text-gray);
    transform: none;
    box-shadow: none;
}

/* Past Events Section Styles */
.past-events {
    padding: 80px 0;
    background: var(--bg-lighter);
    min-height: 50vh;
}

.events-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
    width: 100%;
}

.past-event-card {
    background: var(--bg-lighter);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: auto;
    min-height: 450px;
}

.past-event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.event-img {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.event-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
    min-height: 240px;
    max-height: 240px;
}

.past-event-card:hover .event-img img {
    transform: scale(1.05);
}

.event-content {
    padding: 25px;
}

.event-date {
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.9rem;
    display: inline-block;
    background: rgba(52, 152, 219, 0.1);
    padding: 6px 12px;
    border-radius: 15px;
}

.event-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 700;
}

.event-content p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* No Content States */
.no-services, .no-events {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 40px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    border: 2px dashed rgba(0, 0, 0, 0.1);
}

.no-services p, .no-events p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-gray);
    opacity: 0.8;
}

.no-services i, .no-events i {
    font-size: 3rem;
    color: var(--accent-orange);
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section Enhancements */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(52, 73, 94, 0.8)), url('{% static "image/church-hero.jpg" %}');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    padding: 120px 20px;
    margin-top: 70px;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero .btn {
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-red) 100%);
    color: white;
    padding: 15px 35px;
    font-size: 1.1rem;
    border-radius: 30px;
}

.hero .btn:hover {
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-orange) 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(231, 76, 60, 0.4);
}

/* Image Placeholder Styles */
.img-placeholder {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    text-align: center;
    padding: 20px;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet View (768px and below) */
@media (max-width: 768px) {
    .services-grid,
    .events-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .services,
    .past-events {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .service-content,
    .event-content {
        padding: 20px;
    }
    
    .service-img {
        height: 240px;
    }
    
    .service-img img {
        min-height: 240px;
        max-height: 240px;
    }
    
    .event-img {
        height: 200px;
    }
    
    .event-img img {
        min-height: 200px;
        max-height: 200px;
    }
    
    .service-card {
        min-height: 450px;
    }
    
    .past-event-card {
        min-height: 400px;
    }
    
    .hero {
        padding: 80px 20px;
        margin-top: 60px;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
}

/* Mobile View (480px and below) */
@media (max-width: 480px) {
    .services-grid,
    .events-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-img {
        height: 220px;
    }
    
    .service-img img {
        min-height: 220px;
        max-height: 220px;
    }
    
    .event-img {
        height: 180px;
    }
    
    .event-img img {
        min-height: 180px;
        max-height: 180px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
    }
    
    .no-services, .no-events {
        padding: 40px 20px;
    }
    
    .service-card {
        min-height: 420px;
    }
    
    .past-event-card {
        min-height: 380px;
    }
    
    .hero {
        padding: 60px 15px;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* Small Mobile View (360px and below) */
@media (max-width: 360px) {
    .services,
    .past-events {
        padding: 40px 0;
    }
    
    .services-grid,
    .events-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .service-img {
        height: 200px;
    }
    
    .service-img img {
        min-height: 200px;
        max-height: 200px;
    }
    
    .event-img {
        height: 160px;
    }
    
    .event-img img {
        min-height: 160px;
        max-height: 160px;
    }
    
    .service-content,
    .event-content {
        padding: 15px;
    }
    
    .service-card {
        min-height: 400px;
    }
    
    .past-event-card {
        min-height: 360px;
    }
    
    .hero {
        padding: 50px 15px;
    }
    
    .hero-content h2 {
        font-size: 1.6rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
}

/* Medium devices (tablets, 769px to 992px) */
@media (min-width: 769px) and (max-width: 992px) {
    .services-grid,
    .events-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large devices (desktops, 993px and up) */
@media (min-width: 993px) {
    .services-grid,
    .events-container {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

















/* ===== CATHEDRAL SERMONS STYLES ===== */

/* Cathedral Worship Section */
.cathedral-worship {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.cathedral-worship .section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-dark);
    font-size: 2.4rem;
    font-weight: 700;
    position: relative;
}

.cathedral-worship .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--cathedral-gold);
}

.worship-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.worship-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
}

.worship-text p {
    margin-bottom: 30px;
    font-size: 1.15rem;
}

.worship-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 30px;
}

.feature {
    text-align: center;
    padding: 25px 15px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border-top: 3px solid var(--cathedral-gold);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.feature i {
    font-size: 2.5rem;
    color: var(--cathedral-gold);
    margin-bottom: 15px;
    display: block;
}

.feature h4 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

.feature p {
    font-size: 0.95rem;
    margin-bottom: 0;
    color: var(--text-gray);
}

.worship-image {
    position: relative;
}

.worship-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 3px solid var(--cathedral-gold);
}

.worship-image:hover img {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Enhanced Services Section for Cathedral */
.services .section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-dark);
    font-size: 2.4rem;
    font-weight: 700;
    position: relative;
}

.services .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--cathedral-gold);
}

.service-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--cathedral-gold);
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.6s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.service-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-img img {
    transform: scale(1.05);
}

.service-content {
    padding: 30px;
    text-align: center;
}

.service-content h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 600;
}

.service-content p {
    color: var(--text-gray);
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Enhanced Past Events Section */
.past-events .section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-dark);
    font-size: 2.4rem;
    font-weight: 700;
    position: relative;
}

.past-events .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--cathedral-gold);
}

.past-event-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--cathedral-gold);
    position: relative;
}

.past-event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.08), transparent);
    transition: left 0.6s ease;
}

.past-event-card:hover::before {
    left: 100%;
}

.past-event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.event-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.past-event-card:hover .event-img img {
    transform: scale(1.05);
}

.event-content {
    padding: 30px;
}

.event-date {
    color: var(--cathedral-gold);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.event-content h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

.event-content p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Live Streaming Section */
.live-streaming {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    color: white;
    position: relative;
}

.live-streaming .section-title {
    text-align: center;
    margin-bottom: 50px;
    color: white;
    font-size: 2.4rem;
    font-weight: 700;
    position: relative;
}

.live-streaming .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--cathedral-gold);
}

.streaming-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.streaming-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: white;
}

.streaming-info p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.95;
    line-height: 1.7;
}

.streaming-info ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.streaming-info li {
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    opacity: 0.95;
}

.streaming-info li i {
    position: absolute;
    left: 0;
    color: var(--cathedral-gold);
}

.streaming-placeholder {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    border: 2px solid var(--cathedral-gold);
    backdrop-filter: blur(10px);
}

.placeholder-content i {
    font-size: 4rem;
    color: var(--cathedral-gold);
    margin-bottom: 20px;
    display: block;
}

.placeholder-content h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.placeholder-content p {
    opacity: 0.8;
    margin-bottom: 0;
}

/* Cathedral Gold Color Variable */
:root {
    --cathedral-gold: #d4af37;
}

/* Animation for Cathedral Elements */
@keyframes cathedralGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    }
}

.service-card:hover,
.past-event-card:hover,
.feature:hover {
    animation: cathedralGlow 2s ease-in-out infinite;
}

/* ===== RESPONSIVE DESIGN FOR CATHEDRAL SECTIONS ===== */
@media (max-width: 768px) {
    .worship-content,
    .streaming-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .worship-features {
        grid-template-columns: 1fr;
    }
    
    .cathedral-worship .section-title,
    .services .section-title,
    .past-events .section-title,
    .live-streaming .section-title {
        font-size: 2rem;
    }
    
    .worship-image {
        order: -1;
    }
    
    .streaming-placeholder {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .cathedral-worship .section-title,
    .services .section-title,
    .past-events .section-title,
    .live-streaming .section-title {
        font-size: 1.8rem;
    }
    
    .feature {
        padding: 20px 10px;
    }
    
    .feature i {
        font-size: 2rem;
    }
    
    .service-content,
    .event-content {
        padding: 20px;
    }
    
    .worship-text p {
        font-size: 1.05rem;
    }
    
    .placeholder-content i {
        font-size: 3rem;
    }
}












/* Live Streaming Styles */
.current-live-stream {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 40px;
}

.stream-header {
    padding: 30px 30px 0;
}

.live-badge {
    background: #e74c3c;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.live-badge i {
    font-size: 0.6rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.stream-header h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.stream-description {
    color: var(--text-gray);
    margin-bottom: 0;
}

.stream-player {
    margin: 20px 0;
}

.stream-player iframe {
    display: block;
}

.stream-placeholder {
    background: #f8f9fa;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stream-info {
    padding: 20px 30px;
    background: #f8f9fa;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
}

.info-item i {
    color: var(--cathedral-gold);
}

/* Upcoming Streams */
.upcoming-streams {
    margin-top: 40px;
}

.upcoming-streams h3 {
    color: var(--primary-dark);
    margin-bottom: 25px;
    font-size: 1.6rem;
}

.streams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.upcoming-stream-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.upcoming-stream-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stream-thumbnail {
    position: relative;
    height: 180px;
    background: #f8f9fa;
    overflow: hidden;
}

.stream-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
    color: white;
}

.thumbnail-placeholder i {
    font-size: 3rem;
    opacity: 0.7;
}

.stream-time {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 15px;
    font-size: 0.9rem;
}

.stream-details {
    padding: 20px;
}

.stream-details h4 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.stream-details p {
    color: var(--text-gray);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.platform-badge.youtube { background: #ff0000; color: white; }
.platform-badge.facebook { background: #1877f2; color: white; }
.platform-badge.vimeo { background: #1ab7ea; color: white; }
.platform-badge.custom { background: var(--cathedral-gold); color: white; }

/* Next Stream Notice */
.next-stream-notice {
    background: rgba(212, 175, 55, 0.1);
    padding: 20px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--cathedral-gold);
    margin-top: 20px;
}

.next-stream-notice h4 {
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.offline-message {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.offline-message p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 0;
}