/* ===== PAGE TEMPLATE STYLES ===== */

/* ===== PAGE HERO SECTION ===== */
.page-hero {
  position: relative;
  height: 60vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.page-hero__background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.page-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(107, 78, 255, 0.8) 0%, rgba(139, 92, 246, 0.6) 100%);
}

.page-hero__content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 800px;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  padding: 8px 20px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  display: inline-flex;
}

.breadcrumb-item {
  font-size: 14px;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  color: rgba(255, 255, 255, 0.7);
  margin: 0 8px;
}

.breadcrumb-item a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  color: white;
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: white;
  font-weight: 500;
}

/* ===== PAGE HERO CONTENT ===== */
.page-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.1;
  margin-bottom: 20px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.page-hero__subtitle {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}

.page-meta__date,
.page-meta__reading-time {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.page-meta__date i,
.page-meta__reading-time i {
  font-size: 16px;
}

/* ===== PAGE CONTENT SECTION ===== */
.page-content {
  padding: 80px 0;
  background: var(--clr-bg);
}

.page-content__main {
  padding-right: 40px;
}

/* ===== CONTENT BLOCKS ===== */
.content-block {
  margin-bottom: 60px;
}

.content-block:last-child {
  margin-bottom: 0;
}

.content-intro {
  margin-bottom: 40px;
}

.content-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.3;
  color: var(--clr-text);
  margin-bottom: 20px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.content-lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--clr-muted);
  margin-bottom: 0;
  font-weight: 500;
}

.content-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--clr-text);
}

.content-text p {
  margin-bottom: 20px;
}

.content-text h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.3;
  color: var(--clr-text);
  margin: 40px 0 20px 0;
  font-weight: 400;
}

.content-text h3:first-child {
  margin-top: 0;
}

/* ===== STATS GRID ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  padding: 40px;
  background: linear-gradient(135deg, #f8f6ff 0%, #f0efff 100%);
  border-radius: 24px;
  margin: 40px 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  color: var(--clr-primary);
  margin-bottom: 8px;
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--clr-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== VALUES GRID ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.value-card {
  background: white;
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  border: 1px solid var(--clr-border);
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.value-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--clr-primary) 0%, #8b5cf6 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: white;
  font-size: 24px;
}

.value-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--clr-text);
  margin-bottom: 16px;
}

.value-description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--clr-muted);
  margin: 0;
}

/* ===== SIDEBAR STYLES ===== */
.page-sidebar {
  padding-left: 40px;
}

.sidebar-widget {
  background: white;
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 32px;
  border: 1px solid var(--clr-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.widget-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--clr-text);
  margin-bottom: 24px;
  border-bottom: 2px solid var(--clr-primary);
  padding-bottom: 12px;
}

/* ===== TABLE OF CONTENTS ===== */
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  margin-bottom: 12px;
}

.toc-link {
  color: var(--clr-muted);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 8px;
  display: block;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.toc-link:hover {
  background: var(--clr-hero-tint);
  color: var(--clr-primary);
  border-left-color: var(--clr-primary);
}

.toc-link.active {
  background: var(--clr-hero-tint);
  color: var(--clr-primary);
  border-left-color: var(--clr-primary);
  font-weight: 500;
}

/* ===== RELATED LINKS ===== */
.related-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.related-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--clr-text);
  text-decoration: none;
  padding: 16px;
  border-radius: 12px;
  background: #fafbfc;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.related-link:hover {
  background: var(--clr-hero-tint);
  border-color: var(--clr-primary);
  color: var(--clr-text);
  transform: translateX(4px);
}

.related-link i {
  color: var(--clr-primary);
  font-size: 16px;
  width: 20px;
}

/* ===== SIDEBAR CTA ===== */
.sidebar-cta {
  background: linear-gradient(135deg, var(--clr-primary) 0%, #8b5cf6 100%);
  color: white;
}

.sidebar-cta .widget-title {
  color: white;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.cta-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.cta-description {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.9);
}

.sidebar-cta .btn-primary {
  background: white;
  color: var(--clr-primary);
  border-color: white;
}

.sidebar-cta .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--clr-primary-dark);
  transform: translateY(-2px);
}

/* ===== VIDEO SECTION ===== */
.page-video-section {
  padding: 100px 0;
  background: #fafbfc;
}

.video-header {
  text-align: center;
  margin-bottom: 60px;
}

.video-section__title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.2;
  color: var(--clr-text);
  margin-bottom: 24px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.video-section__description {
  font-size: 18px;
  line-height: 1.6;
  color: var(--clr-muted);
  margin-bottom: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.video-embed-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.video-embed-container:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.video-embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== GALLERY SECTION ===== */
.page-gallery-section {
  padding: 100px 0;
  background: var(--clr-bg);
}

.gallery-header {
  text-align: center;
  margin-bottom: 60px;
}

.gallery-section__title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.2;
  color: var(--clr-text);
  margin-bottom: 24px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.gallery-section__description {
  font-size: 18px;
  line-height: 1.6;
  color: var(--clr-muted);
  margin-bottom: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(107, 78, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

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

.gallery-overlay i {
  color: white;
  font-size: 24px;
}

/* ===== LIGHTBOX STYLES ===== */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-container {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: calc(90vh - 120px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease;
}

.lightbox-caption {
  color: white;
  text-align: center;
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.5;
  max-width: 600px;
  padding: 0 20px;
}

.lightbox-counter {
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
}

/* Lightbox Controls */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev:disabled,
.lightbox-next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.lightbox-prev:disabled:hover,
.lightbox-next:disabled:hover {
  transform: translateY(-50%) scale(1);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ===== DOWNLOADS SECTION ===== */
.page-downloads-section {
  padding: 100px 0;
  background: #fafbfc;
}

.downloads-header {
  text-align: center;
  margin-bottom: 60px;
}

.downloads-section__title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.2;
  color: var(--clr-text);
  margin-bottom: 24px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.downloads-section__description {
  font-size: 18px;
  line-height: 1.6;
  color: var(--clr-muted);
  margin-bottom: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.download-item {
  background: white;
  border-radius: 20px;
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--clr-border);
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.download-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.download-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 24px;
}

.download-icon .fa-file-pdf {
  background: #dc2626;
  color: white;
}

.download-icon .fa-file-powerpoint {
  background: #d97706;
  color: white;
}

.download-icon .fa-file-alt {
  background: #059669;
  color: white;
}

.download-icon .fa-file-excel {
  background: #047857;
  color: white;
}

.download-content {
  flex: 1;
}

.download-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--clr-text);
  margin-bottom: 8px;
}

.download-description {
  font-size: 14px;
  line-height: 1.5;
  color: var(--clr-muted);
  margin-bottom: 12px;
}

.download-meta {
  display: flex;
  gap: 16px;
  align-items: center;
}

.download-size,
.download-type {
  font-size: 12px;
  font-weight: 600;
  color: var(--clr-muted);
  background: #f3f4f6;
  padding: 4px 8px;
  border-radius: 6px;
}

.download-action {
  flex-shrink: 0;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.download-btn:hover {
  transform: translateY(-2px);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 991px) {
  .page-content__main {
    padding-right: 0;
    margin-bottom: 40px;
  }
  
  .page-sidebar {
    padding-left: 0;
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
    padding: 32px;
  }
  
  .values-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  
  .downloads-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .page-hero {
    height: 50vh;
    min-height: 400px;
  }
  
  .page-hero__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .page-content {
    padding: 60px 0;
  }
  
  .content-block {
    margin-bottom: 40px;
  }
  
  .content-title {
    font-size: clamp(20px, 4vw, 28px);
  }
  
  .content-lead {
    font-size: 18px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 24px;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .value-card {
    padding: 24px;
  }
  
  .sidebar-widget {
    padding: 24px;
  }
  
  .page-video-section,
  .page-gallery-section,
  .page-downloads-section {
    padding: 60px 0;
  }
  
  .video-header,
  .gallery-header,
  .downloads-header {
    margin-bottom: 40px;
  }
  
  .video-section__title,
  .gallery-section__title,
  .downloads-section__title {
    font-size: clamp(24px, 6vw, 32px);
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .download-item {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 24px;
  }
  
  .download-meta {
    justify-content: center;
  }
  
  .download-action {
    width: 100%;
  }
  
  .download-btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Lightbox mobile adjustments */
  .lightbox-container {
    max-width: 95vw;
    max-height: 95vh;
  }
  
  .lightbox-image {
    max-height: calc(90vh - 160px);
  }
  
  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .lightbox-prev,
  .lightbox-next {
    width: 50px;
    height: 50px;
    font-size: 16px;
  }
  
  .lightbox-prev {
    left: 10px;
  }
  
  .lightbox-next {
    right: 10px;
  }
  
  .lightbox-caption {
    font-size: 14px;
    margin-top: 15px;
  }
}

@media (max-width: 480px) {
  .page-hero {
    height: 45vh;
    min-height: 350px;
  }
  
  .breadcrumb {
    padding: 6px 16px;
    font-size: 12px;
  }
  
  .page-hero__title {
    font-size: clamp(28px, 8vw, 40px);
  }
  
  .page-hero__subtitle {
    font-size: 16px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }
  
  .stat-number {
    font-size: clamp(24px, 6vw, 32px);
  }
  
  .value-card {
    padding: 20px;
  }
  
  .sidebar-widget {
    padding: 20px;
  }
  
  .video-play-btn {
    width: 60px;
    height: 60px;
    font-size: 18px;
  }
}
