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

/* =========================================================================
   1. Page Layout & Section Containers
   ========================================================================= */
.custom-page-wrapper {
    background-color: #ffffff;
}

.custom-page-section-block {
    padding: 100px 0;
    position: relative;
}

.custom-page-section-block:nth-child(even) {
    background-color: #fbfcfd;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.custom-page-section-block:nth-child(odd) {
    background-color: #ffffff;
}

/* Section Header */
.custom-page-section-header {
    margin-bottom: 35px;
    position: relative;
}

.custom-page-section-header.text-center {
    text-align: center;
}

.custom-page-section-title {
    font-size: 26px;
    font-weight: 700;
    color: #01356F;
    line-height: 1.35;
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}

.custom-page-section-divider {
    width: 60px;
    height: 3px;
    background: #792D43;
}

.custom-page-section-header.text-center .custom-page-section-divider {
    margin: 0 auto;
}

/* =========================================================================
   2. Rich-Text & Prose Typography
   ========================================================================= */
.custom-page-prose {
    font-size: 16.5px;
    line-height: 1.85;
    color: #302B35;
    word-break: break-word;
}

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

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

.custom-page-prose h1,
.custom-page-prose h2,
.custom-page-prose h3,
.custom-page-prose h4,
.custom-page-prose h5,
.custom-page-prose h6 {
    color: #01356F;
    font-weight: 700;
    line-height: 1.35;
}

.custom-page-prose h1 {
    font-size: 28px;
    margin: 1.8rem 0 1rem;
}

.custom-page-prose h2 {
    font-size: 24px;
    margin: 1.6rem 0 0.9rem;
}

.custom-page-prose h3 {
    font-size: 20px;
    color: #792D43;
    margin: 1.4rem 0 0.8rem;
}

.custom-page-prose h4 {
    font-size: 18px;
    margin: 1.2rem 0 0.7rem;
}

.custom-page-prose h5 {
    font-size: 16.5px;
    margin: 1rem 0 0.6rem;
}

.custom-page-prose h6 {
    font-size: 15px;
    text-transform: uppercase;
    color: #64748b;
    margin: 1rem 0 0.6rem;
}

.custom-page-prose p {
    margin-bottom: 1.35rem;
}

.custom-page-prose a {
    color: #01356F;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.custom-page-prose a:hover {
    color: #792D43;
}

.custom-page-prose ul,
.custom-page-prose ol {
    padding-left: 1.75rem;
    margin-bottom: 1.5rem;
}

.custom-page-prose li {
    margin-bottom: 0.55rem;
    line-height: 1.75;
}

.custom-page-prose ul li::marker {
    color: #792D43;
}

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

.custom-page-prose blockquote {
    border-left: 4px solid #792D43;
    background: #F5E9EC;
    padding: 18px 24px;
    margin: 1.8rem 0;
    font-style: italic;
    color: #302B35;
}

/* Responsive Table Wrapper */
.custom-page-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.75rem 0;
    border: 1px solid #e2e8f0;
}

.custom-page-prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.custom-page-prose table th {
    background: #01356F;
    color: #ffffff;
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    border: 1px solid #0d4685;
    white-space: nowrap;
}

.custom-page-prose table td {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    color: #302B35;
    vertical-align: top;
}

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

.custom-page-prose table tbody tr:hover {
    background: #F5E9EC;
}

.custom-page-prose img {
    max-width: 100%;
    height: auto;
    margin: 1.25rem 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* =========================================================================
   3. Content Only Layout
   ========================================================================= */
.custom-page-content-box {
    background: #ffffff;
    border: 1px solid #edf2f7;
    box-shadow: 0 4px 20px rgba(1, 53, 111, 0.04);
    padding: 35px 40px;
}

/* =========================================================================
   4. Split Layouts (Content + Right/Left Image)
   ========================================================================= */
.custom-page-split-row {
    margin-left: -15px;
    margin-right: -15px;
}

.custom-page-split-img-box {
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
    box-shadow: 0 6px 20px rgba(1, 53, 111, 0.08);
    transition: transform 0.25s ease;
}

.custom-page-split-img-box:hover {
    transform: translateY(-2px);
}

.custom-page-split-img-box img {
    display: block;
    width: 100%;
    height: 100%;
}

/* Shape Variations */
.custom-page-shape-natural {

}

.custom-page-shape-rounded {
    /*border-radius: 16px;*/
    overflow: hidden;
}

.custom-page-shape-custom_radius {
    overflow: hidden;
}

.custom-page-shape-circle {
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.custom-page-shape-square {
    border-radius: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.custom-page-shape-oval {
    border-radius: 50% / 40%;
    overflow: hidden;
}

.custom-page-shape-hexagon {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    overflow: hidden;
}

/* Aspect Ratio Variations */
.custom-page-ratio-original {
    aspect-ratio: auto;
}

.custom-page-ratio-1-1 {
    aspect-ratio: 1 / 1;
}

.custom-page-ratio-4-3 {
    aspect-ratio: 4 / 3;
}

.custom-page-ratio-3-2 {
    aspect-ratio: 3 / 2;
}

.custom-page-ratio-16-9 {
    aspect-ratio: 16 / 9;
}

/* Fit Variations */
.custom-page-fit-cover img {
    object-fit: cover;
}

.custom-page-fit-contain img {
    object-fit: contain;
}

/* Border Radius Mappings */
.img-radius-0 {
    border-radius: 0px !important;
}

.img-radius-2 {
    border-radius: 2px !important;
}

.img-radius-4 {
    border-radius: 4px !important;
}

.img-radius-6 {
    border-radius: 6px !important;
}

.img-radius-8 {
    border-radius: 8px !important;
}

.img-radius-10 {
    border-radius: 10px !important;
}

.img-radius-12 {
    border-radius: 12px !important;
}

.img-radius-14 {
    border-radius: 14px !important;
}

.img-radius-16 {
    border-radius: 16px !important;
}

.img-radius-18 {
    border-radius: 18px !important;
}

.img-radius-20 {
    border-radius: 20px !important;
}

.img-radius-24 {
    border-radius: 24px !important;
}

.img-radius-28 {
    border-radius: 28px !important;
}

.img-radius-32 {
    border-radius: 32px !important;
}

.img-radius-40 {
    border-radius: 40px !important;
}

.img-radius-50 {
    border-radius: 50px !important;
}

.img-radius-100 {
    border-radius: 100px !important;
}

/* Text Wrapping Mode */
.custom-page-wrap-block {
    position: relative;
}

.custom-page-wrap-block::after {
    content: "";
    display: table;
    clear: both;
}

.custom-page-wrap-img-box {
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.custom-page-wrap-left {
    float: left;
    margin-right: 24px;
}

.custom-page-wrap-right {
    float: right;
    margin-left: 24px;
}

/* Wrap Widths */
.wrap-w-20 {
    width: 20%;
    max-width: 20%;
}

.wrap-w-25 {
    width: 25%;
    max-width: 25%;
}

.wrap-w-30 {
    width: 30%;
    max-width: 30%;
}

.wrap-w-33 {
    width: 33.333%;
    max-width: 33.333%;
}

.wrap-w-35 {
    width: 35%;
    max-width: 35%;
}

.wrap-w-40 {
    width: 40%;
    max-width: 40%;
}

.wrap-w-45 {
    width: 45%;
    max-width: 45%;
}

.wrap-w-50 {
    width: 50%;
    max-width: 50%;
}

.wrap-w-55 {
    width: 55%;
    max-width: 55%;
}

.wrap-w-60 {
    width: 60%;
    max-width: 60%;
}

.wrap-w-75 {
    width: 75%;
    max-width: 75%;
}

.wrap-w-100 {
    width: 100%;
    max-width: 100%;
}

/* Wrap Spacings */
.wrap-sp-10.custom-page-wrap-left {
    margin-right: 10px;
}

.wrap-sp-10.custom-page-wrap-right {
    margin-left: 10px;
}

.wrap-sp-15.custom-page-wrap-left {
    margin-right: 15px;
}

.wrap-sp-15.custom-page-wrap-right {
    margin-left: 15px;
}

.wrap-sp-20.custom-page-wrap-left {
    margin-right: 20px;
}

.wrap-sp-20.custom-page-wrap-right {
    margin-left: 20px;
}

.wrap-sp-25.custom-page-wrap-left {
    margin-right: 25px;
}

.wrap-sp-25.custom-page-wrap-right {
    margin-left: 25px;
}

.wrap-sp-30.custom-page-wrap-left {
    margin-right: 30px;
}

.wrap-sp-30.custom-page-wrap-right {
    margin-left: 30px;
}

.wrap-sp-35.custom-page-wrap-left {
    margin-right: 35px;
}

.wrap-sp-35.custom-page-wrap-right {
    margin-left: 35px;
}

.wrap-sp-40.custom-page-wrap-left {
    margin-right: 40px;
}

.wrap-sp-40.custom-page-wrap-right {
    margin-left: 40px;
}

.wrap-sp-50.custom-page-wrap-left {
    margin-right: 50px;
}

.wrap-sp-50.custom-page-wrap-right {
    margin-left: 50px;
}

/* Stacked Modes */
.custom-page-stacked-block {
    position: relative;
}

.custom-page-stacked-img-box {
    margin: 0 auto;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.stacked-sp-10 {
    margin-bottom: 10px;
}

.stacked-sp-15 {
    margin-bottom: 15px;
}

.stacked-sp-20 {
    margin-bottom: 20px;
}

.stacked-sp-25 {
    margin-bottom: 25px;
}

.stacked-sp-30 {
    margin-bottom: 30px;
}

.stacked-sp-35 {
    margin-bottom: 35px;
}

.stacked-sp-40 {
    margin-bottom: 40px;
}

.stacked-sp-50 {
    margin-bottom: 50px;
}

.stacked-below-sp-10 {
    margin-top: 10px;
}

.stacked-below-sp-15 {
    margin-top: 15px;
}

.stacked-below-sp-20 {
    margin-top: 20px;
}

.stacked-below-sp-25 {
    margin-top: 25px;
}

.stacked-below-sp-30 {
    margin-top: 30px;
}

.stacked-below-sp-35 {
    margin-top: 35px;
}

.stacked-below-sp-40 {
    margin-top: 40px;
}

.stacked-below-sp-50 {
    margin-top: 50px;
}

/* =========================================================================
   5. File Group Layout
   ========================================================================= */
.custom-page-file-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(1, 53, 111, 0.03);
    height: 100%;
}

.custom-page-file-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 53, 111, 0.09);
    border-color: #cbd5e1;
}

.custom-page-file-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1 1 auto;
}

.custom-page-file-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.custom-page-file-icon.pdf {
    background: #F5E9EC;
    color: #792D43;
}

.custom-page-file-icon.doc {
    background: #e0f2fe;
    color: #0284c7;
}

.custom-page-file-icon.xls {
    background: #dcfce7;
    color: #16a34a;
}

.custom-page-file-icon.ppt {
    background: #ffedd5;
    color: #ea580c;
}

.custom-page-file-icon.zip {
    background: #fef3c7;
    color: #d97706;
}

.custom-page-file-icon.generic {
    background: #f1f5f9;
    color: #01356F;
}

.custom-page-file-info {
    min-width: 0;
}

.custom-page-file-title {
    font-size: 15px;
    font-weight: 700;
    color: #01356F;
    margin: 0 0 4px;
    line-height: 1.4;
    word-break: break-word;
}

.custom-page-file-meta {
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.custom-page-file-ext-badge {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 11px;
    background: #f1f5f9;
    color: #475569;
    padding: 1px 6px;
}

.custom-page-file-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.custom-page-file-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.custom-page-file-btn-download {
    background: #01356F;
    color: #ffffff !important;
}

.custom-page-file-btn-download:hover {
    background: #0d4685;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.custom-page-file-btn-view {
    background: #01356F;
    color: #ffffff !important;
    border: 1px solid #01356F;
    box-shadow: 0 2px 6px rgba(1, 53, 111, 0.15);
}

.custom-page-file-btn-view:hover {
    background: #792D43;
    color: #ffffff !important;
    border-color: #792D43;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(121, 45, 67, 0.25);
}

/* =========================================================================
   6. Photo Gallery Layouts (Standard & With Titles)
   ========================================================================= */
.custom-page-gallery-card {
    background: #ffffff;
    overflow: hidden;
    border: 1px solid #edf2f7;
    box-shadow: 0 3px 12px rgba(1, 53, 111, 0.04);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.custom-page-gallery-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(1, 53, 111, 0.1);
    border-color: #cbd5e1;
}

.custom-page-gallery-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #f1f5f9;
}

.custom-page-gallery-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.custom-page-gallery-card:hover .custom-page-gallery-img-wrap img {
    transform: scale(1.06);
}

.custom-page-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(1, 53, 111, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-page-gallery-card:hover .custom-page-gallery-overlay {
    opacity: 1;
}

.custom-page-gallery-overlay-icon {
    width: 44px;
    height: 44px;
    background: #ffffff;
    color: #01356F;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.custom-page-gallery-card:hover .custom-page-gallery-overlay-icon {
    transform: translateY(0);
}

.custom-page-gallery-caption {
    padding: 12px 16px;
    background: #ffffff;
    text-align: center;
    border-top: 1px solid #f1f5f9;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-page-gallery-caption h4 {
    font-size: 14.5px;
    font-weight: 700;
    color: #01356F;
    margin: 0;
    line-height: 1.4;
}

/* =========================================================================
   7. Team Members Layout
   ========================================================================= */
.custom-page-team-card,
.team-card {
    background: #ffffff;
    border: 1px solid #e2d5d9;
    padding: 30px 20px 26px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(1, 53, 111, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.custom-page-team-card:hover,
.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(1, 53, 111, 0.12);
    border-color: #c8b2b9;
}

.custom-page-team-img-wrap,
.team-card .team-img-wrap,
.team-card .custom-page-team-img-wrap {
    /*width: 140px;*/
    /*height: 140px;*/
    aspect-ratio: 1 / 1;
    margin: 0 auto 18px;
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
    border: 3px solid #F5E9EC;
    box-shadow: 0 4px 14px rgba(1, 53, 111, 0.08);
    flex-shrink: 0;
}

.custom-page-team-img-wrap img,
.team-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.custom-page-team-avatar-placeholder,
.team-card .team-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: #F5E9EC;
    color: #792D43;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.custom-page-team-name,
.team-card .team-name {
    font-family: "Source Serif Pro", serif;
    font-size: 18px;
    font-weight: 700;
    color: #01356F;
    margin: 0 0 6px;
    line-height: 1.35;
    word-break: break-word;
}

.custom-page-team-designation,
.team-card .team-designation {
    font-size: 14px;
    font-weight: 600;
    color: #792D43;
    margin: 0;
    line-height: 1.4;
    word-break: break-word;
}

/* =========================================================================
   8. Empty Section State & 404 Error Card
   ========================================================================= */
.custom-page-empty-box {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    padding: 45px 24px;
    text-align: center;
    max-width: 550px;
    margin: 15px auto;
}

.custom-page-empty-icon {
    font-size: 40px;
    color: #94a3b8;
    margin-bottom: 12px;
}

.custom-page-empty-box p {
    font-size: 14.5px;
    color: #64748b;
    margin: 0;
}

.custom-page-error-card {
    background: #ffffff;
    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: 40px auto;
}

.custom-page-error-icon {
    width: 90px;
    height: 90px;
    background: #F5E9EC;
    color: #792D43;
    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);
}

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

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

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

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

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

.custom-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);
}

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

.custom-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);
}

/* =========================================================================
   9. Responsive Breakpoints
   ========================================================================= */
@media (max-width: 991px) {
    .custom-page-section-block {
        padding: 40px 0;
    }

    .custom-page-section-title {
        font-size: 23px;
    }

    .custom-page-content-box {
        padding: 28px 24px;
    }
}

@media (max-width: 767px) {
    .custom-page-section-block {
        padding: 30px 0;
    }

    .custom-page-section-header {
        margin-bottom: 24px;
    }

    .custom-page-section-title {
        font-size: 20px;
    }

    .custom-page-prose {
        font-size: 15.5px;
        line-height: 1.75;
    }

    .custom-page-content-box {
        padding: 20px 16px;
    }

    /* Wrap Mode Stacking on Mobile */
    .custom-page-wrap-img-box {
        float: none !important;
        margin: 0 auto 20px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .custom-page-file-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }

    .custom-page-file-actions {
        width: 100%;
        justify-content: flex-start;
        margin-top: 10px;
    }

    .custom-page-file-btn {
        flex: 1 1 auto;
        justify-content: center;
    }

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

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

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

