/* ========== INTERNAL PAGES STYLES ========== */

/* Ministry Highlight Section */
.ministry-highlight {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 2px solid rgba(100, 149, 237, 0.2);
}

.ministry-highlight h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #1e3c72;
}

.featured-card {
    background: white;
}

/* Content Sections with Images */
.content-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.content-section.reverse {
    direction: rtl;
}

.content-section.reverse > * {
    direction: ltr;
}

.content-text h3 {
    color: #1e3c72;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.content-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.content-text ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.content-text ul li {
    padding: 0.5rem 0 0.5rem 2rem;
    position: relative;
    color: #666;
}

.content-text ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #6495ED;
    font-weight: bold;
    font-size: 1.2rem;
}

.content-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(100, 149, 237, 0.3);
    background-color: white;
    max-width: 300px;
    margin: 0 auto;
}

.content-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

/* Academy/College Specific */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.info-box {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(100, 149, 237, 0.15);
    border-left: 4px solid #6495ED;
    transition: all 0.3s ease;
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(100, 149, 237, 0.25);
}

.info-box h4 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.info-box p, .info-box ul {
    color: #666;
    line-height: 1.6;
}

.info-box ul {
    list-style-position: inside;
    padding-left: 0.5rem;
}

.info-box ul li {
    margin-bottom: 0.5rem;
}

/* Church Life Sections */
.schedule-table {
    width: 100%;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(100, 149, 237, 0.2);
    margin: 2rem 0;
}

.schedule-table table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-table th {
    background: linear-gradient(135deg, #1e3c72 0%, #6495ED 100%);
    color: white;
    padding: 1.5rem;
    text-align: left;
    font-size: 1.1rem;
}

.schedule-table td {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(100, 149, 237, 0.1);
    color: #666;
}

.schedule-table tr:last-child td {
    border-bottom: none;
}

.schedule-table tr:hover {
    background: rgba(100, 149, 237, 0.05);
}

/* The Word Page - Sermon Cards */
.preachings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.preachings-header h2 {
    margin-bottom: 0;
}

.view-all-link {
    color: #6495ED;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.view-all-link:hover {
    color: #1e3c72;
    text-decoration: underline;
}

/* Blog Feed Grid */
.blog-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Loading State */
.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #6495ED;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-state p {
    color: #666;
    font-size: 1rem;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(100, 149, 237, 0.15);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #1e3c72;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #666;
}

/* Error State */
.error-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: #fff5f5;
    border-radius: 15px;
    border: 2px solid #ff6b6b;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.error-state h3 {
    color: #c92a2a;
    margin-bottom: 0.5rem;
}

.error-state p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Sermon Card */
.sermon-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(100, 149, 237, 0.15);
    transition: all 0.3s;
}

.sermon-card:hover {
    box-shadow: 0 10px 30px rgba(100, 149, 237, 0.25);
    transform: translateY(-5px);
}

.sermon-thumbnail {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.sermon-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s, opacity 0.3s;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: bicubic;
    backface-visibility: hidden;
    transform: translateZ(0);
    opacity: 0;
    background: #f0f0f0;
}

/* Placeholder icon while image loads */
.sermon-thumbnail::before {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    opacity: 0.3;
    z-index: 1;
}

/* Hide placeholder when image loads */
.sermon-thumbnail img[style*="opacity: 1"] ~ ::before {
    display: none;
}

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

.sermon-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #1e3c72 0%, #6495ED 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.sermon-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.sermon-info h4 {
    color: #1e3c72;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    flex-grow: 1;
}

.sermon-meta {
    display: flex;
    gap: 1rem;
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.sermon-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.sermon-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.sermon-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #1e3c72 0%, #6495ED 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(100, 149, 237, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(100, 149, 237, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #6495ED;
    border: 2px solid #6495ED;
}

.btn-secondary:hover {
    background: #6495ED;
    color: white;
}

/* Default placeholder if no image */
.sermon-thumbnail img[src="images/sermons/default.jpg"],
.sermon-thumbnail img[src*="default"] {
    background: linear-gradient(135deg, #1e3c72 0%, #6495ED 100%);
    object-fit: contain;
    padding: 2rem;
}

/* Highlights Page - Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #6495ED, #1e3c72);
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    position: relative;
}

.timeline-item:nth-child(even) {
    direction: rtl;
}

.timeline-item:nth-child(even) > * {
    direction: ltr;
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(100, 149, 237, 0.15);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    box-shadow: 0 10px 30px rgba(100, 149, 237, 0.25);
    transform: translateX(-5px);
}

.timeline-item:nth-child(even) .timeline-content:hover {
    transform: translateX(5px);
}

.timeline-date {
    display: inline-block;
    background: #6495ED;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.timeline-content h4 {
    color: #1e3c72;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
}

.timeline-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(100, 149, 237, 0.2);
    transition: all 0.3s ease;
}

.timeline-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(100, 149, 237, 0.3);
}

.timeline-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(100, 149, 237, 0.15);
    transition: 0.3s;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(100, 149, 237, 0.25);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* Event Cards */
.event-card {
    position: relative;
    padding-left: 6rem;
}

.event-date {
    position: absolute;
    left: 2rem;
    top: 2rem;
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, #1e3c72 0%, #6495ED 100%);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 4px 10px rgba(100, 149, 237, 0.3);
}

.event-date .month {
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.event-date .day {
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1;
}

/* Testimony Section */
.testimony-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.testimony-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(100, 149, 237, 0.15);
    position: relative;
    border-left: 4px solid #6495ED;
    transition: all 0.3s ease;
}

.testimony-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(100, 149, 237, 0.25);
}

.testimony-quote {
    font-size: 4rem;
    color: #6495ED;
    opacity: 0.3;
    position: absolute;
    top: 0;
    left: 1rem;
    line-height: 1;
}

.testimony-text {
    color: #666;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    padding-top: 2rem;
}

.testimony-author {
    color: #1e3c72;
    font-weight: bold;
    text-align: right;
}

/* Update Date */
.update-date {
    color: #999;
    font-size: 0.9rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

/* ========== MISSIONARIES SECTION ========== */
.missionary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.missionary-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(100, 149, 237, 0.15);
    transition: 0.3s;
}

.missionary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(100, 149, 237, 0.25);
}

.missionary-photo {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    position: relative;
}

.missionary-photo::before {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    opacity: 0.3;
}

.missionary-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.missionary-info {
    padding: 1.5rem;
}

.missionary-info h4 {
    color: #1e3c72;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.missionary-field {
    color: #6495ED;
    font-weight: 600;
    margin-bottom: 1rem;
}

.missionary-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.btn-missionary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #1e3c72 0%, #6495ED 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-missionary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(100, 149, 237, 0.4);
}

.support-missions {
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(100, 149, 237, 0.15);
}

.support-missions h3 {
    color: #1e3c72;
    text-align: center;
    margin-bottom: 2rem;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.support-box {
    text-align: center;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.support-box:hover {
    background: rgba(100, 149, 237, 0.05);
    transform: translateY(-5px);
}

.support-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.support-box h4 {
    color: #1e3c72;
    margin-bottom: 0.5rem;
}

.support-box p {
    color: #666;
    line-height: 1.6;
}

/* ========== CONTACT FORM SECTION ========== */
.ministry-contact {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 2px solid rgba(100, 149, 237, 0.2);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info-side h3 {
    color: #1e3c72;
    margin-bottom: 2rem;
}

.contact-detail {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.contact-detail:hover {
    transform: translateX(5px);
}

.contact-icon {
    font-size: 2rem;
    color: #6495ED;
    flex-shrink: 0;
}

.contact-detail h4 {
    color: #1e3c72;
    margin-bottom: 0.5rem;
}

.contact-detail p {
    color: #666;
    line-height: 1.6;
}

.ministry-contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(100, 149, 237, 0.15);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #1e3c72;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6495ED;
    box-shadow: 0 0 0 3px rgba(100, 149, 237, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #1e3c72 0%, #6495ED 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(100, 149, 237, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

/* ========== DAUGHTER CHURCHES PAGE ========== */
.intro-section {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
}

.daughter-churches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.church-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(100, 149, 237, 0.15);
    transition: 0.3s;
}

.church-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(100, 149, 237, 0.25);
}

.church-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.church-image::before {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    opacity: 0.3;
}

.church-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.church-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #1e3c72 0%, #6495ED 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    z-index: 2;
}

.church-info {
    padding: 1.5rem;
}

.church-info h3 {
    color: #1e3c72;
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.church-location,
.church-pastor {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.church-description {
    color: #666;
    line-height: 1.6;
    margin: 1rem 0 1.5rem;
}

.church-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-church,
.btn-church-fb {
    flex: 1;
    min-width: 140px;
    padding: 0.75rem 1rem;
    text-align: center;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-church {
    background: linear-gradient(135deg, #1e3c72 0%, #6495ED 100%);
    color: white;
}

.btn-church:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(100, 149, 237, 0.4);
}

.btn-church-fb {
    background: #1877f2;
    color: white;
}

.btn-church-fb:hover {
    background: #145dbf;
    transform: translateY(-2px);
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.vision-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(100, 149, 237, 0.15);
    transition: all 0.3s ease;
}

.vision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(100, 149, 237, 0.25);
}

.vision-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.vision-card h3 {
    color: #1e3c72;
    margin-bottom: 0.5rem;
}

.vision-card p {
    color: #666;
    line-height: 1.6;
}

.partnership-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #1e3c72 0%, #6495ED 100%);
    border-radius: 15px;
    color: white;
    margin-top: 3rem;
}

.partnership-cta h2 {
    color: white;
    margin-bottom: 1rem;
}

.partnership-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-secondary {
    background: white;
    color: #1e3c72;
}

.cta-buttons .btn-secondary:hover {
    background: #f0f9ff;
}

/* ========== ADDITIONAL ENHANCEMENTS ========== */

/* Form Success/Error Messages */
.form-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-align: center;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Statistics Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(100, 149, 237, 0.15);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(100, 149, 237, 0.25);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #6495ED;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 1rem;
}

/* Image Lazy Loading Effect */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.lazy-image.loaded {
    opacity: 1;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination button,
.pagination a {
    padding: 0.75rem 1rem;
    border: 2px solid #6495ED;
    background: white;
    color: #6495ED;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-weight: 600;
}

.pagination button:hover,
.pagination a:hover {
    background: #6495ED;
    color: white;
}

.pagination button.active,
.pagination a.active {
    background: #6495ED;
    color: white;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Breadcrumb Navigation */
.breadcrumb {
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.breadcrumb-list li::after {
    content: '›';
    color: #999;
}

.breadcrumb-list li:last-child::after {
    content: '';
}

.breadcrumb-list a {
    color: #6495ED;
    text-decoration: none;
    transition: 0.3s;
}

.breadcrumb-list a:hover {
    color: #1e3c72;
    text-decoration: underline;
}

/* Social Share Buttons */
.social-share {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    align-items: center;
}

.social-share-label {
    color: #666;
    font-weight: 600;
}

.social-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    transition: all 0.3s;
    text-decoration: none;
}

.social-share-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-share-button.facebook {
    background: #1877f2;
}

.social-share-button.twitter {
    background: #1da1f2;
}

.social-share-button.email {
    background: #6495ED;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1e3c72 0%, #6495ED 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(100, 149, 237, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(100, 149, 237, 0.4);
}

/* Print Styles */
@media print {
    .top-bar,
    header,
    .mobile-menu,
    footer,
    .btn,
    .back-to-top,
    .social-share {
        display: none !important;
    }

    body {
        background: white;
    }

    .page-header {
        margin-top: 0;
    }
}

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

@media (max-width: 968px) {
    .preachings-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .blog-feed {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .sermon-thumbnail {
        height: 180px;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .daughter-churches-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .church-actions {
        flex-direction: column;
    }

    .btn-church,
    .btn-church-fb {
        min-width: 100%;
    }

    .content-section,
    .content-section.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    /* Timeline Mobile */
    .timeline {
        padding: 1.5rem 0;
    }

    .timeline:before {
        left: 20px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        padding-left: 50px;
        direction: ltr;
        margin-bottom: 2.5rem;
        gap: 1.5rem;
    }

    .timeline-item:nth-child(even) {
        direction: ltr;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .timeline-content h4 {
        font-size: 1.3rem;
    }

    .timeline-content p {
        font-size: 0.9rem;
    }

    .timeline-date {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    .timeline-image {
        order: -1;
    }

    .timeline-image img {
        height: 200px;
    }

    /* Event Cards Mobile */
    .event-card {
        padding-left: 1.5rem;
        padding-top: 5rem;
        padding-right: 1.5rem;
    }

    .event-date {
        left: 50%;
        transform: translateX(-50%);
        top: 1rem;
        width: 60px;
        height: 60px;
    }

    .event-date .month {
        font-size: 0.7rem;
    }

    .event-date .day {
        font-size: 1.5rem;
    }

    .event-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .event-card p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    /* Info Grid Mobile */
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .info-box {
        padding: 1.5rem;
    }

    .info-box h4 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .info-box p {
        font-size: 0.9rem;
    }

    .missionary-grid {
        grid-template-columns: 1fr;
    }

    .support-grid {
        grid-template-columns: 1fr;
    }

    .vision-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .sermon-actions {
        flex-direction: column;
    }

    .btn {
        text-align: center;
        width: 100%;
    }

    /* Gallery Grid Mobile */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
        margin: 1.5rem 0;
    }

    .gallery-item {
        border-radius: 12px;
    }

    .gallery-item img {
        height: 150px;
    }

    /* Testimony Section Mobile */
    .testimony-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 1.5rem 0;
    }

    .testimony-card {
        padding: 1.5rem;
    }

    .testimony-quote {
        font-size: 3rem;
        top: 0.5rem;
        left: 0.75rem;
    }

    .testimony-text {
        font-size: 0.95rem;
        padding-top: 1.5rem;
        line-height: 1.6;
    }

    .testimony-author {
        font-size: 0.9rem;
        text-align: right;
    }

    /* Ministry Highlight Mobile */
    .ministry-highlight {
        margin-top: 3rem;
        padding-top: 3rem;
    }

    .ministry-highlight h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .daughter-churches-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .pagination {
        gap: 0.25rem;
    }

    .pagination button,
    .pagination a {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    /* Section Headings Mobile */
    section h2 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .ministry-highlight h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .content-text h3 {
        font-size: 1.5rem;
    }

    .timeline-content h4 {
        font-size: 1.2rem;
    }

    /* Cards Mobile Enhancements */
    .cards {
        gap: 1.5rem;
    }

    .card {
        padding: 1.5rem;
    }

    .card h3 {
        font-size: 1.2rem;
    }

    .card p {
        font-size: 0.9rem;
    }

    .card-icon {
        font-size: 2.5rem;
    }

    .update-date {
        font-size: 0.85rem;
    }

    .church-info h3 {
        font-size: 1.2rem;
    }

    .sermon-info h4 {
        font-size: 1.1rem;
    }

    .social-share {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .section-padding {
        padding: 3rem 1rem;
    }

    .content-image {
        max-width: 100%;
    }

    .content-image img {
        max-height: 250px;
    }

    .page-header {
        padding: 6rem 1rem 3rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .page-header p {
        font-size: 0.95rem;
    }

    .ministry-highlight {
        padding-top: 3rem;
    }

    .ministry-highlight h2 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .cards {
        gap: 1.5rem;
    }

    .card {
        padding: 1.5rem;
    }

    /* Timeline Small Mobile */
    .timeline {
        padding: 1rem 0;
    }

    .timeline:before {
        left: 15px;
    }

    .timeline-item {
        padding-left: 40px;
        margin-bottom: 2rem;
    }

    .timeline-content {
        padding: 1.25rem;
    }

    .timeline-content h4 {
        font-size: 1.1rem;
    }

    .timeline-content p {
        font-size: 0.85rem;
    }

    .timeline-date {
        font-size: 0.8rem;
        padding: 0.35rem 0.7rem;
    }

    .timeline-image img {
        height: 180px;
    }

    /* Event Cards Small Mobile */
    .event-card {
        padding-left: 1rem;
        padding-top: 4.5rem;
        padding-right: 1rem;
        padding-bottom: 1.5rem;
    }

    .event-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .event-card p {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .event-card .contact-link {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
        display: block;
        text-align: center;
        margin-top: 1rem;
        width: 100%;
    }

    .event-date {
        width: 55px;
        height: 55px;
        top: 0.75rem;
    }

    .event-date .month {
        font-size: 0.65rem;
    }

    .event-date .day {
        font-size: 1.3rem;
    }

    .event-card h3 {
        font-size: 1.1rem;
    }

    .event-card p {
        font-size: 0.85rem;
    }

    .event-card .contact-link {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
        display: block;
        text-align: center;
        margin-top: 1rem;
        width: 100%;
    }

    /* Testimony Small Mobile */
    .testimony-card {
        padding: 1.25rem;
    }

    .testimony-quote {
        font-size: 2.5rem;
        top: 0.5rem;
        left: 0.5rem;
    }

    .testimony-text {
        font-size: 0.9rem;
        padding-top: 1.25rem;
    }

    .testimony-author {
        font-size: 0.85rem;
    }

    /* Gallery Small Mobile */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.75rem;
        margin: 1.5rem 0;
    }

    .gallery-item {
        border-radius: 12px;
    }

    .gallery-item img {
        height: 140px;
    }

    /* Info Box Small Mobile */
    .info-grid {
        gap: 1.25rem;
    }

    .info-box {
        padding: 1.25rem;
    }

    .info-box h4 {
        font-size: 1rem;
    }

    .info-box p {
        font-size: 0.85rem;
    }

    /* Ministry Highlight Small Mobile */
    .ministry-highlight {
        margin-top: 2.5rem;
        padding-top: 2.5rem;
    }

    .ministry-highlight h2 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .vision-card,
    .support-box {
        padding: 1.5rem;
    }

    .vision-icon,
    .support-icon {
        font-size: 2.5rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.95rem;
    }

    .btn-submit {
        font-size: 1rem;
    }

    .intro-text {
        font-size: 1rem;
    }

    .partnership-cta {
        padding: 2rem 1rem;
    }

    .partnership-cta h2 {
        font-size: 1.75rem;
    }

    .partnership-cta p {
        font-size: 1rem;
    }
}

/* ========== ACCESSIBILITY IMPROVEMENTS ========== */

/* Focus Styles */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid #6495ED;
    outline-offset: 2px;
}

/* Skip to Content Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #1e3c72;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 9999;
}

.skip-link:focus {
    top: 0;
}

/* High Contrast Support */
@media (prefers-contrast: high) {
    .btn-primary,
    .btn-secondary,
    .nav-links a {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles here if needed */
}

/* ========== UTILITY CLASSES ========== */

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}