/* ===== Public Inner Pages — Clean UI ===== */

.dsp-page-hero {
    background: linear-gradient(135deg, #0a1f3d 0%, #123058 55%, #0a1f3d 100%);
    padding: 48px 0 42px;
    position: relative;
    overflow: hidden;
}

.dsp-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(232, 192, 86, 0.12) 1px, transparent 1px);
    background-size: 18px 18px;
    opacity: 0.45;
    pointer-events: none;
}

.dsp-page-hero .container {
    position: relative;
    z-index: 1;
}

.dsp-page-hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.2;
}

.dsp-breadcrumb {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
}

.dsp-breadcrumb a {
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none !important;
}

.dsp-breadcrumb a:hover {
    color: #e8c056 !important;
}

.dsp-breadcrumb-sep {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.45);
}

.dsp-breadcrumb-current {
    color: #e8c056;
}

/* Content shell */
.dsp-page {
    padding: 48px 0 64px;
    background: #f7f9fc;
    min-height: 40vh;
}

.dsp-page--white {
    background: #fff;
}

.dsp-page-intro {
    margin-bottom: 28px;
}

.dsp-page-intro h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    color: #0a1f3d;
    margin: 0 0 10px;
}

.dsp-page-intro p {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    color: #64748b;
    margin: 0;
    max-width: 640px;
}

/* Hide legacy duplicate titles when using new shell */
.dsp-page .irs-discription-col,
.dsp-page .irs-discription-col h1 {
    display: none !important;
}

/* Generic cards */
.dsp-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(10, 31, 61, 0.06);
    box-shadow: 0 4px 20px rgba(10, 31, 61, 0.06);
    overflow: hidden;
    margin-bottom: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dsp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(10, 31, 61, 0.1);
}

.dsp-card--row {
    flex-direction: row;
    flex-wrap: wrap;
}

.dsp-card--row .dsp-card-image {
    flex: 0 0 280px;
    max-width: 100%;
    aspect-ratio: 16 / 10;
}

.dsp-card--row .dsp-card-body {
    flex: 1;
    min-width: 220px;
}

@media (max-width: 767px) {
    .dsp-card--row .dsp-card-image {
        flex: 0 0 100%;
    }
}

.dsp-card-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #eef1f5;
}

.dsp-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.dsp-card:hover .dsp-card-image img {
    transform: scale(1.04);
}

.dsp-card-body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dsp-card-meta {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #d4a017;
    margin-bottom: 8px;
}

.dsp-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    color: #0a1f3d;
    margin: 0 0 10px;
    line-height: 1.35;
}

.dsp-card-title a {
    color: inherit !important;
    text-decoration: none !important;
}

.dsp-card-title a:hover {
    color: #0077C2 !important;
}

.dsp-card-excerpt {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #64748b;
    line-height: 1.65;
    margin: 0 0 14px;
    flex: 1;
}

.dsp-card-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #0077C2 !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

.dsp-card-link:hover {
    color: #0066a8 !important;
}

/* Media / gallery cards */
.dsp-media-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(10, 31, 61, 0.06);
    box-shadow: 0 4px 18px rgba(10, 31, 61, 0.06);
    margin-bottom: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dsp-media-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(10, 31, 61, 0.12);
}

.dsp-media-card a {
    display: block;
    text-decoration: none !important;
    color: inherit !important;
}

.dsp-media-card-thumb {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eef1f5;
    position: relative;
}

.dsp-media-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.dsp-media-card:hover .dsp-media-card-thumb img {
    transform: scale(1.05);
}

.dsp-media-card-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 31, 61, 0.25);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dsp-media-card:hover .dsp-media-card-play {
    opacity: 1;
}

.dsp-media-card-play i {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    color: #0077C2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 52px;
    padding-left: 0;
}

.dsp-media-card-caption {
    padding: 14px 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #0a1f3d;
    line-height: 1.4;
    margin: 0;
}

/* Article / CMS content */
.dsp-article {
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(10, 31, 61, 0.06);
    box-shadow: 0 4px 20px rgba(10, 31, 61, 0.05);
    padding: 36px 40px;
}

.dsp-article-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 32px;
    font-weight: 700;
    color: #0a1f3d;
    margin: 0 0 16px;
    line-height: 1.25;
}

.dsp-article-meta {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eef1f5;
}

.dsp-article-image {
    margin: 0 0 28px;
    border-radius: 12px;
    overflow: hidden;
}

.dsp-article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.dsp-article-body {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #334155;
}

.dsp-article-body p {
    margin: 0 0 16px;
}

.dsp-article-body h2,
.dsp-article-body h3,
.dsp-article-body h4 {
    font-family: 'Playfair Display', Georgia, serif;
    color: #0a1f3d;
    margin: 28px 0 12px;
}

.dsp-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.dsp-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #0077C2 !important;
    text-decoration: none !important;
    margin-bottom: 20px;
}

.dsp-back-link:hover {
    color: #0066a8 !important;
}

/* Gallery view grid */
.dsp-gallery-grid {
    margin: 0 -10px;
}

.dsp-gallery-grid .dsp-gallery-item {
    padding: 10px;
}

.dsp-gallery-item a {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    background: #eef1f5;
    box-shadow: 0 4px 16px rgba(10, 31, 61, 0.06);
}

.dsp-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.dsp-gallery-item a:hover img {
    transform: scale(1.05);
}

/* Forms */
.dsp-form-layout {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}

.dsp-form-info,
.dsp-form-panel {
    padding: 0 12px;
    margin-bottom: 24px;
}

.dsp-form-info {
    width: 38%;
}

.dsp-form-panel {
    width: 62%;
}

.dsp-info-card {
    background: #0a1f3d;
    color: #fff;
    border-radius: 14px;
    padding: 28px 26px;
    height: 100%;
}

.dsp-info-card h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 18px;
    color: #fff;
}

.dsp-info-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
}

.dsp-info-item:last-child {
    margin-bottom: 0;
}

.dsp-info-item i {
    color: #e8c056;
    font-size: 18px;
    margin-top: 2px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.dsp-info-item a {
    color: #fff !important;
    text-decoration: none !important;
}

.dsp-info-item a:hover {
    color: #e8c056 !important;
}

.dsp-form-box {
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(10, 31, 61, 0.06);
    box-shadow: 0 4px 20px rgba(10, 31, 61, 0.06);
    padding: 28px 30px;
}

.dsp-form-box h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: #0a1f3d;
    margin: 0 0 22px;
}

.dsp-form .form-group,
.dsp-form-box .form-group {
    margin-bottom: 16px;
}

.dsp-form label,
.dsp-form-box label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 6px;
}

.dsp-form .form-control,
.dsp-form-box .form-control,
.dsp-page .form-control {
    height: 46px;
    border-radius: 10px !important;
    border: 1px solid #dce3eb !important;
    box-shadow: none !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #1e293b;
    padding: 10px 14px;
}

.dsp-form textarea.form-control,
.dsp-form-box textarea.form-control,
.dsp-page textarea.form-control {
    height: auto;
    min-height: 120px;
    resize: vertical;
}

.dsp-form .form-control:focus,
.dsp-form-box .form-control:focus,
.dsp-page .form-control:focus {
    border-color: #0077C2 !important;
    box-shadow: 0 0 0 3px rgba(0, 119, 194, 0.12) !important;
}

.dsp-btn,
.dsp-page .btn-default,
.dsp-page .btn-primary,
.dsp-form-box .btn,
.dsp-form .btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: 10px !important;
    padding: 12px 28px !important;
    border: none !important;
    background: #0077C2 !important;
    color: #fff !important;
    transition: background 0.2s ease, transform 0.2s ease;
    display: inline-block;
    text-decoration: none !important;
}

.dsp-btn:hover,
.dsp-page .btn-default:hover,
.dsp-page .btn-primary:hover,
.dsp-form-box .btn:hover,
.dsp-form .btn:hover {
    background: #0066a8 !important;
    color: #fff !important;
}

.dsp-btn-gold {
    background: #d4a017 !important;
}

.dsp-btn-gold:hover {
    background: #b8890f !important;
}

.dsp-form-alert {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 18px;
}

.dsp-form-alert--error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.dsp-article-body .irs-discription-col {
    display: block !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 0 16px !important;
}

.dsp-article-body .irs-discription-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dsp-article-body .irs-discription-col li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.6;
    color: #334155;
}

.dsp-article-body .irs-discription-col li i {
    position: absolute;
    left: 0;
    top: 4px;
    color: #d4a017;
}

/* Pagination */
.dsp-page .paginate,
.dsp-page .pagination,
.dsp-paginate {
    margin: 28px 0 0;
    text-align: center;
}

.dsp-page .paginate a,
.dsp-page .pagination a,
.dsp-paginate a,
.dsp-page .paginate span,
.dsp-paginate span {
    display: inline-block;
    min-width: 36px;
    height: 36px;
    line-height: 34px;
    padding: 0 10px;
    margin: 0 3px;
    border-radius: 8px;
    border: 1px solid #dce3eb;
    background: #fff;
    color: #0a1f3d !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
}

.dsp-page .paginate a:hover,
.dsp-paginate a:hover {
    border-color: #0077C2;
    color: #0077C2 !important;
}

.dsp-page .paginate .current,
.dsp-paginate .current,
.dsp-page .paginate span.current {
    background: #0a1f3d;
    border-color: #0a1f3d;
    color: #fff !important;
}

/* Programs page: keep cards, soften section bg */
.dsp-programs-page.dsp-page,
.dsp-page.dsp-programs-section {
    background: #f7f9fc;
}

.dsp-programs-page .irs-discription-col {
    display: none !important;
}

/* Event / account legacy cleanup inside new shell */
.dsp-page .w3agileits,
.dsp-page .irs-account-field {
    background: transparent !important;
    padding: 0 !important;
}

.dsp-page .irs-contact-field,
.dsp-page .irs-teachers-field,
.dsp-page .irs-blog-field,
.dsp-page .irs-discription-field {
    background: transparent !important;
    padding: 0 !important;
}

/* Empty state */
.dsp-empty {
    text-align: center;
    padding: 48px 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px dashed #dce3eb;
    color: #64748b;
    font-family: 'Montserrat', sans-serif;
}

/* ===== Mobile ===== */
@media (max-width: 991px) {
    .dsp-page-hero {
        padding: 36px 0 32px;
    }

    .dsp-page-hero-title {
        font-size: 28px;
    }

    .dsp-breadcrumb {
        font-size: 12px;
    }

    .dsp-page {
        padding: 28px 0 44px;
    }

    .dsp-page .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .dsp-article {
        padding: 22px 18px;
    }

    .dsp-article-title {
        font-size: 24px;
    }

    .dsp-form-info,
    .dsp-form-panel {
        width: 100%;
    }

    .dsp-form-box {
        padding: 22px 18px;
    }

    .dsp-info-card {
        padding: 22px 20px;
        margin-bottom: 8px;
    }

    .dsp-gallery-grid {
        margin: 0 -6px;
    }

    .dsp-gallery-grid .dsp-gallery-item {
        padding: 6px;
    }

    .dsp-page .paginate a,
    .dsp-page .paginate span,
    .dsp-paginate a,
    .dsp-paginate span {
        min-width: 32px;
        height: 32px;
        line-height: 30px;
        margin: 2px;
        font-size: 12px;
    }
}

@media (max-width: 575px) {
    .dsp-page-hero {
        padding: 28px 0 24px;
    }

    .dsp-page-hero-title {
        font-size: 22px;
    }

    .dsp-card-title {
        font-size: 17px;
    }

    .dsp-card-body {
        padding: 14px 16px 16px;
    }

    .dsp-media-card-caption {
        font-size: 13px;
        padding: 12px 14px;
    }

    .dsp-btn,
    .dsp-page .btn-default,
    .dsp-form-box .btn {
        width: 100%;
        text-align: center;
    }

    .dsp-article-body {
        font-size: 14px;
    }
}

/* ===== Mobile images: compact frame, full image visible ===== */
@media (max-width: 767px) {
    /* Programs — show full poster, no crop */
    .dsp-program-poster {
        aspect-ratio: auto;
        max-height: 420px;
        background: #eef1f5;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .dsp-program-poster img {
        width: 100%;
        height: auto;
        max-height: 420px;
        object-fit: contain;
        object-position: center top;
    }

    .dsp-program-card:hover .dsp-program-poster img {
        transform: none;
    }

    .dsp-program-footer {
        padding: 12px 10px;
    }

    .dsp-program-speaker {
        font-size: 12px;
        letter-spacing: 0.8px;
    }

    .dsp-program-seats {
        font-size: 10px;
    }

    /* Blog cards */
    .dsp-blog-card-image {
        aspect-ratio: auto;
        max-height: 200px;
        background: #eef1f5;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .dsp-blog-card-image img {
        width: 100%;
        height: auto;
        max-height: 200px;
        object-fit: contain;
        object-position: center;
    }

    .dsp-blog-card:hover .dsp-blog-card-image img {
        transform: none;
    }

    /* Inner page cards / galleries / videos */
    .dsp-card-image,
    .dsp-card--row .dsp-card-image {
        aspect-ratio: auto;
        max-height: 220px;
        background: #eef1f5;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .dsp-card-image img,
    .dsp-card--row .dsp-card-image img {
        width: 100%;
        height: auto;
        max-height: 220px;
        object-fit: contain;
        object-position: center;
    }

    .dsp-card:hover .dsp-card-image img {
        transform: none;
    }

    .dsp-media-card-thumb {
        aspect-ratio: auto;
        max-height: 200px;
        background: #eef1f5;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .dsp-media-card-thumb img {
        width: 100%;
        height: auto;
        max-height: 200px;
        object-fit: contain;
        object-position: center;
    }

    .dsp-media-card:hover .dsp-media-card-thumb img {
        transform: none;
    }

    .dsp-gallery-item a {
        aspect-ratio: auto;
        max-height: 180px;
        background: #eef1f5;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .dsp-gallery-item img {
        width: 100%;
        height: auto;
        max-height: 180px;
        object-fit: contain;
        object-position: center;
    }

    .dsp-gallery-item a:hover img {
        transform: none;
    }

    .dsp-article-image {
        margin-bottom: 18px;
        background: #eef1f5;
        text-align: center;
    }

    .dsp-article-image img {
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: 320px;
        margin: 0 auto;
        object-fit: contain;
    }

    .dsp-article-body img {
        max-width: 100%;
        height: auto;
        max-height: 280px;
        object-fit: contain;
        display: block;
        margin: 12px auto;
    }

    /* Homepage media grid */
    .dsp-photo-grid a,
    .dsp-photo-item {
        aspect-ratio: auto !important;
        max-height: 110px;
        background: #eef1f5;
        display: flex !important;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .dsp-photo-grid img,
    .dsp-photo-item img {
        width: 100%;
        height: auto;
        max-height: 110px;
        object-fit: contain !important;
        object-position: center;
    }

    .dsp-press-thumb {
        background: #eef1f5;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .dsp-press-thumb img {
        width: 100%;
        height: auto !important;
        max-height: 72px;
        object-fit: contain !important;
    }

    /* Welcome / about photo + video thumbs */
    .dsp-about-card-photo img {
        max-height: 280px;
        width: auto;
        max-width: 100%;
        object-fit: contain;
        object-position: center top;
        margin: 0 auto;
    }

    .dsp-video-thumb,
    .dsp-welcome-video,
    .dsp-video-card img {
        max-height: 180px;
        width: 100%;
        height: auto !important;
        object-fit: contain !important;
        background: #0a1f3d;
    }

    /* Promo popup compact on small screens */
    .dsp-promo-modal .modal-dialog {
        width: 92%;
        margin: 16px auto;
        min-height: 0;
    }

    .dsp-promo-modal .modal-body img {
        max-height: 70vh;
        width: 100%;
        height: auto;
        object-fit: contain;
        background: #111;
    }
}

@media (max-width: 480px) {
    .dsp-program-poster {
        max-height: 360px;
    }

    .dsp-program-poster img {
        max-height: 360px;
    }

    .dsp-blog-card-image,
    .dsp-blog-card-image img {
        max-height: 170px;
    }

    .dsp-card-image,
    .dsp-card-image img,
    .dsp-media-card-thumb,
    .dsp-media-card-thumb img {
        max-height: 180px;
    }

    .dsp-gallery-item a,
    .dsp-gallery-item img {
        max-height: 150px;
    }
}
