
:root {
  --hero-padding-top: 10px;
  --hero-padding-bottom: 10px;
  --title-font-size: 1.75rem;
  --subtitle-font-size: 0.9rem;
}

/* Hero Section - Compact Height */
.designs-hero {
  background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
  color: white;
  padding: var(--hero-padding-top) 0 var(--hero-padding-bottom);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.designs-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23ffffff" opacity="0.05"><polygon points="0,0 1000,50 1000,100 0,100"/></svg>') bottom center/cover no-repeat;
}

.designs-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.designs-title {
  font-size: var(--title-font-size);
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(45deg, #fff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.designs-subtitle {
  font-size: var(--subtitle-font-size);
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.4;
}

.designs-content {
  padding: 1px 0 20px; /* This creates 20px space above footer */
  background: linear-gradient(to bottom, #f8fafc, #ffffff);
}

.designs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
  margin-top: 50px;
}

/* Design Cards */
.design-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.design-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.design-preview {
  position: relative;
  height: 300px;
  background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pdf-icon {
  font-size: 3rem;
  opacity: 0.8;
  z-index: 2;
}

.design-thumbnail-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
  color: #4a5568;
  font-weight: 600;
}

.design-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 54, 93, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.design-card:hover .design-overlay {
  opacity: 1;
}

.view-design-btn {
  background: white;
  color: #1a365d;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-design-btn:hover {
  background: #f7fafc;
  transform: scale(1.05);
}

/* Design Info */
.design-info {
  padding: 20px;
}

.design-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a365d;
  margin-bottom: 8px;
}

.design-description {
  color: #4a5568;
  line-height: 1.5;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.design-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.file-size {
  color: #718096;
  font-size: 0.85rem;
  background: #f7fafc;
  padding: 4px 8px;
  border-radius: 4px;
}

.design-date {
  color: #718096;
  font-size: 0.85rem;
}

/* Download Button */
.download-btn {
  display: inline-block;
  width: 100%;
  background: #1a365d;
  color: white;
  text-align: center;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid #1a365d;
  font-size: 0.95rem;
}

.download-btn:hover {
  background: white;
  color: #1a365d;
}

/* PDF Modal */
.pdf-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.pdf-modal-content {
  background: white;
  border-radius: 12px;
  width: 95%;
  max-width: 1100px;
  height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.pdf-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #1a365d;
  color: white;
}

.pdf-modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.close-modal {
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.close-modal:hover {
  background: rgba(255, 255, 255, 0.1);
}

.pdf-modal-body {
  flex: 1;
  padding: 0;
  background: #f7fafc;
}

.pdf-modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsive Design - FIXED */
@media (max-width: 1024px) {
  .designs-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .designs-hero {
    padding: 8px 0 8px;
  }

  .designs-title {
    font-size: 1.5rem;
  }

  .designs-subtitle {
    font-size: 0.85rem;
  }

  .designs-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 15px;
  }

  .designs-container {
    padding: 0 16px;
  }

  .designs-content {
    padding: 1px 0 20px; /* Keep 20px bottom spacing */
  }

  .design-info {
    padding: 16px;
  }

  .pdf-modal-content {
    width: 98%;
    height: 80vh;
  }

  .pdf-modal-header {
    padding: 12px 16px;
  }
}

@media (max-width: 480px) {
  .designs-hero {
    padding: 6px 0 6px;
  }

  .designs-title {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
  }

  .designs-subtitle {
    font-size: 0.8rem;
  }

  .designs-content {
    padding: 1px 0 20px; /* Keep 20px bottom spacing */
  }

  .design-preview {
    height: 160px;
  }

  .designs-grid {
    margin-top: 10px;
  }

  .view-design-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .download-btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
}

/* Focus States for Accessibility */
.view-design-btn:focus,
.download-btn:focus,
.close-modal:focus {
  outline: 2px solid #1a365d;
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .design-overlay,
  .download-btn,
  .pdf-modal {
    display: none !important;
  }

  .design-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

@media (max-width: 768px) {
  .designs-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 40px; /* Increased from 15px to 40px */
  }
}

@media (max-width: 480px) {
  .designs-grid {
    margin-top: 30px; /* Increased from 10px to 30px */
  }
}

/* Tablet-specific fixes (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .designs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
  }

  .design-preview {
    height: 250px;
  }

  .design-info {
    padding: 18px;
  }

  .design-title {
    font-size: 1.1rem;
  }

  .design-description {
    font-size: 0.9rem;
  }
}

