* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', Arial, sans-serif;
}

body {
    background: #f5f5f5;
    overflow-x: hidden;
}

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
    border-bottom: 1px solid #eee;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 60px;
}

.logo-text h1 {
    color: #ff6b35;
    font-size: 24px;
    margin: 0;
    line-height: 1.2;
}

.logo-text p {
    color: #666;
    font-size: 12px;
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.login-btn {
    background: #ff6b35;
    color: #fff;
    padding: 10px 25px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.login-btn:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,107,53,0.3);
}

/* ===== USER DROPDOWN ===== */
.user-menu {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.user-name {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: #f5f5f5;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.user-name:hover {
    background: #e0e0e0;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    min-width: 250px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    display: none;
    z-index: 99999;
    margin-top: 5px;
    overflow: hidden;
    border: 1px solid #eee;
}

.user-dropdown.show {
    display: block !important;
}

.user-dropdown a {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 12px 20px !important;
    color: #333 !important;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    background: white;
    transition: all 0.3s;
}

.user-dropdown a:last-child {
    border-bottom: none;
}

.user-dropdown a:hover {
    background: #fff5f0 !important;
    color: #ff6b35 !important;
    padding-left: 25px !important;
}

.user-dropdown a i {
    width: 20px;
    color: #ff6b35;
}

.user-dropdown .divider {
    height: 1px;
    background: #f0f0f0;
    margin: 5px 0;
}

.user-dropdown .user-info {
    padding: 12px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.user-dropdown .user-info .name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.user-dropdown .user-info .role {
    font-size: 12px;
    color: #ff6b35;
    text-transform: capitalize;
}

/* ===== NAVIGATION ===== */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 15px 0;
    background: #edb9d7;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ff6b35;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #ff6b35;
    border-radius: 2px;
    animation: slideIn 0.3s ease-out;
}

.nav-links a:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ff6b35;
    border-radius: 2px;
}

@keyframes slideIn {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 100%;
        opacity: 1;
    }
}

.dropdown {
    position: relative;
}

.dropdown::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 0;
    padding-top: 5px;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: #fff5f0;
    color: #ff6b35;
    padding-left: 25px;
}

.dropdown.active .dropdown-toggle {
    color: #ff6b35 !important;
}

.dropdown-content a.active {
    background: #fff5f0;
    color: #ff6b35 !important;
    padding-left: 28px;
    border-left: 3px solid #ff6b35;
}

.dropdown-content a.active i {
    color: #ff6b35;
}

/* ===== PAGE CONTENT ===== */
.page-content {
    margin-top: 140px;
    min-height: calc(100vh - 140px);
}

/* ===== SLIDER ===== */
.slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    width: 100%;
    padding: 20px;
}

.slide-text h2 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.slide-text p {
    font-size: 20px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.btn-primary {
    display: inline-block;
    background: #ff6b35;
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.btn-primary:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,107,53,0.4);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== DAILY VERSE ===== 
.daily-verse-section {
    padding: 60px 0;
    background: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.verse-card {
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.verse-overlay {
    background: rgba(0,0,0,0.7);
    padding: 60px 40px;
    text-align: center;
    color: #fff;
}

.verse-overlay h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #ff6b35;
}

.verse-text {
    font-size: 24px;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 20px;
}

.verse-scripture {
    font-size: 18px;
    font-weight: 500;
}


*/

/* ===== SECTIONS ===== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #ff6b35;
}

.section-header p {
    color: #666;
    font-size: 16px;
}

/* ===== SERMONS GRID ===== */
.sermons-section,
.events-section {
    padding: 60px 0;
    background: #f9f9f9;
}

.sermons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Make all sermon cards the same height */
.sermons-grid > * {
    height: 100%;
}

.sermon-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sermon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.sermon-media {
    position: relative;
    height: 200px;
    background: #000;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
}

.sermon-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sermon-media.audio {
    background: linear-gradient(135deg, #ff6b35, #ff8c5a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sermon-media.audio i {
    font-size: 60px;
    color: #fff;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.sermon-media:hover .play-overlay {
    opacity: 1;
}

.play-overlay i {
    font-size: 50px;
    color: #fff;
}

.sermon-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sermon-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
    /* Text wrapping for titles */
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.preacher {
    color: #ff6b35;
    font-size: 14px;
    margin-bottom: 10px;
}

.sermon-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 12px;
    color: #999;
}

.sermon-stats i {
    margin-right: 5px;
}

/* Sermon description if you add it later */
.sermon-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-sm {
    display: inline-block;
    background: #ff6b35;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    margin-top: auto;
    align-self: flex-start;
}

.btn-sm:hover {
    background: #e55a2b;
}

/* ===== EVENTS GRID ===== */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

/* Make all event cards the same height */
.events-grid > * {
    height: 100%;
}

.event-card {
    display: flex;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    height: 100%;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-date {
    background: #ff6b35;
    color: #fff;
    text-align: center;
    padding: 20px;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
}

.event-date .day {
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
}

.event-date .month {
    font-size: 14px;
    text-transform: uppercase;
}

.event-details {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-details h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
    /* Text wrapping for titles */
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-details p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
    /* Text wrapping for descriptions */
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.read-more {
    color: #ff6b35;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    align-self: flex-start;
}

.read-more:hover {
    gap: 10px;
}

.view-all {
    text-align: center;
    margin-top: 40px;
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: #ff6b35;
    padding: 12px 30px;
    border: 2px solid #ff6b35;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #ff6b35;
    color: #fff;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #1a1a2e;
    color: #fff;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #ff6b35;
}

.footer-section p {
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 10px;
}

.footer-section a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #ff6b35;
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    font-size: 18px;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: #ff6b35;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #999;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    max-width: 400px;
    width: 90%;
    padding: 40px;
    border-radius: 15px;
    position: relative;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

.modal-content h2 {
    color: #333;
    margin-bottom: 25px;
    text-align: center;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.input-group input {
    width: 100%;
    padding: 12px 12px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #ff6b35;
}

.modal-links {
    text-align: center;
    margin-top: 20px;
}

.modal-links a {
    color: #ff6b35;
    text-decoration: none;
    font-size: 14px;
    display: block;
    margin-top: 10px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-top {
        padding: 10px 20px;
    }
    
    .logo-text h1 {
        font-size: 18px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        gap: 15px;
        padding: 10px;
    }
    
    .nav-links a {
        font-size: 12px;
    }
    
    .page-content {
        margin-top: 120px;
    }
    
    .slider {
        height: 400px;
    }
    
    .slide-text h2 {
        font-size: 28px;
    }
    
    .slide-text p {
        font-size: 16px;
    }
    
    .verse-text {
        font-size: 18px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .event-card {
        flex-direction: column;
    }
    
    .event-date {
        flex-direction: row;
        gap: 10px;
        padding: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}






/* Daily Verse Section - Homepage */
.daily-verse-section {
    padding: 60px 0;
    background: #fff;
}

.verse-image-link {
    display: block;
    text-decoration: none;
}

.verse-home-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.verse-home-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Fallback text version when no image */
.verse-card-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 50px 40px;
    text-align: center;
    border-radius: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.verse-card-text .verse-text {
    font-size: 24px;
    font-style: italic;
    color: white;
    margin-bottom: 15px;
}

.verse-card-text .verse-scripture {
    font-size: 18px;
    color: #ff6b35;
    font-weight: 600;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .verse-card-text {
        padding: 30px 20px;
    }
    
    .verse-card-text .verse-text {
        font-size: 18px;
    }
    
    .verse-home-image {
        border-radius: 10px;
    }
}