/* ============================================================
   QAC Public Design System
   ============================================================ */

/* ---- Tokens (extends myStyle.css :root) ---- */
:root {
    --qac-primary: #1e3c72;
    --qac-danger: #b22222;
    --qac-gradient: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    --qac-gradient-hero: linear-gradient(135deg, #1e3c72 0%, #2a5298 40%, #b22222 100%);
    --qac-gradient-red: linear-gradient(135deg, #b22222 0%, #8b0000 100%);
    --qac-radius: 1rem;
    --qac-radius-lg: 1.5rem;
    --qac-shadow: 0 4px 16px rgba(0,0,0,0.08);
    --qac-shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
    --qac-transition: 0.3s cubic-bezier(.4,0,.2,1);
    --qac-font: 'Roboto', sans-serif;
    --qac-toggler-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2830,60,114,0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

body {
    font-family: var(--qac-font);
    color: #212529;
    background: #f4f7fc;
}

/* ---- Shared Page Header ---- */
.qac-page-header {
    background: var(--qac-gradient);
    margin: 0 0 2rem 0;
    padding: 3rem 1rem 2rem;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.qac-page-header::before {
    content: '';
    position: absolute;
    top: -60%; left: -20%;
    width: 140%; height: 200%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.qac-page-header h1 {
    font-weight: 700;
    margin: 0;
    font-size: 1.75rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: relative;
}
.qac-page-header .breadcrumb {
    background: none;
    margin: 0.5rem 0 0;
    padding: 0;
    justify-content: center;
    position: relative;
}
.qac-page-header .breadcrumb-item a { color: rgba(255,255,255,0.7); }
.qac-page-header .breadcrumb-item.active { color: #fff; }
.qac-page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }
@media (max-width: 768px) {
    .qac-page-header { padding: 2rem 0.75rem 1.25rem; }
    .qac-page-header h1 { font-size: 1.35rem; }
}

/* ---- Ticker ---- */
.qac-ticker {
    background: #fff8e1;
    border-left: 5px solid var(--qac-danger);
    border-radius: 0.5rem;
    margin: 0 20px 1rem;
    padding: 8px 16px;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: var(--qac-shadow);
}
.qac-ticker-content {
    display: inline-block;
    animation: qac-ticker-scroll 30s linear infinite;
    font-weight: 500;
    color: var(--qac-danger);
}
@keyframes qac-ticker-scroll {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
.qac-ticker-content a {
    color: inherit;
    text-decoration: none;
}
.qac-ticker:hover .qac-ticker-content { animation-play-state: paused; }
@media (max-width: 768px) {
    .qac-ticker { margin: 0 10px 0.75rem; font-size: 0.85rem; }
}

/* ---- Instruction Bar ---- */
.qac-instruction {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border-radius: 0.75rem;
    margin: 0 20px 1rem;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    box-shadow: var(--qac-shadow);
    overflow: hidden;
}
.qac-instruction-label {
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    background: rgba(255,255,255,0.15);
    padding: 4px 12px;
    border-radius: 4px;
}
.qac-instruction-text {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}
.qac-instruction-text a {
    color: #ffd966;
    text-decoration: none;
    font-weight: 600;
}
.qac-instruction-text a:hover { text-decoration: underline; }
.qac-instruction-marquee {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}
.qac-instruction-marquee a {
    color: #ffd966;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    padding-left: 100%;
    animation: qac-instruction-scroll 22s linear infinite;
}
.qac-instruction-marquee a:hover { text-decoration: underline; }
@keyframes qac-instruction-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
@media (max-width: 768px) {
    .qac-instruction { margin: 0 10px 0.75rem; padding: 8px 12px; flex-direction: column; gap: 6px; }
    .qac-instruction-label { font-size: 0.65rem; }
}

/* ---- Header ---- */
.qac-header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 1rem;
    margin: 0 20px 1.5rem;
    padding: 10px 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 10px;
    z-index: 1030;
    transition: var(--qac-transition);
}
.qac-header .logo-area { display: flex; align-items: center; gap: 12px; }
.qac-header .logo-area img { height: auto; }
.qac-header .nav-link,
.qac-header .dropdown-toggle {
    color: var(--qac-primary) !important;
    font-weight: 500;
    border-radius: 2rem;
    padding: 0.4rem 0.9rem;
    transition: var(--qac-transition);
    font-size: 0.9rem;
}
.qac-header .nav-link:hover,
.qac-header .dropdown-toggle:hover {
    background: rgba(30,60,114,0.08);
    color: var(--qac-danger) !important;
}
.qac-header .dropdown-menu {
    background: #fff;
    border: none;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 0.5rem;
    border: 1px solid #e9ecef;
}
.qac-header .dropdown-item {
    color: var(--qac-primary);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    transition: var(--qac-transition);
}
.qac-header .dropdown-item:hover {
    background: rgba(178,34,34,0.08);
    color: var(--qac-danger);
}
.qac-header .btn-qac {
    background: var(--qac-gradient);
    color: #fff;
    border: none;
    border-radius: 2rem;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: var(--qac-transition);
}
.qac-header .btn-qac:hover {
    background: var(--qac-gradient-red);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(178,34,34,0.3);
}
.qac-header .navbar-toggler {
    border: none;
    padding: 0.4rem 0.6rem;
    color: var(--qac-primary);
}
.qac-header .navbar-toggler:focus { box-shadow: none; outline: none; }
.qac-header .navbar-toggler-icon { background-image: var(--qac-toggler-icon); }
@media (max-width: 991.98px) {
    .qac-header .navbar-collapse { padding-top: 0.5rem; }
    .qac-header .navbar-nav { width: 100%; }
    .qac-header .nav-link, .qac-header .dropdown-toggle { width: 100%; text-align: left; }
}

/* ---- Hero Section ---- */
.qac-hero {
    background: var(--qac-gradient-hero);
    position: relative;
    overflow: hidden;
    padding: 0;
    margin-bottom: 3rem;
}
.qac-hero .carousel-item img {
    height: 480px;
    object-fit: cover;
    filter: brightness(0.6);
}
.qac-hero-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(30,60,114,0.95) 0%, transparent 100%);
    padding: 3rem 2rem 2rem;
    z-index: 2;
}
.qac-hero-overlay h1 {
    color: #fff;
    font-weight: 800;
    font-size: 2.25rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    margin-bottom: 0.5rem;
}
.qac-hero-overlay p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 1.5rem;
}
.qac-hero-overlay .btn-hero {
    border: 2px solid #fff;
    border-radius: 2rem;
    padding: 0.6rem 1.75rem;
    font-weight: 600;
    margin-right: 0.75rem;
    transition: var(--qac-transition);
    text-decoration: none;
    display: inline-block;
}
.qac-hero-overlay .btn-hero-primary {
    background: #fff;
    color: var(--qac-primary);
}
.qac-hero-overlay .btn-hero-primary:hover {
    background: var(--qac-danger);
    color: #fff;
    border-color: var(--qac-danger);
    transform: translateY(-2px);
}
.qac-hero-overlay .btn-hero-outline {
    background: transparent;
    color: #fff;
}
.qac-hero-overlay .btn-hero-outline:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}
@media (max-width: 768px) {
    .qac-hero .carousel-item img { height: 280px; }
    .qac-hero-overlay { padding: 2rem 1rem 1rem; }
    .qac-hero-overlay h1 { font-size: 1.5rem; }
    .qac-hero-overlay p { font-size: 0.95rem; }
    .qac-hero-overlay .btn-hero { padding: 0.5rem 1.25rem; font-size: 0.9rem; }
}
@media (max-width: 576px) {
    .qac-hero .carousel-item img { height: 200px; }
}

/* ---- Stats Cards ---- */
.qac-stats { margin: -2rem auto 2rem; position: relative; z-index: 3; }
.qac-stat {
    background: #fff;
    border-radius: var(--qac-radius);
    padding: 1.25rem 1rem;
    text-align: center;
    box-shadow: var(--qac-shadow);
    transition: var(--qac-transition);
    border-top: 4px solid var(--qac-danger);
    margin-bottom: 1rem;
}
.qac-stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--qac-shadow-lg);
}
.qac-stat i {
    font-size: 2.25rem;
    color: var(--qac-danger);
    margin-bottom: 0.5rem;
}
.qac-stat h5 {
    color: var(--qac-primary);
    font-weight: 600;
    font-size: 0.85rem;
    margin: 0 0 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.qac-stat .stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--qac-danger);
    line-height: 1.2;
}
@media (max-width: 768px) {
    .qac-stat i { font-size: 1.75rem; }
    .qac-stat .stat-number { font-size: 1.35rem; }
    .qac-stat h5 { font-size: 0.75rem; }
}

/* ---- Light Sections ---- */
.qac-section { padding: 2rem 0; }
.qac-section-title {
    text-align: center;
    margin-bottom: 2rem;
}
.qac-section-title h2 {
    color: var(--qac-primary);
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}
.qac-section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 60px; height: 3px;
    background: var(--qac-danger);
    border-radius: 2px;
}

/* Steps */
.qac-step {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: var(--qac-radius);
    background: #fff;
    box-shadow: var(--qac-shadow);
    transition: var(--qac-transition);
    height: 100%;
}
.qac-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--qac-shadow-lg);
}
.qac-step-num {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--qac-gradient);
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}
.qac-step h5 {
    color: var(--qac-primary);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.qac-step p {
    color: #6c757d;
    font-size: 0.875rem;
    margin: 0;
}

/* Dates Card */
.qac-dates {
    background: #fff;
    border-radius: var(--qac-radius);
    box-shadow: var(--qac-shadow);
    overflow: hidden;
}
.qac-dates-header {
    background: var(--qac-gradient);
    color: #fff;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.qac-dates-body { padding: 1.25rem; }
.qac-dates-body .date-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
    color: #495057;
}
.qac-dates-body .date-item:last-child { border-bottom: none; }

/* ---- Footer ---- */
.qac-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #c0c8d4;
    border-radius: 2rem 2rem 0 0;
    margin-top: 3rem;
    padding: 3rem 1.5rem 1.5rem;
}
.qac-footer h4 {
    color: #ffd966;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.qac-footer ul { list-style: none; padding: 0; margin: 0; }
.qac-footer ul li { margin-bottom: 0.5rem; }
.qac-footer ul li a {
    color: #c0c8d4;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--qac-transition);
}
.qac-footer ul li a:hover { color: #ffd966; padding-left: 4px; }
.qac-footer .qac-footer-copy {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.25rem;
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: #7a8494;
}

/* ---- Cards (filter, table, generic) ---- */
.qac-card {
    background: #fff;
    border-radius: var(--qac-radius);
    box-shadow: var(--qac-shadow);
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.qac-card-header {
    background: var(--qac-primary);
    color: #fff;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.qac-card-body { padding: 1.25rem; }

.qac-table-wrap { overflow-x: auto; }

/* ---- Contact Cards (ReachOut) ---- */
.qac-contact {
    background: #fff;
    border-radius: var(--qac-radius);
    box-shadow: var(--qac-shadow);
    padding: 1.5rem;
    border-top: 4px solid var(--qac-primary);
    height: 100%;
    transition: var(--qac-transition);
}
.qac-contact:hover {
    transform: translateY(-3px);
    box-shadow: var(--qac-shadow-lg);
}
.qac-contact h6 {
    color: var(--qac-primary);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1rem;
}
.qac-contact h6 i {
    color: var(--qac-danger);
    margin-right: 0.5rem;
}
.qac-contact p {
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ---- Buttons (supplement to Bootstrap) ---- */
.btn-qac-gradient {
    background: var(--qac-gradient);
    color: #fff;
    border: none;
    border-radius: 2rem;
    padding: 0.4rem 1.25rem;
    font-weight: 500;
    transition: var(--qac-transition);
}
.btn-qac-gradient:hover {
    background: var(--qac-gradient-red);
    color: #fff;
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--qac-danger);
    border: none;
    border-radius: 2rem;
    padding: 0.45rem 1.5rem;
}
.btn-danger:hover { background: #8b0000; }

/* ---- Modal restyle (extends myStyle.css .modalPopup1) ---- */
.qac-modal .modal-header-custom {
    background: var(--qac-gradient);
    color: #fff;
    padding: 12px 56px 12px 20px;
    border-radius: 1rem 1rem 0 0;
}
.qac-modal .modal-header-custom h4 { margin: 0; }
.qac-modal .btn-close-white { filter: invert(1); }
.qac-modal .qac-modal-close,
.qac-modal .modal-header-custom .qac-modal-close,
.qac-modal .modal-header-custom button[id*="btnclose"] {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.qac-modal .qac-modal-close:hover,
.qac-modal .qac-modal-close:focus,
.qac-modal .modal-header-custom button[id*="btnclose"]:hover {
    background: #b22222;
    color: #fff;
}
.qac-modal .modal-body-custom { padding: 1rem 0 0; }
.qac-modal .modal-body-custom p { margin-bottom: 0.5rem; }

/* ---- Gallery ---- */
.qac-gallery {
    background: #f4f7fc;
    min-height: 100vh;
}
.qac-gallery-header {
    background: var(--qac-gradient);
    color: #fff;
    padding: 2rem 1rem 1.5rem;
    text-align: center;
}
.qac-gallery-header h1 { font-weight: 700; margin: 0; }
.qac-gallery-grid img {
    width: 100%;
    border-radius: 0.75rem;
    transition: var(--qac-transition);
    cursor: pointer;
    box-shadow: var(--qac-shadow);
}
.qac-gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: var(--qac-shadow-lg);
}
@media (max-width: 576px) {
    .qac-gallery-grid .col-6 { flex: 0 0 50%; max-width: 50%; }
}

/* ---- Login (Login.master overrides) ---- */
.login-layout { background: #f4f7fc; }
.login-feature-panel {
    background: var(--qac-gradient) !important;
    color: #fff !important;
}
.login-feature-panel .feature-title { color: #fff !important; }
.login-feature-panel .feature-subtitle { color: rgba(255,255,255,0.75) !important; }
.login-feature-panel .feature-list li { color: #e0e0e0 !important; }
.login-feature-panel .feature-list .feature-icon {
    color: var(--qac-danger) !important;
    background: rgba(178,34,34,0.15) !important;
    border-color: rgba(178,34,34,0.3) !important;
}
.login-feature-panel .feature-attribution { color: rgba(255,255,255,0.5) !important; border-color: rgba(255,255,255,0.15) !important; }
.login-form-panel { background: #f4f7fc !important; border-left: none !important; }
.login-form-panel .widget-box .header { color: var(--qac-primary); }
.login-form-panel .btn-primary { background: var(--qac-gradient); border: none; border-radius: 0.5rem; }
.login-form-panel .btn-primary:hover { background: var(--qac-gradient-red); }
.login-form-panel .btn-info { border-radius: 0.5rem; }
.login-form-panel .btn-success { background: #1e7e34; border: none; border-radius: 0.5rem; }
.login-form-panel .btn-success:hover { background: #155d27; }
.login-form-panel .btn-pink { background: #b22222; border: none; border-radius: 0.5rem; }
.login-form-panel .btn-pink:hover { background: #8b0000; }

/* ---- Login Card (Delhi Police theme) ---- */
.qac-login-card {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
    border: none !important;
}
.qac-login-card .widget-body,
.qac-login-card .widget-main {
    background: #fff;
    border: none !important;
}
.qac-login-header {
    background: var(--qac-gradient);
    color: #fff;
    padding: 1.5rem 1.5rem 1.25rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.qac-login-header::after {
    content: '';
    position: absolute;
    top: -80%; right: -30%;
    width: 100%; height: 200%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.10) 0%, transparent 70%);
    pointer-events: none;
}
.qac-login-header img {
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    padding: 4px;
    border: 2px solid rgba(255,255,255,0.35);
    margin-bottom: 0.6rem;
}
.qac-login-header h4 {
    margin: 0 0 0.25rem;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
}
.qac-login-header p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.qac-login-card .widget-main {
    padding: 1.5rem !important;
}
.qac-login-card .widget-main fieldset .input-group {
    margin-bottom: 1rem;
}
.qac-login-card .input-group-addon {
    background: #f4f7fc;
    border-color: #ced4da;
    color: var(--qac-primary);
    min-width: 44px;
    text-align: center;
}
.qac-login-card .form-control {
    height: 44px;
    border-radius: 0 2rem 2rem 0 !important;
    border-color: #ced4da;
}
.qac-login-card .form-control:focus {
    box-shadow: none;
    border-color: var(--qac-primary);
}
.qac-login-hint {
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}
.qac-login-btn {
    width: 100%;
    padding: 0.65rem;
    font-weight: 600;
    border: none;
    border-radius: 2rem;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    background: var(--qac-gradient);
    color: #fff;
    transition: var(--qac-transition);
    margin-top: 0.5rem;
}
.qac-login-btn:hover {
    background: var(--qac-gradient-red);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(178,34,34,0.3);
}
.qac-login-btn-outline {
    width: 100%;
    padding: 0.6rem;
    font-weight: 600;
    border: 2px solid var(--qac-primary);
    color: var(--qac-primary);
    background: #fff;
    border-radius: 2rem;
    font-size: 0.95rem;
    transition: var(--qac-transition);
    margin-bottom: 1rem;
}
.qac-login-btn-outline:hover {
    background: var(--qac-primary);
    color: #fff;
}
.qac-login-card .qac-toolbar {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 0.8rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.qac-login-card .qac-toolbar a {
    color: #ffd966;
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--qac-transition);
}
.qac-login-card .qac-toolbar a:hover { color: #fff; }
.qac-captcha-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.25rem 0 0.5rem;
}
.qac-captcha-row img {
    border-radius: 0.5rem;
    border: 1px solid #ced4da;
    background: #f8f9fa;
}
.qac-login-card .qac-captcha-refresh {
    background: #f4f7fc;
    border: 1px solid #ced4da;
    border-radius: 0.5rem;
    width: 42px;
    height: 42px;
    padding: 6px;
    transition: var(--qac-transition);
}
.qac-login-card .qac-captcha-refresh:hover {
    background: #fff;
    border-color: var(--qac-danger);
}
.qac-captcha-msg { min-height: 1.4rem; margin-bottom: 0.5rem; }

/* ---- QAC Badge (small emblem chip) ---- */
.qac-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 2rem;
    padding: 0.25rem 0.9rem;
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: #ffd966;
    text-transform: uppercase;
}

/* ---- D: Unified public page header (replaces per-page .page-header) ---- */
.page-header {
    background: var(--qac-gradient);
    margin: 0 0 2rem 0;
    padding: 2.25rem 1rem 1.75rem;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 1.5rem 1.5rem;
}
.page-header::before {
    content: '';
    position: absolute;
    top: -60%; left: -20%;
    width: 140%; height: 200%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.page-header h1 {
    font-weight: 700;
    margin: 0;
    font-size: 1.6rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: relative;
}
@media (max-width: 768px) {
    .page-header { padding: 1.5rem 0.75rem 1.25rem; }
    .page-header h1 { font-size: 1.3rem; }
}

/* ---- D: Shared public filter / table / nested-table styles ---- */
.filter-card {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--qac-shadow);
}
.filter-card .form-label {
    font-weight: 600;
    color: var(--qac-primary);
    margin-bottom: 0.5rem;
}
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}
.radio-group label { margin-right: 0.25rem; }

.card-table {
    background: #ffffff;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: var(--qac-shadow);
    margin-bottom: 2rem;
}
.card-header-custom {
    background: var(--qac-primary);
    color: white;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-size: 1.1rem;
}
.card-header-custom i { margin-right: 0.5rem; }

.table-wrapper { overflow-x: auto; }
.table-wrapper .table { margin-bottom: 0; }
@media (min-width: 992px) {
    .table-wrapper .table { min-width: 600px; }
}
.table-wrapper .table thead th {
    background: var(--qac-primary);
    color: white;
    font-weight: 600;
    border: none;
}
.table-wrapper .table tbody tr:hover { background-color: #f8f9fa; }

.nested-table {
    background: transparent;
    margin: 0;
    width: 100%;
}
.nested-table td,
.nested-table th {
    padding: 0.3rem;
    border: none;
    font-size: 0.85rem;
}

.btn-dual {
    background: #17a2b8;
    color: white;
    border: none;
    border-radius: 2rem;
    padding: 0.2rem 1rem;
    font-size: 0.85rem;
}
.btn-dual:hover { background: #138496; color: #fff; }

/* ---- D: Homepage contact band (Index.aspx) ---- */
.qac-contact-band {
    background: var(--qac-gradient);
    border-radius: var(--qac-radius-lg);
    color: #fff;
    padding: 2rem;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: var(--qac-shadow-lg);
    position: relative;
    overflow: hidden;
}
.qac-contact-band::after {
    content: '';
    position: absolute;
    top: -70%; right: -10%;
    width: 60%; height: 240%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.10) 0%, transparent 70%);
    pointer-events: none;
}
.qac-contact-band h3 {
    margin: 0 0 0.35rem;
    font-weight: 700;
}
.qac-contact-band p { margin: 0; opacity: 0.9; }
.qac-contact-band .btn-hero-outline {
    border: 2px solid #fff;
    color: #fff;
    border-radius: 2rem;
    padding: 0.55rem 1.6rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--qac-transition);
    position: relative;
    white-space: nowrap;
}
.qac-contact-band .btn-hero-outline:hover {
    background: #fff;
    color: var(--qac-primary);
}
@media (max-width: 768px) {
    .qac-contact-band { padding: 1.5rem; text-align: center; justify-content: center; }
}
