/*
 * ===========================================
 * DADE FOUNDATION - ENHANCED FEATURES CSS
 * New UI Components and Improvements
 * ===========================================
 */

/* ============ ACCESSIBILITY ============ */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 8px 16px;
    z-index: 10000;
    transition: top 0.3s;
}

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



/* ============ PAGE PRELOADER ============ */


/* ============ BACK TO TOP BUTTON ============ */


/* ============ DARK MODE ============ */


/* ============ COOKIE CONSENT ============ */
/* ============ MOBILE ACCESSIBILITY ============ */
@media (max-width: 768px) {
    .accessibility-toggle {
        width: 35px !important;
        height: 35px !important;
        font-size: 1rem !important;
        bottom: 15px !important;
        right: 15px !important;
    }
}

/* ============ NEWSLETTER SECTION ============ */
.newsletter-section {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    padding: 4rem 0;
    text-align: center;
    color: white;
}

.newsletter-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.newsletter-section p {
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 0.5rem;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 1rem 2rem;
    background: var(--color-secondary);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.newsletter-form button:hover {
    background: var(--color-secondary-dark);
    transform: scale(1.05);
}

/* ============ TESTIMONIALS CAROUSEL ============ */
.testimonials-section {
    padding: 5rem 0;
    background: var(--color-gray-100);
}

.testimonials-carousel {
    position: relative;
    overflow: hidden;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.testimonial-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid var(--color-primary);
}

.testimonial-card blockquote {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-card .author {
    font-weight: 600;
    color: var(--color-primary);
}

.testimonial-card .role {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.testimonial-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-gray-200);
    cursor: pointer;
    transition: background 0.3s;
}

.testimonial-dots .dot.active {
    background: var(--color-primary);
}

/* ============ FAQ ACCORDION ============ */
.faq-section {
    padding: 5rem 0;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--color-dark);
    transition: background 0.3s;
}

.faq-question:hover {
    background: var(--color-gray-100);
}

.faq-question i {
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: var(--color-text-light);
    line-height: 1.8;
}

/* ============ EVENTS PAGE ============ */
.events-calendar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.event-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.event-card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.event-card-body {
    padding: 1.5rem;
}

.event-card-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

.event-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.event-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--color-gray-100);
    color: var(--color-primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.event-countdown {
    background: var(--color-gray-100);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0;
}

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

.countdown-item .number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.countdown-item .label {
    font-size: 0.75rem;
    color: var(--color-text-light);
    text-transform: uppercase;
}

/* ============ SHARE BUTTONS ============ */
.share-buttons {
    display: flex;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

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

.share-btn:hover {
    transform: scale(1.1);
}

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

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

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.whatsapp {
    background: #25d366;
}

/* ============ BREADCRUMBS ============ */
.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--color-text-light);
}

.breadcrumbs a:hover {
    color: var(--color-primary);
}

.breadcrumbs span {
    color: var(--color-text);
}

.breadcrumbs i {
    margin: 0 0.5rem;
    font-size: 0.7rem;
    color: var(--color-text-light);
}

/* ============ READING TIME ============ */
.reading-time {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* ============ RELATED POSTS ============ */
.related-posts {
    padding: 3rem 0;
    border-top: 1px solid var(--color-gray-200);
    margin-top: 3rem;
}

.related-posts h3 {
    margin-bottom: 2rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* ============ OFFLINE INDICATOR ============ */
.offline-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #dc3545;
    color: white;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.9rem;
    z-index: 10002;
    transform: translateY(-100%);
    transition: transform 0.3s;
}

.offline-indicator.visible {
    transform: translateY(0);
}

/* ============ FORM LOADING STATE ============ */
.form-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 3px solid var(--color-gray-200);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

/* ============ LAZY LOADING PLACEHOLDER ============ */
.lazy-image {
    background: var(--color-gray-100);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lazy-image.loaded {
    background: transparent;
}

/* ============ PRINT STYLES ============ */
@media print {

    .site-header,
    .site-footer,
    .back-to-top,
    .dark-mode-toggle,
    .cookie-consent,
    .share-buttons,
    .nav-mobile {
        display: none !important;
    }

    body {
        padding-top: 0 !important;
    }

    .container {
        max-width: 100%;
    }
}

/* ============ RESPONSIVE ADDITIONS ============ */
@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
    }

    .event-countdown {
        gap: 1rem;
    }

    .countdown-item .number {
        font-size: 1.25rem;
    }

    .back-to-top,
    .dark-mode-toggle {
        right: 15px;
        bottom: 15px;
    }

    .dark-mode-toggle {
        bottom: 75px;
    }
}