/* Education Page Specific Styles */

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.info-panel {
  flex: 1 1 50%;
  padding: 5rem 5%;
  background: linear-gradient(135deg, rgba(128, 0, 0, 0.9), rgba(90, 0, 0, 0.9)), 
              url('../assets/images/education-hero.png');
  background-size: cover;
  background-position: center;
  color: var(--white);
  min-width: 320px;
}

.info-panel h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.info-panel .tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  max-width: 600px;
  opacity: 0.9;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.info-panel h2 {
  font-size: 1.8rem;
  font-weight: 700;
  border-left: 4px solid var(--white);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.why-us-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem 1.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  transition: transform 0.3s ease;
}

.why-us-item:hover {
  transform: translateY(-5px);
}

.why-us-item i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.why-us-item h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-panel {
  flex: 1 1 50%;
  padding: 5rem 5%;
  background: var(--white);
  min-width: 320px;
}

.form-panel h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--maroon);
}

.form-panel p {
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--black);
}

.form-group label i {
  color: var(--maroon);
  margin-right: 0.5rem;
  width: 16px;
  text-align: center;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--gray-medium);
  background: var(--gray-light);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.1);
  background: var(--white);
}

.form-help {
  font-size: 0.85rem;
  color: var(--gray-dark);
  margin-top: 0.5rem;
}

.submit-btn {
  background: var(--maroon);
  color: var(--white);
  padding: 1.2rem 1rem;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.submit-btn:hover {
  background: #a00000;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(128, 0, 0, 0.2);
}

.resources-section {
  padding: 5rem 0;
  background: var(--gray);
}

.resources-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--maroon);
  margin-bottom: 3rem;
}

.resources-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  padding: 0 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.resource-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--gray-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.resource-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: var(--maroon);
}

.resource-icon {
  font-size: 2.5rem;
  color: var(--maroon);
  margin-bottom: 1.5rem;
  height: 60px;
  width: 60px;
  background: var(--light-maroon);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.resource-card h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.resource-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.resource-link {
  display: inline-block;
  font-weight: 600;
  color: var(--maroon);
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--maroon);
  border-radius: 25px;
  transition: all 0.3s ease;
  width: 100%;
}

.resource-link:hover {
  background: var(--maroon);
  color: var(--white);
}

/* Responsive Edits */
@media screen and (max-width: 992px) {
  .main-content {
    flex-direction: column;
  }
  .info-panel h2 {
    border-left: none;
    padding-left: 0;
  }
}

@media screen and (max-width: 768px) {
  .info-panel, .form-panel {
    padding: 3rem 5%;
  }
  .resources-title {
    font-size: 2rem;
  }
  .resources-grid {
    grid-template-columns: 1fr;
  }
}
