/* Font & general layout */
body {
  font-family: 'Segoe UI', 'Arial', sans-serif;
  background-color: #f4f5fa;
}

.container {
  max-width: 1200px;
}

/* Header */
h1 {
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* Card enhancements */
.card {
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: scale(1.02);
}

.card-img-top {
  object-fit: cover;
  height: 200px;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

/* Form elements inside cards */
.card-body label {
  font-weight: 500;
  margin-top: 0.5rem;
}

.card-body input,
.card-body textarea {
  font-size: 0.9rem;
}

/* Dropdown styling */
#competitionSelect {
  max-width: 400px;
}

/* Placeholder text */
.empty-gallery {
  font-style: italic;
  color: #777;
  text-align: center;
  padding: 2rem;
}

/* Buttons if used later */
button {
  margin-right: 0.25rem;
}

/* Optional: primary color theme */
:root {
  --nppc-primary: #005b96;
  --nppc-accent: #ffcb05;
}

.text-primary {
  color: var(--nppc-primary) !important;
}

/* --- Modern Card Grid Styles (ChatGPT) --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  margin: 1.5rem auto;
  max-width: 800px;
  width: 100%;
  justify-items: center;
  background: none;
}

.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  padding: 1rem 1rem 0.8rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 180px;
  max-width: 200px;
  width: 100%;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 8px 32px rgba(123, 77, 244, 0.13);
  transform: translateY(-4px) scale(1.02);
}

.card .icon {
  width: 28px;
  height: 34px;
  margin-bottom: 0.7rem;
  color: #bdbdbd;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.card .title {
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 0.15rem;
  margin-top: 0;
  letter-spacing: 0.01em;
}

.card .date {
  font-size: 0.85rem;
  color: #444;
  margin-bottom: auto;
}

button.download-btn, .download-btn {
  display: flex;
  align-items: center;
  background-color: #7b4df4 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 0.5rem 1rem !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  cursor: pointer;
  margin-top: 1rem;
  box-shadow: 0 2px 8px rgba(123, 77, 244, 0.08);
  transition: background 0.18s, box-shadow 0.18s;
  text-decoration: none !important;
  gap: 0.4rem;
  justify-content: center;
}
button.download-btn:hover, .download-btn:hover {
  background-color: #673de6 !important;
  box-shadow: 0 4px 16px rgba(123, 77, 244, 0.15);
}

.download-btn svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
  margin-right: 0.2em;
}

/* --- Purple Corner Triangles --- */
.corner-bg {
  position: fixed;
  z-index: 0;
  pointer-events: none;
}
.corner-bg-top {
  top: 0;
  left: 0;
  width: 40vw;
  height: 40vh;
  background: #7b4df4;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.corner-bg-bottom {
  bottom: 0;
  right: 0;
  width: 45vw;
  height: 45vh;
  background: #7b4df4;
  clip-path: polygon(100% 100%, 0 100%, 100% 0);
}

/* Ensure main content is above the triangles */
body, .container, .main-content {
  position: relative;
  z-index: 1;
}

/* --- Contact Card Centering --- */
.contact-card-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 60vh;
  margin-top: 2rem;
}

.contact-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  padding: 2rem 2.5rem;
  max-width: 520px;
  width: 100%;
  margin: 0 1rem;
}
