 :root {
     --notice-from: #312e81;
     --notice-to: #6d28d9;
     --notice-shadow: 49, 46, 129;
     --theme-link: #4338ca;
     --theme-link-hover: #312e81;
     --theme-border: #e0e7ff;
 }

 /* Main card */
 .notice-show-card {
     background: #fff;
     border: 1px solid var(--theme-border);
     border-radius: 14px;
     overflow: hidden;
     box-shadow: 0 2px 4px rgba(var(--notice-shadow), .06),
         0 12px 32px rgba(var(--notice-shadow), .12);
 }

 /* Header */
 .notice-show-header {
     display: flex;
     align-items: center;
     gap: 16px;
     padding: 22px 24px;
     color: #fff;
     background:
         radial-gradient(circle at 92% -20%, rgba(255, 255, 255, .22), transparent 45%),
         radial-gradient(circle at 70% 140%, rgba(255, 255, 255, .12), transparent 40%),
         linear-gradient(135deg, var(--notice-from), var(--notice-to));
 }

 .notice-show-heading {
     flex: 1;
     min-width: 0;
 }

 .notice-show-heading h4 {
     margin: 0 0 8px;
     color: #fff;
     font-size: 20px;
     font-weight: 600;
     line-height: 1.35;
     letter-spacing: .2px;
     overflow-wrap: anywhere;
 }

 .notice-show-header small {
     display: inline-flex;
     align-items: center;
     gap: 6px;
     padding: 3px 12px;
     border-radius: 999px;
     background: rgba(255, 255, 255, .16);
     border: 1px solid rgba(255, 255, 255, .28);
     color: #fff;
     font-size: 12px;
     font-weight: 500;
 }

 /* Back button */
 .notice-back {
     width: 40px;
     height: 40px;
     min-width: 40px;
     display: flex;
     align-items: center;
     justify-content: center;
     border-radius: 12px;
     background: rgba(255, 255, 255, .18);
     border: 1px solid rgba(255, 255, 255, .30);
     color: #fff !important;
     text-decoration: none !important;
     transition: background .2s ease, transform .2s ease;
 }

 .notice-back i {
     color: #fff !important;
 }

 .notice-back:hover {
     background: rgba(255, 255, 255, .30);
     transform: translateX(-3px);
 }

 .notice-show-card .card-body {
     background: #fff;
 }

 /* Description */
 .notice-description {
     padding: 18px 20px;
     background: #f8f9ff;
     border: 1px solid var(--theme-border);
     border-radius: 12px;
     color: #374151;
     font-size: 1rem;
     line-height: 1.8;
     overflow-wrap: anywhere;
 }

 .notice-description a {
     color: var(--theme-link);
     font-weight: 500;
     text-decoration: none;
 }

 .notice-description a:hover {
     color: var(--theme-link-hover);
     text-decoration: underline;
 }

 /* Attachment heading */
 .notice-show-card .card-body h6 {
     display: flex;
     align-items: center;
     gap: 10px;
     margin-bottom: 12px !important;
     color: var(--notice-from);
     font-size: 13px;
     font-weight: 700;
     letter-spacing: .8px;
     text-transform: uppercase;
 }

 .notice-show-card .card-body h6::before {
     content: '';
     width: 4px;
     height: 16px;
     border-radius: 2px;
     background: linear-gradient(180deg, var(--notice-from), var(--notice-to));
 }

 /* PDF attachment */
 .attachment-box {
     display: flex;
     align-items: center;
     justify-content: space-between;
     flex-wrap: wrap;
     gap: 12px;
     padding: 14px 16px;
     background: #fff;
     border: 1px solid var(--theme-border);
     border-left: 5px solid var(--notice-to);
     border-radius: 12px;
     box-shadow: 0 1px 2px rgba(var(--notice-shadow), .06);
 }

 .attachment-info {
     display: flex;
     align-items: center;
     gap: 12px;
     min-width: 0;
     flex: 1;
 }

 .attachment-icon {
     width: 44px;
     height: 44px;
     min-width: 44px;
     display: flex;
     align-items: center;
     justify-content: center;
     border-radius: 12px;
     background: #ede9fe;
     color: var(--notice-to);
     font-size: 18px;
 }

 .attachment-name {
     color: #111827;
     font-weight: 600;
     overflow-wrap: anywhere;
 }

 .attachment-type {
     color: #6b7280;
     font-size: 12px;
     letter-spacing: .4px;
     text-transform: uppercase;
 }


 .btn-view-file {
     padding: 9px 20px;
     border: none;
     border-radius: 10px;
     background: linear-gradient(135deg, #2563eb, #1d4ed8);
     box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
     color: #fff !important;
     font-weight: 600;
     cursor: pointer;
     text-decoration: none;
     transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
 }

 .btn-view-file:hover,
 .btn-view-file:focus {
     background: linear-gradient(135deg, #1d4ed8, #1e40af);
     border: none;
     color: #fff !important;
     filter: brightness(1.08);
     transform: translateY(-1px);
     box-shadow: 0 8px 18px rgba(37, 99, 235, 0.32);
 }


 /* Responsive */
 @media (max-width: 768px) {
     .notice-show-header {
         gap: 12px;
         padding: 16px;
     }

     .notice-show-heading h4 {
         font-size: 17px;
     }

     .notice-back {
         width: 36px;
         height: 36px;
         min-width: 36px;
     }

     .notice-show-card .card-body {
         padding: 16px !important;
     }

     .notice-description {
         padding: 14px 16px;
         font-size: .95rem;
     }

     .attachment-box {
         padding: 12px;
     }

     .attachment-box form,
     .btn-view-file {
         width: 100%;
     }

     .btn-view-file {
         text-align: center;
     }
 }