/* ==============================================
   INNER PAGES — Shared Design System (ip- prefix)
   Matches online-courses / classroom / webinar style
   ============================================== */

/* -----------------------------------------------
   1. HERO SECTION
----------------------------------------------- */
.ip-hero {
    position: relative;
    background: linear-gradient(135deg, #004e6d 0%, #29ab9f 100%);
    padding: 64px 0 56px;
    overflow: hidden;
}

.ip-hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

.ip-hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    pointer-events: none;
}

.ip-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.ip-hero-eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    padding: 6px 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.ip-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.ip-hero .ip-hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.88);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* -----------------------------------------------
   2. BREADCRUMB
----------------------------------------------- */
.ip-breadcrumb {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 12px 0;
}

.ip-breadcrumb ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}

.ip-breadcrumb li {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
}

.ip-breadcrumb li + li::before {
    content: '›';
    margin: 0 10px;
    color: #adb5bd;
    font-size: 16px;
    line-height: 1;
}

.ip-breadcrumb li a {
    color: #29ab9f;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.ip-breadcrumb li a:hover {
    color: #004e6d;
    text-decoration: underline;
}

.ip-breadcrumb li:last-child {
    color: #495057;
    font-weight: 500;
}

/* -----------------------------------------------
   3. MAIN WRAPPER
----------------------------------------------- */
.ip-main {
    background: #f4f6f8;
    padding: 48px 0 64px;
}

/* -----------------------------------------------
   4. CONTENT SECTION CARD
----------------------------------------------- */
.ip-content-section {
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid #e9ecef;
    padding: 36px 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    margin-bottom: 28px;
}

.ip-section-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #004e6d;
    margin-bottom: 8px;
    line-height: 1.3;
}

.ip-section-divider {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, #29ab9f, transparent);
    margin-bottom: 28px;
    margin-top: 4px;
}

.ip-section-lead {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 28px;
}

/* Inner content typography */
.ip-content-section p {
    color: #444;
    line-height: 1.8;
    margin-bottom: 16px;
}

.ip-content-section h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #004e6d;
    margin-top: 28px;
    margin-bottom: 12px;
}

.ip-content-section h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #004e6d;
    margin-top: 28px;
    margin-bottom: 14px;
}

.ip-content-section h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #004e6d;
    margin-top: 32px;
    margin-bottom: 14px;
}

.ip-content-section ul,
.ip-content-section ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

.ip-content-section li {
    color: #444;
    line-height: 1.8;
    margin-bottom: 6px;
}

.ip-content-section a {
    color: #29ab9f;
    text-decoration: none;
}

.ip-content-section a:hover {
    color: #004e6d;
    text-decoration: underline;
}

/* -----------------------------------------------
   5. BLOCKQUOTE
----------------------------------------------- */
.ip-quote {
    background: linear-gradient(135deg, rgba(41, 171, 159, 0.07) 0%, rgba(0, 78, 109, 0.07) 100%);
    border-left: 4px solid #29ab9f;
    border-radius: 0 12px 12px 0;
    padding: 20px 24px;
    margin: 24px 0;
    color: #333;
    font-style: italic;
    line-height: 1.8;
}

.ip-quote p {
    margin-bottom: 8px !important;
}

.ip-quote p:last-child {
    margin-bottom: 0 !important;
    font-style: normal;
    font-size: 0.875rem;
    color: #666;
}

/* -----------------------------------------------
   6. INFO BOX (teal highlight box)
----------------------------------------------- */
.ip-info-box {
    background: #f8fffe;
    border: 1.5px solid #d4f0ed;
    border-left: 4px solid #29ab9f;
    border-radius: 0 12px 12px 0;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.ip-info-box i {
    color: #29ab9f;
    margin-right: 8px;
}

/* -----------------------------------------------
   7. VIDEO CONTAINER
----------------------------------------------- */
.ip-video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.ip-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* -----------------------------------------------
   8. DIRECTOR CARD
----------------------------------------------- */
.ip-director-card {
    display: flex;
    align-items: center;
    gap: 24px;
    background: #f8fffe;
    border: 1.5px solid #d4f0ed;
    border-radius: 12px;
    padding: 20px 24px;
    margin-top: 28px;
}

.ip-director-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #29ab9f;
    flex-shrink: 0;
}

.ip-director-info h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #004e6d;
    margin-bottom: 4px;
}

.ip-director-info p {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
}

/* -----------------------------------------------
   9. FAQ CATEGORY GRID
----------------------------------------------- */
.ip-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.ip-category-card {
    background: #f8fffe;
    border: 1.5px solid #d4f0ed;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.ip-category-card:hover {
    box-shadow: 0 4px 18px rgba(41, 171, 159, 0.15);
    transform: translateY(-2px);
}

.ip-category-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #004e6d, #29ab9f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ip-category-icon i {
    color: #fff;
    font-size: 18px;
}

.ip-category-content {
    flex: 1;
}

.ip-category-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #004e6d;
    margin-bottom: 6px;
    line-height: 1.3;
}

.ip-category-desc {
    font-size: 0.825rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* -----------------------------------------------
   10. FAQ ACCORDION
----------------------------------------------- */
.ip-faq-heading {
    font-size: 1.4rem;
    font-weight: 800;
    color: #004e6d;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ip-faq-heading::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 26px;
    background: linear-gradient(180deg, #29ab9f, #004e6d);
    border-radius: 2px;
}

.ip-faq-section .card {
    border-radius: 10px !important;
    overflow: hidden;
    margin-bottom: 8px !important;
    border: 1.5px solid #e9ecef !important;
    box-shadow: none !important;
    transition: box-shadow 0.2s;
}

.ip-faq-section .card:hover {
    box-shadow: 0 2px 12px rgba(41, 171, 159, 0.1) !important;
}

.ip-faq-section .faq-card-header {
    background: #fff;
    border-bottom: none !important;
    padding: 4px 16px;
    transition: background 0.2s;
}

.ip-faq-section .faq-card-header:hover {
    background: #f8fffe;
}

.ip-faq-section .faq-button {
    color: #004e6d !important;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none !important;
    padding: 14px 0;
    white-space: normal;
    line-height: 1.5;
}

.ip-faq-section .faq-button:hover,
.ip-faq-section .faq-button:focus {
    color: #29ab9f !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.ip-faq-section .btn-accordion-toggle {
    background: transparent;
    border: none;
    color: #29ab9f;
    padding: 10px 4px;
}

.ip-faq-section .btn-accordion-toggle:focus {
    box-shadow: none;
}

.ip-faq-section .accordion-icon i {
    color: #29ab9f;
    font-size: 16px;
}

.ip-faq-section .card-body.faq-answer {
    background: #f8fffe;
    border-top: 1.5px solid #d4f0ed;
    color: #444;
    line-height: 1.8;
    font-size: 15px;
    padding: 20px 24px;
}

.ip-faq-section .card-body.faq-answer p { margin-bottom: 12px; }
.ip-faq-section .card-body.faq-answer ul,
.ip-faq-section .card-body.faq-answer ol { padding-left: 22px; }
.ip-faq-section .card-body.faq-answer li { margin-bottom: 6px; }

/* -----------------------------------------------
   11. HELP DESK — KNOWLEDGE BASE
----------------------------------------------- */
.ip-kb-wrapper {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
}

.ip-kb-topics {
    background: #f8fffe;
    border: 1.5px solid #d4f0ed;
    border-radius: 12px;
    overflow: hidden;
    position: sticky;
    top: 16px;
}

.ip-kb-topics-title {
    background: linear-gradient(135deg, #004e6d 0%, #29ab9f 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 12px 16px;
    margin: 0;
}

.ip-kb-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.ip-kb-list li {
    border-bottom: 1px solid #e9f8f7;
}

.ip-kb-list li:last-child {
    border-bottom: none;
}

.ip-kb-list li a {
    display: block;
    padding: 11px 16px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.ip-kb-list li a:hover,
.ip-kb-list li.active a {
    background: #e8f7f5;
    color: #29ab9f;
    padding-left: 22px;
}

.ip-kb-content {
    min-height: 300px;
}

.ip-kb-article {
    display: none;
    padding: 20px 0;
}

.ip-kb-article.active {
    display: block;
}

.ip-kb-article h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #004e6d;
    margin-bottom: 10px;
}

.ip-kb-article p {
    color: #444;
    line-height: 1.8;
    font-size: 15px;
    margin-bottom: 12px;
}

/* -----------------------------------------------
   12. SUPPORT CTA
----------------------------------------------- */
.ip-support-cta {
    background: linear-gradient(135deg, #004e6d 0%, #29ab9f 100%);
    border-radius: 16px;
    padding: 48px 40px;
    text-align: center;
    color: #fff;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

.ip-support-cta::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    pointer-events: none;
}

.ip-support-cta h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.ip-support-cta p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 28px;
    line-height: 1.7;
}

/* -----------------------------------------------
   13. BUTTONS
----------------------------------------------- */
.ip-btn-primary {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #29ab9f 0%, #1a8a7f 100%);
    color: #fff !important;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(41, 171, 159, 0.3);
}

.ip-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(41, 171, 159, 0.45);
    color: #fff !important;
    text-decoration: none !important;
}

.ip-btn-white {
    display: inline-block;
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff !important;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
}

.ip-btn-white:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff !important;
    text-decoration: none !important;
}

.ip-btn-outline {
    display: inline-block;
    padding: 10px 24px;
    background: transparent;
    border: 2px solid #29ab9f;
    color: #29ab9f !important;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
}

.ip-btn-outline:hover {
    background: #29ab9f;
    color: #fff !important;
    text-decoration: none !important;
}

.ip-btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    background: #6c757d;
    color: #fff !important;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.ip-btn-secondary:hover {
    background: #5a6268;
    color: #fff !important;
    text-decoration: none !important;
}

/* -----------------------------------------------
   14. HELPDESK DASHBOARD — TABLE
----------------------------------------------- */
.ip-ticket-table-wrapper {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
}

.ip-ticket-table {
    margin-bottom: 0;
}

.ip-ticket-table thead {
    background: linear-gradient(135deg, #004e6d 0%, #29ab9f 100%);
    color: #fff;
}

.ip-ticket-table thead th {
    padding: 15px 16px;
    font-weight: 600;
    border: none !important;
    color: #fff;
    font-size: 14px;
}

.ip-ticket-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background 0.2s;
}

.ip-ticket-table tbody tr:hover {
    background: rgba(41, 171, 159, 0.04);
}

.ip-ticket-table tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    border: none !important;
    font-size: 14px;
}

.ip-ticket-id {
    color: #004e6d;
    font-weight: 700;
    font-size: 15px;
}

.ip-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.ip-badge-open {
    background: linear-gradient(135deg, #dc3545, #c62828);
    color: #fff;
}

.ip-badge-closed,
.ip-badge-resolved {
    background: linear-gradient(135deg, #28a745, #10b981);
    color: #fff;
}

.ip-badge-pending {
    background: linear-gradient(135deg, #fd7e14, #e65c00);
    color: #fff;
}

.ip-new-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 3px 10px;
    background: #dc3545;
    color: #fff;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

/* -----------------------------------------------
   15. HELPDESK DASHBOARD — EMPTY STATE
----------------------------------------------- */
.ip-empty-state {
    text-align: center;
    padding: 60px 30px;
    background: linear-gradient(135deg, rgba(41, 171, 159, 0.05) 0%, rgba(0, 78, 109, 0.05) 100%);
    border-radius: 12px;
    border: 2px dashed #29ab9f;
}

.ip-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #29ab9f 0%, #004e6d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ip-empty-icon i {
    font-size: 34px;
    color: #fff;
}

.ip-empty-state h3 {
    color: #004e6d;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.ip-empty-state p {
    color: #666;
    font-size: 15px;
    margin-bottom: 28px;
    line-height: 1.7;
}

/* -----------------------------------------------
   16. QUICK HELP CARDS (helpdesk dashboard)
----------------------------------------------- */
.ip-quick-card {
    background: #fff;
    padding: 26px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    text-align: center;
    height: 100%;
    transition: box-shadow 0.2s, transform 0.2s;
}

.ip-quick-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.ip-quick-card-teal { border-top: 4px solid #29ab9f; }
.ip-quick-card-blue { border-top: 4px solid #004e6d; }
.ip-quick-card-green { border-top: 4px solid #1a8a7f; }

.ip-quick-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ip-quick-icon-teal { background: linear-gradient(135deg, #29ab9f, #1a8a7f); }
.ip-quick-icon-blue { background: linear-gradient(135deg, #004e6d, #003347); }
.ip-quick-icon-green { background: linear-gradient(135deg, #1a8a7f, #29ab9f); }

.ip-quick-icon i {
    font-size: 26px;
    color: #fff;
}

.ip-quick-card h4 {
    color: #004e6d;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.ip-quick-card p {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 14px;
}

.ip-quick-link-teal { color: #29ab9f; font-weight: 600; text-decoration: none; }
.ip-quick-link-blue { color: #004e6d; font-weight: 600; text-decoration: none; }
.ip-quick-link-green { color: #1a8a7f; font-weight: 600; text-decoration: none; }

.ip-quick-link-teal:hover,
.ip-quick-link-blue:hover,
.ip-quick-link-green:hover {
    text-decoration: underline;
}

/* -----------------------------------------------
   17. CREATE TICKET FORM
----------------------------------------------- */
.ip-form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.ip-form-required {
    color: #dc3545;
    margin-left: 3px;
}

.ip-form-control {
    border: 2px solid #e9ecef !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    width: 100%;
}

.ip-form-control:focus {
    border-color: #29ab9f !important;
    box-shadow: 0 0 0 0.2rem rgba(41, 171, 159, 0.15) !important;
    outline: none;
}

.ip-file-upload {
    border: 2px dashed #29ab9f;
    border-radius: 8px;
    padding: 24px 20px;
    text-align: center;
    background: rgba(41, 171, 159, 0.02);
    transition: background 0.2s;
}

.ip-file-upload:hover {
    background: rgba(41, 171, 159, 0.05);
}

.ip-file-upload i {
    font-size: 32px;
    color: #29ab9f;
    display: block;
    margin-bottom: 10px;
}

.ip-response-info {
    background: linear-gradient(135deg, rgba(41, 171, 159, 0.05) 0%, rgba(0, 78, 109, 0.05) 100%);
    padding: 18px 20px;
    border-radius: 8px;
    border-left: 4px solid #29ab9f;
    margin-bottom: 24px;
}

.ip-response-info p {
    margin: 0 !important;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.ip-response-info i {
    color: #29ab9f;
    margin-right: 6px;
}

/* -----------------------------------------------
   18. RESPONSIVE
----------------------------------------------- */
@media (max-width: 991px) {
    .ip-hero h1 {
        font-size: 2.2rem;
    }

    .ip-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ip-kb-wrapper {
        grid-template-columns: 1fr;
    }

    .ip-kb-topics {
        position: static;
    }
}

@media (max-width: 767px) {
    .ip-hero {
        padding: 48px 0 40px;
    }

    .ip-hero h1 {
        font-size: 1.9rem;
    }

    .ip-hero .ip-hero-subtitle {
        font-size: 1rem;
    }

    .ip-content-section {
        padding: 24px 20px;
    }

    .ip-support-cta {
        padding: 36px 24px;
    }

    .ip-support-cta h3 {
        font-size: 1.35rem;
    }

    .ip-director-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 575px) {
    .ip-hero h1 {
        font-size: 1.6rem;
    }

    .ip-category-grid {
        grid-template-columns: 1fr;
    }

    .ip-content-section {
        padding: 20px 16px;
    }

    .ip-ticket-table thead {
        display: none;
    }

    .ip-ticket-table tbody td {
        display: block;
        padding: 8px 12px;
    }

    .ip-ticket-table tbody tr {
        display: block;
        margin-bottom: 12px;
        border: 1.5px solid #e9ecef;
        border-radius: 8px;
    }
}
