/* =========================================================================
   Premium Content Page Styles - R. G. Shah Science College
   Colors: Primary #0F2A4C | Secondary #D6AD60 | Cream #F7F3EA | Text #344054 | Highlight #3987C9
   ========================================================================= */

.content-page-area {
    background-color: var(--white, #FFFFFF);
    position: relative;
    padding-top: 120px;
    padding-bottom: 120px;
}

.content-page-card {
    background-color: var(--white, #FFFFFF);
    border-radius: 20px 0;
    border: 1px solid #ECE7DB;
    box-shadow: 0 10px 35px rgba(15, 42, 76, 0.05);
    padding: 50px 54px;
    position: relative;
    transition: box-shadow 0.3s ease;
}

.content-page-header {
    text-align: center;
    margin-bottom: 44px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(15, 42, 76, 0.08);
}

.content-page-main-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color, #0F2A4C);
    line-height: 1.35;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.content-page-gold-divider {
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color, #D6AD60);
    margin: 0 auto;
    border-radius: 2px;
}

/* =========================================================================
   Rich Text Content Body
   ========================================================================= */
.rich-text-body {
    color: var(--body-text, #344054);
    font-size: 16px;
    line-height: 1.85;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.rich-text-body h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color, #0F2A4C);
    margin-top: 36px;
    margin-bottom: 18px;
    line-height: 1.3;
}

.rich-text-body h2 {
    font-size: 23px;
    font-weight: 700;
    color: var(--primary-color, #0F2A4C);
    margin-top: 32px;
    margin-bottom: 16px;
    line-height: 1.35;
    padding-left: 14px;
    border-left: 4px solid var(--secondary-color, #D6AD60);
}

.rich-text-body h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--primary-color, #0F2A4C);
    margin-top: 26px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.rich-text-body h4 {
    font-size: 17.5px;
    font-weight: 600;
    color: var(--primary-color, #0F2A4C);
    margin-top: 22px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.rich-text-body h5,
.rich-text-body h6 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color, #0F2A4C);
    margin-top: 18px;
    margin-bottom: 8px;
    line-height: 1.45;
}

.rich-text-body p {
    font-size: 16px;
    line-height: 1.85;
    color: var(--body-text, #344054);
    margin-bottom: 20px;
}

.rich-text-body p:last-child {
    margin-bottom: 0;
}

.rich-text-body strong,
.rich-text-body b {
    color: var(--primary-color, #0F2A4C);
    font-weight: 600;
}

.rich-text-body em,
.rich-text-body i {
    font-style: italic;
}

.rich-text-body a {
    color: var(--accent-highlight, #3987C9);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: all 0.25s ease;
}

.rich-text-body a:hover {
    color: var(--primary-color, #0F2A4C);
    text-decoration: none;
}

.rich-text-body ul,
.rich-text-body ol {
    margin: 18px 0 24px 20px;
    padding-left: 12px;
}

.rich-text-body li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--body-text, #344054);
    margin-bottom: 8px;
}

.rich-text-body ul li {
    list-style: disc;
}

.rich-text-body ol li {
    list-style: decimal;
}

.rich-text-body ul li::marker {
    color: var(--secondary-color, #D6AD60);
}

.rich-text-body ol li::marker {
    color: var(--primary-color, #0F2A4C);
    font-weight: 700;
}

.rich-text-body blockquote {
    background-color: #F7F3EA;
    border-left: 4px solid var(--secondary-color, #D6AD60);
    border-radius: 12px 0;
    padding: 22px 26px;
    margin: 26px 0;
    font-style: italic;
    font-size: 16px;
    line-height: 1.85;
    color: var(--primary-color, #0F2A4C);
}

.rich-text-body blockquote p:last-child {
    margin-bottom: 0;
}

.rich-text-body table {
    width: 100%;
    margin: 28px 0;
    border-collapse: collapse;
    border: 1px solid #ECE7DB;
    border-radius: 8px;
    display: block;
    overflow-x: auto;
}

.rich-text-body th {
    background-color: var(--primary-color, #0F2A4C);
    color: var(--white, #FFFFFF);
    padding: 12px 18px;
    font-size: 14.5px;
    font-weight: 600;
    text-align: left;
    border: 1px solid var(--primary-color, #0F2A4C);
    white-space: nowrap;
}

.rich-text-body td {
    padding: 12px 18px;
    font-size: 15px;
    color: var(--body-text, #344054);
    border: 1px solid #ECE7DB;
    line-height: 1.6;
}

.rich-text-body tr:nth-child(even) {
    background-color: #F7F3EA;
}

.rich-text-body tr:hover {
    background-color: rgba(214, 173, 96, 0.08);
}

.rich-text-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px 0;
    border: 1px solid #ECE7DB;
    box-shadow: 0 8px 24px rgba(15, 42, 76, 0.06);
    margin: 20px 0;
    display: block;
}

.rich-text-body hr {
    border: none;
    height: 1px;
    background-color: #ECE7DB;
    margin: 32px 0;
}

/* =========================================================================
   404 / Page Not Found Card
   ========================================================================= */
.content-notfound-card {
    background-color: var(--white, #FFFFFF);
    border-radius: 20px 0;
    border: 1px solid #ECE7DB;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(15, 42, 76, 0.06);
    max-width: 600px;
    margin: 30px auto;
}

.content-notfound-icon {
    font-size: 52px;
    color: var(--secondary-color, #D6AD60);
    margin-bottom: 18px;
    display: inline-block;
}

.content-notfound-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color, #0F2A4C);
    margin-bottom: 10px;
}

.content-notfound-desc {
    font-size: 15.5px;
    color: var(--body-text, #344054);
    line-height: 1.7;
    margin-bottom: 24px;
}

/* =========================================================================
   Responsive Breakpoints
   ========================================================================= */
@media (max-width: 991px) {
    .content-page-area {
        padding-top: 65px;
        padding-bottom: 75px;
    }

    .content-page-card {
        padding: 38px 34px;
    }

    .content-page-main-title {
        font-size: 27px;
    }
}

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

    .content-page-card {
        padding: 26px 20px;
        border-radius: 16px 0;
    }

    .content-page-header {
        margin-bottom: 30px;
        padding-bottom: 16px;
    }

    .content-page-main-title {
        font-size: 22px;
    }

    .rich-text-body h1 {
        font-size: 22px;
    }

    .rich-text-body h2 {
        font-size: 19px;
        padding-left: 10px;
    }

    .rich-text-body h3 {
        font-size: 17.5px;
    }

    .rich-text-body p,
    .rich-text-body li {
        font-size: 15px;
        line-height: 1.75;
    }

    .rich-text-body blockquote {
        padding: 16px 18px;
        font-size: 15px;
    }

    .rich-text-body th,
    .rich-text-body td {
        padding: 10px 12px;
        font-size: 13.5px;
    }
}

