/* IFRAME Modal Styles */
.iframe-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.iframe-modal.show {
    opacity: 1;
    visibility: visible;
}

.iframe-dialog {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.iframe-modal.show .iframe-dialog {
    transform: scale(1);
}

.iframe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.iframe-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    margin: 0;
}

.iframe-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.iframe-close:hover {
    background: #e5e7eb;
    color: #374151;
}

.iframe-content {
    padding: 1.5rem;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

.iframe-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.iframe-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.iframe-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.iframe-date {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    font-weight: 500;
}

.iframe-news-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    line-height: 1.3;
    margin: 0;
}

.iframe-news-content {
    color: var(--foreground);
    line-height: 1.6;
    margin: 0;
}

.iframe-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    text-align: center;
}

.iframe-register-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.iframe-register-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

/* Mobile IFRAME Modal */
@media (max-width: 768px) {
    .iframe-dialog {
        width: 95%;
        max-height: 95vh;
    }

    .iframe-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .iframe-content {
        padding: 1rem;
        max-height: calc(95vh - 120px);
    }

    .iframe-header {
        padding: 0.75rem 1rem;
    }

    .iframe-title {
        font-size: 1.125rem;
    }

    .iframe-footer {
        padding: 0.75rem 1rem;
    }

    .iframe-register-btn {
        width: 100%;
        justify-content: center;
    }
}

/* News CTA Section Styles */
.news-cta-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.news-cta-button {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    font-family: 'Noto Sans TC', sans-serif;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.news-cta-button:hover::before {
    left: 100%;
}

.news-cta-button.primary {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    border-color: #ffc107;
    color: #1a1a1a;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

.news-cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 193, 7, 0.5);
    background: linear-gradient(135deg, #ffca28 0%, #ffa726 100%);
}

.news-cta-button.secondary {
    background: linear-gradient(135deg, #00d4aa 0%, #00a67e 100%);
    border-color: #00d4aa;
    color: white;
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.4);
}

.news-cta-button.secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 212, 170, 0.5);
    background: linear-gradient(135deg, #00e5bf 0%, #00b88a 100%);
}

.cta-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    animation: pulse 2s infinite;
}

.cta-content {
    flex: 1;
    text-align: left;
}

.cta-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    letter-spacing: 0.5px;
}

.cta-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

.cta-arrow {
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.3s ease;
    margin-left: 1rem;
}

.news-cta-button:hover .cta-arrow {
    transform: translateX(4px);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive News CTA */
@media (max-width: 768px) {
    .news-cta-section {
        padding: 1rem;
        gap: 0.8rem;
        margin-top: 1.5rem;
    }
    
    .news-cta-button {
        padding: 0.8rem 1rem;
    }
    
    .cta-icon {
        font-size: 1.3rem;
        margin-right: 0.8rem;
    }
    
    .cta-title {
        font-size: 1rem;
    }
    
    .cta-subtitle {
        font-size: 0.85rem;
    }
    
    .cta-arrow {
        font-size: 1.1rem;
        margin-left: 0.8rem;
    }
}

/* Additional CTA enhancements */
.highlight-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
    margin: 1.5rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, #fff9c4 0%, #fef3cd 100%);
    border-radius: 12px;
    border-left: 4px solid #ffc107;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
}