/* Modern UI overrides (non-destructive)
   Keeps existing theme but improves form readability and document layouts.
*/

:root{
  --brand-primary:#2563eb; /* blue */
  --brand-primary-2:#1d4ed8;
  --brand-surface:#ffffff;
  --brand-bg:#f6f8fc;
  --brand-text:#0f172a;
  --brand-muted:#64748b;
  --brand-border:rgba(15,23,42,.12);
  --brand-shadow:0 14px 40px rgba(2,8,23,.08);
}

/* General readability */
body{color:var(--brand-text);}

/* Header + nav: mobile-first tweaks */
.main-header .logo img{max-height:80px; width:auto;}

@media (max-width: 991px){
  .top-bar{display:none !important;}
  .header-upper.style-four .wrapper-box{gap:10px;}
  .header-upper.style-four .logo img{max-height:56px !important;}
  .header-upper.style-four .option-wrapper{flex-wrap:wrap; gap:10px;}
  .header-upper.style-four .search-box-outer{display:none !important;}
  .header-upper.style-four .link-btn a{padding:12px 14px; border-radius:999px;}
}

@media (max-width: 575px){
  .header-upper.style-four .link-btn{flex:1 1 auto;}
  .header-upper.style-four .link-btn a{width:100%; text-align:center;}
}

/* Hidden sidebar (offcanvas): fit all screens */
.hidden-sidebar{
  width:420px; 
  max-width:92vw;
  position: fixed !important;
  right: -100% !important;
  top: 0 !important;
  height: 100vh !important;
  z-index: 9999 !important;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  background: #fff !important;
  box-shadow: -5px 0 30px rgba(0,0,0,0.2) !important;
}

.hidden-sidebar:not(.close-sidebar) {
  right: 0 !important;
}

.hidden-sidebar .wrapper-box{height:100vh; overflow:auto; -webkit-overflow-scrolling:touch; padding-bottom:18px;}
.hidden-sidebar .logo{padding:18px 20px 0;}
.hidden-sidebar .logo img{max-height:320px; width:auto; max-width:100%; display:block;}
.hidden-sidebar .content{padding:12px 20px 18px;}
.hidden-sidebar .hidden-sidebar-close{position:sticky; top:10px; margin-left:auto; z-index:3;}

/* Ensure main content uses full width */
.page-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

.auto-container {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
}

.contact-form-section .auto-container,
.page-title .auto-container {
  max-width: 1200px !important;
}

@media (max-width: 420px){
  .hidden-sidebar{width:100vw; max-width:100vw;}
  .hidden-sidebar .logo img{max-height:200px;}
}

/* Gallery: keep it clean/white (avoid theme's red/orange primary) */
.gallery-section{background:#fff !important;}
.gallery-section .btn-primary{
  background:var(--brand-primary) !important;
  border-color:var(--brand-primary) !important;
}
.gallery-section .btn-outline-primary{
  color:var(--brand-primary) !important;
  border-color:var(--brand-primary) !important;
  background:#fff !important;
}
.gallery-section .btn-outline-primary:hover,
.gallery-section .btn-outline-primary:focus{
  background:var(--brand-primary) !important;
  border-color:var(--brand-primary) !important;
  color:#fff !important;
}

/* Sidebar posts: compact modern list */
.hidden-sidebar .news-widget-two .post-wrapper{display:flex; gap:12px; align-items:flex-start;}
.hidden-sidebar .news-widget-two .post-wrapper .image{flex:0 0 72px;}
.hidden-sidebar .news-widget-two .post-wrapper .image img{width:72px; height:58px; object-fit:cover; border-radius:10px;}
.hidden-sidebar .news-widget-two .post-wrapper .category{font-size:11px; letter-spacing:.4px; text-transform:uppercase; color:var(--brand-muted); margin-bottom:4px;}
.hidden-sidebar .news-widget-two .post-wrapper h4{font-size:14px; line-height:1.25; margin:0; font-weight:900;}

/* Forms (Donate / Volunteer / Membership / Contact) */
.default-form-area{background:transparent;}
.default-form input[type="text"],
.default-form input[type="email"],
.default-form input[type="tel"],
.default-form input[type="number"],
.default-form input[type="date"],
.default-form input[type="search"],
.default-form select,
.default-form textarea,
.default-form input[type="file"]{
  width:100%;
  border:1px solid var(--brand-border) !important;
  border-radius:12px !important;
  padding:12px 14px !important;
  background:#fff !important;
  color:var(--brand-text) !important;
  box-shadow:0 1px 0 rgba(2,8,23,.02);
}

.default-form textarea{min-height:120px;}

.default-form input:focus,
.default-form select:focus,
.default-form textarea:focus{
  outline:none;
  border-color:rgba(37,99,235,.55) !important;
  box-shadow:0 0 0 .25rem rgba(37,99,235,.15) !important;
}

/* Make placeholders readable */
.default-form input::placeholder,
.default-form textarea::placeholder{color:#94a3b8;}

/* Gallery filter buttons: neutral, no red */
.gallery-filters .btn{
  border-radius:999px;
  padding:8px 14px;
  font-weight:700;
  border:1px solid rgba(15,23,42,.14) !important;
}

.gallery-filters .btn.btn-primary{
  background:var(--brand-primary) !important;
  border-color:var(--brand-primary) !important;
  color:#fff !important;
}

.gallery-filters .btn.btn-outline-primary{
  background:#fff !important;
  color:var(--brand-text) !important;
  border-color:rgba(15,23,42,.16) !important;
}

.gallery-filters .btn.btn-outline-primary:hover{
  border-color:rgba(37,99,235,.45) !important;
}

/* Blog: better cards */
.blog-card{
  background:#fff;
  border:1px solid rgba(15,23,42,.08);
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 12px 32px rgba(2,8,23,.06);
}
.blog-card .blog-cover{display:block; width:100%; height:220px; object-fit:cover;}
.blog-card .blog-body{padding:16px 16px 18px;}
.blog-card .blog-meta{display:flex; gap:10px; flex-wrap:wrap; color:var(--brand-muted); font-size:13px; margin-bottom:8px;}
.blog-card .blog-title{font-size:18px; line-height:1.25; margin:0 0 8px; font-weight:900;}
.blog-card .blog-excerpt{color:#475569; font-size:14px; line-height:1.6; margin:0;}

/* Printable documents (receipt/certificate/id-card) */
.doc-wrap{padding:18px; background:var(--brand-bg); border-radius:16px;}
.doc-paper{
  position:relative;
  background:#fff;
  border-radius:18px;
  border:1px solid rgba(15,23,42,.10);
  box-shadow:var(--brand-shadow);
  overflow:hidden;
}

.doc-paper .doc-inner{padding:28px;}

.doc-watermark{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%) rotate(-18deg);
  pointer-events:none;
  opacity:.08;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-weight:900;
  font-size:72px;
  letter-spacing:1px;
  color:#0f172a;
  padding:20px;
  user-select:none;
  z-index:999;
  width:100%;
  height:100%;
}

.doc-watermark img{
  max-width:60%;
  max-height:60%;
  object-fit:contain;
  filter:grayscale(1);
}

.doc-header{display:flex; gap:16px; align-items:center; justify-content:space-between; flex-wrap:wrap;}
.doc-brand{display:flex; gap:14px; align-items:center;}
.doc-brand img{height:54px; width:auto; object-fit:contain;}
.doc-brand .name{font-weight:900; font-size:18px; line-height:1.1;}
.doc-brand .sub{color:var(--brand-muted); font-size:13px; margin-top:2px;}
.doc-badge{border:1px solid rgba(15,23,42,.12); padding:8px 12px; border-radius:999px; font-weight:800; font-size:12px; background:#fff;}

.doc-grid{display:grid; grid-template-columns:1fr 1fr; gap:14px;}
@media (max-width: 767px){.doc-grid{grid-template-columns:1fr;}}

.doc-kv{border:1px solid rgba(15,23,42,.08); border-radius:14px; padding:14px; background:#fff;}
.doc-kv .k{color:var(--brand-muted); font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.4px;}
.doc-kv .v{font-size:15px; font-weight:800; margin-top:4px; word-break:break-word;}

.doc-sign-row{display:flex; gap:24px; justify-content:space-between; align-items:flex-end; flex-wrap:wrap; margin-top:42px; padding-top:28px; border-top:2px solid rgba(196,143,43,.3);}
.doc-sign{min-width:280px; color:#1e3a5f;}
.doc-sign .label{color:#1e3a5f; font-size:13px; font-weight:800; margin-top:8px;}
.doc-sign .line{border-top:2px solid #1e3a5f; margin-top:28px; width:240px;}
.doc-sign img{height:68px; width:auto; object-fit:contain; display:block; filter:drop-shadow(1px 1px 2px rgba(0,0,0,.15));}

.doc-stamp{min-width:240px; text-align:right;}
.doc-stamp img{height:92px; width:auto; object-fit:contain; opacity:.95; filter:drop-shadow(1px 1px 3px rgba(0,0,0,.15));}

/* Certificate layout (opt-in) */
.doc-paper--certificate{
  border:12px solid transparent;
  background-clip:padding-box;
  background-image:linear-gradient(#fffef8,#fffef8),linear-gradient(135deg,#c48f2b 0%,#9b6f1e 25%,#c9962f 50%,#9b6f1e 75%,#c48f2b 100%);
  background-origin:border-box;
  box-shadow:0 20px 50px rgba(15,23,42,.18);
}

.doc-paper--certificate::before{
  content:"";
  position:absolute;
  inset:22px;
  border:3px double #c48f2b;
  pointer-events:none;
  z-index:0;
}

.doc-paper--certificate::after{
  content:"";
  position:absolute;
  inset:30px;
  border:1px solid rgba(196,143,43,.25);
  pointer-events:none;
  z-index:0;
}

.doc-paper--certificate .doc-inner{padding:56px 64px 48px; position:relative; z-index:1; background:radial-gradient(ellipse 1400px 800px at 50% 0%,rgba(196,143,43,.05),transparent 60%),radial-gradient(circle 900px at 0% 100%,rgba(45,90,143,.04),transparent 55%),#fffef8;}

.doc-paper--certificate .doc-watermark{opacity:.04; font-size:120px; letter-spacing:3px; color:#c48f2b;}

.doc-cert-top{display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; background:linear-gradient(135deg,#1e3a5f 0%,#2d5a8f 100%); color:#fff; padding:24px 28px; margin:-56px -64px 32px; border-bottom:4px solid #c48f2b;}
.doc-cert-brand{display:flex; align-items:center; gap:14px;}
.doc-cert-brand img{height:52px; width:auto; background:#fff; border-radius:8px; padding:8px; border:2px solid #c48f2b;}
.doc-cert-org{font-weight:900; font-size:20px; line-height:1.2; color:#fff; text-shadow:1px 1px 2px rgba(0,0,0,.3);}
.doc-cert-sub{color:rgba(255,255,255,.95); font-size:14px; font-weight:800; letter-spacing:.18em; text-transform:uppercase; margin-top:3px; font-style:italic;}

.doc-cert-title{margin-top:32px; text-align:center; font-weight:900; font-size:52px; letter-spacing:.05em; color:#1e3a5f; text-transform:uppercase; font-family:Georgia,serif; text-shadow:1px 1px 3px rgba(196,143,43,.15);}
.doc-cert-kicker{margin-top:12px; text-align:center; color:#9b6f1e; font-size:15px; font-weight:800; letter-spacing:.22em; text-transform:uppercase; border-top:2px solid #c48f2b; border-bottom:2px solid #c48f2b; padding:10px 0; display:inline-block; margin-left:50%; transform:translateX(-50%);}
.doc-cert-name{margin:24px auto 10px; text-align:center; font-size:34px; font-weight:900; color:#1e3a5f; font-family:Georgia,serif;}
.doc-cert-name-line{height:2px; background:#c48f2b; width:min(520px, 92%); margin:8px auto 0;}
.doc-cert-desc{margin:24px auto 0; max-width:860px; text-align:center; color:#1e3a5f; font-size:17px; line-height:2; font-family:Georgia,serif;}
.doc-cert-desc strong{color:#9b6f1e; font-weight:900;}

.doc-cert-meta{margin-top:32px; display:flex; justify-content:center; gap:14px; flex-wrap:wrap;}
.doc-cert-pill{border:2px solid #c48f2b; background:rgba(255,255,255,.8); backdrop-filter: blur(6px); padding:10px 16px; border-radius:999px; font-size:12px; color:#1e3a5f; font-weight:600;}
.doc-cert-pill strong{color:#9b6f1e; font-weight:900;}

@media (max-width: 767px){
  .doc-paper--certificate .doc-inner{padding:32px 24px 28px;}
  .doc-cert-top{margin:-32px -24px 24px; padding:18px 20px;}
  .doc-cert-title{font-size:36px;}
  .doc-cert-name{font-size:26px;}
}

/* Two-sided ID card (opt-in) */
.idcard-sheet{display:flex; gap:18px; flex-wrap:wrap; align-items:flex-start;}
.idcard{
  width:420px;
  max-width:100%;
  aspect-ratio: 856 / 540;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(15,23,42,.10);
  box-shadow:0 16px 40px rgba(2,8,23,.10);
  background:#fff;
  position:relative;
}
.idcard::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(520px 220px at 100% 0%, rgba(37,99,235,.18), transparent 55%),
    radial-gradient(520px 260px at 0% 100%, rgba(2,190,108,.14), transparent 55%);
  opacity:.55;
}
.idcard .wm{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
  opacity:.08;
  transform:rotate(-18deg);
  font-weight:900;
  font-size:52px;
  letter-spacing:1px;
  color:#0f172a;
  text-align:center;
  padding:18px;
  user-select:none;
}
.idcard .wm img{max-width:78%; max-height:78%; object-fit:contain; filter:grayscale(1);}

.idcard-front-head{position:relative; z-index:1; padding:14px 16px; color:#fff; background:linear-gradient(135deg,#0b1220,#153563); display:flex; align-items:center; justify-content:space-between; gap:12px;}
.idcard-front-brand{display:flex; align-items:center; gap:10px;}
.idcard-front-brand img{height:34px; width:auto; background:#fff; border-radius:12px; padding:6px;}
.idcard-front-brand .n{font-weight:900; font-size:14px; line-height:1.1;}
.idcard-front-brand .s{font-size:11px; opacity:.9;}
.idcard-badge{font-size:11px; font-weight:900; padding:6px 10px; border-radius:999px; background:rgba(255,255,255,.14);}

.idcard-front-body{position:relative; z-index:1; padding:16px; display:flex; gap:14px;}
.idcard-photo{width:92px; height:112px; border-radius:14px; overflow:hidden; border:1px solid rgba(15,23,42,.12); background:#f1f5f9; flex:0 0 auto;}
.idcard-photo img{width:100%; height:100%; object-fit:cover; display:block;}
.idcard-front-name{font-weight:900; font-size:18px; line-height:1.2; color:#0f172a;}
.idcard-front-kv{margin-top:8px; font-size:12px; color:#0f172a;}
.idcard-front-kv strong{color:#334155;}

.idcard-front-foot{position:relative; z-index:1; border-top:1px dashed rgba(15,23,42,.18); padding:12px 16px; display:flex; justify-content:space-between; gap:10px; font-size:11px; color:#475569;}

.idcard-back{padding:16px; position:relative; z-index:1;}
.idcard-back h4{margin:0 0 10px; font-size:14px; font-weight:900; color:#0f172a;}
.idcard-terms{margin:0; padding-left:16px; color:#334155; font-size:12px; line-height:1.6;}
.idcard-back-meta{margin-top:12px; display:flex; justify-content:space-between; gap:12px; font-size:11px; color:#475569; border-top:1px dashed rgba(15,23,42,.18); padding-top:10px;}

@media print{
  .idcard-sheet{gap:10mm;}
  .idcard{width:85.6mm; height:54mm; box-shadow:none;}
}

@media print{
  body{background:#fff !important;}
  .page-title,.main-header,.main-footer,.scroll-to-top,.nav-outer,.sticky-header,.sidebar-side,.nav-overlay,.mobile-menu,.top-bar{display:none !important;}
  .doc-wrap{padding:0 !important; background:#fff !important;}
  .doc-paper{box-shadow:none !important; border:1px solid #ddd !important;}
  .doc-watermark{opacity:.08;}
  .no-print{display:none !important;}
  .modern-receipt-wrap{padding:0 !important; background:#fff !important;}
  .modern-receipt-paper{box-shadow:none !important; border:none !important;}
  .receipt-curve-top, .receipt-curve-bottom{display:none !important;}
  .receipt-actions{display:none !important;}
  *{ -webkit-print-color-adjust:exact !important; print-color-adjust:exact !important; }
}

/* Modern Professional Receipt Styles with Curved Lines */
.modern-receipt-wrap{
  padding:20px;
  background:linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius:20px;
  margin:0 auto;
  max-width:900px;
}

.modern-receipt-paper{
  position:relative;
  background:#ffffff;
  border-radius:24px;
  box-shadow:0 20px 60px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.08);
  overflow:hidden;
  border:1px solid rgba(0,0,0,0.05);
}

/* Curved SVG Decorations */
.receipt-curve-top{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100px;
  z-index:1;
  pointer-events:none;
}

.receipt-curve-bottom{
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  height:80px;
  z-index:1;
  pointer-events:none;
}

.modern-receipt-inner{
  position:relative;
  z-index:2;
  padding:120px 40px 100px;
}

@media (max-width: 768px){
  .modern-receipt-inner{
    padding:100px 24px 80px;
  }
}

/* Header Section */
.modern-receipt-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
  margin-bottom:32px;
  padding-bottom:24px;
  border-bottom:3px solid rgba(0,0,0,0.06);
}

.receipt-logo-section{
  display:flex;
  align-items:center;
  gap:16px;
  flex:1;
}

.receipt-logo{
  height:70px;
  width:auto;
  object-fit:contain;
  border-radius:12px;
  padding:8px;
  background:#f8fafc;
  border:2px solid rgba(0,0,0,0.08);
}

.receipt-org-info h1{
  font-size:24px;
  font-weight:900;
  color:#0f172a;
  margin:0 0 4px;
  line-height:1.2;
}

.receipt-type{
  font-size:13px;
  font-weight:700;
  color:#64748b;
  text-transform:uppercase;
  letter-spacing:1.5px;
  margin:0;
}

.receipt-status-badge{
  padding:10px 20px;
  border-radius:50px;
  font-weight:800;
  font-size:13px;
  display:flex;
  align-items:center;
  gap:8px;
  white-space:nowrap;
  box-shadow:0 4px 12px rgba(0,0,0,0.1);
}

.receipt-status-badge.status-success{
  background:linear-gradient(135deg, #10b981, #059669);
  color:#fff;
}

.receipt-status-badge.status-warning{
  background:linear-gradient(135deg, #f59e0b, #d97706);
  color:#fff;
}

.receipt-status-badge.status-danger{
  background:linear-gradient(135deg, #ef4444, #dc2626);
  color:#fff;
}

.receipt-status-badge.status-info{
  background:linear-gradient(135deg, #3b82f6, #2563eb);
  color:#fff;
}

/* Info Bar */
.receipt-info-bar{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom:28px;
  padding:16px 20px;
  background:linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius:16px;
  border:1px solid rgba(0,0,0,0.06);
}

.receipt-info-item{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  color:#475569;
  flex:1;
  min-width:200px;
}

.receipt-info-item i{
  color:#3b82f6;
  font-size:16px;
}

.receipt-info-item .label{
  font-weight:600;
}

.receipt-info-item strong{
  color:#0f172a;
  font-weight:900;
}

/* Details Grid */
.receipt-details-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
  gap:16px;
  margin-bottom:28px;
}

@media (max-width: 576px){
  .receipt-details-grid{
    grid-template-columns:1fr;
  }
}

.receipt-detail-card{
  display:flex;
  align-items:flex-start;
  gap:14px;
  padding:18px 20px;
  background:#fff;
  border:2px solid rgba(0,0,0,0.08);
  border-radius:16px;
  transition:all 0.3s ease;
}

.receipt-detail-card:hover{
  border-color:#3b82f6;
  box-shadow:0 4px 16px rgba(59,130,246,0.15);
  transform:translateY(-2px);
}

.receipt-detail-card.highlight{
  background:linear-gradient(135deg, #eff6ff, #dbeafe);
  border-color:#3b82f6;
}

.receipt-detail-card.amount-card{
  background:linear-gradient(135deg, #f0fdf4, #dcfce7);
  border-color:#10b981;
}

.receipt-detail-card.full-width{
  grid-column:1 / -1;
}

.detail-icon{
  width:44px;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(59,130,246,0.1);
  border-radius:12px;
  flex-shrink:0;
}

.receipt-detail-card.highlight .detail-icon,
.receipt-detail-card.amount-card .detail-icon{
  background:rgba(255,255,255,0.8);
}

.detail-icon i{
  font-size:20px;
  color:#3b82f6;
}

.receipt-detail-card.amount-card .detail-icon i{
  color:#10b981;
}

.detail-content{
  flex:1;
  min-width:0;
}

.detail-label{
  display:block;
  font-size:11px;
  font-weight:700;
  color:#64748b;
  text-transform:uppercase;
  letter-spacing:0.8px;
  margin-bottom:6px;
}

.detail-value{
  display:block;
  font-size:16px;
  font-weight:800;
  color:#0f172a;
  word-break:break-word;
}

.detail-value.amount{
  font-size:22px;
  color:#10b981;
}

/* Status Alerts */
.receipt-status-alert{
  display:flex;
  align-items:flex-start;
  gap:16px;
  padding:18px 20px;
  border-radius:16px;
  margin-bottom:28px;
  border-left:4px solid;
}

.receipt-status-alert i{
  font-size:24px;
  flex-shrink:0;
  margin-top:2px;
}

.receipt-status-alert strong{
  display:block;
  font-size:15px;
  font-weight:800;
  margin-bottom:6px;
}

.receipt-status-alert p{
  margin:0;
  font-size:14px;
  line-height:1.6;
}

.receipt-status-alert.status-info{
  background:#eff6ff;
  border-color:#3b82f6;
  color:#1e40af;
}

.receipt-status-alert.status-info i{
  color:#3b82f6;
}

.receipt-status-alert.status-success{
  background:#f0fdf4;
  border-color:#10b981;
  color:#065f46;
}

.receipt-status-alert.status-success i{
  color:#10b981;
}

.receipt-status-alert.status-warning{
  background:#fffbeb;
  border-color:#f59e0b;
  color:#92400e;
}

.receipt-status-alert.status-warning i{
  color:#f59e0b;
}

/* Tax Info */
.receipt-tax-info{
  margin-bottom:28px;
}

.tax-benefit-card{
  display:flex;
  align-items:flex-start;
  gap:14px;
  padding:16px 20px;
  background:linear-gradient(135deg, #fefce8, #fef9c3);
  border:2px solid #fbbf24;
  border-radius:16px;
  color:#78350f;
  font-size:14px;
  line-height:1.7;
}

.tax-benefit-card i{
  font-size:20px;
  color:#f59e0b;
  flex-shrink:0;
  margin-top:2px;
}

.tax-benefit-card strong{
  font-weight:900;
}

/* Photo Section */
.receipt-photo-section{
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom:24px;
  padding:16px 20px;
  background:#f8fafc;
  border-radius:16px;
  border:2px solid rgba(0,0,0,0.08);
}

.photo-label{
  font-weight:700;
  color:#475569;
  display:flex;
  align-items:center;
  gap:8px;
}

.receipt-photo{
  width:80px;
  height:80px;
  object-fit:cover;
  border-radius:16px;
  border:3px solid #fff;
  box-shadow:0 4px 12px rgba(0,0,0,0.15);
}

/* Signature Section */
.receipt-signature-section{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:32px;
  flex-wrap:wrap;
  margin:40px 0 32px;
  padding-top:32px;
  border-top:3px dashed rgba(0,0,0,0.15);
}

.signature-box{
  flex:1;
  min-width:200px;
}

.signature-img{
  height:70px;
  width:auto;
  max-width:200px;
  object-fit:contain;
  display:block;
  filter:drop-shadow(1px 1px 2px rgba(0,0,0,0.2));
  margin-bottom:8px;
}

.signature-line{
  width:200px;
  height:2px;
  background:#1e293b;
  margin-bottom:8px;
}

.signature-label{
  font-size:14px;
  font-weight:800;
  color:#1e293b;
  margin:8px 0 2px;
}

.signature-sublabel{
  font-size:12px;
  color:#64748b;
  font-weight:600;
  margin:0;
}

.stamp-box{
  text-align:right;
  min-width:180px;
}

.stamp-img{
  height:90px;
  width:auto;
  max-width:180px;
  object-fit:contain;
  filter:drop-shadow(1px 1px 3px rgba(0,0,0,0.2));
  opacity:0.95;
}

.stamp-placeholder{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:20px;
  border:2px dashed #cbd5e1;
  border-radius:12px;
  color:#94a3b8;
  background:#f8fafc;
}

.stamp-placeholder i{
  font-size:32px;
}

.stamp-placeholder span{
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
}

/* Action Buttons */
.receipt-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:24px;
}

.btn-modern{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:12px 24px;
  border-radius:12px;
  font-weight:700;
  font-size:14px;
  text-decoration:none;
  border:none;
  cursor:pointer;
  transition:all 0.3s ease;
  box-shadow:0 2px 8px rgba(0,0,0,0.1);
}

.btn-modern:hover{
  transform:translateY(-2px);
  box-shadow:0 4px 16px rgba(0,0,0,0.15);
}

.btn-modern i{
  font-size:16px;
}

.btn-print{
  background:linear-gradient(135deg, #3b82f6, #2563eb);
  color:#fff;
}

.btn-certificate{
  background:linear-gradient(135deg, #8b5cf6, #7c3aed);
  color:#fff;
}

.btn-dashboard{
  background:linear-gradient(135deg, #64748b, #475569);
  color:#fff;
}

.btn-success{
  background:linear-gradient(135deg, #10b981, #059669);
  color:#fff;
}

/* Footer Note */
.receipt-footer-note{
  padding:20px;
  background:#f8fafc;
  border-radius:16px;
  border:1px solid rgba(0,0,0,0.08);
  font-size:13px;
  line-height:1.8;
  color:#475569;
}

.receipt-footer-note p{
  margin:0 0 8px;
  display:flex;
  align-items:flex-start;
  gap:8px;
}

.receipt-footer-note p:last-child{
  margin-bottom:0;
}

.receipt-footer-note i{
  color:#3b82f6;
  font-size:14px;
  flex-shrink:0;
  margin-top:3px;
}

/* Ensure no print elements show */
@media print{
  .no-print, .receipt-actions{
    display:none !important;
  }
}
/* Fix sidebar overlapping with main content */
.hidden-sidebar {
  position: fixed !important;
  right: -100% !important;
  top: 0 !important;
  height: 100vh !important;
  z-index: 9999 !important;
  transition: right 0.4s ease-in-out !important;
}

.hidden-sidebar:not(.close-sidebar) {
  right: 0 !important;
}

.page-wrapper {
  position: relative !important;
  overflow-x: hidden !important;
}

/* Ensure content doesn't shift when sidebar opens */
.auto-container,
.contact-form-section,
.page-title {
  max-width: 100% !important;
  position: relative !important;
  z-index: 1 !important;
}

/* Overlay when sidebar is open */
.nav-overlay {
  z-index: 9998 !important;
}

/* Fix form input placeholder alignment */
.form-control,
input.form-control,
select.form-control,
textarea.form-control {
  height: auto !important;
  padding: 10px 15px !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
  background: #fff !important;
  color: #1e293b !important;
}

.form-control:focus,
input.form-control:focus,
select.form-control:focus,
textarea.form-control:focus {
  border-color: #ff6347 !important;
  box-shadow: 0 0 0 3px rgba(255, 99, 71, 0.1) !important;
  outline: none !important;
}

.form-control::placeholder,
input.form-control::placeholder,
textarea.form-control::placeholder {
  color: #94a3b8 !important;
  opacity: 1 !important;
  line-height: 1.5 !important;
  vertical-align: middle !important;
}

/* Select dropdown styling */
select.form-control {
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 15px center !important;
  background-size: 12px !important;
  padding-right: 40px !important;
}

/* Form labels */
.form-group label {
  font-weight: 600 !important;
  color: #1e293b !important;
  margin-bottom: 8px !important;
  display: block !important;
  font-size: 14px !important;
}

/* File input styling */
input[type="file"].form-control {
  padding: 10px 15px !important;
  cursor: pointer !important;
}

/* Admin panel form fixes */
.admin-card .form-control {
  height: auto !important;
  padding: 8px 12px !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  border: 1px solid #d1d5db !important;
  border-radius: 6px !important;
}

.admin-card .form-control:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}

/* Responsive form styling */
@media (max-width: 768px) {
  .form-control,
  input.form-control,
  select.form-control,
  textarea.form-control {
    font-size: 16px !important; /* Prevents zoom on iOS */
    padding: 12px 15px !important;
  }
}

/* Form group spacing */
.form-group {
  margin-bottom: 20px !important;
}

.form-group label {
  display: block !important;
  margin-bottom: 8px !important;
}

/* Better alert styling */
.alert {
  border-radius: 10px !important;
  padding: 15px 20px !important;
  margin-bottom: 20px !important;
  border: none !important;
}

.alert-success {
  background: #ecfdf5 !important;
  color: #065f46 !important;
  border-left: 4px solid #10b981 !important;
}

.alert-danger {
  background: #fef2f2 !important;
  color: #991b1b !important;
  border-left: 4px solid #ef4444 !important;
}

.alert-info {
  background: #eff6ff !important;
  color: #1e40af !important;
  border-left: 4px solid #3b82f6 !important;
}

.alert-warning {
  background: #fffbeb !important;
  color: #92400e !important;
  border-left: 4px solid #f59e0b !important;
}

/* Button improvements */
.theme-btn.btn-style-one {
  transition: all 0.3s ease !important;
}

.theme-btn.btn-style-one:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(255, 99, 71, 0.5) !important;
}

/* Page banner responsive */
@media (max-width: 768px) {
  .page-banner h1 {
    font-size: 32px !important;
  }
  
  .page-banner p {
    font-size: 16px !important;
  }
  
  .page-banner {
    padding: 60px 0 40px !important;
  }
}