main > .container {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumb-wrapper {
    background: #f8f9fa;
    border-bottom: 1px solid rgba(0,0,0,.06);
    padding: 10px 0;
    margin-top: 70px;
}

.pphimm-breadcrumb {
    font-size: .85rem;
}

.pphimm-breadcrumb .breadcrumb-item a {
    color: #0d7377;
    text-decoration: none;
    transition: color .15s ease;
}

.pphimm-breadcrumb .breadcrumb-item a:hover {
    color: #27ae60;
    text-decoration: underline;
}

.pphimm-breadcrumb .breadcrumb-item.active {
    color: #6c757d;
    font-weight: 500;
}

.pphimm-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-size: 1.1rem;
    line-height: 1;
    color: #adb5bd;
}

[data-bs-theme="dark"] .breadcrumb-wrapper {
    background: var(--bs-gray-900);
    border-bottom-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .pphimm-breadcrumb .breadcrumb-item a {
    color: #2ecc71;
}

[data-bs-theme="dark"] .pphimm-breadcrumb .breadcrumb-item a:hover {
    color: #58d68d;
}

[data-bs-theme="dark"] .pphimm-breadcrumb .breadcrumb-item.active {
    color: var(--bs-secondary-color);
}

.not-set {
    color: var(--bs-danger);
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px var(--bs-body-color);
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px var(--bs-body-color);
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: var(--bs-secondary-color);
}

.error-summary {
    color: var(--bs-danger-text-emphasis);
    background: var(--bs-danger-bg-subtle);
    border-left: 3px solid var(--bs-danger-border-subtle);
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align navbar brand baseline with nav links */
.navbar > .container,
.navbar > .container-fluid {
    align-items: baseline;
}

/* style navbar logout link color, hover state, and mobile layout */
.navbar-nav .nav-link.logout {
    color: var(--bs-navbar-color);
}

@media (max-width: 767.98px) {
    .navbar-nav .nav-link.logout {
        display: block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.navbar-nav .nav-link.logout:focus,
.navbar-nav .nav-link.logout:hover {
    color: var(--bs-navbar-hover-color);
}



/* footer logo: light logo by default (light bg-body-tertiary), dark logo for dark theme */
.footer-logo-dark { display: none; }

[data-bs-theme="dark"] .footer-logo-light { display: none; }
[data-bs-theme="dark"] .footer-logo-dark  { display: inline-block; }

/* Yii brand button */
.btn-yii {
    background: linear-gradient(135deg, #40B3D8, #3a9cbd);
    border: none;
    font-weight: 600;
    letter-spacing: .02em;
    transition: opacity .2s, transform .1s;
}

.btn-yii:hover {
    opacity: .9;
    transform: translateY(-1px);
}

.btn-yii:active {
    transform: translateY(0);
}

/* form inputs: seamless icon inside input (Volt style) */
.form-card .input-group {
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    overflow: hidden;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.form-card .input-group .input-group-text {
    background: var(--bs-body-bg);
    border: 0;
    padding-left: 1rem;
    padding-right: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-card .input-group .form-control {
    border: 0;
}

.form-card .input-group .form-control:focus {
    box-shadow: none;
}

.form-card .input-group:focus-within {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 .25rem rgba(var(--bs-primary-rgb), .25);
}

/* validation styles for browsers that support :has() */
@supports selector(.input-group:has(.is-invalid)) {
    .form-card .input-group:has(.is-invalid) ~ .invalid-feedback {
        display: block;
        margin-top: .35rem;
        margin-bottom: .5rem;
    }

    .form-card .input-group:has(.is-invalid) {
        border-color: var(--bs-danger);
    }

    .form-card .input-group:has(.is-invalid):focus-within {
        box-shadow: 0 0 0 .25rem rgba(var(--bs-danger-rgb), .25);
    }
}

/* fallback validation styles for browsers without :has() support */
@supports not selector(.input-group:has(.is-invalid)) {
    .form-card .invalid-feedback:not(:empty) {
        display: block;
        margin-top: .35rem;
        margin-bottom: .5rem;
    }

    .form-card .input-group .form-control.is-invalid {
        border: var(--bs-border-width) solid var(--bs-danger);
    }

    .form-card .input-group .form-control.is-invalid:focus {
        box-shadow: 0 0 0 .25rem rgba(var(--bs-danger-rgb), .25);
    }
}

/* login inputs: seamless icon inside input (Volt style) */
.login-split-card .input-group {
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    overflow: hidden;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.login-split-card .input-group .input-group-text {
    background: transparent;
    border: 0;
    padding-left: 1rem;
    padding-right: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-split-card .input-group .form-control {
    border: 0;
    background: transparent;
}

.login-split-card .input-group .form-control:focus {
    box-shadow: none;
}

.login-split-card .input-group:focus-within {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 .25rem rgba(var(--bs-primary-rgb), .25);
}

/* validation styles for login split card (browsers with :has()) */
@supports selector(.input-group:has(.is-invalid)) {
    .login-split-card .input-group:has(.is-invalid) ~ .invalid-feedback {
        display: block;
        margin-top: .35rem;
        margin-bottom: .5rem;
    }

    .login-split-card .input-group:has(.is-invalid) {
        border-color: var(--bs-danger);
    }

    .login-split-card .input-group:has(.is-invalid):focus-within {
        box-shadow: 0 0 0 .25rem rgba(var(--bs-danger-rgb), .25);
    }
}

/* fallback validation styles for login split card (browsers without :has()) */
@supports not selector(.input-group:has(.is-invalid)) {
    .login-split-card .invalid-feedback:not(:empty) {
        display: block;
        margin-top: .35rem;
        margin-bottom: .5rem;
    }

    .login-split-card .input-group .form-control.is-invalid {
        border: var(--bs-border-width) solid var(--bs-danger);
    }

    .login-split-card .input-group .form-control.is-invalid:focus {
        box-shadow: 0 0 0 .25rem rgba(var(--bs-danger-rgb), .25);
    }
}

/* login split card */
.login-split-card {
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .10);
    background-color: var(--bs-gray-100);
    width: 100%;
    max-width: 900px;
}

.login-split-card-wide {
    max-width: 960px;
}

.login-brand-title {
    font-size: 1.75rem;
    line-height: 1.3;
}

.login-brand-text {
    font-size: .9rem;
}

.login-brand-panel {
    background: linear-gradient(135deg, #40B3D8 0%, #3a9cbd 40%, #83C933 100%);
    position: relative;
    min-height: 480px;
}

.login-brand-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(241, 138, 42, .25) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(131, 201, 51, .2) 0%, transparent 40%);
    pointer-events: none;
}

.login-btn {
    background: linear-gradient(135deg, #40B3D8, #3a9cbd);
    border: none;
    font-weight: 600;
    letter-spacing: .02em;
    transition: opacity .2s, transform .1s;
}

.login-btn:hover {
    opacity: .9;
    transform: translateY(-1px);
}

.login-btn:active {
    transform: translateY(0);
}

/* dark mode login card */
[data-bs-theme="dark"] .login-split-card {
    background-color: var(--bs-body-bg);
    box-shadow: 0 0 0 1px var(--bs-border-color), 0 4px 24px rgba(0, 0, 0, .4);
}

[data-bs-theme="dark"] .login-mobile-logo {
    filter: invert(1);
}

/* contact form textarea height */
.site-contact textarea.form-control {
    height: 140px;
}

/* form cards */
.form-card {
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .10);
}

/* dark mode: elevate form cards against dark background */
[data-bs-theme="dark"] .form-card {
    box-shadow: 0 0 0 1px var(--bs-border-color), 0 4px 24px rgba(0, 0, 0, .4);
}

/* captcha: blend with card background */
.site-contact img[src*="captcha"] {
    border-radius: var(--bs-border-radius);
    mix-blend-mode: multiply;
}

/* dark mode: invert captcha for visibility on dark background */
[data-bs-theme="dark"] .site-contact img[src*="captcha"] {
    mix-blend-mode: screen;
    filter: invert(1) hue-rotate(180deg);
}

/* centered page layout */
.site-login,
.site-signup,
.site-contact,
.site-request-password-reset,
.site-reset-password,
.site-resend-verification-email,
.site-index,
.site-error,
.site-about {
    flex: 1;
}

.site-error .site-error-content,
.site-about .site-about-content {
    width: 100%;
    max-width: 90%;
}

@media (min-width: 576px) {
    .site-error .site-error-content,
    .site-about .site-about-content {
        max-width: 80%;
    }
}

@media (min-width: 768px) {
    .site-error .site-error-content,
    .site-about .site-about-content {
        max-width: 60%;
    }
}

@media (min-width: 992px) {
    .site-error .site-error-content,
    .site-about .site-about-content {
        max-width: 50%;
    }
}

/* hero banner */
.hero-banner {
    background: linear-gradient(135deg, #83C933 0%, #3a9cbd 40%, #40B3D8 100%);
    position: relative;
}

.hero-lead {
    max-width: 520px;
}

.hero-logo {
    height: 120px;
    opacity: .45;
    right: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 15% 85%, rgba(241, 138, 42, .3) 0%, transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(131, 201, 51, .25) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(64, 179, 216, .15) 0%, transparent 60%);
    pointer-events: none;
}

/* extension cards */
.extension-card {
    transition: transform .15s ease-in-out, box-shadow .15s ease-in-out;
}

.extension-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12) !important;
}

.extension-icon {
    font-size: 1.5rem;
    line-height: 1;
}

/* dark mode: extension cards */
[data-bs-theme="dark"] .extension-card {
    background-color: var(--bs-body-bg);
    box-shadow: 0 0 0 1px var(--bs-border-color), 0 2px 8px rgba(0, 0, 0, .3);
}

[data-bs-theme="dark"] .extension-card:hover {
    box-shadow: 0 0 0 1px var(--bs-border-color), 0 8px 24px rgba(0, 0, 0, .4) !important;
}

/* ==========================================================================
   PPHIMM Landing Page Styles
   ========================================================================== */

/* ---------- Global / Typography ---------- */
.pphimm-landing,
.pphimm-footer,
.pphimm-navbar {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.section-title {
    color: #1a2332;
    letter-spacing: -.01em;
}

/* ---------- Navbar ---------- */
.pphimm-navbar {
    padding-top: .6rem;
    padding-bottom: .6rem;
    transition: box-shadow .3s ease;
}

.pphimm-navbar .navbar-brand {
    font-size: 1.2rem;
    letter-spacing: .02em;
}

.pphimm-navbar .nav-link {
    font-weight: 500;
    font-size: .9rem;
    padding: .5rem 1rem !important;
    color: #4a5568 !important;
    transition: color .2s ease;
}

.pphimm-navbar .nav-link:hover,
.pphimm-navbar .nav-link.active {
    color: #0d7377 !important;
}

.btn-success.rounded-pill {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border: none;
    transition: transform .15s ease, box-shadow .15s ease;
}

.btn-success.rounded-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, .35);
    background: linear-gradient(135deg, #219a52, #27ae60);
}

/* ---------- Hero Section ---------- */
.pphimm-hero {
    min-height: 480px;
    background: linear-gradient(135deg, #0a3d3f 0%, #0d7377 40%, #1a8f8b 70%, #27ae60 100%);
    position: relative;
    padding-top: 80px;
}

.pphimm-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 61, 63, .85) 0%, rgba(13, 115, 119, .7) 50%, rgba(10, 61, 63, .9) 100%);
    z-index: 1;
}

.pphimm-hero-content {
    display: flex;
    align-items: flex-end;
    min-height: 380px;
    padding-bottom: 3rem;
}

.hero-main-title {
    text-shadow: 0 2px 16px rgba(0, 0, 0, .3);
    line-height: 1.15;
}

.hero-badge {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .2);
    font-size: .8rem;
}

/* ---------- Section Backgrounds ---------- */
.pphimm-section-light {
    background-color: #f5f7f9;
}

.pphimm-section-white {
    background-color: #ffffff;
}

.pphimm-section-gradient {
    background: linear-gradient(135deg, #0a5c5e 0%, #0d7377 50%, #1a8f8b 100%);
}

.pphimm-section-dark {
    background: linear-gradient(135deg, #073d3f 0%, #0a5c5e 100%);
}

/* ---------- Prayer Times Section ---------- */
.prayer-section {
    background: linear-gradient(135deg, rgba(13,115,119,.93) 0%, rgba(26,143,139,.93) 40%, rgba(39,174,96,.93) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    isolation: isolate;
    border-radius: 28px;
    z-index: 2;
}

.prayer-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 10% 90%, rgba(255,255,255,.08) 0%, transparent 70%),
        radial-gradient(ellipse 500px 300px at 90% 10%, rgba(255,255,255,.06) 0%, transparent 70%),
        radial-gradient(ellipse 300px 200px at 50% 50%, rgba(255,255,255,.04) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.prayer-section > * {
    position: relative;
    z-index: 1;
}

.prayer-glass-card {
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .15);
    transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
    cursor: default;
    min-width: 90px;
}

.prayer-glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

.prayer-glass-card.prayer-active {
    background: rgba(255, 255, 255, .95);
    border-color: #ffc107;
    box-shadow: 0 0 20px rgba(255, 193, 7, .3), 0 4px 16px rgba(0,0,0,.1);
    transform: scale(1.05);
    color: #1a2332 !important;
}

.prayer-glass-card.prayer-active .prayer-icon-bg {
    color: #0d7377;
    opacity: .2;
}

.prayer-glass-card.prayer-active:hover {
    transform: scale(1.05) translateY(-2px);
}

.prayer-icon-bg {
    font-size: 2.2rem;
    line-height: 1;
    opacity: .15;
    top: .25rem;
    right: .25rem;
    position: absolute;
    pointer-events: none;
}

.prayer-countdown {
    font-size: 1.6rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: .03em;
}

@media (max-width: 767.98px) {
    .prayer-glass-card {
        min-width: 60px;
        padding: .5rem !important;
    }
    .prayer-glass-card .card-body {
        padding: .25rem !important;
    }
    .prayer-icon-bg {
        font-size: 1.4rem;
    }
    .prayer-countdown {
        font-size: 1.1rem;
    }
}

/* ---------- Digital Clock ---------- */
.digital-clock {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a2332;
    letter-spacing: .05em;
    font-variant-numeric: tabular-nums;
}

/* ---------- About Section ---------- */
.about-icon-box {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Stat Counters ---------- */
.stat-box {
    transition: transform .2s ease;
}

.stat-box:hover {
    transform: translateY(-3px);
}

.stat-green {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.stat-blue {
    background: linear-gradient(135deg, #2980b9, #3498db);
}

.stat-orange {
    background: linear-gradient(135deg, #d35400, #e67e22);
}

.stat-number {
    font-size: 1.5rem;
    line-height: 1.2;
}

.stat-label {
    opacity: .85;
    font-size: .72rem;
}

/* ---------- Calendar Card ---------- */
.calendar-card {
    border: 1px solid rgba(0, 0, 0, .06);
}

.mini-cal-table td,
.mini-cal-table th {
    padding: .35rem;
    font-size: .8rem;
    border: none;
    vertical-align: middle;
}

.mini-cal-table td {
    cursor: pointer;
    border-radius: 6px;
    transition: background .15s ease;
}

.mini-cal-table td:hover {
    background: #e8f5f5;
}

.cal-today span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #0d7377;
    color: #fff;
    border-radius: 50%;
    font-weight: 600;
}

.cal-event {
    color: #e67e22;
    font-weight: 600;
}

/* ---------- Event List ---------- */
.event-date-box {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #0d7377, #1a8f8b);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.event-day {
    font-size: 1rem;
    line-height: 1;
}

.event-month {
    font-size: .6rem;
    opacity: .8;
}

.event-item {
    padding: .5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, .05);
}

.event-item:last-child {
    border-bottom: none;
}

/* ---------- Clickable Cards (uniform hover) ---------- */
.card-clickable {
    transition: transform .3s ease, box-shadow .3s ease;
    cursor: pointer;
}

.card-clickable:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .12) !important;
}

.card-clickable img:first-child {
    transition: transform .3s ease;
}

.card-clickable:hover img:first-child {
    transform: scale(1.05);
}

[data-bs-theme="dark"] .card-clickable {
    box-shadow: 0 0 0 1px var(--bs-border-color), 0 2px 8px rgba(0, 0, 0, .3);
}

[data-bs-theme="dark"] .card-clickable:hover {
    box-shadow: 0 0 0 1px var(--bs-border-color), 0 12px 32px rgba(0, 0, 0, .4) !important;
}

/* ---------- Materi / Store Cards ---------- */
.materi-card,
.store-card {
    transition: transform .2s ease, box-shadow .2s ease;
}

.materi-card:hover,
.store-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .12) !important;
}

.materi-card .card-img-top,
.store-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform .3s ease;
}

.materi-card:hover .card-img-top,
.store-card:hover .card-img-top {
    transform: scale(1.05);
}

.store-card .card-img-top {
    height: 180px;
}

/* ---------- Video Section (Premium) ---------- */
.pphimm-video-section {
    background: #ffffff;
}

.video-section-bg {
    display: none;
    pointer-events: none;
}

/* ---------- Tower Game Section ---------- */
.pphimm-tower-section {
    background: linear-gradient(135deg, #fdf2f2 0%, #fff8f0 25%, #f0fdf4 50%, #f0f9ff 75%, #faf5ff 100%);
}

.tower-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 500px 300px at 20% 30%, rgba(231, 76, 60, .05) 0%, transparent 60%),
        radial-gradient(ellipse 400px 400px at 80% 70%, rgba(155, 89, 182, .05) 0%, transparent 60%),
        radial-gradient(ellipse 300px 300px at 50% 20%, rgba(52, 152, 219, .04) 0%, transparent 60%);
    pointer-events: none;
}

/* Tower preview blocks */
.tower-preview {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    width: 100%;
    max-width: 320px;
    padding-top: 2rem;
}

.tower-block {
    height: 32px;
    border-radius: 6px;
    margin-bottom: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1), inset 0 1px 0 rgba(255, 255, 255, .3);
    animation: blockDrop .4s ease-out both;
    position: relative;
}

.tower-block.perfect {
    border: 2px solid #f1c40f;
    box-shadow: 0 0 12px rgba(241, 196, 15, .4), 0 2px 8px rgba(0, 0, 0, .1);
}

.perfect-badge {
    position: absolute;
    right: -64px;
    top: 50%;
    transform: translateY(-50%);
    font-size: .65rem;
    font-weight: 700;
    color: #f39c12;
    background: rgba(255, 255, 255, .9);
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: .5px;
    animation: badgePulse 1.5s ease-in-out infinite;
}

@keyframes blockDrop {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

/* Floating score */
.tower-score-float {
    position: absolute;
    top: 0;
    right: 10%;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: .75rem 1.25rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .08);
    text-align: center;
    animation: scoreFloat 3s ease-in-out infinite;
}

@keyframes scoreFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.score-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #e74c3c, #f39c12, #2ecc71);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.score-label {
    font-size: .7rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Tower badge */
.tower-badge {
    background: linear-gradient(135deg, #e74c3c, #f39c12) !important;
    font-size: .8rem;
    font-weight: 700;
    padding: .5rem .9rem !important;
    letter-spacing: .3px;
}

/* Tower title gradient */
.tower-title {
    background: linear-gradient(135deg, #e74c3c, #f39c12, #2ecc71, #3498db);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Tower description */
.tower-desc {
    color: #4b5563;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Feature badges */
.tower-feature-badge {
    display: inline-flex;
    align-items: center;
    padding: .35rem .75rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
    color: #374151;
    transition: transform .2s ease, box-shadow .2s ease;
}

.tower-feature-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
}

/* CTA button */
.tower-cta {
    background: linear-gradient(135deg, #e74c3c, #f39c12) !important;
    border: none !important;
    color: #fff !important;
    transition: transform .2s ease, box-shadow .2s ease !important;
}

.tower-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(231, 76, 60, .3) !important;
}

/* Tower Game page */
.pphimm-tower-hero {
    background: linear-gradient(135deg, #fdf2f2 0%, #fff8f0 25%, #f0fdf4 50%, #f0f9ff 75%, #faf5ff 100%);
    min-height: 350px;
}

.pphimm-tower-hero .display-4 {
    background: linear-gradient(135deg, #e74c3c, #f39c12, #2ecc71, #3498db, #9b59b6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Tower game cards */
.tower-game-card {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .04);
    transition: transform .3s ease, box-shadow .3s ease;
    background: #fff;
}

.tower-game-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .08) !important;
}

.tower-game-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: transform .3s ease;
}

.tower-game-card:hover .tower-game-icon-wrap {
    transform: scale(1.1);
}

/* Dark mode */
[data-bs-theme="dark"] .pphimm-tower-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1b2e 25%, #1a2e2a 50%, #1b2a3a 75%, #2a1b3a 100%);
}

[data-bs-theme="dark"] .tower-desc {
    color: var(--bs-secondary-color);
}

[data-bs-theme="dark"] .tower-feature-badge {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .08);
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .tower-score-float {
    background: rgba(30, 41, 59, .95);
}

[data-bs-theme="dark"] .tower-score-float .score-label {
    color: var(--bs-secondary-color);
}

[data-bs-theme="dark"] .pphimm-tower-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1b2e 25%, #1a2e2a 50%, #1b2a3a 75%, #2a1b3a 100%);
}

[data-bs-theme="dark"] .tower-game-card {
    background: var(--bs-body-bg);
    border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .tower-game-card .text-muted {
    color: var(--bs-secondary-color) !important;
}

/* Main video card */
.video-main-card {
    background: #000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .4);
    transition: box-shadow .3s ease;
    border: 1px solid rgba(255, 255, 255, .06);
}

.video-main-card:hover {
    box-shadow: 0 12px 48px rgba(239, 68, 68, .15), 0 8px 32px rgba(0, 0, 0, .4);
}

.video-main-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1rem 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, .85));
    z-index: 1;
}

/* Thumbnail cards */
.video-thumb-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.video-thumb-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    border-color: rgba(239, 68, 68, .3);
}

.video-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.video-thumb-card:hover .video-thumb-img {
    transform: scale(1.08);
}

.video-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s ease;
}

.video-thumb-card:hover .video-thumb-overlay {
    background: rgba(0, 0, 0, .5);
}

.video-thumb-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, .85));
}

/* Play button */
.play-btn {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, .95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #e74c3c;
    transition: transform .3s ease, box-shadow .3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .3);
}

.play-btn-sm {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
}

.video-thumb-card:hover .play-btn,
.related-video-card:hover .play-btn {
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(239, 68, 68, .4);
}

/* Video detail hero */
.video-detail-hero {
    background: linear-gradient(135deg, #0a0f1a 0%, #111827 40%, #1a2332 100%);
    min-height: 400px;
}

.video-detail-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 700px 400px at 50% 30%, rgba(239, 68, 68, .06) 0%, transparent 60%),
        radial-gradient(ellipse 400px 300px at 80% 70%, rgba(255, 255, 255, .02) 0%, transparent 50%);
    pointer-events: none;
}

.video-frame-container {
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 8px 40px rgba(0, 0, 0, .5) !important;
}

/* Related video cards (detail page) */
.related-video-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .04);
    transition: transform .3s ease, box-shadow .3s ease;
}

.related-video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12) !important;
}

.related-video-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.related-video-card:hover .related-video-img {
    transform: scale(1.08);
}

.related-video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s ease;
}

.related-video-card:hover .related-video-overlay {
    background: rgba(0, 0, 0, .45);
}

/* Video description rich text */
.video-description {
    word-wrap: break-word;
}

.video-description img {
    max-width: 100%;
    height: auto;
    border-radius: .5rem;
}

/* Dark mode overrides */
[data-bs-theme="dark"] .video-detail-hero {
    background: linear-gradient(135deg, #05080f 0%, #0a0f1a 40%, #111827 100%);
}

[data-bs-theme="dark"] .pphimm-video-section {
    background: var(--bs-body-bg) !important;
}

[data-bs-theme="dark"] .pphimm-video-section .text-muted {
    color: var(--bs-secondary-color) !important;
}

[data-bs-theme="dark"] .video-thumb-card {
    background: var(--bs-body-bg);
    border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .video-thumb-card .p-2.bg-white {
    background: var(--bs-body-bg) !important;
}

[data-bs-theme="dark"] .video-thumb-card h6 {
    color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"] .related-video-card {
    background: var(--bs-body-bg);
    border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .related-video-card .p-2.bg-white {
    background: var(--bs-body-bg) !important;
}

[data-bs-theme="dark"] .related-video-card h6 {
    color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"] .video-description {
    color: var(--bs-secondary-color) !important;
}

[data-bs-theme="dark"] .bg-white.rounded-4.shadow-sm {
    background-color: var(--bs-body-bg) !important;
    box-shadow: 0 0 0 1px var(--bs-border-color), 0 4px 16px rgba(0, 0, 0, .3) !important;
}

/* ---------- Gallery Grid ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
    gap: .75rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: .75rem;
    transition: transform .3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    transition: transform .4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* ---------- Feedback Form ---------- */
.feedback-input {
    border-radius: .75rem !important;
}

.feedback-input::placeholder {
    color: rgba(255, 255, 255, .5) !important;
}

.feedback-input:focus {
    background: rgba(255, 255, 255, .15) !important;
    border-color: rgba(39, 174, 96, .6) !important;
    box-shadow: 0 0 0 .25rem rgba(39, 174, 96, .2) !important;
    color: #fff !important;
}

.feedback-form .invalid-feedback {
    color: #ffc107;
}

/* ---------- Footer ---------- */
.pphimm-footer {
    background: linear-gradient(180deg, #073d3f 0%, #052b2d 100%);
    color: #fff;
}

.footer-nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem 1.5rem;
}

.footer-link {
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    transition: color .2s ease;
}

.footer-link:hover {
    color: #fff;
}

.social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .8);
    text-decoration: none;
    transition: background .2s ease, transform .2s ease, color .2s ease;
}

.social-icon-link:hover {
    background: rgba(255, 255, 255, .2);
    color: #fff;
    transform: translateY(-2px);
}

/* ---------- Responsive ---------- */
@media (max-width: 767.98px) {
    .pphimm-hero {
        min-height: 350px;
    }

    .pphimm-hero-content {
        min-height: 260px;
        padding-bottom: 2rem;
    }

    .hero-main-title {
        font-size: 2rem !important;
    }

    .digital-clock {
        font-size: 2rem;
    }

    .prayer-box .small {
        font-size: .65rem !important;
    }

    .prayer-box .fs-5 {
        font-size: .95rem !important;
    }

    .stat-number {
        font-size: 1.1rem;
    }

    .stat-label {
        font-size: .6rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 575.98px) {
    .prayer-icon {
        display: none;
    }

    .prayer-box {
        padding: .4rem !important;
    }

    .prayer-box .fs-5 {
        font-size: .85rem !important;
    }
}

/* ---------- Dark Mode Overrides ---------- */
[data-bs-theme="dark"] .pphimm-section-light {
    background-color: var(--bs-body-bg);
}

[data-bs-theme="dark"] .pphimm-section-white {
    background-color: var(--bs-body-bg);
}

[data-bs-theme="dark"] .section-title {
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .event-info-card,
[data-bs-theme="dark"] .prayer-times-card,
[data-bs-theme="dark"] .calendar-card {
    background-color: var(--bs-body-bg) !important;
    box-shadow: 0 0 0 1px var(--bs-border-color), 0 4px 16px rgba(0, 0, 0, .3);
}

[data-bs-theme="dark"] .digital-clock {
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .materi-card,
[data-bs-theme="dark"] .store-card {
    background-color: var(--bs-body-bg);
    box-shadow: 0 0 0 1px var(--bs-border-color), 0 2px 8px rgba(0, 0, 0, .3);
}

[data-bs-theme="dark"] .materi-card:hover,
[data-bs-theme="dark"] .store-card:hover {
    box-shadow: 0 0 0 1px var(--bs-border-color), 0 12px 32px rgba(0, 0, 0, .4) !important;
}

[data-bs-theme="dark"] .mini-cal-table td:hover {
    background: rgba(13, 115, 119, .2);
}

[data-bs-theme="dark"] .event-item {
    border-bottom-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .pphimm-navbar {
    background-color: var(--bs-body-bg) !important;
    border-bottom: 1px solid var(--bs-border-color);
}

[data-bs-theme="dark"] .pphimm-navbar .nav-link {
    color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"] .pphimm-navbar .nav-link:hover,
[data-bs-theme="dark"] .pphimm-navbar .nav-link.active {
    color: #2ecc71 !important;
}

[data-bs-theme="dark"] .pphimm-navbar .navbar-brand span {
    color: var(--bs-body-color) !important;
}

/* ---------- Premium Pagination ---------- */
.pphimm-pagination {
    display: flex;
    gap: .35rem;
    align-items: center;
}

.pphimm-pagination .pagination {
    gap: .35rem;
    margin-bottom: 0;
}

.pphimm-pagination .page-item {
    margin: 0;
}

.pphimm-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 .75rem;
    border-radius: 10px !important;
    border: 1px solid rgba(0, 0, 0, .06);
    background: #fff;
    color: #1a2332;
    font-weight: 500;
    font-size: .875rem;
    transition: all .2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

.pphimm-pagination .page-link:hover {
    background: #f0fdf4;
    border-color: #27ae60;
    color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, .15);
    z-index: 2;
}

.pphimm-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-color: transparent;
    color: #fff;
    font-weight: 600;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, .3);
}

.pphimm-pagination .page-item.active .page-link:hover {
    cursor: default;
    box-shadow: 0 4px 16px rgba(39, 174, 96, .4);
}

.pphimm-pagination .page-item.disabled .page-link {
    background: #f8f9fa;
    border-color: rgba(0, 0, 0, .04);
    color: #adb5bd;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}

.pphimm-pagination .page-item:first-child .page-link,
.pphimm-pagination .page-item:last-child .page-link {
    min-width: 40px;
    font-size: .85rem;
}

.pphimm-pagination .summary {
    color: #6c757d;
    font-size: .825rem;
    margin-right: .5rem;
}

/* Dark mode pagination */
[data-bs-theme="dark"] .pphimm-pagination .page-link {
    background: var(--bs-body-bg);
    border-color: var(--bs-border-color);
    color: var(--bs-body-color);
    box-shadow: none;
}

[data-bs-theme="dark"] .pphimm-pagination .page-link:hover {
    background: rgba(39, 174, 96, .1);
    border-color: #27ae60;
    color: #2ecc71;
    box-shadow: 0 4px 12px rgba(39, 174, 96, .1);
}

[data-bs-theme="dark"] .pphimm-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-color: transparent;
    color: #fff;
}

[data-bs-theme="dark"] .pphimm-pagination .page-item.disabled .page-link {
    background: var(--bs-gray-900);
    border-color: var(--bs-border-color);
    color: var(--bs-secondary-color);
}

/* Apply to all default paginations */
.pagination {
    gap: .35rem;
    flex-wrap: wrap;
}

.pagination + .pagination {
    margin-top: 1.5rem;
}

.pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 .75rem;
    border-radius: 10px !important;
    border: 1px solid rgba(0, 0, 0, .06);
    background: #fff;
    color: #1a2332;
    font-weight: 500;
    font-size: .875rem;
    transition: all .2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

.pagination .page-link:hover {
    background: #f0fdf4;
    border-color: #27ae60;
    color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, .15);
    z-index: 2;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-color: transparent;
    color: #fff;
    font-weight: 600;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, .3);
}

.pagination .page-item.active .page-link:hover {
    cursor: default;
    box-shadow: 0 4px 16px rgba(39, 174, 96, .4);
}

.pagination .page-item.disabled .page-link {
    background: #f8f9fa;
    border-color: rgba(0, 0, 0, .04);
    color: #adb5bd;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    min-width: 40px;
    font-size: .85rem;
}

/* Dark mode for default pagination */
[data-bs-theme="dark"] .pagination .page-link {
    background: var(--bs-body-bg);
    border-color: var(--bs-border-color);
    color: var(--bs-body-color);
    box-shadow: none;
}

[data-bs-theme="dark"] .pagination .page-link:hover {
    background: rgba(39, 174, 96, .1);
    border-color: #27ae60;
    color: #2ecc71;
    box-shadow: 0 4px 12px rgba(39, 174, 96, .1);
}

[data-bs-theme="dark"] .pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-color: transparent;
    color: #fff;
}

[data-bs-theme="dark"] .pagination .page-item.disabled .page-link {
    background: var(--bs-gray-900);
    border-color: var(--bs-border-color);
    color: var(--bs-secondary-color);
}

