/* ========================================================================
   Rashtriya Dharma Sena - Main Stylesheet
   ======================================================================== */

:root {
  --primary: #b71c1c;       /* Deep Red */
  --primary-dark: #7f1010;
  --secondary: #ff9800;     /* Golden/Orange */
  --secondary-dark: #e65100;
  --accent: #0d47a1;        /* Dark Blue */
  --bg: #fff8f0;            /* Light Cream */
  --bg-alt: #ffffff;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --border: #f0e6d6;
  --gradient: linear-gradient(135deg, #b71c1c 0%, #e65100 100%);
  --gradient-gold: linear-gradient(135deg, #ff9800 0%, #ffc107 100%);
  --shadow: 0 10px 30px rgba(183,28,28,.12);
  --shadow-lg: 0 20px 50px rgba(183,28,28,.18);
  --radius: 14px;
  --container: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: .25s; }
a:hover { color: var(--secondary-dark); }
h1,h2,h3,h4,h5 { font-family: 'Playfair Display', 'Poppins', serif; font-weight: 700; line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: 1.4rem; }
p { color: var(--muted); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-alt { background: #fff; }
.text-center { text-align: center; }
.mt { margin-top: 14px; }
.w-full { width: 100%; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 50px; font-weight: 600; font-size: 15px;
  transition: .3s; border: none; cursor: pointer; text-transform: uppercase; letter-spacing: .5px;
}
.btn-donate { background: var(--gradient); color: #fff; box-shadow: 0 6px 20px rgba(183,28,28,.35); }
.btn-donate:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 10px 28px rgba(183,28,28,.5); }
.btn-member { background: var(--gradient-gold); color: #fff; box-shadow: 0 6px 20px rgba(255,152,0,.35); }
.btn-member:hover { transform: translateY(-2px); color: #fff; }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: var(--primary); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }

/* ----- Top Bar ----- */
.rds-topbar {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  color: #fff; font-size: 13px; padding: 8px 0;
}
.rds-topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.topbar-info span { margin-right: 20px; }
.topbar-info a, .topbar-social a { color: #fff; }
.topbar-social { display: flex; align-items: center; gap: 14px; }
.topbar-social a:hover { color: var(--secondary); }
.reg-badge { background: rgba(255,255,255,.15); padding: 3px 12px; border-radius: 20px; font-size: 12px; }

/* ----- Header ----- */
.rds-header {
  background: #fff; padding: 12px 0;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
  border-bottom: 3px solid var(--secondary);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.rds-logo { display: flex; align-items: center; gap: 12px; }
.rds-logo img { width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--secondary); }
.logo-text strong { display: block; font-family: 'Playfair Display', serif; font-size: 20px; color: var(--primary); line-height: 1; }
.logo-text small { color: var(--secondary-dark); font-weight: 500; font-size: 12px; }

.desktop-nav ul { list-style: none; display: flex; gap: 5px; }
.desktop-nav a {
  color: var(--text); font-weight: 500; padding: 8px 14px; border-radius: 8px;
  position: relative; font-size: 14px;
}
.desktop-nav a:hover { background: rgba(183,28,28,.08); color: var(--primary); }
.desktop-nav .current-menu-item a, .desktop-nav .current_page_item a { color: var(--primary); font-weight: 600; }

.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .btn { padding: 10px 18px; font-size: 13px; }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 26px; height: 3px; background: var(--primary); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ----- Off-canvas ----- */
.rds-offcanvas-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: .35s; z-index: 999;
}
.rds-offcanvas-backdrop.active { opacity: 1; pointer-events: auto; }
.rds-offcanvas {
  position: fixed; top: 0; right: -360px; width: 340px; max-width: 90vw; height: 100vh;
  background: #fff; z-index: 1000; transition: right .4s cubic-bezier(.4,0,.2,1);
  overflow-y: auto; box-shadow: -10px 0 40px rgba(0,0,0,.2);
  display: flex; flex-direction: column;
}
.rds-offcanvas.active { right: 0; }
.oc-head { display: flex; align-items: center; gap: 12px; padding: 20px; background: var(--gradient); color: #fff; }
.oc-head img { width: 44px; height: 44px; border-radius: 50%; }
.oc-head strong { flex: 1; font-size: 16px; }
.oc-close { background: rgba(255,255,255,.2); border: none; color: #fff; width: 34px; height: 34px; border-radius: 50%; font-size: 22px; cursor: pointer; }
.oc-nav { flex: 1; padding: 10px 0; }
.oc-nav ul { list-style: none; }
.oc-nav a { display: block; padding: 14px 24px; color: var(--text); font-weight: 500; border-bottom: 1px solid var(--border); transition: .2s; }
.oc-nav a:hover { background: var(--bg); color: var(--primary); padding-left: 32px; }
.oc-cta { padding: 20px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--border); }
.oc-contact { padding: 20px; background: var(--bg); font-size: 14px; }
.oc-contact p { margin-bottom: 6px; color: var(--text); }

/* ----- Hero ----- */
.rds-hero {
  position: relative; min-height: 80vh; display: flex; align-items: center;
  color: #fff; overflow: hidden;
  background: linear-gradient(135deg, rgba(127,16,16,.85), rgba(230,81,0,.75)), url('https://images.unsplash.com/photo-1582213782179-e0d53f98f2ca?w=1920') center/cover;
}
.rds-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,193,7,.3), transparent 50%);
}
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 900px; margin: 0 auto; padding: 60px 20px; }
.hero-content .badge {
  display: inline-block; padding: 8px 22px; background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3); border-radius: 50px; font-weight: 500;
  margin-bottom: 20px; backdrop-filter: blur(10px);
}
.hero-content h1 { color: #fff; margin-bottom: 18px; text-shadow: 0 4px 20px rgba(0,0,0,.3); }
.hero-content p { color: rgba(255,255,255,.95); font-size: clamp(1rem, 2vw, 1.2rem); margin-bottom: 32px; }
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ----- Section heading ----- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-head .tag {
  display: inline-block; padding: 6px 18px; background: rgba(183,28,28,.1); color: var(--primary);
  border-radius: 50px; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px;
}
.section-head h2 { margin-bottom: 14px; }
.section-head h2 span { color: var(--primary); }
.section-head p { font-size: 17px; }

/* ----- Cards ----- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.06); transition: .35s;
  border: 1px solid var(--border);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card-img { aspect-ratio: 16/10; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.card:hover .card-img img { transform: scale(1.08); }
.card-body { padding: 22px; }
.card-body h3 { margin-bottom: 8px; font-size: 1.25rem; }
.card-body .meta { color: var(--secondary-dark); font-size: 13px; font-weight: 600; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .5px; }

/* ----- Stats / Counters ----- */
.stats { background: var(--gradient); color: #fff; padding: 70px 0; }
.stats .grid-4 { gap: 20px; }
.stat-item { text-align: center; padding: 20px; }
.stat-item .icon {
  width: 70px; height: 70px; margin: 0 auto 16px; border-radius: 50%;
  background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center;
  font-size: 28px; backdrop-filter: blur(10px);
}
.stat-item .num { font-size: 3rem; font-weight: 800; font-family: 'Playfair Display', serif; }
.stat-item .label { font-size: 15px; opacity: .95; text-transform: uppercase; letter-spacing: 1px; }

/* ----- Activities ----- */
.activity-card {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  aspect-ratio: 4/5; box-shadow: var(--shadow);
}
.activity-card img { width: 100%; height: 100%; object-fit: cover; transition: .6s; }
.activity-card:hover img { transform: scale(1.1); }
.activity-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(127,16,16,.92) 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; color: #fff;
}
.activity-card h3 { color: #fff; margin-bottom: 6px; }
.activity-card p { color: rgba(255,255,255,.85); font-size: 14px; }

/* ----- Donation CTA ----- */
.donation-cta {
  background: var(--gradient); color: #fff; padding: 80px 0;
  position: relative; overflow: hidden;
}
.donation-cta::before {
  content: '🕉️'; position: absolute; top: -40px; right: -40px; font-size: 250px; opacity: .08;
}
.donation-cta .grid-2 { align-items: center; }
.donation-cta h2 { color: #fff; }
.donation-cta p { color: rgba(255,255,255,.95); margin: 16px 0 26px; font-size: 17px; }

/* ----- Team card ----- */
.team-card { text-align: center; }
.team-card .photo {
  width: 180px; height: 180px; margin: 0 auto 16px; border-radius: 50%; overflow: hidden;
  border: 4px solid var(--secondary); box-shadow: var(--shadow);
}
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { margin-bottom: 4px; }
.team-card .role { color: var(--primary); font-weight: 600; margin-bottom: 10px; }
.team-card .socials a { color: var(--muted); margin: 0 5px; font-size: 18px; }
.team-card .socials a:hover { color: var(--primary); }

/* ----- Forms ----- */
.form-card { background: #fff; padding: 36px; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 14px; }
.form-control {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: 15px; transition: .2s; background: #fff;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(183,28,28,.1); }
textarea.form-control { resize: vertical; min-height: 110px; }

/* ----- Testimonials ----- */
.testimonial {
  background: #fff; padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow);
  position: relative; border-left: 4px solid var(--secondary);
}
.testimonial::before { content: '"'; position: absolute; top: -10px; right: 20px; font-size: 100px; color: var(--secondary); opacity: .2; font-family: serif; }
.testimonial .user { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.testimonial .user img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }

/* ----- Partners ----- */
.partners { background: #fff; }
.partner-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 30px; align-items: center; }
.partner-grid img { filter: grayscale(1); opacity: .6; transition: .3s; max-height: 60px; margin: 0 auto; }
.partner-grid img:hover { filter: grayscale(0); opacity: 1; }

/* ----- Pricing / Plans ----- */
.plan-card {
  background: #fff; padding: 36px 28px; border-radius: var(--radius); text-align: center;
  border: 2px solid var(--border); transition: .3s; position: relative;
}
.plan-card.featured { border-color: var(--primary); transform: scale(1.04); box-shadow: var(--shadow-lg); }
.plan-card.featured::before {
  content: 'Most Popular'; position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gradient); color: #fff; padding: 5px 20px; border-radius: 50px; font-size: 12px; font-weight: 600;
}
.plan-card h3 { color: var(--primary); }
.plan-card .price { font-size: 3rem; font-weight: 800; color: var(--text); margin: 16px 0; font-family: 'Playfair Display', serif; }
.plan-card .price small { font-size: 1rem; color: var(--muted); }
.plan-card ul { list-style: none; text-align: left; margin: 24px 0; }
.plan-card li { padding: 8px 0 8px 28px; position: relative; color: var(--muted); }
.plan-card li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

/* ----- Footer ----- */
.footer-cta { background: var(--gradient); color: #fff; padding: 50px 0; text-align: center; }
.footer-cta h2 { color: #fff; margin-bottom: 12px; }
.footer-cta p { color: rgba(255,255,255,.95); margin-bottom: 24px; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.rds-footer { background: #1a0d0d; color: #d4c5b5; }
.footer-main { padding: 70px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.footer-brand img { width: 50px; height: 50px; border-radius: 50%; }
.footer-grid h4 { color: #fff; margin-bottom: 18px; font-size: 16px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: #d4c5b5; }
.footer-grid a:hover { color: var(--secondary); padding-left: 4px; }
.footer-grid p { color: #d4c5b5; font-size: 14px; margin-bottom: 10px; }
.social-links { display: flex; gap: 10px; margin-top: 16px; }
.social-links a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.social-links a:hover { background: var(--secondary); }
.newsletter-form { display: flex; gap: 6px; margin-top: 14px; }
.newsletter-form input { flex: 1; padding: 10px 14px; border-radius: 8px; border: none; }
.newsletter-form button { background: var(--secondary); color: #fff; border: none; padding: 0 16px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 14px; }

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed; bottom: 24px; right: 24px; width: 58px; height: 58px;
  background: #25d366; color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 30px;
  z-index: 50; box-shadow: 0 10px 30px rgba(37,211,102,.4);
  animation: pulse 2s infinite;
}
.floating-whatsapp:hover { color: #fff; transform: scale(1.1); }
@keyframes pulse { 0%,100% { box-shadow: 0 10px 30px rgba(37,211,102,.4);} 50% { box-shadow: 0 10px 30px rgba(37,211,102,.7);} }

/* Animations */
.fade-in { animation: fadeUp .8s ease forwards; opacity: 0; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px);} to { opacity: 1; transform: translateY(0);} }

/* Page banner */
.page-banner {
  background: linear-gradient(135deg, rgba(127,16,16,.9), rgba(230,81,0,.8)), url('https://images.unsplash.com/photo-1591622180561-71472d7d0aaf?w=1600') center/cover;
  color: #fff; padding: 100px 0 70px; text-align: center;
}
.page-banner h1 { color: #fff; }
.page-banner p { color: rgba(255,255,255,.9); margin-top: 10px; }
.breadcrumb { margin-top: 16px; font-size: 14px; opacity: .9; }
.breadcrumb a { color: var(--secondary); }

/* Two col layout */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.two-col img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* Counter list utility */
.counter { font-variant-numeric: tabular-nums; }

/* ===== v1.2 Additions: dropdown menu, dashboard, ID card, certificate ===== */

/* Desktop dropdown */
.desktop-nav .menu { position: relative; }
.desktop-nav .has-dropdown { position: relative; }
.desktop-nav .dropdown-menu {
	flex-direction: column;
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: #fff; border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.14);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: .2s; list-style: none; z-index: 200; border-top: 3px solid var(--secondary);
}
.desktop-nav .has-dropdown:hover > .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.desktop-nav .dropdown-menu li { display: block; }
.desktop-nav .dropdown-menu a { display: block; padding: 10px 14px; border-radius: 6px; font-size: 14px; color: var(--text); }
.desktop-nav .dropdown-menu a:hover { background: rgba(183,28,28,.08); color: var(--primary); }
.desktop-nav .dd-caret { font-size: 10px; margin-left: 4px; opacity: .7; }

/* Mobile dropdown - show inline */
.menu-mobile .has-dropdown .dropdown-menu {
  display: block; list-style: none; padding: 0 0 0 16px; margin-top: 4px;
  border-left: 2px solid var(--border);
}
.menu-mobile .has-dropdown .dropdown-menu a { font-size: 14px; opacity: .85; padding: 8px 10px; display: block; }
.menu-mobile .dd-caret { display: none; }

.topbar-login { background: rgba(255,255,255,.18); padding: 4px 12px; border-radius: 20px; font-size: 12px; color: #fff !important; }
.topbar-login:hover { background: var(--secondary); }
.hide-sm { } .hide-md { }
@media (max-width: 600px) { .hide-sm { display: none; } }
@media (max-width: 900px) { .hide-md { display: none; } }

/* Alerts */
.rds-alert { padding: 14px 18px; border-radius: 10px; margin: 16px 0; font-size: 14px; }
.rds-alert.success { background: #d4edda; color: #155724; border-left: 4px solid #28a745; }
.rds-alert.error { background: #f8d7da; color: #721c24; border-left: 4px solid #dc3545; }
.rds-alert.info { background: #fff3cd; color: #856404; border-left: 4px solid var(--secondary); }

/* Form additions */
.form-section-title { margin: 22px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--border); color: var(--primary); font-size: 16px; }
.pay-tabs { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.pay-tab { flex: 1; min-width: 180px; padding: 14px; border: 2px solid var(--border); border-radius: 10px; cursor: pointer; display: flex; align-items: center; gap: 10px; font-weight: 600; }
.pay-tab input { margin: 0; }
.pay-tab:has(input:checked) { border-color: var(--primary); background: rgba(183,28,28,.06); color: var(--primary); }
.pay-panel { padding: 16px; background: #fafafa; border-radius: 10px; margin-bottom: 16px; }
.qr-box { display: flex; gap: 20px; flex-wrap: wrap; }
.qr-box > div { flex: 1; min-width: 220px; }
.muted { color: var(--muted); font-size: 13px; }

/* Dashboard */
.dash-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 24px; }
@media (max-width: 800px) { .dash-wrap { grid-template-columns: 1fr; } }
.dash-side { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); height: fit-content; position: sticky; top: 90px; }
.dash-user { text-align: center; padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.dash-user img, .dash-user .ph { width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 10px; object-fit: cover; border: 3px solid var(--secondary); }
.dash-user .ph { background: var(--gradient); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 700; }
.dash-user strong { display: block; font-size: 16px; margin-top: 4px; }
.dash-user .mid { display: block; font-size: 12px; color: var(--muted); margin: 4px 0; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.badge-pending { background: #fff3cd; color: #856404; }
.badge-approved { background: #d4edda; color: #155724; }
.badge-rejected { background: #f8d7da; color: #721c24; }
.dash-nav { display: flex; flex-direction: column; gap: 4px; }
.dash-nav a { padding: 10px 14px; border-radius: 8px; color: var(--text); font-weight: 500; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.dash-nav a:hover, .dash-nav a.active { background: var(--gradient); color: #fff; }
.dash-main { min-height: 400px; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.dash-grid .card.pad { padding: 18px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.dash-grid h3 { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; font-family: 'Poppins', sans-serif; }
.dash-grid .big { font-size: 22px; font-weight: 700; color: var(--primary); margin-top: 8px; }

.print-actions { margin-bottom: 20px; }

/* ID Card */
.rds-idcard {
  max-width: 480px; margin: 0 auto; background: #fff; border-radius: 18px;
  overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.15);
  border: 3px solid var(--secondary);
}
.ic-head { background: var(--gradient); color: #fff; padding: 16px 20px; display: flex; align-items: center; gap: 12px; }
.ic-head img { width: 52px; height: 52px; border-radius: 50%; background: #fff; padding: 4px; }
.ic-head strong { display: block; font-size: 16px; font-family: 'Playfair Display', serif; }
.ic-head small { font-size: 11px; opacity: .9; }
.ic-body { display: flex; gap: 18px; padding: 20px; }
.ic-photo img, .ic-photo .ph-lg { width: 110px; height: 130px; object-fit: cover; border-radius: 8px; border: 2px solid var(--secondary); }
.ic-photo .ph-lg { background: var(--gradient); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 48px; font-weight: 700; }
.ic-info h3 { font-size: 18px; color: var(--primary); margin-bottom: 6px; }
.ic-info p { font-size: 13px; color: var(--text); margin: 2px 0; }
.ic-foot { background: #f8f8f8; padding: 10px 20px; display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); border-top: 1px dashed var(--border); }

/* Certificate */
.rds-certificate { max-width: 900px; margin: 0 auto; }
.cert-border {
  background: #fff; border: 6px double var(--secondary); padding: 50px 60px; text-align: center;
  position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.1);
}
.cert-border::before, .cert-border::after { content: ''; position: absolute; inset: 12px; border: 1px solid var(--primary); pointer-events: none; }
.cert-logo { width: 80px; margin: 0 auto 10px; border-radius: 50%; border: 2px solid var(--secondary); }
.cert-border h4 { color: var(--primary); font-size: 14px; letter-spacing: 4px; text-transform: uppercase; margin-bottom: 6px; }
.cert-border h1 { font-size: 36px; color: var(--primary); margin-bottom: 22px; }
.cert-body { font-size: 15px; color: var(--text); max-width: 640px; margin: 0 auto 14px; line-height: 1.7; }
.cert-name { font-size: 32px; color: var(--secondary-dark); font-family: 'Playfair Display', serif; margin: 12px 0 18px; border-bottom: 2px dashed var(--secondary); display: inline-block; padding-bottom: 4px; }
.cert-meta { display: flex; justify-content: center; gap: 36px; margin: 28px 0; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.cert-sign { display: flex; justify-content: space-around; margin-top: 50px; gap: 30px; }
.cert-sign div { text-align: center; }
.sig-line { display: block; width: 180px; border-bottom: 2px solid var(--text); margin: 0 auto 6px; height: 30px; }
.cert-sign small { display: block; font-size: 11px; color: var(--muted); }
.cert-sign strong { display: block; font-size: 13px; color: var(--primary); margin-top: 2px; }

/* Print styles */
@media print {
  body * { visibility: hidden; }
  .rds-idcard, .rds-idcard *, .rds-certificate, .rds-certificate * { visibility: visible; }
  .rds-idcard, .rds-certificate { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none !important; }
  .rds-header, .rds-topbar, .rds-footer, .page-banner, .dash-side, .dash-nav, .print-actions { display: none !important; }
}
