:root {
  --brand-orange: #ff4f28;
  --bg-cream: #fef9ed;
  --text-black: #000000;
  --text-gray: #4a4a4a;
  --page-bg: var(--bg-cream);
  --card-bg: rgba(255,255,255,0.85);
  --glass-border: rgba(0,0,0,0.08);
  --max-content-width: 1100px;
}

/* Basic reset / container tweaks */
body {
  background: var(--page-bg);
  color: var(--text-black);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Color Emoji", sans-serif;
}

.header-hero {
  background: var(--bg-cream);
}

/* Tweak hero text sizes */
.header-hero .display-4 {
  font-size: 2.5rem;
}

@media (min-width: 992px) {
  .header-hero .display-4 {
    font-size: 3.25rem;
  }
}

/* Site container width */
.container {
  max-width: var(--max-content-width);
}

/* Brand helpers */
.brand-text { color: var(--brand-orange); }
.brand-bg { background: var(--brand-orange); color: #fff; }

.brand-logo-wrap {
  width: 48px;
  height: 48px;
}
.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.btn-brand {
  background-color: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #fff;
}
.btn-brand:hover,
.btn-brand:focus {
  background-color: #e04521;
  border-color: #e04521;
  color: #fff;
}
.btn-brand:disabled,
.btn-brand.disabled {
  background-color: rgba(255, 79, 40, 0.5);
  border-color: rgba(255, 79, 40, 0.5);
}



/* Glassmorphic cards used across the design */
.glassmorphic {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Floating / subtle animation */
.animate-float { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)} }

/* Hover lift effect for interactive cards/buttons */
.hover-lift { transition: all 0.25s ease; }
.hover-lift:hover { transform: translateY(-6px); box-shadow: 0 12px 24px rgba(0,0,0,0.08); }

/* Sticky nav style */
.sticky-nav { position: sticky; top: 0; z-index: 50; background: rgba(254,249,237,0.95); backdrop-filter: blur(6px); border-bottom: 1px solid rgba(0,0,0,0.08); }

/* Hero CTA button tuned to mockup */
.btn-cta { background: var(--brand-orange); border-color: transparent; color: #fff; padding: 12px 28px; font-weight: 600; border-radius: 12px; }
.btn-cta:hover { background: #e63d1a; }

/* Card border subtle */
.card { border: 1px solid rgba(0,0,0,0.06); border-radius: 12px; }

/* Footer tweaks */
footer { background: #fff; }

/* Cards */
.card {
  border: 1px solid rgba(0,0,0,0.05);
}

/* Footer */
footer {
  background: var(--page-bg);
}

/* Feature icon used in feature cards (64x64, rounded) */
.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

/* Popular school circular badge */
.popular-badge {
  width: 64px;
  height: 64px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-orange);
  color: #fff;
  margin: 0 auto 1rem;
}
.popular-badge img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.popular-badge-initials {
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.featured-university-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  text-align: center;
}
.featured-university-card > .popular-badge {
  flex-shrink: 0;
}
.featured-university-card h3 {
  width: 100%;
}
.featured-university-card:focus-visible {
  outline: 2px solid var(--brand-orange);
  outline-offset: 3px;
}

.school-suggestions {
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 0.75rem;
  padding: 0.25rem;
  background: #fff;
  max-height: 260px;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.school-suggestion-item {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
}
.school-suggestion-item:hover,
.school-suggestion-item.active {
  background: rgba(255, 79, 40, 0.1);
}
.school-suggestions-empty {
  color: #6c757d;
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
}

/* Decorative accents */
.accent-orange { background: var(--brand-orange); }
.accent-dark { background: #000; }

/* Decorative accent positions */
.accent-top-right { position: absolute; right: -2rem; top: -1rem; width: 96px; height: 96px; border-radius: 50%; opacity: 0.18; }
.accent-bottom-left { position: absolute; left: -4rem; bottom: -4rem; width: 128px; height: 128px; border-radius: 50%; opacity: 0.08; }

/* Hero image card: fixed visual card on large screens, responsive on small screens */
.hero-card {
  display: inline-block;
  width: 124px; /* match observed width */
  max-width: 100%;
  overflow: hidden;
  border-radius: 8px;
  flex-shrink: 0;
}
.hero-card img {
  width: 100%;
  height: 188px; /* match observed height */
  object-fit: cover;
  display: block;
}
@media (min-width: 768px) {
  /* slightly larger on medium+ screens for visual balance */
  .hero-card { width: 180px; }
  .hero-card img { height: 240px; }
}
@media (max-width: 479px) {
  .hero-card img { height: auto; }
}

/* Get Featured modal: CSS-driven tab panels using hidden radios */
.gf-stage-input { position: absolute; opacity: 0; pointer-events: none; }
.gf-stage-panel { display: none; }
.gf-stage-title, .gf-step-text { display: none; }
.gf-progress { height: 8px; background: #e9ecef; border-radius: 4px; overflow: hidden; }
.gf-progress .bar,
#uploadProgressBar {
  height: 100%;
  width: 0%;
  background: var(--brand-orange);
  transition: width .25s ease;
}

/* show per-stage content when radio checked */
#gf-stage-1:checked ~ .modal-body .stage-1,
#gf-stage-2:checked ~ .modal-body .stage-2,
#gf-stage-3:checked ~ .modal-body .stage-3,
#gf-stage-4:checked ~ .modal-body .stage-4,
#gf-stage-5:checked ~ .modal-body .stage-5,
#gf-stage-6:checked ~ .modal-body .stage-6 { display: block; }

#gf-stage-1:checked ~ .modal-header .gf-step-text.step-1,
#gf-stage-2:checked ~ .modal-header .gf-step-text.step-2,
#gf-stage-3:checked ~ .modal-header .gf-step-text.step-3,
#gf-stage-4:checked ~ .modal-header .gf-step-text.step-4,
#gf-stage-5:checked ~ .modal-header .gf-step-text.step-5,
#gf-stage-6:checked ~ .modal-header .gf-step-text.step-6 { display: inline-block; }

#gf-stage-1:checked ~ .modal-body + .gf-progress-wrap .gf-progress .bar { width: calc(100% * 1 / 6); }
#gf-stage-2:checked ~ .modal-body + .gf-progress-wrap .gf-progress .bar { width: calc(100% * 2 / 6); }
#gf-stage-3:checked ~ .modal-body + .gf-progress-wrap .gf-progress .bar { width: calc(100% * 3 / 6); }
#gf-stage-4:checked ~ .modal-body + .gf-progress-wrap .gf-progress .bar { width: calc(100% * 4 / 6); }
#gf-stage-5:checked ~ .modal-body + .gf-progress-wrap .gf-progress .bar { width: calc(100% * 5 / 6); }
#gf-stage-6:checked ~ .modal-body + .gf-progress-wrap .gf-progress .bar { width: 100%; }

/* stage title text shown per stage */
#gf-stage-1:checked ~ .modal-body ~ .gf-stage-titles .gf-stage-title.s1,
#gf-stage-2:checked ~ .modal-body ~ .gf-stage-titles .gf-stage-title.s2,
#gf-stage-3:checked ~ .modal-body ~ .gf-stage-titles .gf-stage-title.s3,
#gf-stage-4:checked ~ .modal-body ~ .gf-stage-titles .gf-stage-title.s4,
#gf-stage-5:checked ~ .modal-body ~ .gf-stage-titles .gf-stage-title.s5,
#gf-stage-6:checked ~ .modal-body ~ .gf-stage-titles .gf-stage-title.s6 { display: block; }

.gf-nav-label { cursor: pointer; }
.gf-nav-label[disabled], .gf-nav-label.disabled { opacity: 0.5; pointer-events: none; }

/* Utility: vh-md-80 - apply height:80vh on medium and larger screens */
@media (min-width: 768px) {
  .vh-md-80 { height: 80vh !important; }
}

/* Instagram preview card */
.instagram-preview-shell {
  min-height: 420px;
}

.instagram-preview-card {
  max-width: 300px;
  height: 540px;
  margin: 0 auto;
  border-color: rgba(0, 0, 0, 0.08) !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  scroll-behavior: smooth;
}

.instagram-preview-card.preview-scrollable {
  overflow-y: auto;
  scrollbar-width: thin;
}

.instagram-preview-card.preview-scrollable::-webkit-scrollbar {
  width: 6px;
}

.instagram-preview-card.preview-scrollable::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 999px;
}

.instagram-preview-card [data-preview-media] {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.instagram-preview-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.instagram-preview-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-orange);
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.04em;
}

.instagram-preview-avatar span {
  font-size: 0.85rem;
}

.instagram-preview-avatar img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
}

.instagram-preview-media {
  position: relative;
  background: #000;
  overflow: hidden;
}

.instagram-preview-media img,
.instagram-preview-placeholder-art {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.instagram-preview-placeholder-art {
  background: repeating-linear-gradient(135deg, #f3f3f3, #f3f3f3 20px, #e2e2e2 20px, #e2e2e2 40px);
}

.instagram-preview-tag {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.instagram-preview-actions button {
  color: #111;
}

.instagram-preview-actions button:hover,
.instagram-preview-actions button:focus {
  color: var(--brand-orange);
}

.instagram-preview-actions .btn-link {
  text-decoration: none;
}

.instagram-preview-caption {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.92rem;
  line-height: 1.4;
  margin-bottom: 0.35rem;
}

.instagram-preview-caption.caption-collapsed {
  max-height: calc(1.4em * 3);
  overflow: hidden;
}

.instagram-preview-read-more {
  font-size: 0.82rem;
  color: #6c757d;
  font-weight: 500;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: inline;
  margin-left: 0.25rem;
  line-height: inherit;
}

.instagram-preview-read-more-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.25rem;
}

.submission-success {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 1.5rem;
}

.submission-success-check {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: rgba(25, 135, 84, 0.1);
  color: #198754;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  animation: submission-check-pulse 1.6s ease-in-out infinite;
}

.submission-success-check i {
  animation: submission-check-pop 0.8s ease forwards;
  transform-origin: center;
}

@keyframes submission-check-pulse {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.35); }
  70% { transform: scale(1); box-shadow: 0 0 0 16px rgba(25, 135, 84, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(25, 135, 84, 0); }
}

@keyframes submission-check-pop {
  0% { transform: scale(0); }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.instagram-preview-read-more:hover,
.instagram-preview-read-more:focus {
  color: #4a4a4a;
  text-decoration: underline;
}

.instagram-preview-placeholder {
  border: 1px dashed rgba(0, 0, 0, 0.2);
  border-radius: 1rem;
}

.instagram-preview-carousel .carousel-control-prev,
.instagram-preview-carousel .carousel-control-next {
  width: 12%;
}

.instagram-preview-carousel .carousel-indicators [data-bs-target] {
  background-color: rgba(255, 255, 255, 0.8);
}

.instagram-preview-carousel .carousel-item {
  min-height: 0;
}

.instagram-preview-carousel .carousel-item img {
  width: 100%;
  height: 100%;
}


