.td_hero {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.display-4 {
    color: #00001b; /* Adjust to match your blue */
    line-height: 1.2;
}

.enrollment-form {
    background-color: #00001b; /* Adjust to match your blue */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-height: 100vh;
    overflow-y: auto;
}

.form-control, .form-select {
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.btn-danger {
    background-color: #dc3545;
    border: none;
    padding: 12px;
    border-radius: 4px;
    font-weight: bold;
}

.paper-plane-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .td_hero {
        padding: 40px 0;
    }
    
    .display-4 {
        font-size: 2rem;  
    }
    
    .paper-plane-img {
        display: none;
    }
}

.bg-form{
  background-color: #fdf1db86;
}
.btn-sub{
  background: #ff9b24;
  color: #fff;
  cursor: pointer;
  border-radius: 5px;
  border: none;
  padding: 5px;
}

/* Disabled button styles */
.btn-sub:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-sub::after{
  background: #155b2e;
}

.pillars-container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.pillar-row {
  display: flex;
  justify-content: space-between;
  position: relative;
  width: 100%;
  margin-bottom: 2rem;
}

.pillar {
  width: 50%;
  position: relative;
}

.left-aligned {
  text-align: right;
  padding-right: 220px;
}

.right-aligned {
  text-align: left;
  padding-left: 220px;
}

.pillar-content {
  max-width: 350px;
  margin: 0 auto;
}

.left-aligned .pillar-content {
  margin-right: 0;
  margin-top: 1.5rem;
}

.right-aligned .pillar-content {
  margin-left: 0;
  margin-top: 1.5rem;
}

.pillar h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.pillar p {
  font-size: 0.95rem;
  line-height: 1.4;
}

.icon-container {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  top: 0;
}

.left-aligned .icon-container {
  right: 120px;
}

.right-aligned .icon-container {
  left: 120px;
}

.icon-container img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.dashed-connector {
  position: absolute;
  border-top: 2px dashed #ccc;
  width: 60px;
  height: 1px;
  top: 40px;
}

.right-dashed {
  right: -60px;
}

.left-dashed {
  left: -60px;
}

.central-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 180px;
  height: 180px;
}

.central-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

/* Updated colors to match the reference image */
.icon-academic {
  background-color: rgba(230, 230, 250, 0.6);
}

.icon-critical {
  background-color: rgba(255, 235, 205, 0.6);
}

.icon-skill {
  background-color: rgba(255, 248, 220, 0.6);
}

.icon-health {
  background-color: rgba(255, 228, 225, 0.6);
}

.icon-community {
  background-color: rgba(230, 240, 250, 0.6);
}

.icon-safety {
  background-color: rgba(255, 220, 255, 0.6);
}

/* Responsive styles */
@media screen and (max-width: 1100px) {
  .left-aligned {
    padding-right: 100px;
  }
  
  .right-aligned {
    padding-left: 100px;
  }
}

@media screen and (max-width: 900px) {
  .pillars-container {
    gap: 3rem;
  }
  
  .left-aligned {
    padding-right: 90px;
  }
  
  .right-aligned {
    padding-left: 90px;
  }
}

@media screen and (max-width: 768px) {
  .pillar-row {
    flex-direction: column;
    align-items: center;
    gap: 3rem;
  }
  
  .pillar {
    width: 100%;
    max-width: 400px;
    text-align: center;
    padding: 0 !important;
    margin-bottom: 20px;
  }
  
  .left-aligned, .right-aligned {
    padding: 0;
  }
  
  .pillar-content {
    margin: 0 auto;
    text-align: center;
    padding-top: 100px;
  }
  
  .dashed-connector {
    display: none;
  }
  
  .icon-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
  }
  
  .central-logo {
    position: relative;
    margin: 30px auto;
    transform: none;
    left: auto;
    top: auto;
  }
  
  .pillars-container {
    display: flex;
    flex-direction: column;
  }
}

@media screen and (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  
  .container-header {
    padding: 0.3rem;
  }
  
  .pillar-content {
    max-width: 100%;
  }
}


.myi-section {
  color: #00001b;
  text-align: center;
  padding: 50px 20px;
}

.myi-icons-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.myi-icon-box {
  width: 130px;
  text-align: center;
}

.myi-icon-box img {
  width: 120px;
  height: 120px;
  background-color: white;
  border-radius: 20%;
  padding: 15px;
}

.myi-icon-box p {
  margin-top: 10px;
  font-size: 16px;
}

/* Mobile view only - use grid layout */
@media (max-width: 768px) {
  .myi-icons-container {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
      justify-content: center;
      align-items: center;
  }
  
  .myi-icon-box {
    width: 100%;
    max-width: 120px;
  }
  
  .myi-icon-box img {
    width: 100px;
    height: 100px;
  }
}

/* Tablet and desktop view - keep flexbox layout */
@media (min-width: 769px) {
  .myi-icons-container {
    display: flex;
  }
}

.svg-ico-sz{
  width: 25px !important;
  padding-bottom: 5px;
}

.td_hero .container-fluid {
  max-width: 1600px; /* Adjust this value based on your needs */
  margin: 0 auto;
}

/* Responsive padding adjustments */
@media (max-width: 768px) {
  .td_hero .container-fluid {
      padding-left: 15px;
      padding-right: 15px;
  }
}

/* Tablet-specific styles (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .td_hero .container-fluid {
      max-width: 720px;
  }
  
  .td_hero .hero-image-container {
      margin: -1rem 0;
  }
  
  .td_hero .project-zero-banner {
      margin: 1rem auto;
      max-width: 80%;
  }
  
  .enrollment-form {
      max-width: 100%;
      margin: 0 auto;
  }
}

/* Form responsiveness fixes */
.enrollment-form {
    max-height: 100vh;
    overflow-y: auto;
}

@media (max-height: 800px) {
    .enrollment-form {
        max-height: 90vh;
    }
    
    .form-control-sm, .form-select-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }
    
    .enrollment-form .mb-2 {
        margin-bottom: 0.5rem !important;
    }
}

/* Laptop screens */
@media (min-width: 992px) and (max-height: 768px) {
    .enrollment-form {
        padding: 0.75rem !important;
    }
    
    .form-control-sm, .form-select-sm {
        padding: 0.25rem 0.5rem;
        height: calc(1.5em + 0.5rem + 2px);
    }
    
    .btn-sub {
        padding: 0.375rem 0.75rem;
    }
}

/* Ensure form is scrollable on very small heights */
@media (max-height: 600px) {
    .enrollment-form {
        max-height: 400px;
        overflow-y: auto;
    }
}

/* Custom Modal Styles */
.custom-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.modal-header {
    background-color: #ff9b24; /* Accent color from the theme */
    color: white;
    padding: 20px;
    position: relative;
}

.modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.close-modal {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close-modal:hover {
    color: #f0f0f0;
}

.modal-body {
    padding: 30px;
    text-align: center;
}

.modal-body p {
    font-size: 18px;
    color: #00001b; /* Heading color from theme */
    margin-bottom: 30px;
    line-height: 1.5;
}

.modal-footer {
    text-align: center;
}

/* Responsive modal styles */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header h3 {
        font-size: 20px;
    }
    
    .modal-body p {
        font-size: 16px;
    }
}

#formStatus.success{
  background:#16a34a; /* green */
  color:#fff;
  padding:14px;
  text-align:center;
  border-radius:4px;
}
#formStatus.error{
  background:#ef4444; /* red */
  color:#fff;
  padding:14px;
  text-align:center;
  border-radius:4px;
}
#formStatus.success{
  background:#16a34a; /* green */
  color:#fff;
  padding:14px;
  text-align:center;
  border-radius:4px;
}
#formStatus.error{
  background:#ef4444; /* red */
  color:#fff;
  padding:14px;
  text-align:center;
  border-radius:4px;
}
