@import url('./assets/fonts/fonts.css');

body {
  font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background: #fafbfc;
  color: #222;
  margin: 0;
  padding: 0;
}

/* Mobile iframe container styles */
.mobile-iframe-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 1000;
  flex-direction: column;
  display: none;
}

.iframe-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #e5e5ea;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  min-height: 44px;
  position: relative;
}

.back-button {
  background: none;
  border: none;
  font-size: 17px;
  color: #007AFF;
  cursor: pointer;
  padding: 8px 12px 8px 0;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 4px;
}

.back-button:hover {
  opacity: 0.7;
}

.iframe-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 600;
  font-size: 17px;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
}

.mobile-iframe {
  flex: 1;
  width: 100%;
  height: calc(100vh - 60px);
  border: none;
  background: #fff;
}

.siya-header {
  padding: 1rem 0;
  margin-top: -30px; 
}

.nav-container {
  display: flex;
  justify-content: flex-start;  /* Align to the left */
  align-items: center;
  padding: 0 4rem;
}

.logo-image {
  height: 22px;  /* Increased from 16px */
  width: auto;
  /* margin-left: 10px; */
}

/* Adjust main header spacing */
.header {
  text-align: center;
  margin-top: 30px;  /* Reduced from 40px */
  margin-bottom: 8px;
  padding: 0 16px;
}

.header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.header p {
  color: #a0a0a0;
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 32px;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  padding: 0 16px;
  flex-wrap: wrap;
}

.tab {
  background: #f5f5f7;
  color: #888;
  border: none;
  border-radius: 16px;
  padding: 6px 18px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.tab.active, .tab:focus {
  background: #e5e5ea;
  color: #222;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px 24px;
}

.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  height: 100%;
  transition: box-shadow 0.2s, transform 0.2s;
  justify-content: flex-start;
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.13);
  transform: translateY(-2px) scale(1.01);
}

.card-content {
  padding: 22px 20px 0 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

.card-quote {
  font-size: 1.1rem;
  color: #b0b0b0;
  font-weight: 600;
  margin-bottom: 6px;
  margin-left: 0;
  line-height: 1;
}

.card-desc {
  color: #757575;
  font-size: 0.98rem;
  font-weight: 400;
  margin-bottom: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-title-section {
  border-top: 1px solid #f0f0f0;
  background: #fafbfc;
  padding: 16px 20px;
  min-height: 40px;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #222;
  margin: 0;
}

.card .card-image {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin-bottom: 16px;
}

.card .card-image img {
  width: 100%;
  height: 180px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: none;
}

.card .card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

.card .card-desc {
  color: #757575;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tablet breakpoint */
@media (max-width: 1100px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0 20px 40px 20px;
  }
  
  .nav-container {
    padding: 0 2rem;
  }
}

/* Small tablet breakpoint */
@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .header h1 {
    font-size: 2.2rem;
  }
  
  .header p {
    font-size: 1rem;
    margin-bottom: 24px;
  }
  
  .tabs {
    margin-bottom: 24px;
    gap: 6px;
  }
  
  .tab {
    font-size: 0.95rem;
    padding: 6px 16px;
  }
}

/* Mobile landscape breakpoint */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 1.5rem;
  }
  
  .header {
    margin-top: 20px;
    padding: 0 20px;
  }
  
  .header h1 {
    font-size: 2rem;
    letter-spacing: -0.5px;
  }
  
  .header p {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 20px;
  }
  
  .tabs {
    padding: 0 20px;
    margin-bottom: 20px;
    gap: 8px;
  }
  
  .tab {
    font-size: 0.9rem;
    padding: 8px 16px;
    min-width: auto;
  }
  
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0 16px 32px 16px;
  }
  
  .card {
    min-height: 280px;
  }
  
  .card .card-image img {
    height: 140px;
  }

  iframe{
    height: calc(100% - 100px)
  }
}

/* Mobile portrait breakpoint */
@media (max-width: 640px) {
  .siya-header {
    padding: 0.75rem 0;
    margin-top: -20px;
  }
  
  .nav-container {
    padding: 0 1rem;
  }
  
  .logo-image {
    height: 20px;
  }
  
  .header {
    margin-top: 16px;
    padding: 0 16px;
  }
  
  .header h1 {
    font-size: 1.8rem;
    margin-bottom: 6px;
  }
  
  .header p {
    font-size: 0.9rem;
    margin-bottom: 16px;
  }
  
  .tabs {
    padding: 0 16px;
    margin-bottom: 16px;
    gap: 6px;
  }
  
  .tab {
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 12px;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 12px 24px 12px;
  }
  
  .card {
    min-height: 260px;
    border-radius: 16px;
  }
  
  .card-content {
    padding: 18px 16px 0 16px;
  }
  
  .card .card-content {
    padding: 16px;
  }
  
  .card-title-section {
    padding: 14px 16px;
  }
  
  .card-title {
    font-size: 0.95rem;
  }
  
  .card-desc {
    font-size: 0.9rem;
    -webkit-line-clamp: 3;
  }
  
  .card .card-desc {
    font-size: 0.9rem;
  }
  
  .card .card-image img {
    height: 120px;
    border-radius: 6px;
  }
}

/* Extra small mobile breakpoint */
@media (max-width: 480px) {
  .siya-header {
    padding: 0.5rem 0;
    margin-top: 0px;
  }
  
  .nav-container {
    padding: 0 0.75rem;
  }
  
  .logo-image {
    height: 18px;
  }
  
  .header {
    margin-top: 12px;
    padding: 0 12px;
  }
  
  .header h1 {
    font-size: 1.6rem;
    line-height: 1.2;
  }
  
  .header p {
    font-size: 0.85rem;
    line-height: 1.3;
    margin-bottom: 12px;
  }
  
  .tabs {
    padding: 0 12px;
    margin-bottom: 12px;
    gap: 4px;
  }
  
  .tab {
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 10px;
  }
  
  .cards-grid {
    gap: 10px;
    padding: 0 8px 20px 8px;
  }
  
  .card {
    min-height: 240px;
    border-radius: 14px;
  }
  
  .card-content {
    padding: 16px 14px 0 14px;
  }
  
  .card .card-content {
    padding: 14px;
  }
  
  .card-title-section {
    padding: 12px 14px;
  }
  
  .card-title {
    font-size: 0.9rem;
  }
  
  .card-desc {
    font-size: 0.85rem;
    line-height: 1.4;
  }
  
  .card .card-desc {
    font-size: 0.85rem;
  }
  
  .card .card-image img {
    height: 100px;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .header h1 {
    font-size: 1.4rem;
  }
  
  .header p {
    font-size: 0.8rem;
  }
  
  .tab {
    font-size: 0.75rem;
    padding: 4px 8px;
  }
  
  .card {
    min-height: 220px;
  }
  
  .card-desc {
    font-size: 0.8rem;
  }
  
  .card .card-desc {
    font-size: 0.8rem;
  }
  
  /* Mobile iframe adjustments for very small screens */
  .iframe-header {
    padding: 8px 12px;
    min-height: 40px;
  }
  
  .back-button {
    font-size: 16px;
    padding: 6px 8px 6px 0;
  }
  
  .iframe-title {
    font-size: 16px;
    max-width: 55%;
  }
  
  .mobile-iframe {
    height: calc(100vh - 56px);
  }
}

/* Mobile iframe responsive adjustments */
@media (max-width: 768px) {
  .mobile-iframe-container {
    /* Ensure iframe container works well on tablets and mobile */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1001;
  }
  
  .iframe-header {
    padding: 10px 16px;
    /* Add safe area insets for notched devices */
    padding-top: max(10px, env(safe-area-inset-top));
  }
  
  .mobile-iframe {
    height: calc(100vh - 64px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }
}

@media (max-width: 640px) {
  .iframe-header {
    padding: 8px 16px;
    padding-top: max(8px, env(safe-area-inset-top));
  }
  
  .back-button {
    font-size: 16px;
  }
  
  .iframe-title {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .iframe-header {
    padding: 6px 12px;
    padding-top: max(6px, env(safe-area-inset-top));
    min-height: 36px;
  }
  
  .mobile-iframe {
    height: calc(100vh - 48px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }
}