/* ==========================================================================
   ACHARYA INSTITUTES - ADDONS STYLESHEET (acharya-addons.css)
   Includes: Sticky sidebars, 15-item Experience Grid, Institutions Deck,
   Amenities, Happenings Carousel, Recruiters Scroller, Zoom & Hover Effects
   ========================================================================== */

/* --- Fixed Vertical Sidebars --- */
/* Left Sticky Tab: Global MBA / Pharmacy Excellence */
.sticky-icon1 {
  position: fixed;
  left: 0;
  top: 45%;
  transform: translateY(-50%);
  z-index: 1000;
}

.sticky-icon1 a {
  display: block;
  background: var(--acharya-navy);
  color: #ffffff;
  padding: 14px 10px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 0 8px 8px 0;
  box-shadow: 2px 4px 15px rgba(0,0,0,0.25);
  border-right: 3px solid var(--acharya-orange);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
}

.sticky-icon1 a:hover {
  background: var(--acharya-orange);
  color: #ffffff;
  padding-left: 18px;
  box-shadow: 4px 6px 20px rgba(244, 147, 35, 0.4);
}

/* Right Sticky Stack: 4-Item Quick Action Icons */
.sticky-icon5 {
  position: fixed;
  right: 0;
  top: 40%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sticky-icon5 .sticky-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.sticky-icon5 .sticky-btn {
  width: 46px;
  height: 46px;
  background: var(--acharya-navy);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px 0 0 6px;
  font-size: 1.15rem;
  box-shadow: -2px 3px 10px rgba(0,0,0,0.2);
  transition: all 0.25s ease;
  border-left: 3px solid var(--acharya-orange);
  text-decoration: none;
  cursor: pointer;
}

.sticky-icon5 .sticky-item:hover .sticky-btn {
  background: var(--acharya-orange);
  color: #ffffff;
  width: 50px;
}

.sticky-icon5 .sticky-item:nth-child(even) .sticky-btn {
  border-left-color: var(--acharya-orange-secondary);
}

.sticky-icon5 .sticky-tooltip {
  position: absolute;
  right: 52px;
  background: var(--acharya-navy);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  pointer-events: none;
  font-family: 'Open Sans', sans-serif;
}

.sticky-icon5 .sticky-tooltip::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px 0 5px 5px;
  border-style: solid;
  border-color: transparent transparent transparent var(--acharya-navy);
}

.sticky-icon5 .sticky-item:hover .sticky-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  background: var(--acharya-orange);
}

.sticky-icon5 .sticky-item:hover .sticky-tooltip::after {
  border-color: transparent transparent transparent var(--acharya-orange);
}

/* --- The Acharya Experience Grid (15 items in 3-column CSS Grid) --- */
.experience-section {
  background-color: #f7f8fc;
  padding: 80px 0;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.grid-item {
  position: relative;
  height: 240px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  background-color: #1a233a;
}

.grid-item-inner {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(0deg, rgba(16, 28, 68, 0.9) 0%, rgba(16, 28, 68, 0.4) 70%, transparent 100%);
  color: #ffffff;
  transition: all 0.3s ease;
  z-index: 2;
}

.grid-item-inner .stat-number {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--acharya-orange);
  line-height: 1;
  margin-bottom: 4px;
}

.grid-item-inner .stat-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.grid-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 25px;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
}

.grid-item:hover .overlay {
  opacity: 1;
}

.grid-item .overlay h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--acharya-orange);
  margin-bottom: 10px;
}

.grid-item .overlay p {
  font-size: 0.9rem;
  color: #e2e8f0;
  line-height: 1.5;
  margin-bottom: 15px;
}

.grid-item .overlay .overlay-btn {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  background: var(--acharya-orange);
  color: #ffffff;
  text-transform: uppercase;
  border: none;
}

/* Zoom Transition Classes */
.zoomin {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.grid-item:hover .zoomin,
.zoomin:hover {
  transform: scale(1.08);
}

.zoomin2 {
  transition: transform 0.5s ease;
}

.zoomin2:hover {
  transform: scale(1.14);
}

/* --- Our Institutions Card Deck --- */
.institutions-section {
  background: #ffffff;
  padding: 80px 0;
}

.institution-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  height: calc(100% - 30px);
}

.institution-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(34, 57, 131, 0.15);
  border-color: #cbd5e1;
}

.institution-card-img-wrapper {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.institution-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.institution-card:hover .institution-card-img {
  transform: scale(1.1);
}

.institution-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--acharya-navy);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  border-left: 3px solid var(--acharya-orange);
  text-transform: uppercase;
}

.institution-card-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.institution-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--acharya-navy);
  margin-bottom: 8px;
  line-height: 1.35;
}

.institution-card-text {
  font-size: 0.88rem;
  color: #555555;
  margin-bottom: 15px;
  flex-grow: 1;
}

.institution-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #777777;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}

.institution-card-link {
  color: var(--acharya-navy);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.institution-card:hover .institution-card-link {
  color: var(--acharya-orange);
}

/* --- Campus Amenities Grid --- */
.amenities-section {
  background: #f1f5f9;
  padding: 80px 0;
}

.amenity-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 24px 16px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
  margin-bottom: 24px;
  border-bottom: 3px solid transparent;
  height: calc(100% - 24px);
}

.amenity-card:hover {
  transform: translateY(-5px);
  border-bottom-color: var(--acharya-orange);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.amenity-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #eef3ff;
  color: var(--acharya-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px auto;
  font-size: 1.6rem;
  transition: all 0.3s ease;
}

.amenity-card:hover .amenity-icon-wrapper {
  background: var(--acharya-navy);
  color: var(--acharya-orange);
  transform: rotateY(180deg);
}

.amenity-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--acharya-navy);
  margin-bottom: 6px;
}

.amenity-desc {
  font-size: 0.82rem;
  color: #666666;
  margin: 0;
}

/* --- Acharya Happenings News Carousel --- */
.happenings-section {
  background: #ffffff;
  padding: 80px 0;
}

.news-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  margin-bottom: 20px;
  transition: all 0.3s ease;
  height: 100%;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.news-card-img-wrapper {
  height: 160px;
  overflow: hidden;
  position: relative;
}

.news-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-date-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--acharya-orange);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.news-card-body {
  padding: 16px;
}

.news-card-category {
  color: var(--acharya-blue-accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.news-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--acharya-navy);
  margin-bottom: 8px;
  line-height: 1.35;
}

.news-card-excerpt {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 12px;
}

/* --- Top Recruiters Strip --- */
.recruiters-section {
  background: #f8fafc;
  padding: 60px 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  overflow: hidden;
}

.recruiters-marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 30px;
  padding: 15px 0;
}

.recruiters-track {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 30px;
  min-width: 100%;
  animation: scroll-recruiters 28s linear infinite;
}

.recruiter-pill {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--acharya-navy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.recruiter-pill:hover {
  border-color: var(--acharya-orange);
  color: var(--acharya-orange);
  transform: scale(1.05);
}

@keyframes scroll-recruiters {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - 30px)); }
}

/* --- Social Proof & Testimonials Section --- */
.social-proof-section {
  background: #ffffff;
  padding: 80px 0;
}

.testimonial-card {
  background: #f8fafc;
  border-radius: 10px;
  padding: 25px;
  border-left: 4px solid var(--acharya-orange);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  margin-bottom: 25px;
  height: calc(100% - 25px);
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.testimonial-quote {
  font-size: 0.92rem;
  font-style: italic;
  color: #4a5568;
  margin-bottom: 15px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--acharya-navy);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.author-info h6 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--acharya-navy);
}

.author-info p {
  margin: 0;
  font-size: 0.8rem;
  color: #718096;
}

/* Responsive Experience & Institution Grid */
@media (max-width: 991px) {
  .experience-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .experience-grid {
    grid-template-columns: 1fr;
  }
  .sticky-icon1, .sticky-icon5 {
    display: none;
  }
}
