/* ==========================================================================
   SRIJON FOUNDATION POSTER TEMPLATES STYLESHEET (templates.css)
   Ultra-Aesthetic, Modern & Highly Organized Editorial Poster Stylesheet
   ========================================================================== */

/* === 1. TOPBAR ACCENTS === */
.sf-topbar--blue {
  height: 6px;
  background: linear-gradient(90deg, #1B4B7A, #2563A4, #3B82F6);
  width: 100%;
}
.sf-topbar--orange {
  height: 6px;
  background: linear-gradient(90deg, #C97420, #E88B2E, #F5C882);
  width: 100%;
}
.sf-topbar--red {
  height: 6px;
  background: linear-gradient(90deg, #991B1B, #DC2626, #EF4444);
  width: 100%;
}

/* === 2. GENERAL LAYOUT & SPACING HELPERS === */
.sf-center-align {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.sf-margin-top-large {
  margin-top: 32px;
}
.sf-margin-top-auto {
  margin-top: auto;
  padding-bottom: 24px;
}
.sf-margin-y-large {
  margin-top: 24px;
  margin-bottom: 24px;
}
.sf-padding-large {
  padding: 36px;
}
.sf-font-bold {
  font-weight: 700;
}

/* === 3. NOTICE LAYOUT (layoutNotice) === */
.sf-meta-row {
  display: flex;
  justify-content: space-between;
  padding: 20px 44px 12px;
  font-family: var(--sf-font-bn);
  font-size: 14px;
  color: var(--sf-gray-700);
  font-weight: 600;
  border-bottom: 1px dashed var(--sf-gray-200);
}
.sf-notice-title-large {
  font-family: var(--sf-font-bn);
  font-weight: 900;
  font-size: 46px;
  color: var(--sf-blue-deep);
  text-align: center;
  margin: 20px 0 8px;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.sf-notice-title {
  font-family: var(--sf-font-bn);
  font-weight: 700;
  font-size: 24px;
  color: var(--sf-blue);
  text-align: center;
  margin-bottom: 28px;
  padding: 0 44px;
  line-height: 1.45;
}
.sf-notice-body {
  font-family: var(--sf-font-bn);
  font-size: 17px;
  line-height: 1.95;
  color: #1E293B;
  padding: 0 48px;
  text-align: justify;
  flex: 1;
}
.sf-textarea-like {
  min-height: 240px;
  display: block;
  white-space: pre-wrap;
}
.sf-signature-row {
  display: flex;
  justify-content: space-between;
  padding: 44px 48px 28px;
  margin-top: auto;
}

/* === 4. SCHOLARSHIP & CAMPAIGN LAYOUTS === */
.sf-hero-title {
  font-family: var(--sf-font-bn);
  font-weight: 900;
  font-size: 46px;
  color: var(--sf-blue-deep);
  margin: 18px 0 10px;
  line-height: 1.25;
  padding: 0 28px;
}
.sf-hero-subtitle {
  font-family: var(--sf-font-bn-alt);
  font-weight: 600;
  font-size: 22px;
  color: var(--sf-orange-deep);
  margin-bottom: 24px;
  padding: 0 28px;
}
.sf-content-area {
  padding: 20px 40px;
}

.sf-campaign-banner {
  background: linear-gradient(135deg, #0F2D4A 0%, #1B4B7A 50%, #2563A4 100%);
  color: #FFFFFF;
  padding: 52px 40px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(15,45,74,0.15);
  position: relative;
  overflow: hidden;
}
.sf-campaign-banner::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 150px;
  background: radial-gradient(circle at right, rgba(232,139,46,0.15), transparent);
  pointer-events: none;
}
.sf-hero-title-white {
  font-family: var(--sf-font-bn);
  font-weight: 900;
  font-size: 46px;
  color: #FFFFFF;
  line-height: 1.25;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.sf-hero-subtitle-white {
  font-family: var(--sf-font-bn-alt);
  font-weight: 600;
  font-size: 22px;
  color: var(--sf-orange-light);
  margin-top: 12px;
}
.sf-campaign-body {
  padding: 36px 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sf-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 12px;
}
.sf-body-text {
  font-family: var(--sf-font-bn);
  font-size: 17px;
  line-height: 1.85;
  color: var(--sf-gray-700);
  padding: 0 12px;
}

/* === 5. EVENT LAYOUT === */
.sf-event-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 28px;
  padding: 28px 40px;
  flex: 1;
}
.sf-event-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sf-event-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sf-section-title {
  font-family: var(--sf-font-bn);
  font-weight: 800;
  font-size: 20px;
  color: var(--sf-blue-deep);
  border-bottom: 2.5px solid var(--sf-orange);
  padding-bottom: 8px;
  margin-bottom: 14px;
  display: inline-block;
}
.sf-guests-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* === 6. ACHIEVEMENT LAYOUT === */
.sf-name-large {
  font-family: var(--sf-font-bn);
  font-weight: 900;
  font-size: 40px;
  color: var(--sf-blue-deep);
  margin: 18px 0 10px;
  text-align: center;
}
.sf-congratulations {
  font-family: var(--sf-font-bn-alt);
  font-weight: 700;
  font-size: 22px;
  color: var(--sf-orange-deep);
  margin-top: 28px;
  text-align: center;
  background: var(--sf-orange-50);
  padding: 12px 28px;
  border-radius: 30px;
  border: 1.5px dashed var(--sf-orange);
  display: inline-block;
  box-shadow: 0 2px 8px rgba(232,139,46,0.1);
}

/* === 7. PHOTO GALLERY LAYOUT === */
.sf-layout-photo {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.sf-photo-gallery {
  padding: 28px 40px;
  flex: 1;
}
.sf-photo-layout-single .sf-photo {
  height: 480px;
  width: 100%;
}
.sf-photo-layout-double {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.sf-photo-layout-double .sf-photo {
  height: 420px;
}
.sf-photo-layout-triple {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sf-photo-triple-main .sf-photo {
  height: 300px;
}
.sf-photo-triple-sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.sf-photo-triple-sub .sf-photo {
  height: 180px;
}
.sf-photo-caption {
  background-color: var(--sf-gray-50);
  border-top: 1px solid var(--sf-gray-200);
  padding: 24px 40px;
}
.sf-caption-title {
  font-family: var(--sf-font-bn);
  font-weight: 800;
  font-size: 22px;
  color: var(--sf-blue-deep);
}
.sf-caption-text {
  font-family: var(--sf-font-bn);
  font-size: 15px;
  line-height: 1.75;
  color: var(--sf-gray-700);
  margin-top: 6px;
}

/* === 8. SPECIAL DAY LAYOUT === */
.sf-layout-special-day {
  position: relative;
  background: radial-gradient(ellipse at top, #EBF2FA 0%, #FFFFFF 70%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px;
}
.sf-special-day-content {
  margin: auto 0;
  padding: 36px 24px;
}
.sf-display-title {
  font-family: var(--sf-font-bn);
  font-weight: 900;
  font-size: 58px;
  color: var(--sf-blue-deep);
  line-height: 1.15;
  margin-bottom: 14px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.sf-display-date {
  font-family: var(--sf-font-bn-alt);
  font-weight: 700;
  font-size: 30px;
  color: var(--sf-orange);
  margin-bottom: 32px;
}
.sf-special-day-quote {
  font-family: var(--sf-font-bn);
  font-size: 21px;
  line-height: 1.85;
  color: var(--sf-gray-700);
  max-width: 80%;
  margin: 0 auto;
  font-style: italic;
}

/* === 9. INVITATION LAYOUT === */
.sf-layout-invitation {
  background: #FAF8F5;
  padding: 24px;
}
.sf-invitation-border {
  border: 4px double #D4AF37;
  padding: 28px;
  min-height: calc(100% - 48px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 0 20px rgba(212,175,55,0.08);
}
.sf-invitation-title {
  font-family: var(--sf-font-bn);
  font-weight: 900;
  font-size: 52px;
  color: var(--sf-blue-deep);
  margin-bottom: 18px;
  letter-spacing: 0.06em;
}
.sf-invitation-salutation {
  font-family: var(--sf-font-bn);
  font-weight: 700;
  font-size: 22px;
  color: var(--sf-gray-900);
  margin-bottom: 18px;
}
.sf-invitation-body {
  font-family: var(--sf-font-bn);
  font-size: 17px;
  line-height: 1.95;
  color: var(--sf-gray-700);
  max-width: 85%;
  margin: 0 auto 28px;
}
.sf-invitation-details {
  max-width: 75%;
  margin: 0 auto 36px;
}
.sf-invitation-closing {
  font-family: var(--sf-font-bn);
  font-size: 16px;
  color: var(--sf-gray-700);
  line-height: 1.6;
}

/* === 10. CERTIFICATE LAYOUT === */
.sf-layout-certificate {
  background: #FFFFFF;
  padding: 24px;
}
.sf-certificate-border {
  border: 12px solid var(--sf-blue-deep);
  padding: 6px;
  height: 100%;
}
.sf-certificate-inner {
  border: 2.5px solid var(--sf-orange);
  padding: 28px 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: radial-gradient(ellipse at center, #FFFFFF 60%, #FFFDF9 100%);
}
.sf-certificate-title {
  font-family: var(--sf-font-bn);
  font-weight: 900;
  font-size: 56px;
  color: var(--sf-blue-deep);
  text-align: center;
  margin: 8px 0;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.sf-cert-text {
  font-family: var(--sf-font-bn);
  font-size: 18px;
  color: var(--sf-gray-700);
  line-height: 1.7;
}
.sf-cert-name {
  font-family: var(--sf-font-bn);
  font-weight: 900;
  font-size: 44px;
  color: var(--sf-orange-deep);
  margin: 14px 0;
  border-bottom: 2.5px dashed var(--sf-gray-300);
  display: inline-block;
  padding: 0 28px 6px;
}
.sf-certificate-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
  padding-top: 24px;
}
.sf-cert-meta {
  font-family: var(--sf-font-bn);
  font-size: 14px;
  color: var(--sf-gray-500);
  line-height: 1.6;
}
.sf-cert-signatures {
  display: flex;
  gap: 48px;
}

/* === 11. LIST LAYOUT === */
.sf-hero-title-small {
  font-family: var(--sf-font-bn);
  font-weight: 900;
  font-size: 34px;
  color: var(--sf-blue-deep);
  text-align: center;
  margin: 24px 0;
}
.sf-list-container {
  padding: 0 40px 24px;
  flex: 1;
}
.sf-notes-section {
  background-color: var(--sf-orange-50);
  border-left: 4px solid var(--sf-orange);
  padding: 18px 24px;
  margin: 0 40px 28px;
  border-radius: 0 8px 8px 0;
}
.sf-notes-title {
  color: var(--sf-orange-deep);
  font-size: 15px;
  margin-bottom: 4px;
}
.sf-notes-body {
  font-family: var(--sf-font-bn);
  font-size: 14px;
  color: var(--sf-gray-700);
  line-height: 1.65;
}

/* === 12. SOCIAL LAYOUT === */
.sf-layout-social {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.sf-social-content {
  flex: 1;
  padding: 24px 16px;
}
.sf-display-title-social {
  font-family: var(--sf-font-bn);
  font-weight: 900;
  font-size: 44px;
  color: var(--sf-blue-deep);
  margin: 18px 0 14px;
  line-height: 1.2;
}
.sf-social-body {
  font-family: var(--sf-font-bn);
  font-size: 18px;
  line-height: 1.75;
  color: var(--sf-gray-700);
  margin-bottom: 28px;
}
.sf-social-info {
  width: 100%;
  max-width: 420px;
}

/* === 13. DASHBOARD & GALLERY UI === */
.sf-gallery-section {
  padding: 28px 36px;
  max-width: 1440px;
  margin: 0 auto;
}
.sf-category-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 4px 14px;
  scrollbar-width: thin;
}
.sf-category-tab {
  padding: 9px 20px;
  border-radius: 24px;
  font-family: var(--sf-font-bn);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  background: var(--sf-white);
  border: 1px solid var(--sf-gray-200);
  color: var(--sf-gray-700);
  transition: all 0.22s ease;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.sf-category-tab:hover {
  background: var(--sf-blue-50);
  border-color: var(--sf-blue);
  color: var(--sf-blue);
  transform: translateY(-1px);
}
.sf-category-tab--active {
  background: linear-gradient(135deg, #1B4B7A 0%, #2563A4 100%) !important;
  color: #FFFFFF !important;
  border-color: var(--sf-blue-deep) !important;
  box-shadow: 0 4px 12px rgba(27,75,122,0.3);
}

.sf-format-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.sf-btn {
  padding: 9px 18px;
  border-radius: 8px;
  font-family: var(--sf-font-en);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.22s ease;
  border: 1px solid transparent;
}
.sf-btn--primary {
  background: linear-gradient(135deg, #1B4B7A 0%, #2563A4 100%);
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(37,99,164,0.25);
}
.sf-btn--primary:hover {
  background: #0F2D4A;
  transform: translateY(-1px);
}
.sf-btn--outline {
  background: #FFFFFF;
  border-color: var(--sf-gray-300);
  color: var(--sf-gray-700);
}
.sf-btn--outline:hover {
  border-color: var(--sf-blue);
  color: var(--sf-blue);
  background: var(--sf-blue-50);
}

.sf-search-input {
  padding: 11px 18px;
  border: 1.5px solid var(--sf-gray-300);
  border-radius: 10px;
  font-family: var(--sf-font-bn);
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
  background: #FFFFFF;
}
.sf-search-input:focus {
  border-color: var(--sf-blue);
  box-shadow: 0 0 0 3px rgba(37,99,164,0.18);
}

.sf-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
  margin-top: 20px;
}
.sf-gallery-card {
  background: #FFFFFF;
  border: 1px solid var(--sf-gray-200);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.28s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.sf-gallery-card:hover {
  box-shadow: 0 12px 30px rgba(37,99,164,0.18);
  transform: translateY(-4px);
  border-color: var(--sf-blue);
}
.sf-gallery-card__accent {
  height: 5px;
  width: 100%;
}
.sf-gallery-card__preview {
  height: 130px;
  background: radial-gradient(ellipse at center, #F0F6FC 0%, #EBF2FA 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--sf-gray-100);
  position: relative;
}
.sf-gallery-card__body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.sf-gallery-card__id {
  font-family: var(--sf-font-en);
  font-weight: 800;
  font-size: 11px;
  color: var(--sf-orange-deep);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.sf-gallery-card__title {
  font-family: var(--sf-font-bn);
  font-weight: 700;
  font-size: 16.5px;
  color: var(--sf-gray-900);
  line-height: 1.35;
  margin-bottom: 3px;
}
.sf-gallery-card__subtitle {
  font-family: var(--sf-font-en);
  font-size: 12px;
  color: var(--sf-gray-500);
  margin-bottom: 14px;
}
.sf-gallery-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.sf-gallery-card__category {
  font-family: var(--sf-font-bn);
  font-weight: 600;
  color: var(--sf-blue-deep);
}
.sf-gallery-card__format {
  padding: 3px 9px;
  background: var(--sf-blue-light);
  border-radius: 6px;
  font-family: var(--sf-font-en);
  font-weight: 700;
  font-size: 10px;
  color: var(--sf-blue-deep);
}

/* Viewer Toolbar */
.sf-viewer-toolbar, .sf-template-controls {
  background: #FFFFFF;
  border-bottom: 1px solid var(--sf-gray-200);
  padding: 14px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 60px;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.sf-format-switcher {
  display: flex;
  gap: 5px;
  background: var(--sf-gray-100);
  padding: 4px;
  border-radius: 10px;
}
.sf-viewer-stage, .sf-template-stage {
  background: #E2E8F0;
  min-height: calc(100vh - 120px);
  padding: 44px 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: auto;
}

/* === 14. RESPONSIVE SCALING === */
@media screen and (max-width: 1280px) {
  .sf-viewer-stage .sf-format-square,
  .sf-viewer-stage .sf-format-portrait,
  .sf-viewer-stage .sf-format-story {
    transform: scale(0.78);
    transform-origin: top center;
    margin-bottom: -180px;
  }
}
@media screen and (max-width: 900px) {
  .sf-viewer-stage .sf-format-square,
  .sf-viewer-stage .sf-format-portrait,
  .sf-viewer-stage .sf-format-story,
  .sf-viewer-stage .sf-format-a4 {
    transform: scale(0.55);
    transform-origin: top center;
    margin-bottom: -350px;
  }
}

/* === 15. REFERENCE INSPIRED GRAPHIC POSTER LAYOUTS === */

/* 1. Repeated Typography Layout */
.sf-layout-repeat-typo {
  position: relative;
  background: radial-gradient(ellipse at top, #1E4B7A 0%, #0F2D4A 60%, #081B2E 100%);
  color: #FFFFFF;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.sf-repeat-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  opacity: 0.16;
  z-index: 1;
}
.sf-repeat-bg-text {
  font-family: var(--sf-font-en);
  font-size: 88px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 0.95;
  white-space: nowrap;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.9);
  color: transparent;
}
.sf-repeat-top-bar {
  position: relative;
  z-index: 2;
  padding: 28px 36px;
  text-align: center;
}
.sf-repeat-event-title {
  font-family: var(--sf-font-en);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sf-orange);
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
.sf-repeat-subject-area {
  position: relative;
  z-index: 3;
  margin: 0 auto;
  width: 82%;
  max-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.35));
}
.sf-repeat-bottom-banner {
  position: relative;
  z-index: 4;
  background: linear-gradient(90deg, #15803D 0%, #16A34A 50%, #22C55E 100%);
  padding: 18px 36px;
  text-align: center;
  box-shadow: 0 -6px 24px rgba(0,0,0,0.35);
}
.sf-repeat-winner-name {
  font-family: var(--sf-font-en);
  font-weight: 900;
  font-size: 34px;
  color: #FFFFFF;
  margin: 0;
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
  letter-spacing: 0.04em;
}
.sf-repeat-winner-sub {
  font-family: var(--sf-font-en);
  font-weight: 800;
  font-size: 24px;
  color: #FEF08A;
  margin: 0;
}
.sf-repeat-footer {
  position: relative;
  z-index: 4;
  background: #081B2E;
  padding: 14px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}
.sf-repeat-mini-logo {
  height: 30px;
  border-radius: 50%;
  margin-right: 10px;
}

/* 2. Subject Cutout Layout */
.sf-layout-subject-cutout {
  position: relative;
  background: #FFFFFF;
  background-image: radial-gradient(#CBD5E1 0.85px, transparent 0.85px);
  background-size: 18px 18px;
  display: flex;
  overflow: hidden;
}
.sf-cutout-side-ribbon {
  width: 48px;
  background: linear-gradient(180deg, #16A34A 0%, #15803D 100%);
  color: #FFFFFF;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sf-font-en);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 20px 0;
  box-shadow: 2px 0 10px rgba(0,0,0,0.08);
}
.sf-cutout-content-left {
  flex: 1;
  padding: 52px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
}
.sf-cutout-badge {
  font-family: var(--sf-font-en);
  font-weight: 900;
  font-size: 40px;
  color: #16A34A;
  line-height: 1;
  letter-spacing: -0.01em;
}
.sf-cutout-category-title {
  font-family: var(--sf-font-en);
  font-weight: 900;
  font-size: 28px;
  color: #15803D;
  background: #DCFCE7;
  display: inline-block;
  padding: 5px 14px;
  margin-top: 10px;
  border-radius: 6px;
  border: 1px solid #86EFAC;
}
.sf-cutout-date {
  font-family: var(--sf-font-en);
  font-weight: 700;
  font-size: 22px;
  color: #334155;
  margin-top: 14px;
}
.sf-cutout-person-info {
  margin-top: 44px;
}
.sf-cutout-name {
  font-family: var(--sf-font-en);
  font-weight: 900;
  font-size: 38px;
  color: #0F172A;
}
.sf-cutout-designation {
  font-family: var(--sf-font-en);
  font-weight: 600;
  font-size: 20px;
  color: #16A34A;
  margin-top: 6px;
}
.sf-cutout-footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 44px;
}

.sf-cutout-photo-right {
  width: 50%;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sf-cutout-bg-shape {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 88%;
  background: linear-gradient(135deg, #16A34A 0%, #15803D 100%);
  clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
  z-index: 1;
}
.sf-cutout-photo-right .sf-photo {
  position: relative;
  z-index: 2;
  width: 88%;
  height: 92%;
  margin-bottom: 0;
  border: none;
  background: transparent;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.18));
}

/* 3. Framed Photo Layout */
.sf-layout-framed-photo {
  position: relative;
  background: radial-gradient(circle at center, #1E4D7B 0%, #0F2D4A 100%);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #FFFFFF;
}
.sf-framed-top-title {
  font-family: var(--sf-font-en);
  font-weight: 900;
  font-size: 26px;
  text-align: center;
  letter-spacing: 0.1em;
  color: #FEF08A;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
.sf-framed-photo-container {
  position: relative;
  margin: 24px auto;
  width: 92%;
  padding: 14px;
  background: #FFFFFF;
  box-shadow: 0 14px 36px rgba(0,0,0,0.45);
  border-radius: 4px;
}
.sf-script-overlay {
  position: absolute;
  top: -26px;
  left: -22px;
  font-family: 'Hind Siliguri', cursive;
  font-size: 46px;
  font-weight: 700;
  color: #FACC15;
  transform: rotate(-8deg);
  z-index: 10;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}
.sf-framed-bottom-info {
  background: linear-gradient(90deg, #15803D 0%, #16A34A 100%);
  color: #FFFFFF;
  padding: 18px 28px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.sf-framed-headline {
  font-family: var(--sf-font-en);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: 0.05em;
}
.sf-framed-subheadline {
  font-family: var(--sf-font-en);
  font-weight: 900;
  font-size: 34px;
  color: #FEF08A;
  margin-top: 4px;
}
.sf-framed-footer {
  margin-top: 18px;
  text-align: center;
}

/* 4. Zoom Call Grid Layout */
.sf-layout-zoom-grid {
  position: relative;
  background: #FAFAFA;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.sf-zoom-side-ribbon {
  position: absolute;
  right: 0;
  top: 130px;
  background: #16A34A;
  color: #FFFFFF;
  padding: 10px 18px;
  writing-mode: vertical-rl;
  font-family: var(--sf-font-en);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.14em;
}
.sf-zoom-top-badge {
  background: #DCFCE7;
  color: #15803D;
  font-family: var(--sf-font-en);
  font-weight: 800;
  font-size: 13px;
  padding: 7px 16px;
  border-radius: 24px;
  border: 1px solid #86EFAC;
}
.sf-zoom-headline-area {
  padding: 0 36px;
}
.sf-zoom-main-title {
  font-family: var(--sf-font-en);
  font-weight: 900;
  font-size: 52px;
  color: #15803D;
  line-height: 1;
}
.sf-zoom-date-text {
  font-family: var(--sf-font-en);
  font-weight: 700;
  font-size: 22px;
  color: #334155;
  margin-top: 10px;
}
.sf-zoom-grid-stage {
  padding: 24px 36px;
}
.sf-zoom-grid-mockup .sf-photo {
  height: 400px;
  border: 3.5px solid #16A34A;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(22,163,74,0.15);
}
.sf-zoom-bottom-status {
  background: #15803D;
  color: #FFFFFF;
  padding: 18px;
  text-align: center;
  font-family: var(--sf-font-en);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   26. PREMIUM POLISH LAYER — global refinement for every template
   Applies to all poster format containers without changing their layout.
   ========================================================================== */

/* 26.1 Typography refinement */
.sf-format-a4, .sf-format-square, .sf-format-portrait,
.sf-format-story, .sf-format-wide, .sf-format-certificate {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
.sf-format-a4 h1, .sf-format-square h1, .sf-format-portrait h1,
.sf-format-story h1, .sf-format-wide h1, .sf-format-certificate h1,
.sf-format-a4 h2, .sf-format-square h2, .sf-format-portrait h2,
.sf-format-story h2, .sf-format-wide h2, .sf-format-certificate h2 {
  text-wrap: balance;
  letter-spacing: -0.005em;
}
.sf-display, .sf-headline, .sf-notice-title-large { text-wrap: balance; }

/* 26.2 Paper depth — subtle vignette + hairline inner frame */
.sf-format-a4::after, .sf-format-square::after, .sf-format-portrait::after,
.sf-format-story::after, .sf-format-wide::after, .sf-format-certificate::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  box-shadow: inset 0 0 0 1px rgba(15,45,74,0.06),
              inset 0 -120px 160px -120px rgba(15,45,74,0.10);
}

/* 26.3 Elevated, refined info cards */
.sf-info-card {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--sf-gray-50) 100%);
  border: 1px solid var(--sf-gray-200);
  border-left: 3px solid var(--sf-blue);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(15,45,74,0.05);
  align-items: center;
}
.sf-info-card--orange { border-left-color: var(--sf-orange); }
.sf-info-card--highlight {
  background: linear-gradient(135deg, var(--sf-blue-deep), var(--sf-blue));
  border: none;
  box-shadow: 0 8px 22px -10px rgba(27,75,122,0.55);
}
.sf-info-card__label { letter-spacing: 0.005em; }

/* 26.4 Buttons & badges */
.sf-cta {
  background: linear-gradient(135deg, var(--sf-orange), var(--sf-orange-deep));
  box-shadow: 0 8px 20px -8px rgba(201,116,32,0.65);
  letter-spacing: 0.01em;
}
.sf-cta--blue {
  background: linear-gradient(135deg, var(--sf-blue), var(--sf-blue-deep));
  box-shadow: 0 8px 20px -8px rgba(27,75,122,0.6);
}
.sf-cta--outline { background: transparent; box-shadow: none; }
.sf-badge {
  background: linear-gradient(135deg, var(--sf-blue), var(--sf-blue-deep));
  box-shadow: 0 2px 8px -3px rgba(27,75,122,0.6);
  letter-spacing: 0.02em;
  align-items: center;
}
.sf-badge--orange { background: linear-gradient(135deg, var(--sf-orange), var(--sf-orange-deep)); box-shadow: 0 2px 8px -3px rgba(201,116,32,0.6); }
.sf-badge--green  { background: linear-gradient(135deg, #22C55E, var(--sf-green)); }
.sf-badge--red    { background: linear-gradient(135deg, #EF4444, var(--sf-red)); }
.sf-badge--gold   { background: linear-gradient(135deg, #F2D479, var(--sf-gold)); }
.sf-badge--outline { background: transparent; box-shadow: none; }

/* 26.5 Photography — soft ring + depth */
.sf-photo.has-image {
  box-shadow: 0 10px 28px -14px rgba(15,45,74,0.45);
}
.sf-photo--circle.has-image {
  box-shadow: 0 0 0 4px rgba(255,255,255,0.85),
              0 12px 30px -12px rgba(15,45,74,0.5);
}

/* 26.6 Quotes, stats, dividers */
.sf-quote {
  border-radius: 0 12px 12px 0;
  box-shadow: 0 2px 10px -6px rgba(201,116,32,0.5);
}
.sf-stat {
  background: linear-gradient(180deg, #FFFFFF, var(--sf-blue-50));
  border: 1px solid var(--sf-gray-200);
  border-radius: 14px;
}
.sf-stat__number {
  background: linear-gradient(135deg, var(--sf-blue-deep), var(--sf-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}
.sf-divider { background: linear-gradient(90deg, transparent, var(--sf-gray-300), transparent); }
.sf-divider--blue { background: linear-gradient(90deg, transparent, var(--sf-blue), transparent); }
.sf-divider--orange { background: linear-gradient(90deg, transparent, var(--sf-orange), transparent); }

/* 26.7 Header / footer refinement */
.sf-header__org { letter-spacing: -0.01em; }
.sf-header__accent { height: 4px; }
.sf-footer {
  background: linear-gradient(135deg, var(--sf-blue-dark), var(--sf-blue-deep));
}
.sf-footer__accent { height: 4px; background: linear-gradient(90deg, var(--sf-orange), var(--sf-orange-light), var(--sf-orange)); }

/* 26.8 Legibility on dark / photographic backgrounds */
.sf-section--blue h1, .sf-section--blue h2, .sf-section--blue h3,
.sf-header--campaign .sf-header__org,
.sf-header--achievement .sf-header__org,
.sf-highlight-box h1, .sf-highlight-box h2, .sf-highlight-box h3 {
  text-shadow: 0 1px 2px rgba(0,0,0,0.18);
}

/* 26.9 Cards & profile blocks */
.sf-guest-card, .sf-student-card {
  border: 1px solid var(--sf-gray-200);
  border-radius: 14px;
  box-shadow: 0 6px 18px -12px rgba(15,45,74,0.45);
}
.sf-highlight-box {
  background: linear-gradient(135deg, var(--sf-blue-deep), var(--sf-blue));
  border-radius: 14px;
  box-shadow: 0 14px 34px -18px rgba(27,75,122,0.65);
}
.sf-highlight-box--orange {
  background: linear-gradient(135deg, var(--sf-orange-deep), var(--sf-orange));
  box-shadow: 0 14px 34px -18px rgba(201,116,32,0.65);
}

/* 26.10 Steps, timeline & deadline chips */
.sf-step__num {
  background: linear-gradient(135deg, var(--sf-blue), var(--sf-blue-deep));
  box-shadow: 0 4px 10px -5px rgba(27,75,122,0.7);
}
.sf-timeline-item::before { box-shadow: 0 0 0 3px rgba(37,99,164,0.14); }
.sf-deadline { border-radius: 10px; box-shadow: 0 4px 12px -8px rgba(220,38,38,0.6); }

/* 26.11 Chips and buttons must never break mid-phrase */
.sf-badge, .sf-cta, .sf-deadline, .sf-card-thumb__format-badge {
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

/* ═══════════════════════════════════════════════════════════════
   27. UNIQUE SKINS — every template gets its own visual identity
   Deterministic skin class (.sf-skin-0 … .sf-skin-9) + category
   accent class (.sf-cat-*) are added by app.js applyPosterTheme().
   ═══════════════════════════════════════════════════════════════ */

/* 27.0 Skin tokens (defaults) */
[class*="sf-skin-"] {
  --sk-accent: #1B4B7A;
  --sk-accent-2: #E88B2E;
  --sk-tint: rgba(27,75,122,0.05);
  --sk-radius: 12px;
  position: relative;
}

/* Category accents override the skin base hue */
.sf-cat-members      { --sk-accent: #1B4B7A; --sk-accent-2: #E88B2E; --sk-tint: rgba(27,75,122,0.05); }
.sf-cat-achievement  { --sk-accent: #A16207; --sk-accent-2: #F5B301; --sk-tint: rgba(161,98,7,0.06); }
.sf-cat-education    { --sk-accent: #0F5F52; --sk-accent-2: #16A34A; --sk-tint: rgba(15,95,82,0.06); }
.sf-cat-events       { --sk-accent: #7C2D8B; --sk-accent-2: #E88B2E; --sk-tint: rgba(124,45,139,0.05); }
.sf-cat-notices      { --sk-accent: #9A3412; --sk-accent-2: #EF4444; --sk-tint: rgba(154,52,18,0.05); }
.sf-cat-community    { --sk-accent: #155E75; --sk-accent-2: #06B6D4; --sk-tint: rgba(21,94,117,0.05); }
.sf-cat-certificates { --sk-accent: #7C5A18; --sk-accent-2: #C9A227; --sk-tint: rgba(124,90,24,0.06); }
.sf-cat-photography  { --sk-accent: #334155; --sk-accent-2: #64748B; --sk-tint: rgba(51,65,85,0.05); }
.sf-cat-days         { --sk-accent: #B91C1C; --sk-accent-2: #16A34A; --sk-tint: rgba(185,28,28,0.05); }
.sf-cat-schedule     { --sk-accent: #1E3A8A; --sk-accent-2: #3B82F6; --sk-tint: rgba(30,58,138,0.05); }

/* Shared decorative layer (skin-specific art) */
[class*="sf-skin-"] > .sf-skin-art { display: none; }
[class*="sf-skin-"]::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* 27.1 Skin 0 — Soft corner glow */
.sf-skin-0::before {
  background:
    radial-gradient(60% 40% at 100% 0%, var(--sk-tint), transparent 70%),
    radial-gradient(50% 35% at 0% 100%, var(--sk-tint), transparent 70%);
}
.sf-skin-0 .sf-info-card { border-radius: 14px; }

/* 27.2 Skin 1 — Double hairline frame */
.sf-skin-1::before {
  margin: 14px;
  inset: 0;
  border: 1px solid color-mix(in oklab, var(--sk-accent) 28%, transparent);
  border-radius: 6px;
  box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 5px color-mix(in oklab, var(--sk-accent-2) 40%, transparent);
}
.sf-skin-1 .sf-badge { border-radius: 4px; }

/* 27.3 Skin 2 — Diagonal accent ribbon */
.sf-skin-2::before {
  background: linear-gradient(135deg, color-mix(in oklab, var(--sk-accent) 12%, transparent) 0 3%, transparent 3.2%),
              linear-gradient(315deg, color-mix(in oklab, var(--sk-accent-2) 16%, transparent) 0 4%, transparent 4.2%);
}
.sf-skin-2 .sf-info-card { border-left-width: 5px; border-left-color: var(--sk-accent-2); }

/* 27.4 Skin 3 — Dotted paper texture */
.sf-skin-3::before {
  background-image: radial-gradient(color-mix(in oklab, var(--sk-accent) 14%, transparent) 1px, transparent 1.2px);
  background-size: 16px 16px;
  opacity: 0.55;
}
.sf-skin-3 .sf-info-card { border-radius: 4px; border-left-color: var(--sk-accent); }

/* 27.5 Skin 4 — Bold top & bottom band */
.sf-skin-4::before {
  background:
    linear-gradient(90deg, var(--sk-accent), var(--sk-accent-2)) top / 100% 8px no-repeat,
    linear-gradient(90deg, var(--sk-accent-2), var(--sk-accent)) bottom / 100% 8px no-repeat;
}
.sf-skin-4 .sf-cta { border-radius: 999px; }

/* 27.6 Skin 5 — Side rail */
.sf-skin-5::before {
  background: linear-gradient(180deg, var(--sk-accent), var(--sk-accent-2)) left / 10px 100% no-repeat,
              linear-gradient(90deg, var(--sk-tint), transparent 30%);
}
.sf-skin-5 .sf-info-card { border-left: none; border-top: 3px solid var(--sk-accent); }

/* 27.7 Skin 6 — Concentric circle watermark (logo motif) */
.sf-skin-6::before {
  background:
    radial-gradient(circle at 50% 42%, transparent 0 22%, color-mix(in oklab, var(--sk-accent) 8%, transparent) 22% 22.4%, transparent 22.6%),
    radial-gradient(circle at 50% 42%, transparent 0 30%, color-mix(in oklab, var(--sk-accent) 6%, transparent) 30% 30.4%, transparent 30.6%);
}
.sf-skin-6 .sf-badge { border-radius: 999px; }

/* 27.8 Skin 7 — Corner brackets */
.sf-skin-7::before {
  margin: 18px;
  border: 3px solid color-mix(in oklab, var(--sk-accent) 35%, transparent);
  border-radius: 2px;
  -webkit-mask: linear-gradient(#000 0 0) top left / 60px 60px no-repeat,
        linear-gradient(#000 0 0) top right / 60px 60px no-repeat,
        linear-gradient(#000 0 0) bottom left / 60px 60px no-repeat,
        linear-gradient(#000 0 0) bottom right / 60px 60px no-repeat;
          mask: linear-gradient(#000 0 0) top left / 60px 60px no-repeat,
        linear-gradient(#000 0 0) top right / 60px 60px no-repeat,
        linear-gradient(#000 0 0) bottom left / 60px 60px no-repeat,
        linear-gradient(#000 0 0) bottom right / 60px 60px no-repeat;
}

/* 27.9 Skin 8 — Warm gradient wash */
.sf-skin-8::before {
  background: linear-gradient(160deg, color-mix(in oklab, var(--sk-accent-2) 10%, transparent), transparent 45%),
              linear-gradient(20deg, color-mix(in oklab, var(--sk-accent) 10%, transparent), transparent 40%);
}
.sf-skin-8 .sf-info-card { background: linear-gradient(180deg,#fff, color-mix(in oklab, var(--sk-accent) 4%, #fff)); }

/* 27.10 Skin 9 — Fine grid blueprint */
.sf-skin-9::before {
  background-image:
    linear-gradient(color-mix(in oklab, var(--sk-accent) 7%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklab, var(--sk-accent) 7%, transparent) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px;
}
.sf-skin-9 .sf-info-card { border-radius: 2px; }

/* 27.11 Accent inheritance — shared elements pick up the skin hue */
[class*="sf-skin-"] .sf-cta {
  background: linear-gradient(135deg, var(--sk-accent-2), color-mix(in oklab, var(--sk-accent-2) 70%, #000 12%));
  box-shadow: 0 8px 20px -10px color-mix(in oklab, var(--sk-accent-2) 70%, transparent);
}
[class*="sf-skin-"] .sf-badge {
  background: linear-gradient(135deg, var(--sk-accent), color-mix(in oklab, var(--sk-accent) 70%, #000 15%));
}
[class*="sf-skin-"] .sf-header { border-bottom-color: color-mix(in oklab, var(--sk-accent) 35%, transparent); }
[class*="sf-skin-"] .sf-footer {
  background: linear-gradient(135deg, var(--sk-accent), color-mix(in oklab, var(--sk-accent) 65%, #000 25%));
}
[class*="sf-skin-"] .sf-photo--circle { box-shadow: 0 0 0 4px #fff, 0 0 0 6px color-mix(in oklab, var(--sk-accent-2) 55%, transparent), 0 10px 24px -12px rgba(15,45,74,0.5); }
[class*="sf-skin-"] .sf-divider { background: linear-gradient(90deg, transparent, var(--sk-accent-2), transparent); }

/* Keep real content above the decorative layer */
[class*="sf-skin-"] > * { position: relative; z-index: 1; }
