/* Fieldz-specific color scheme */
:root {
  --fieldz-primary-orange: rgb(232, 140, 87);
  --fieldz-secondary-orange: rgb(221, 149, 99);
  --fieldz-notification-orange: rgb(220, 149, 100);
  --fieldz-light-orange: rgb(243, 219, 171);
  --fieldz-background-gray: rgb(235, 235, 235);
  --fieldz-gradient-start: rgba(232, 140, 87, 1);
  --fieldz-gradient-mid: rgba(243, 219, 171, 1);
  --fieldz-gradient-end: rgba(234, 242, 214, 0.4);
}

/* Fieldz-specific container styling */
.fieldz-project .container {
  max-width: 1140px;
  width: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.fieldz-project section {
  padding: 40px 0;
}

/* Hero section specific padding */
.fieldz-project .fieldz-hero {
  padding: 120px 0 80px;
}

/* Fieldz light orange metallic box styling for cards */
.fieldz-project .fieldz-details-card,
.fieldz-project .fieldz-achievements-card,
.fieldz-project .fieldz-feature-box,
.fieldz-project .fieldz-role-card,
.fieldz-project .fieldz-architecture-box {
  background: linear-gradient(145deg,
    rgba(255, 228, 196, 0.95) 0%,
    rgba(255, 239, 213, 0.9) 25%,
    rgba(255, 248, 220, 0.85) 50%,
    rgba(255, 239, 213, 0.9) 75%,
    rgba(255, 228, 196, 0.95) 100%);
  border-radius: 12px;
  box-shadow:
    0 4px 15px rgba(255, 200, 150, 0.2),
    0 1px 3px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 200, 150, 0.3);
  transition: all 0.3s ease;
  height: auto;
  overflow: hidden;
  position: relative;
}

.fieldz-project .fieldz-details-card::before,
.fieldz-project .fieldz-achievements-card::before,
.fieldz-project .fieldz-feature-box::before,
.fieldz-project .fieldz-role-card::before,
.fieldz-project .fieldz-architecture-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.4) 0%,
    transparent 50%,
    rgba(255, 200, 150, 0.1) 100%);
  border-radius: 12px;
  pointer-events: none;
}

.fieldz-project .fieldz-details-card:hover,
.fieldz-project .fieldz-achievements-card:hover,
.fieldz-project .fieldz-feature-box:hover,
.fieldz-project .fieldz-role-card:hover,
.fieldz-project .fieldz-architecture-box:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 8px 25px rgba(255, 200, 150, 0.3),
    0 3px 10px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08);
  border-color: rgba(255, 200, 150, 0.4);
}

/* Ensure text readability on light orange backgrounds */
.fieldz-project .fieldz-details-card,
.fieldz-project .fieldz-achievements-card,
.fieldz-project .fieldz-feature-box,
.fieldz-project .fieldz-role-card,
.fieldz-project .fieldz-architecture-box {
  color: #2c1810;
}

.fieldz-project .fieldz-details-card h5,
.fieldz-project .fieldz-achievements-card h5,
.fieldz-project .fieldz-feature-box h5,
.fieldz-project .fieldz-role-card h5,
.fieldz-project .fieldz-architecture-box h5 {
  color: #1a0e08;
  font-weight: 600;
}

.fieldz-project .fieldz-details-card h6,
.fieldz-project .fieldz-achievements-card h6,
.fieldz-project .fieldz-feature-box h6,
.fieldz-project .fieldz-role-card h6,
.fieldz-project .fieldz-architecture-box h6 {
  color: #2c1810;
  font-weight: 500;
}

.fieldz-project .fieldz-details-card .text-muted,
.fieldz-project .fieldz-achievements-card .text-muted,
.fieldz-project .fieldz-feature-box .text-muted,
.fieldz-project .fieldz-role-card .text-muted,
.fieldz-project .fieldz-architecture-box .text-muted {
  color: #5a3a2a;
}

/* Ensure icons have proper contrast - use theme colors for consistency */
.fieldz-project .fieldz-details-card i,
.fieldz-project .fieldz-achievements-card i,
.fieldz-project .fieldz-architecture-box i {
  color: #2c1810;
}

/* Feature box and role card icons should use theme orange */
.fieldz-project .fieldz-feature-box i,
.fieldz-project .fieldz-role-card i {
  color: var(--fieldz-primary-orange);
}

/* Ensure badges have proper contrast */
.fieldz-project .fieldz-details-card .badge,
.fieldz-project .fieldz-achievements-card .badge,
.fieldz-project .fieldz-feature-box .badge,
.fieldz-project .fieldz-role-card .badge,
.fieldz-project .fieldz-architecture-box .badge {
  background-color: rgba(44, 24, 16, 0.8);
  color: #ffffff;
}

.fieldz-hero {
  background: linear-gradient(135deg,
    var(--fieldz-gradient-start) 0%,
    var(--fieldz-gradient-mid) 35%,
    var(--fieldz-gradient-end) 100%);
  color: #000;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 0;
}

.fieldz-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.fieldz-section {
  padding: 40px 0;
  margin: 0;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.fieldz-feature-box {
  padding: 25px;
  margin-bottom: 25px;
  height: 100%;
  transition: all 0.3s ease;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.fieldz-feature-box i {
  font-size: 2.5rem;
  color: var(--fieldz-primary-orange);
  margin-bottom: 15px;
  display: block;
  text-align: center;
}

.fieldz-feature-box h4 {
  margin-bottom: 12px;
  text-align: center;
}

.fieldz-feature-box p {
  margin-bottom: 0;
  line-height: 1.5;
}

.fieldz-tech-badge {
  margin: 5px;
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--fieldz-primary-orange), var(--fieldz-secondary-orange));
  color: white;
  border: none;
  transition: all 0.3s ease;
  display: inline-block;
  white-space: nowrap;
}

.fieldz-tech-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(232, 140, 87, 0.3);
}

.fieldz-card {
  border-radius: 15px;
  border: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  margin-bottom: 20px;
  box-sizing: border-box;
  height: 100%;
}

.fieldz-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.fieldz-card-header {
  background: linear-gradient(135deg, var(--fieldz-primary-orange), var(--fieldz-secondary-orange));
  color: white;
  font-weight: 700;
  border: none;
  padding: 20px;
  margin: 0;
}

.fieldz-role-card {
  padding: 20px;
  margin-bottom: 25px;
  border-left: 5px solid var(--fieldz-primary-orange);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.fieldz-role-card h4 {
  margin-bottom: 12px;
  text-align: center;
}

.fieldz-role-card p {
  margin-bottom: 8px;
}

.fieldz-role-card ul {
  margin-bottom: 0;
}

.fieldz-architecture-box {
  padding: 25px;
  margin-bottom: 25px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.fieldz-architecture-box h4 {
  margin-bottom: 15px;
}

.fieldz-architecture-box .mb-3 {
  margin-bottom: 15px !important;
}

/* Equal-height rows for card layouts */
.row-equal-height {
  display: flex;
  align-items: stretch;
}

.row-equal-height > [class*="col-"] {
  display: flex;
}

.row-equal-height .fieldz-feature-box,
.row-equal-height .fieldz-role-card,
.row-equal-height .fieldz-architecture-box {
  flex: 1;
}

.fieldz-btn-primary {
  background: linear-gradient(135deg, var(--fieldz-primary-orange), var(--fieldz-secondary-orange));
  border: none;
  color: white;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 25px;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  margin: 5px;
}

.fieldz-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232, 140, 87, 0.3);
  background: linear-gradient(135deg, var(--fieldz-secondary-orange), var(--fieldz-primary-orange));
  color: white;
  text-decoration: none;
}

.fieldz-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  display: block;
  margin: 0 auto;
}

.fieldz-image:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.fieldz-stats-box {
  background: linear-gradient(135deg, var(--fieldz-primary-orange), var(--fieldz-secondary-orange));
  color: white;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  margin-bottom: 15px;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.fieldz-stats-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(232, 140, 87, 0.3);
}

.fieldz-stats-box h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.fieldz-stats-box p {
  margin-bottom: 0;
  font-weight: 500;
}

.fieldz-timeline {
  position: relative;
  padding-left: 30px;
  margin: 0;
}

.fieldz-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(135deg, var(--fieldz-primary-orange), var(--fieldz-secondary-orange));
}

.fieldz-timeline-item {
  position: relative;
  margin-bottom: 30px;
  padding-left: 30px;
}

.fieldz-timeline-item:last-child {
  margin-bottom: 0;
}

.fieldz-timeline-item::before {
  content: '';
  position: absolute;
  left: -9px;
  top: 5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--fieldz-primary-orange);
  border: 3px solid white;
}

.fieldz-timeline-item h6 {
  margin-bottom: 5px;
  font-weight: 600;
  color: var(--fieldz-primary-orange);
}

.fieldz-timeline-item p {
  margin-bottom: 0;
  line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .fieldz-hero {
    padding: 80px 0 50px;
  }

  .fieldz-section {
    padding: 30px 0;
  }

  .fieldz-feature-box {
    padding: 20px;
    margin-bottom: 20px;
  }

  .fieldz-stats-box {
    padding: 15px;
    margin-bottom: 15px;
  }

  .fieldz-stats-box h3 {
    font-size: 1.8rem;
  }

  .fieldz-role-card {
    padding: 20px;
    margin-bottom: 20px;
  }

  .fieldz-architecture-box {
    padding: 20px;
    margin-bottom: 20px;
  }

  .fieldz-card {
    margin-bottom: 20px;
  }

  .row {
    margin-bottom: 1.2rem;
  }

  .display-5 {
    margin-bottom: 0.8rem;
  }

  .title-underline {
    margin-bottom: 1.2rem;
  }

  .lead {
    margin-bottom: 1.2rem;
  }
}

@media (max-width: 480px) {
  .fieldz-hero {
    padding: 60px 0 30px;
  }

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

  .fieldz-feature-box {
    padding: 15px;
    margin-bottom: 15px;
  }

  .fieldz-stats-box {
    padding: 12px;
    margin-bottom: 12px;
  }

  .fieldz-stats-box h3 {
    font-size: 1.5rem;
  }

  .fieldz-role-card {
    padding: 15px;
    margin-bottom: 15px;
  }

  .fieldz-architecture-box {
    padding: 15px;
    margin-bottom: 15px;
  }

  .fieldz-card {
    margin-bottom: 15px;
  }

  .row {
    margin-bottom: 1rem;
  }

  .fieldz-tech-badge {
    margin: 2px;
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .display-5 {
    margin-bottom: 0.6rem;
  }

  .title-underline {
    margin-bottom: 1rem;
  }

  .lead {
    margin-bottom: 1rem;
  }

}

/* Project Details Card Styling - Standardized */

.fieldz-details-header {
  background: linear-gradient(135deg, var(--fieldz-primary-orange), var(--fieldz-secondary-orange));
  color: white;
  font-weight: 700;
  border: none;
  padding: 20px;
  margin: 0;
}

.fieldz-details-body {
  padding: 20px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(232, 140, 87, 0.1);
  margin-bottom: 0;
}

.detail-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-item:first-child {
  padding-top: 0;
}

.detail-label {
  font-weight: 600;
  color: var(--fieldz-primary-orange);
  font-size: 0.9rem;
  flex: 1;
}

.detail-value {
  font-weight: 500;
  color: #333;
  font-size: 0.9rem;
  text-align: right;
  flex: 1;
}

/* Key Achievements Card Styling - Standardized */

.fieldz-achievements-header {
  background: linear-gradient(135deg, var(--fieldz-primary-orange), var(--fieldz-secondary-orange));
  color: white;
  font-weight: 700;
  border: none;
  padding: 20px;
  margin: 0;
}

.fieldz-achievements-body {
  padding: 20px;
}

.achievement-item {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(232, 140, 87, 0.1);
  margin-bottom: 0;
}

.achievement-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.achievement-item:first-child {
  padding-top: 0;
}

.achievement-icon {
  color: var(--fieldz-primary-orange);
  font-size: 1.1rem;
  margin-right: 15px;
  flex-shrink: 0;
}

.achievement-text {
  font-weight: 500;
  color: #333;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Responsive adjustments for new cards */
@media (max-width: 768px) {
  .fieldz-details-body,
  .fieldz-achievements-body {
    padding: 20px;
  }

  .detail-item,
  .achievement-item {
    padding: 10px 0;
  }

  .detail-label,
  .detail-value,
  .achievement-text {
    font-size: 0.85rem;
  }

  .achievement-icon {
    font-size: 1rem;
    margin-right: 12px;
  }
}

@media (max-width: 480px) {
  .fieldz-details-body,
  .fieldz-achievements-body {
    padding: 15px;
  }

  .detail-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 0;
  }

  .detail-label,
  .detail-value {
    text-align: left;
    font-size: 0.8rem;
  }

  .detail-value {
    margin-top: 4px;
  }

  .achievement-item {
    padding: 8px 0;
  }

  .achievement-text {
    font-size: 0.8rem;
  }

  .achievement-icon {
    font-size: 0.9rem;
    margin-right: 10px;
  }
}

/* Hero Button Styling */
.fieldz-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 35px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  min-width: 180px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.fieldz-hero-btn-primary {
  background: linear-gradient(135deg, var(--fieldz-primary-orange), var(--fieldz-secondary-orange));
  color: white;
  border-color: var(--fieldz-primary-orange);
}

.fieldz-hero-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(232, 140, 87, 0.4);
  background: linear-gradient(135deg, var(--fieldz-secondary-orange), var(--fieldz-primary-orange));
  color: white;
  text-decoration: none;
}

.fieldz-hero-btn-secondary {
  background: rgba(255, 255, 255, 0.95);
  color: var(--fieldz-primary-orange);
  border-color: var(--fieldz-primary-orange);
}

.fieldz-hero-btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(232, 140, 87, 0.3);
  background: white;
  color: var(--fieldz-primary-orange);
  text-decoration: none;
}

/* Responsive adjustments for hero buttons */
@media (max-width: 768px) {
  .fieldz-hero-btn {
    padding: 12px 28px;
    font-size: 1rem;
    min-width: 160px;
  }
}

@media (max-width: 480px) {
  .fieldz-hero-btn {
    padding: 10px 24px;
    font-size: 0.9rem;
    min-width: 140px;
  }
}

/* Gallery Image Styling - Simplified */
.fieldz-gallery-item img,
.fieldz-image {
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  width: 100%;
  height: auto;
  display: block;
}

.fieldz-gallery-item img:hover,
.fieldz-image:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments for gallery */
@media (max-width: 768px) {
  .fieldz-gallery-item {
    padding: 8px;
    margin-bottom: 15px;
  }

  .fieldz-gallery-item h6 {
    font-size: 0.9rem;
  }

  .fieldz-gallery-item p {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .fieldz-gallery-item {
    padding: 6px;
    margin-bottom: 12px;
  }

  .fieldz-gallery-item h6 {
    font-size: 0.85rem;
  }

  .fieldz-gallery-item p {
    font-size: 0.75rem;
  }
}

/* Certificate-style poster styling */
.certificate-container {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  background: white;
}

.certificate-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(232, 140, 87, 0.3);
}

.certificate-link {
  display: block;
  text-decoration: none;
  position: relative;
}

.certificate-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(232, 140, 87, 0.1), rgba(221, 149, 99, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.certificate-link:hover::before {
  opacity: 1;
}

.certificate-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.certificate-link:hover .certificate-img {
  transform: scale(1.02);
}

/* Floating Course Button Styling */
.floating-course-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: auto;
  min-width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--fieldz-primary-orange), var(--fieldz-secondary-orange));
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: white;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(232, 140, 87, 0.3);
  transition: all 0.3s ease;
  z-index: 1001;
  border: none;
  cursor: pointer;
  padding: 0 15px;
}

.floating-btn-text {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.floating-course-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(232, 140, 87, 0.5);
  color: white;
  text-decoration: none;
  background: linear-gradient(135deg, var(--fieldz-secondary-orange), var(--fieldz-primary-orange));
}

.floating-course-btn:focus {
  outline: none;
  box-shadow: 0 8px 25px rgba(232, 140, 87, 0.5);
}

@media (max-width: 768px) {
  .floating-course-btn {
    width: auto;
    min-width: 50px;
    height: 50px;
    bottom: 20px;
    left: 20px;
    font-size: 1.2rem;
    padding: 0 12px;
    border-radius: 25px;
  }

  .floating-btn-text {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .floating-course-btn {
    width: auto;
    min-width: 45px;
    height: 45px;
    bottom: 20px;
    left: 15px;
    font-size: 1.1rem;
    padding: 0 10px;
    border-radius: 22px;
  }

  .floating-btn-text {
    font-size: 0.75rem;
  }
}
