/* Fix back button overlap on specific pages (for pages that still use floating buttons) */
        #masters-guidance-page .back-to-main {
            z-index: 10001; /* Higher than page content */
        }

#masters-guidance-page .card {
            margin-top: 70px; /* Space for back button */
        }

#masters-guidance-page {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 16px;
        }

#masters-guidance-page .card {
            width: min(980px, 100%);
            background: #fff;
            border-radius: 20px;
            padding: 28px;
            box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
        }

#masters-guidance-page h1 {
            font-size: clamp(1.6rem, 2.5vw, 2.4rem);
            text-align: center;
            color: #333;
            font-weight: 800;
            letter-spacing: 0.2px;
        }

#masters-guidance-page .meta {
            margin-top: 6px;
            text-align: center;
            color: #666;
            font-weight: 500;
        }

#masters-guidance-page .status {
            margin-top: 8px;
            text-align: center;
            color: #888;
            font-size: 0.88rem;
            height: 18px;
            display: none;
        }

#masters-guidance-page .viewer {
            position: relative;
            margin-top: 18px;
            border-radius: 16px;
            overflow: hidden;
            background: #f5f5f7;
            box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
            height: clamp(260px, 70vh, 78vh);
            display: flex;
            align-items: center;
            justify-content: center;
        }

#masters-guidance-page img#quoteImage {
            max-width: 100%;
            max-height: 100%;
            width: auto;
            height: auto;
            object-fit: contain;
            display: none;
            border-radius: 14px;
            transition: opacity 0.2s ease;
        }

#masters-guidance-page img#quoteImage.show {
            display: block;
            opacity: 1;
        }

#masters-guidance-page .placeholder {
            color: #9aa;
            text-align: center;
            padding: 22px;
        }

#masters-guidance-page .controls {
            display: flex;
            justify-content: center;
            gap: 12px;
            margin-top: 20px;
            flex-wrap: wrap;
        }

#masters-guidance-page button {
            appearance: none;
            border: 0;
            cursor: pointer;
            user-select: none;
            padding: 12px 26px;
            border-radius: 999px;
            font-weight: 700;
            font-size: 1rem;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: #fff;
            box-shadow: 0 10px 24px rgba(102, 126, 234, 0.35);
            transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.2s ease;
        }

#masters-guidance-page button:disabled {
            opacity: 0.55;
            cursor: not-allowed;
            box-shadow: none;
        }

#masters-guidance-page button:hover:not(:disabled) {
            transform: translateY(-1.5px);
        }

#masters-guidance-page .loading {
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.45);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 5;
            flex-direction: column;
            gap: 12px;
        }

#masters-guidance-page .spinner {
            width: 52px;
            height: 52px;
            border-radius: 50%;
            border: 5px solid rgba(255, 255, 255, 0.35);
            border-top-color: #fff;
            animation: spin 1s linear infinite;
        }

#masters-guidance-page .loading-text {
            color: #fff;
            font-weight: 600;
            font-size: 0.95rem;
        }

#masters-guidance-page .footer {
            margin-top: 16px;
            padding-top: 14px;
            border-top: 1px solid #eee;
            color: #666;
            text-align: center;
            font-size: 0.92rem;
        }

#masters-guidance-page .play-btn {
            padding: 10px 18px;
            font-size: 0.95rem;
            display: inline-flex;
            gap: 8px;
            align-items: center;
        }

#masters-guidance-page .play-icon {
            width: 16px;
            height: 16px;
            display: inline-block;
            background: transparent;
            border-left: 14px solid white;
            border-top: 8px solid transparent;
            border-bottom: 8px solid transparent;
            transform: translateX(2px);
        }

#masters-guidance-page .video-caption {
            margin-top: 8px;
            text-align: center;
            color: #666;
            font-size: 0.92rem;
            display: none;
        }

@media (max-width: 600px) {
            #masters-guidance-page .card {
                padding: 18px;
            }
        }
