/* academics.css - Academics page specific styles */

/* --- Simplified Background --- */
body {
  background: #f8f9fa;
  position: relative;
}

[data-theme="dark"] body {
  background: #121212;
}

/* Content wrapper with semi-transparent background */
.content-wrapper {
  background: #ffffff;
  min-height: 100vh;
}

[data-theme="dark"] .content-wrapper {
  background: #1e1e1e;
}

/* Section backgrounds */
.section {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 2rem;
  margin: 1.5rem auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  max-width: 1200px;
}

[data-theme="dark"] .section {
  background: rgba(45, 45, 45, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Animation keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up {
  transform: translateY(30px);
}

.fade-in-left {
  transform: translateX(-30px);
}

.fade-in-right {
  transform: translateX(30px);
}

.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Academic Results Section */
.results-section {
  text-align: center;
}

.results-content {
  max-width: 800px;
  margin: 0 auto;
}

.results-highlight {
  background: linear-gradient(135deg, var(--color3), var(--color1));
  color: white;
  padding: 2rem;
  border-radius: 12px;
  margin: 2rem 0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.results-highlight h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

/* Teaching & Learning Section */
.teaching-section {
  text-align: center;
}

.teaching-content {
  max-width: 800px;
  margin: 0 auto;
}

.teaching-list {
  list-style-type: none;
  margin: 2rem 0;
  text-align: left;
  max-width: 700px;
  margin: 2rem auto;
}

.teaching-list li {
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
  display: flex;
  align-items: center;
}

.teaching-list li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color1);
  font-weight: bold;
  font-size: 1.5rem;
}

/* Facilities Section */
.facilities-section {
  text-align: center;
}

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

.facility-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  text-align: center;
  margin: 0 auto;
  max-width: 350px;
  border-top: 4px solid var(--color1);
}

[data-theme="dark"] .facility-card {
  background: rgba(45, 45, 45, 0.95);
}

.facility-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.facility-card i {
  font-size: 2.5rem;
  color: var(--color1);
  margin-bottom: 1rem;
}

/* Support Section */
.support-section {
  text-align: center;
}

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

.support-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  text-align: center;
  margin: 0 auto;
  max-width: 280px;
  border-top: 4px solid var(--color1);
}

[data-theme="dark"] .support-card {
  background: rgba(45, 45, 45, 0.95);
}

.support-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.support-card i {
  font-size: 2.5rem;
  color: var(--color1);
  margin-bottom: 1rem;
}

/* Assessment Section */
.assessment-section {
  text-align: center;
}

.assessment-content {
  max-width: 800px;
  margin: 0 auto;
}

.assessment-list {
  list-style-type: none;
  margin: 2rem 0;
  text-align: left;
  max-width: 700px;
  margin: 2rem auto;
}

.assessment-list li {
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
  display: flex;
  align-items: center;
}

.assessment-list li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color1);
  font-weight: bold;
  font-size: 1.5rem;
}

/* --- Updated Footer with transparency layers --- */
footer {
  background: transparent;
  position: relative;
  padding: 0;
  margin-top: 4rem;
}

.footer-layers {
  position: relative;
  width: 100%;
}

/* Solid color layer around content */
.footer-solid {
  background: var(--color3);
  padding: 3rem 2rem 1.2rem;
}

/* Semi-transparent layer */
.footer-semi-transparent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(28, 83, 165, 0.7);
  z-index: -1;
}

/* More transparent layer */
.footer-transparent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(28, 83, 165, 0.4);
  z-index: -2;
}

/* Dark theme footer colors */
[data-theme="dark"] .footer-solid {
  background: var(--footer-bg);
}

[data-theme="dark"] .footer-semi-transparent {
  background: rgba(13, 42, 92, 0.7);
}

[data-theme="dark"] .footer-transparent {
  background: rgba(13, 42, 92, 0.4);
}

/* Update footer content structure */
.footer-content {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto 2.5rem;
  align-items: start;
}

.copyright {
  position: relative;
  z-index: 10;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 1.5rem;
  width: 100%;
  font-size: 0.85rem;
  opacity: 0.8;
}

.footer-logos {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3rem;
}

.school-logo {
  height: 95px;
  width: auto;
  object-fit: contain;
}

.cambridge-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
}

.footer-contact-map {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.footer-contact {
  margin-bottom: 1.2rem;
}

.footer-contact h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  color: var(--color2);
}

.footer-contact p {
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
}

.footer-contact i {
  margin-right: 10px;
  width: 18px;
  color: var(--color1);
}

.map-container {
  height: 250px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 1100px) {
  .footer-contact-map {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-logos {
    align-items: center;
    order: -1;
  }
  
  .map-container {
    height: 220px;
  }
}

@media (max-width: 768px) {
  .section-heading {
    font-size: 1.8rem;
  }
  
  .facilities-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) { 
  .section-heading {
    font-size: 1.6rem;
  }
  
  .section {
    padding: 1.5rem;
  }
  
  .facility-card,
  .support-card {
    padding: 1.5rem;
  }
  
  .results-highlight {
    padding: 1.5rem;
  }
  
  .results-highlight h3 {
    font-size: 1.5rem;
  }
}