/* ============================================
   CASE STUDY TEMPLATE - SIMPLE & CASUAL
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.7;
  color: #2d3748;
  background: #f5f5f5;
}

.case-study-container {
  max-width: 1400px;
  margin: 0 auto;
  min-height: 100vh;
}

/* ============================================
   HEADER
   ============================================ */

.case-study-header {
  padding: 80px 40px 60px;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
  background: rgba(0, 0, 0, 0);
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.case-study-header img,
.case-study-header h1{
  max-width: 100%;
  max-height: 120px;
  margin: 0 auto;
}

.case-study-header h1 {
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #1a202c;
}

.case-study-header p {
  font-size: 20px;
  color: #718096;
  font-weight: 300;
}

@media screen and (max-width: 768px) {
  .case-study-header {
    padding: 60px 20px 40px;
    max-width: 90vw;
  }
  
  .case-study-header h1 {
    font-size: 32px;
  }
  
  .case-study-header p {
    font-size: 18px;
  }
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */

.case-study-content {
  padding: 60px 0;
  background: white;
}

.content-section {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0px;
  align-items: center;
  padding: 80px 40px;
  border-bottom: 1px solid #e2e8f0;
}

.content-section:last-of-type {
  border-bottom: none;
}


.content-section.even {
  grid-template-columns: 1fr 1fr;
}

.content-section.flipped {
  grid-template-columns: 2fr 1fr;
}

/* Full-width content section */
.content-section.full-width {
  grid-template-columns: 1fr;
  max-width: 1200px;
  margin: 0 auto;
}

.content-section.full-width h2 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #1a202c;
}

.content-section.full-width h3 {
  font-size: 24px;
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 10px;
  color: #1a202c;
}

.content-section.full-width p {
  font-size: 18px;
  color: #4a5568;
  margin-bottom: 20px;
}

.content-section.full-width ul {
  margin-left: 20px;
  margin-bottom: 20px;
  font-size: 18px;
  color: #4a5568;
  line-height: 1.8;
}

.content-section.full-width ul li {
  margin-bottom: 8px;
}

.section-image {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.section-image img,
.section-image video {
  max-width: 320px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: block;
}

.section-image.large img,
.section-image.large video {
  max-width: 500px;
  width: 100%;
}

.section-image img.no-shadow,
.section-image video.no-shadow,
.full-width-image img.no-shadow {
  box-shadow: none;
}

.full-width-image video {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.full-width-image video.no-shadow {
  box-shadow: none;
}

/* Full-width text in content section */
.content-section .section-text.full-width-text {
  grid-column: 1 / -1;
}

/* Full-width app icons container */
.content-section .full-width-app-icons {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 40px;
}

/* Case study app icons - larger and in a row */
.case-study-app-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 50px;
  margin-top: 20px;
}

.case-study-app-icons .linkOption.appIcon {
  width: auto;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.case-study-app-icons .linkOption.appIcon img {
  width: 150px !important;
  height: 150px !important;
  border-radius: 40px;
  box-shadow: 0 0px 20px rgba(0, 0, 0, 0.1);
}

.case-study-app-icons .linkOption.appIcon .text-link {
  margin-top: 10px;
  font-size: 14px;
}

.full-width-image {
  grid-column: 1 / -1;
  width: 100%;
  margin: 20px 0;
  display: flex;
  justify-content: center;
}

.full-width-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: block;
}

.full-width-image img.no-shadow {
  box-shadow: none;
}

.section-image .youtube-embed {
  width: 337.5px;
  height: 600px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: none;
}

.section-text {
  padding: 20px 0;
}

.section-text h2 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #1a202c;
}

.section-text p {
  font-size: 18px;
  color: #4a5568;
  margin-bottom: 20px;
}

.section-text p:last-child {
  margin-bottom: 0;
}

.section-text h3 {
  font-size: 24px;
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 10px;
  color: #1a202c;
}

.section-text ul {
  margin-left: 20px;
  margin-bottom: 20px;
  font-size: 18px;
  color: #4a5568;
  line-height: 1.8;
}

.section-text ul li {
  margin-bottom: 8px;
}

.section-text ul:last-child {
  margin-bottom: 0;
}

/* Alternating layout - reverse order on mobile */
@media screen and (max-width: 968px) {
  .content-section,
  .content-section.flipped,
  .content-section.even {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 20px;
  }
  
  .section-image.left,
  .section-image.right {
    order: 1;
  }
  
  .section-text.left,
  .section-text.right {
    order: 2;
  }
  
  .section-text h2 {
    font-size: 28px;
  }
  
  .section-text p {
    font-size: 16px;
  }
  
  .content-section.full-width {
    padding: 60px 20px;
  }
  
  .content-section.full-width h2 {
    font-size: 28px;
  }
  
  .content-section.full-width h3 {
    font-size: 22px;
  }
  
  .content-section.full-width p,
  .content-section.full-width ul {
    font-size: 16px;
  }
}

/* ============================================
   FOOTER
   ============================================ */

.case-study-footer {
  padding: 40px;
  text-align: center;
  border-top: 1px solid #e2e8f0;
}

.case-study-footer a {
  color: #667eea;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.case-study-footer a:hover {
  color: #764ba2;
}

@media screen and (max-width: 768px) {
  .case-study-footer {
    padding: 30px 20px;
  }
}





/* CUSTOM STYLES */

.background-flylist {
  background: linear-gradient(to bottom right, #9f00fe, #002bfe);
}