/**
 * Study Theme - Custom Pages Styles
 * Стили для кастомных страниц информации (information_7, information и др.)
 */

/* ========== SERVICE HERO SECTION ========== */
.service-hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-800);
  margin-bottom: 16px;
  line-height: 1.2;
}

.service-hero-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.service-tag {
  background: var(--gray-600);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.service-tag-accent {
  background: var(--primary);
  color: var(--white);
}

.service-hero-image {
  background: linear-gradient(135deg, var(--gray-300) 0%, var(--gray-400) 100%);
  border-radius: 16px;
}

.service-hero-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  aspect-ratio: 5/4;
}

/* ========== DREAM UNIVERSITY SECTION ========== */
.dream-university-section {
  background: var(--gray-100);
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .dream-university-section {
    padding: 4rem 0;
  }
}

.dream-university-header {
  max-width: 700px;
  margin: 0 auto 40px;
  text-align: center;
}

.dream-university-header .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 16px;
}

.dream-university-header .section-subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* Sidebar Navigation */
.dream-university-sidebar {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  position: sticky;
  top: 20px;
}

.dream-university-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dream-university-nav .nav-item {
  margin-bottom: 8px;
}

.dream-university-nav .nav-link {
  display: block;
  padding: 10px 14px;
  color: var(--gray-800);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.2s;
}

.dream-university-nav .nav-item.active > .nav-link {
  background: #e3f4fd;
  color: #0d6efd;
  font-weight: 700;
}

.dream-university-nav .sub-nav {
  list-style: none;
  padding: 0 0 0 20px;
  margin: 4px 0 12px;
}

.dream-university-nav .sub-nav li a {
  display: block;
  padding: 6px 14px;
  color: var(--gray-600);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.dream-university-nav .sub-nav li a:hover,
.dream-university-nav .sub-nav li a.active {
  color: #0d6efd;
}

.dream-university-nav .sub-nav li a.active {
  font-weight: 600;
}

/* Stats */
.dream-university-stats {
  padding-top: 20px;
}

.dream-university-stats .stat-item {
  margin-bottom: 20px;
  border-right: none;
}

.dream-university-stats .stat-label {
  display: block;
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-bottom: 6px;
}

.dream-university-stats .stat-bar-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dream-university-stats .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-800);
  white-space: nowrap;
}

.dream-university-stats .stat-bar {
  height: 6px;
  background: var(--border-light);
  border-radius: 3px;
  overflow: hidden;
  flex: 1;
}

.dream-university-stats .stat-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 3px;
  transition: width 0.1s ease-out;
}

/* ========== DREAM BLOCKS ========== */
.dream-block {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
}

.dream-block-header {
  margin-bottom: 28px;
}

.dream-block-header h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 12px;
}

.dream-block-header p {
  color: var(--gray-600);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

.dream-block-header p + p {
  margin-top: 10px;
}

.dream-block-image {
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 24px;
}

.dream-block-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 2.2;
  object-fit: cover;
}

/* ========== DREAM CARDS ========== */
.dream-block-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dream-card {
  background: var(--gray-100);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.dream-card-content {
  flex: 1;
}

.dream-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 10px;
  line-height: 1.4;
}

.dream-card p {
  font-size: 1rem;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.6;
}

.dream-card-image {
  flex-shrink: 0;
  width: 200px;
}

.dream-card-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.dream-card-image img.wide {
  display: none;
}

.dream-card-image img.narrow {
  display: block;
}

@media (min-width: 768px) {
  .dream-card-image img.wide {
    display: block;
  }
  .dream-card-image img.narrow {
    display: none;
  }
}

/* ========== TEAM SECTION ========== */
.team-section {
  background: var(--white);
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .team-section {
    padding: 5rem 0;
  }
}

.team-header {
  max-width: 700px;
  margin: 0 auto 40px;
}

.team-card {
  background: var(--gray-100);
  border-radius: 16px;
  padding: 32px;
  height: 100%;
}

.team-card__avatars {
  display: flex;
  justify-content: flex-start;
  gap: -8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 4px;
}

.team-card__avatars img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--white);
  object-fit: cover;
}

.team-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 12px;
  line-height: 1.3;
}

.team-card__content {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

/* ========== AGREEMENT SECTION ========== */
.agreement-section {
  background: var(--white);
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .agreement-section {
    padding: 5rem 0;
  }
}

.agreement-header {
  max-width: 700px;
  margin: 0 auto 40px;
}

/* Quote Card */
.agreement-quote-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 20px;
  padding: 40px;
  color: var(--white);
}

.agreement-quote-card__quote {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 32px;
}

.agreement-quote-card__quote p {
  margin-bottom: 16px;
}

.agreement-quote-card__quote p:last-child {
  margin-bottom: 0;
  opacity: 0.7;
}

.agreement-quote-card__author {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.agreement-quote-card__author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.agreement-quote-card__author-name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}

.agreement-quote-card__author-role {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

/* Guarantee Cards */
.guarantee-card {
  background: var(--gray-100);
  border-radius: 16px;
  padding: 32px;
  height: 100%;
  transition: box-shadow 0.3s ease;
}

.guarantee-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.guarantee-card__icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  flex-shrink: 0;
}

.guarantee-card__icon i {
  font-size: 1.25rem;
  color: var(--white);
}

.guarantee-card__content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.guarantee-card__body {
  flex: 1;
}

.guarantee-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 12px;
}

.guarantee-card__text {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 768px) {
  .team-section,
  .agreement-section {
    padding: 2rem 0 !important;
  }
  .page-hero, .services-section{
      padding: 2rem 0 2rem !important;
  }
  .sticky-top{
      border-bottom: 1px solid #ddd;
  }
  .text-hero-sm{
      font-size: 32px !important;
  }
  .animated-video-hero{
      padding-top: 30px !important;
  }
  .animated-video-hero .mobile-text-home{
          margin-bottom: 30px !important;
    margin-top: 30px !important;
  }
  .content-block{
      padding: 3rem 0;
  }
  .team-card,
  .agreement-quote-card,
  .guarantee-card {
    padding: 24px;
    border-radius: 12px;
  }
  .page-title{
      font-size: 36px !important;
  }
  .team-card__title,
  .guarantee-card__title {
    font-size: 1.1rem;
  }
  
  .agreement-quote-card__quote {
    font-size: 1rem;
  }
  
  .agreement-quote-card__author {
    flex-direction: column;
    text-align: center;
  }
}

/* ========== DREAM CTA ========== */
.dream-cta {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
}

.dream-cta h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 14px;
}

.dream-cta p {
  color: var(--gray-600);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ========== INFORMATION PAGES (4) ========== */
.service-content-section {
  padding: 60px 0;
  background: var(--white);
}

.service-sidebar {
  background: var(--gray-100);
  border-radius: 12px;
  padding: 24px;
  position: sticky;
  top: 20px;
  border: 1px solid #eee;
}

.sidebar-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 16px;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.sidebar-nav li {
  margin-bottom: 8px;
}

.sidebar-nav a {
  color: var(--gray-700);
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: #e8eaed;
  color: var(--gray-800);
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 991px) {
  .dream-university-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .dream-university-header .section-title {
    font-size: 1.75rem;
  }
  
  .dream-university-header .section-subtitle {
    font-size: 1rem;
  }
  
  .dream-block {
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
  }
  
  .dream-block-header h3 {
    font-size: 1.5rem;
  }
  
  .dream-block-header p {
    font-size: 1rem;
  }
  
  .dream-card {
    flex-direction: column;
    padding: 20px;
    gap: 16px;
  }
  
  .dream-card-image {
    width: 100%;
    order: -1;
  }
  
  .dream-card h4 {
    font-size: 1.05rem;
  }
  
  .dream-card p {
    font-size: 0.95rem;
  }
  
  .dream-block-image {
    margin-bottom: 20px;
    border-radius: 8px;
  }
  
  .dream-cta {
    padding: 28px 20px;
    border-radius: 12px;
  }
  
  .dream-cta h3 {
    font-size: 1.5rem;
  }
  
  .dream-cta p {
    font-size: 1rem;
  }
  
  .service-hero-title {
    font-size: 2rem;
  }
  
  .service-content-section {
    padding: 40px 0;
  }
  
  .service-sidebar {
    position: static;
    margin-bottom: 24px;
  }
}