/* ===============================
   PPT Upload Form – Modern UI
================================ */

.ppt-upload-form {
    max-width: 720px;
    margin: 30px auto;
    padding: 26px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ppt-upload-form p {
    margin-bottom: 20px;
}

.ppt-upload-form label {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    display: block;
    margin-bottom: 6px;
}

.ppt-upload-form input[type="text"],
.ppt-upload-form input[type="email"],
.ppt-upload-form textarea {
    width: 100%;
    padding: 13px 14px;
    font-size: 15px;
    border-radius: 9px;
    border: 1px solid #cfd4da;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ppt-upload-form textarea {
    resize: vertical;
    min-height: 120px;
}

.ppt-upload-form input:focus,
.ppt-upload-form textarea:focus {
    border-color: #0a86d4;
    box-shadow: 0 0 0 3px rgba(10,134,212,0.15);
    outline: none;
}

.ppt-upload-form input[type="file"] {
    font-size: 14px;
    padding: 6px 0;
}

.ppt-upload-form small {
    display: block;
    margin-top: 6px;
    color: #666;
    font-size: 13px;
}

/* Submit Button */
.ppt-upload-form button {
    width: 100%;
    padding: 15px;
    font-size: 17px;
    font-weight: 700;
    background: linear-gradient(135deg, #0a86d4, #0d6efd);
    color: #fff;
    border: none;
    border-radius: 11px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.ppt-upload-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(13,110,253,0.35);
}

.ppt-upload-form button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* CAPTCHA */
.ppt-captcha {
    margin: 18px 0;
}

/* Progress Bar */
.ppt-progress-wrap {
    margin-top: 22px;
    display: none;
}

.ppt-progress-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.ppt-progress-bar {
    width: 100%;
    height: 14px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.ppt-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0a86d4, #0d6efd);
}

.ppt-progress-percent {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
}

/* Success Message */
.ppt-upload-success {
    max-width: 720px;
    margin: 25px auto;
    padding: 15px 18px;
    background: #e8f6ec;
    border-left: 5px solid #28a745;
    border-radius: 10px;
    color: #155724;
    font-weight: 600;
}

/* Upload Form Mobile */
@media (max-width: 600px) {
    .ppt-upload-form {
        padding: 18px;
        margin: 20px 12px;
    }
}

/* =====================================================
   PPT / PDF VIEWER – DESKTOP + MOBILE (FINAL FIX)
   ===================================================== */

/* Viewer wrapper */
.ppt-viewer,
.ppt-container,
.ppt-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: visible; /* IMPORTANT */
}

/* Viewer iframe */
.ppt-viewer iframe {
    width: 100%;
    height: 80vh;
    border: none;
    display: block;
}

/* Slide container */
.ppt-slide {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

/* Slide content */
.ppt-slide img,
.ppt-slide iframe,
.ppt-slide canvas,
.ppt-slide svg {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    border: 0;
}

/* Navigation buttons */
.ppt-controls,
.ppt-navigation,
.ppt-nav {
    margin-top: 12px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.ppt-controls button,
.ppt-navigation button {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    margin: 5px;
    border-radius: 6px;
    cursor: pointer;
}

/* ===============================
   MOBILE VIEW – PERFECT BEHAVIOR
================================ */

@media (max-width: 768px) {

    .ppt-viewer,
    .ppt-container,
    .ppt-wrapper {
        min-height: 75vh;
        overflow: visible;
    }

    .ppt-viewer iframe,
    .ppt-slide iframe {
        height: 65vh;
        min-height: 65vh;
    }

    /* Keep navigation visible */
    .ppt-controls,
    .ppt-navigation {
        margin-top: 14px;
        padding-bottom: 14px;
    }

    .ppt-controls button,
    .ppt-navigation button {
        min-width: 90px;
        font-size: 15px;
    }
}
/* =========================================
   AGRI PPT DESCRIPTION – JUSTIFIED TEXT
========================================= */

/* Target only agri ppt content */
.single-agri_ppt .entry-content,
.single-agri_ppt .entry-content p {
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.7;
    word-spacing: 0.05em;
}

/* Improve readability on mobile */
@media (max-width: 768px) {
    .single-agri_ppt .entry-content,
    .single-agri_ppt .entry-content p {
        line-height: 1.8;
        font-size: 15.5px;
    }
}
/* =====================================================
   COVER OFFICE PPT MENU (WITHOUT TOUCHING FULLSCREEN)
   ===================================================== */

/* Cover ONLY the menu strip */
.agri-ppt-viewer .ppt-menu-cover {
    position: absolute;
    right: 10px;
    bottom: 52px;      /* leaves fullscreen button clickable */
    width: 120px;      /* menu width */
    height: 200px;     /* menu height */
    z-index: 50;
    background: transparent;
    pointer-events: all;
}
