/**
 * Kheda Arts and Commerce College - Dedicated Content Page Stylesheet
 * Prefix: .content-page-
 * Colors: Navy #01356F, Burgundy #792D43, Section Bg #F5E9EC, Charcoal #302B35, White #FFFFFF
 */

/* Main Section */
.content-page-section {
    background-color: #ffffff;
    padding-top: 100px;
    padding-bottom: 100px;
    /*min-height: 550px;*/
}

/* Centered Reading Column */
.content-page-container {
    /*max-width: 1000px;*/
    margin: 0 auto;
}

/* Article Panel */
.content-page-card {
    background: #ffffff;
    /*border-radius: 12px;*/
    border: 1px solid #edf2f7;
    box-shadow: 0 4px 24px rgba(1, 53, 111, 0.04);
    padding: 45px 50px;
    position: relative;
    transition: box-shadow 0.3s ease;
}

.content-page-card:hover {
    box-shadow: 0 8px 32px rgba(1, 53, 111, 0.07);
}

/* Featured Header Image */
.content-page-featured-img-wrap {
    margin-bottom: 35px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.content-page-featured-img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    display: block;
}

/* Rich-Text Body Typography & Flow */
.content-page-body {
    font-size: 16.5px;
    line-height: 1.85;
    color: #302B35;
    word-break: break-word;
}

.content-page-body > *:first-child {
    margin-top: 0 !important;
}

.content-page-body > *:last-child {
    margin-bottom: 0 !important;
}

/* Headings */
.content-page-body h1,
.content-page-body h2,
.content-page-body h3,
.content-page-body h4,
.content-page-body h5,
.content-page-body h6 {
    color: #01356F;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.2px;
}

.content-page-body h1 {
    font-size: 30px;
    margin-top: 2.2rem;
    margin-bottom: 1.1rem;
    border-bottom: 2px solid #F5E9EC;
    padding-bottom: 0.5rem;
}

.content-page-body h2 {
    font-size: 25px;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #F5E9EC;
    padding-bottom: 0.4rem;
}

.content-page-body h3 {
    font-size: 21px;
    color: #792D43;
    margin-top: 1.75rem;
    margin-bottom: 0.85rem;
}

.content-page-body h4 {
    font-size: 18.5px;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-page-body h5 {
    font-size: 16.5px;
    margin-top: 1.25rem;
    margin-bottom: 0.6rem;
}

.content-page-body h6 {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-top: 1.25rem;
    margin-bottom: 0.6rem;
}

/* Paragraphs */
.content-page-body p {
    margin-bottom: 1.35rem;
    color: #302B35;
}

/* Links */
.content-page-body a {
    color: #01356F;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.content-page-body a:hover {
    color: #792D43;
    text-decoration-color: #792D43;
}

.content-page-body a:focus-visible {
    outline: 2px solid #792D43;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Lists */
.content-page-body ul,
.content-page-body ol {
    padding-left: 1.75rem;
    margin-bottom: 1.5rem;
}

.content-page-body li {
    margin-bottom: 0.6rem;
    line-height: 1.75;
}

.content-page-body ul li::marker {
    color: #792D43;
}

.content-page-body ol li::marker {
    color: #01356F;
    font-weight: 700;
}

.content-page-body li > ul,
.content-page-body li > ol {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
}

/* Blockquotes */
.content-page-body blockquote {
    border-left: 4px solid #792D43;
    background: #F5E9EC;
    padding: 20px 26px;
    margin: 2rem 0;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #302B35;
    position: relative;
}

.content-page-body blockquote p:last-child {
    margin-bottom: 0;
}

/* Tables & Wrappers */
.content-page-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 2rem 0;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.content-page-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    background: #ffffff;
}

.content-page-body table th {
    background: #01356F;
    color: #ffffff;
    font-weight: 700;
    padding: 13px 18px;
    text-align: left;
    border: 1px solid #0d4685;
    white-space: nowrap;
}

.content-page-body table td {
    padding: 12px 18px;
    border: 1px solid #e2e8f0;
    color: #302B35;
    vertical-align: top;
}

.content-page-body table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.content-page-body table tbody tr:hover {
    background: #F5E9EC;
}

/* Images & Media */
.content-page-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    display: inline-block;
}

.content-page-body figure {
    margin: 2rem 0;
    text-align: center;
}

.content-page-body figure img {
    margin: 0 auto;
}

.content-page-body figcaption {
    font-size: 13.5px;
    color: #64748b;
    margin-top: 8px;
    font-style: italic;
}

/* Horizontal Rule */
.content-page-body hr {
    border: none;
    height: 1px;
    background: #e2e8f0;
    margin: 2.5rem 0;
}

/* Preformatted and Code Blocks */
.content-page-body code {
    background: #f1f5f9;
    color: #01356F;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.9em;
}

.content-page-body pre {
    background: #1e293b;
    color: #f8fafc;
    padding: 18px 22px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.75rem 0;
    font-size: 14px;
    line-height: 1.6;
}

.content-page-body pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* =========================================================================
   Empty Content State
   ========================================================================= */
.content-page-empty-state {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 60px 30px;
    text-align: center;
    max-width: 600px;
    margin: 20px auto;
}

.content-page-empty-icon {
    width: 72px;
    height: 72px;
    background: #F5E9EC;
    color: #792D43;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 20px;
}

.content-page-empty-state h3 {
    font-size: 20px;
    font-weight: 700;
    color: #01356F;
    margin-bottom: 10px;
}

.content-page-empty-state p {
    font-size: 15px;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* =========================================================================
   404 / Unavailable Error Card
   ========================================================================= */
.content-page-error-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 35px rgba(1, 53, 111, 0.08);
    border: 1px solid #e2e8f0;
    padding: 60px 30px;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.content-page-error-icon {
    width: 90px;
    height: 90px;
    background: #F5E9EC;
    color: #792D43;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 46px;
    margin-bottom: 24px;
    box-shadow: 0 6px 18px rgba(121, 45, 67, 0.15);
}

.content-page-error-card h2 {
    font-size: 26px;
    font-weight: 700;
    color: #01356F;
    margin-bottom: 12px;
}

.content-page-error-card p {
    font-size: 15px;
    color: #64748b;
    max-width: 480px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.content-page-error-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.content-page-error-actions .default-btn {
    padding: 12px 26px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.content-page-error-actions .btn-primary {
    background: #01356F;
    color: #ffffff;
    border: 1px solid #01356F;
}

.content-page-error-actions .btn-primary:hover {
    background: #0d4685;
    border-color: #0d4685;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(1, 53, 111, 0.25);
}

.content-page-error-actions .btn-secondary {
    background: #792D43;
    color: #ffffff;
    border: 1px solid #792D43;
}

.content-page-error-actions .btn-secondary:hover {
    background: #963854;
    border-color: #963854;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(121, 45, 67, 0.25);
}

/* =========================================================================
   Responsive Design
   ========================================================================= */
@media (max-width: 991px) {
    .content-page-section {
        padding-top: 40px;
        padding-bottom: 60px;
    }

    .content-page-card {
        padding: 35px 30px;
    }

    .content-page-body h1 {
        font-size: 26px;
    }

    .content-page-body h2 {
        font-size: 22px;
    }

    .content-page-body h3 {
        font-size: 19px;
    }
}

@media (max-width: 767px) {
    .content-page-section {
        padding-top: 25px;
        padding-bottom: 45px;
    }

    .content-page-card {
        padding: 24px 18px;
        border-radius: 8px;
        box-shadow: none;
        border: 1px solid #f1f5f9;
    }

    .content-page-body {
        font-size: 15.5px;
        line-height: 1.75;
    }

    .content-page-body h1 {
        font-size: 23px;
    }

    .content-page-body h2 {
        font-size: 20px;
    }

    .content-page-body h3 {
        font-size: 18px;
    }

    .content-page-body blockquote {
        padding: 16px 18px;
        margin: 1.5rem 0;
    }

    .content-page-error-card {
        padding: 40px 18px;
    }

    .content-page-error-icon {
        width: 70px;
        height: 70px;
        font-size: 34px;
    }

    .content-page-error-card h2 {
        font-size: 22px;
    }
}
