/**
 * ============================================================================
 * Content Page Component Stylesheet
 * G.B. Shah College for Technology and Management
 *
 * Theme Palette:
 * - Primary:                 #1c2f4d (Deep Navy)
 * - Secondary:               #37acb6 (Teal)
 * - Light Background:        #f3f6f8
 * - White Surface:           #ffffff
 * - Body Text:               #344054
 * ============================================================================
 */

/* ============================================================================
   1. Section Layout & Flex Row Container
   ============================================================================ */
.content-page-section {
    background-color: #f3f6f8;
    padding: 90px 0 85px 0;
    position: relative;
    min-height: calc(100vh - 420px);
    width: 100%;
}

.content-page-row {
    display: flex;
    justify-content: center;
}

@media (max-width: 991px) {
    .content-page-row {
        display: block;
    }
}

/* ============================================================================
   2. Main Surface Card
   ============================================================================ */
.content-page-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(28, 47, 77, 0.05);
    padding: 48px 52px;
    position: relative;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.content-page-card:hover {
    box-shadow: 0 8px 32px rgba(28, 47, 77, 0.08);
}

/* ============================================================================
   3. Featured Image Container
   ============================================================================ */
.content-page-featured-wrap {
    margin-bottom: 35px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(28, 47, 77, 0.07);
    background-color: #eaf0f6;
}

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

/* ============================================================================
   4. Rich Text Article & Body Typography
   ============================================================================ */
.content-page-article {
    width: 100%;
}

.content-page-body {
    color: #344054;
    font-size: 15.5px;
    line-height: 1.8;
    font-family: 'Roboto', sans-serif;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 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: #1c2f4d;
    font-family: 'texgyreadventorbold', 'Roboto', sans-serif;
    margin-top: 32px;
    margin-bottom: 14px;
    line-height: 1.35;
    text-transform: none;
    letter-spacing: normal;
}

.content-page-body > h1:first-child,
.content-page-body > h2:first-child,
.content-page-body > h3:first-child,
.content-page-body > h4:first-child {
    margin-top: 0;
}

.content-page-body h1 {
    font-size: 28px;
    border-bottom: 2px solid #eef2f6;
    padding-bottom: 10px;
}

.content-page-body h2 {
    font-size: 24px;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 2px solid #eef2f6;
}

.content-page-body h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 48px;
    height: 2px;
    background-color: #37acb6;
    border-radius: 1px;
}

.content-page-body h3 {
    font-size: 20px;
    color: #1c2f4d;
}

.content-page-body h4 {
    font-size: 18px;
    color: #1c2f4d;
}

.content-page-body h5 {
    font-size: 16px;
    color: #1c2f4d;
}

.content-page-body h6 {
    font-size: 14px;
    color: #1c2f4d;
}

/* Paragraphs */
.content-page-body p {
    color: #344054;
    font-size: 15.5px;
    line-height: 1.85;
    margin-bottom: 18px;
}

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

/* Inline text elements */
.content-page-body strong,
.content-page-body b {
    color: #1c2f4d;
    font-weight: 700;
}

.content-page-body em,
.content-page-body i {
    font-style: italic;
}

/* Lists */
.content-page-body ul,
.content-page-body ol {
    margin-bottom: 22px;
    padding-left: 28px;
    color: #344054;
}

.content-page-body li {
    margin-bottom: 8px;
    line-height: 1.75;
}

.content-page-body ul {
    list-style-type: disc;
}

.content-page-body ul ul {
    list-style-type: circle;
    margin-top: 6px;
    margin-bottom: 6px;
    padding-left: 22px;
}

.content-page-body ol {
    list-style-type: decimal;
}

.content-page-body ol ol {
    list-style-type: lower-alpha;
    margin-top: 6px;
    margin-bottom: 6px;
    padding-left: 22px;
}

.content-page-body ul > li::marker {
    color: #37acb6;
}

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

.content-page-body a:hover,
.content-page-body a:focus {
    color: #1c2f4d;
    text-decoration: underline;
}

/* Blockquotes */
.content-page-body blockquote {
    border-left: 4px solid #37acb6;
    background-color: #f8fafc;
    padding: 18px 24px;
    margin: 26px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #1c2f4d;
    font-size: 16px;
    line-height: 1.75;
    position: relative;
}

.content-page-body blockquote p {
    margin-bottom: 0;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* Responsive Table Wrapper & Tables */
.content-page-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 26px 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.content-page-body table {
    width: 100% !important;
    max-width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 14.5px;
    background-color: #ffffff;
}

.content-page-body table th {
    background-color: #1c2f4d;
    color: #ffffff;
    padding: 12px 16px;
    font-weight: 600;
    border: 1px solid #283e60;
    text-align: left;
    font-family: 'Roboto', sans-serif;
    white-space: nowrap;
}

.content-page-body table td {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    color: #344054;
    line-height: 1.6;
}

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

.content-page-body table tr:hover td {
    background-color: #f1f5f9;
}

/* Images & Media inside rich-text */
.content-page-body img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(28, 47, 77, 0.08);
    margin: 22px auto;
    display: block;
}

.content-page-body iframe,
.content-page-body embed,
.content-page-body video {
    max-width: 100%;
    border-radius: 8px;
    display: block;
    margin: 22px auto;
}

/* Code & Preformatted Blocks */
.content-page-body code {
    background-color: #edf2f7;
    color: #1c2f4d;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 14px;
}

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

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

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

/* ============================================================================
   5. Empty State Container
   ============================================================================ */
.content-page-empty-box {
    text-align: center;
    padding: 50px 24px;
}

.content-empty-icon-wrap {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background-color: #eaf6f7;
    color: #37acb6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.content-empty-heading {
    font-size: 22px;
    color: #1c2f4d;
    font-family: 'texgyreadventorbold', 'Roboto', sans-serif;
    margin-bottom: 10px;
}

.content-empty-message {
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto 24px;
}

.content-empty-actions {
    display: flex;
    justify-content: center;
}

.content-empty-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #1c2f4d;
    color: #ffffff;
    padding: 11px 26px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.25s ease, transform 0.2s ease;
}

.content-empty-home-btn:hover,
.content-empty-home-btn:focus {
    background-color: #37acb6;
    color: #ffffff;
    text-decoration: none;
}

.content-empty-home-btn i {
    font-size: 15px;
}

/* ============================================================================
   6. Responsive Viewport Adaptations
   ============================================================================ */
/* Laptop / Large Tablet (<= 1024px) */
@media (max-width: 1024px) {
    .content-page-card {
        padding: 40px 42px;
    }
}

/* Tablet (<= 991px) */
@media (max-width: 991px) {
    .content-page-section {
        padding: 45px 0 65px 0;
    }

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

    .content-page-featured-wrap {
        margin-bottom: 26px;
    }
}

/* Mobile Landscape & Phablet (<= 767px) */
@media (max-width: 767px) {
    .content-page-section {
        padding: 35px 0 55px 0;
    }

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

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

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

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

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

    .content-page-body h4 {
        font-size: 16px;
    }

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

    .content-page-empty-box {
        padding: 36px 16px;
    }
}

/* Mobile (<= 576px) */
@media (max-width: 576px) {
    .content-page-card {
        padding: 22px 16px;
    }

    .content-page-featured-img {
        max-height: 280px;
    }

    .content-page-body ul,
    .content-page-body ol {
        padding-left: 20px;
    }

    .content-empty-icon-wrap {
        width: 60px;
        height: 60px;
        font-size: 26px;
        margin-bottom: 16px;
    }

    .content-empty-heading {
        font-size: 19px;
    }

    .content-empty-message {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .content-empty-home-btn {
        padding: 9px 20px;
        font-size: 13.5px;
    }
}

/* Small Mobile (320px - 360px) */
@media (max-width: 360px) {
    .content-page-section {
        padding: 25px 0 40px 0;
    }

    .content-page-card {
        padding: 16px 12px;
        border-radius: 8px;
    }

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

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

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

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

    .content-page-body p {
        font-size: 14px;
    }

    .content-page-body blockquote {
        padding: 12px 14px;
        font-size: 14px;
    }

    .content-page-body table th,
    .content-page-body table td {
        padding: 9px 10px;
        font-size: 13px;
    }
}
