/* Achievements page (tabs come from videos.css) */

/* student stories: accordion of cards */
.ach-acc { display: grid; gap: .65rem; }
.ach-acc .accordion-item { border: 1px solid var(--line); border-radius: 1rem !important; overflow: hidden; background: #fff; transition: border-color .2s, box-shadow .2s; }
.ach-acc .accordion-item:hover { border-color: #b9c8ea; }
.ach-acc .accordion-item:has(.accordion-collapse.show) { border-color: var(--blue); box-shadow: var(--shadow); }
.ach-acc .accordion-button { gap: .85rem; padding: .85rem 1.1rem; background: #fff; color: var(--navy); box-shadow: none; border-radius: 0 !important; }
.ach-acc .accordion-button:not(.collapsed) { background: var(--sky); color: var(--navy); }
.ach-acc .accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .15); }
.ach-num { flex-shrink: 0; width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff;
  font-weight: 700; font-size: .9rem; }
.accordion-button:not(.collapsed) .ach-num { background: #e11d48; }
.ach-head { display: grid; gap: .1rem; min-width: 0; }
.ach-title { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 1rem; line-height: 1.35; }
.ach-subtitle { color: var(--muted); font-size: .86rem; line-height: 1.35; }
.ach-tags { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .3rem; padding-left: .5rem; flex-shrink: 0; }
.ach-tag { display: inline-flex; align-items: center; gap: .25rem; font-size: .74rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px;
  background: var(--sky); color: var(--blue); white-space: nowrap; }
.accordion-button:not(.collapsed) .ach-tag { background: #fff; }
.ach-tag.ach-src { background: #fff4e5; color: #b45309; }
.ach-acc .accordion-body { padding: 1.25rem 1.25rem 1.4rem; border-top: 1px solid var(--line); }

/* story text with a photo beside it */
.ach-story { display: flow-root; color: var(--ink); line-height: 1.7; }
.ach-story p { margin: 0 0 .9rem; }
.ach-story p:last-child { margin-bottom: 0; }
.ach-figure { float: right; width: min(40%, 300px); margin: 0 0 1rem 1.25rem; }
.ach-figure img { width: 100%; height: auto; border-radius: .75rem; box-shadow: var(--shadow); }
.ach-sub { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1rem; color: var(--navy); margin: 1.3rem 0 .4rem; }
.ach-story > .ach-sub:first-child, .ach-figure + .ach-sub { margin-top: 0; }

/* photo grids */
.ach-meta { display: flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .88rem; margin: 0 0 .7rem; }
.ach-story + .ach-meta, .ach-docs + .ach-meta { margin-top: 1.25rem; }
.ach-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .6rem; }
.ach-tile { position: relative; display: block; aspect-ratio: 1; border-radius: .7rem; overflow: hidden; background: var(--sky); border: 1px solid var(--line); }
.ach-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.ach-tile:hover img { transform: scale(1.06); }
.ach-tile::after { content: ""; position: absolute; inset: 0; background: rgba(11, 31, 77, 0); transition: background .2s; }
.ach-tile:hover::after { background: rgba(11, 31, 77, .15); }
.ach-badge { position: absolute; left: .4rem; bottom: .4rem; z-index: 1; font-size: .72rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px;
  background: #e11d48; color: #fff; }
.ach-docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .9rem; }
.ach-docs img { width: 100%; height: auto; border-radius: .75rem; border: 1px solid var(--line); box-shadow: var(--shadow); }

/* buttons */
.ach-btns { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.ach-story + .ach-btns { margin-top: 1.25rem; }
.accordion-body > .ach-btns:first-child { margin-top: 0; }
.ach-btn { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 1rem; border-radius: 999px; font-weight: 600; font-size: .92rem;
  text-decoration: none; background: var(--navy); color: #fff; transition: background .2s, transform .2s; }
.ach-btn:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.ach-btn-video { background: #e11d48; }
.ach-btn-video:hover { background: #be123c; }

/* My Achievements header */
.ach-hero { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border-radius: 1rem; margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; }
.ach-hero h2 { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.25rem; margin: 0 0 .2rem; color: #fff; }
.ach-hero p { margin: 0; color: rgba(255, 255, 255, .82); font-size: .93rem; }
.ach-hero-ic { width: 3.2rem; height: 3.2rem; border-radius: 1rem; display: grid; place-items: center; background: rgba(255, 255, 255, .12);
  font-size: 1.5rem; color: #ffd27a; flex-shrink: 0; }

/* news / link cards */
.ach-list { display: grid; gap: .6rem; }
.ach-news { display: flex; align-items: center; gap: .9rem; padding: .9rem 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: 1rem;
  color: var(--navy); font-weight: 600; text-decoration: none; transition: border-color .2s, background .2s; }
a.ach-news:hover { border-color: var(--blue); background: var(--sky); color: var(--navy); }
.ach-news small { display: block; color: var(--muted); font-weight: 500; font-size: .84rem; margin-top: .1rem; }
.ach-news-ic { width: 2.6rem; height: 2.6rem; border-radius: .8rem; display: grid; place-items: center; background: var(--sky); color: var(--blue); font-size: 1.2rem; flex-shrink: 0; }
.ach-news .go { margin-left: auto; color: var(--blue); }

/* share CTA */
.ach-cta { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border-radius: 1rem; text-decoration: none;
  background: linear-gradient(135deg, #fff4e5, #ffe7d1); border: 1px solid #ffd2a8; color: var(--navy); transition: transform .2s, box-shadow .2s; }
.ach-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--navy); }
.ach-cta-ic { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: #f97316; color: #fff; font-size: 1.3rem; flex-shrink: 0; }
.ach-cta strong { display: block; font-family: "Poppins", sans-serif; font-size: 1.05rem; }
.ach-cta span span { display: block; color: var(--muted); font-size: .9rem; }
.ach-cta .go { margin-left: auto; font-size: 1.3rem; color: #f97316; }

/* IIT Toppers + Prudhvi Tej */
.ach .vid-back { justify-self: start; display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; }
.ach .vid-intro { color: var(--muted); }
.topper-badge { display: inline-flex; align-items: center; gap: .35rem; align-self: flex-start; font-size: .8rem; font-weight: 700; padding: .2rem .7rem;
  border-radius: 999px; background: #fff4e5; color: #b45309; }
.topper-card { display: flex; align-items: center; gap: 1.25rem; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 1rem;
  color: var(--ink); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.topper-card:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-3px); color: var(--ink); }
.topper-card img { width: 11rem; aspect-ratio: 250 / 169; object-fit: cover; border-radius: .75rem; flex-shrink: 0; }
.topper-body { display: flex; flex-direction: column; gap: .35rem; }
.topper-body strong { font-family: "Poppins", sans-serif; font-size: 1.2rem; color: var(--navy); }
.topper-body > span:not(.topper-badge):not(.topper-more) { color: var(--muted); line-height: 1.5; }
.topper-more { color: var(--blue); font-weight: 600; }
.topper-hero { display: flex; align-items: center; gap: 1.5rem; padding: 1.25rem; border-radius: 1rem;
  background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; }
.topper-hero img { width: 15rem; max-width: 45%; aspect-ratio: 250 / 169; object-fit: cover; border-radius: .85rem; border: 3px solid rgba(255, 255, 255, .25); }
.topper-hero h2 { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.6rem; color: #fff; margin: .6rem 0 .25rem; }
.topper-hero p { margin: 0; color: rgba(255, 255, 255, .85); font-size: 1.05rem; }
.topper-points { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.topper-points li { display: flex; align-items: center; gap: .9rem; padding: .9rem 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: 1rem;
  font-weight: 600; color: var(--navy); line-height: 1.5; }
.topper-points li > span { width: 2.5rem; height: 2.5rem; border-radius: .8rem; display: grid; place-items: center; background: var(--sky); color: var(--blue);
  font-size: 1.15rem; flex-shrink: 0; }

@media (max-width: 575.98px) {
  .topper-card, .topper-hero { flex-direction: column; align-items: stretch; }
  .topper-card img, .topper-hero img { width: 100%; max-width: none; }
  .ach-head { flex: 1 1 0; }
  .ach-acc .accordion-button { flex-wrap: wrap; padding: .8rem .9rem; }
  .ach-tags { margin-left: 2.95rem; padding-left: 0; justify-content: flex-start; width: 100%; }
  .ach-acc .accordion-button::after { position: absolute; right: .9rem; top: 1.2rem; }
  .ach-acc .accordion-button { position: relative; padding-right: 2.6rem; }
  .ach-figure { float: none; width: 100%; max-width: 320px; margin: 0 auto 1rem; display: block; }
  .ach-gallery { grid-template-columns: repeat(3, 1fr); gap: .4rem; }
}
