/* =============================================
   APPLICATIONS.CSS — applications.html Specific Styles
   Inherits root scale & globals from base.css
   ============================================= */

/* =============================================
   APPLICATIONS HERO
   ============================================= */
.app-hero {
  background-color: #0f2240;
  background-image:
    radial-gradient(
      ellipse at 20% 50%,
      rgba(201, 166, 70, 0.05) 0%,
      transparent 50%
    ),
    linear-gradient(to right, rgba(15, 34, 64, 0.9), rgba(15, 34, 64, 0.6));
  color: #ffffff;
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: background-color 0.4s ease;
}

[data-theme="dark"] .app-hero {
  background-color: #0f2240;
}

.app-hero .section-overline-master {
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  font-size: 0.75rem;
  font-family: var(--body-font);
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: none;
}

.app-hero .section-overline-master::after {
  content: "";
  width: 2.5rem;
  height: 1px;
  background-color: var(--accent-gold);
}

.app-hero h1 {
  color: #ffffff;
  font-family: var(--heading-font);
  font-size: 5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.app-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.3rem;
  max-width: 40rem;
  line-height: 1.8;
}

.app-hero .container {
  position: relative;
  z-index: 2;
}

.app-hero .app-hero-watermark {
  position: absolute;
  right: -12%;
  top: 50%;
  transform: translateY(-50%);
  width: 50rem;
  pointer-events: none;
  z-index: 1;
}

.app-hero .app-hero-watermark img {
  width: 100%;
  height: auto;
  opacity: 0.05;
  filter: brightness(0) invert(1);
  transition: opacity 0.4s ease;
}

/* =============================================
   MASSIVE FULL-WIDTH SECTIONS
   ============================================= */
.app-section {
  display: flex;
  align-items: center;
  overflow: hidden;
  transition: background-color 0.4s ease;
  position: relative;
}

/* Watermark Tree — Applications Specific */
.watermark-tree-apps {
  position: absolute;
  right: -8%;
  bottom: 0%;
  height: 90%; /* Reduced from 105% */
  opacity: 0.1;
  z-index: 1;
  pointer-events: none;
  transition:
    opacity 0.4s ease,
    filter 0.4s ease;
}

[data-theme="dark"] .watermark-tree-apps {
  opacity: 0.05;
  filter: invert(1) brightness(2);
}

/* =============================================
   PILLAR A: Academic Exams — Ivory Light
   ============================================= */
.app-pillar-academic {
  background-color: #f4f1e8;
  color: #0f2240;
}

[data-theme="dark"] .app-pillar-academic {
  background-color: var(--bg-color);
}

.app-pillar-academic .section-overline-master {
  color: #c9a646;
  border-bottom-color: rgba(201, 166, 70, 0.4);
}

.app-pillar-academic .app-text-block h2 {
  color: #0f2240;
}

[data-theme="dark"] .app-pillar-academic .app-text-block h2 {
  color: #ffffff;
}

.app-pillar-academic .app-text-block p {
  color: #2a3a52;
}

[data-theme="dark"] .app-pillar-academic .app-text-block p {
  color: var(--text-color);
}

.app-pillar-academic .placeholder-graphic {
  border-color: rgba(201, 166, 70, 0.3);
  background: rgba(201, 166, 70, 0.04);
}

.app-pillar-academic .placeholder-graphic::after {
  color: #c9a646;
}

.app-pillar-academic .placeholder-corner {
  border-color: #c9a646;
}

/* =============================================
   PILLAR B: Business English — Deep Navy
   ============================================= */
.app-pillar-business {
  background-color: #09172d;
  color: #ffffff;
}

[data-theme="dark"] .app-pillar-business {
  background-color: #09172d;
}

.app-pillar-business .section-overline-master {
  color: #c9a646;
  border-bottom-color: rgba(201, 166, 70, 0.4);
}

.app-pillar-business .app-text-block h2 {
  color: #c9a646;
}

.app-pillar-business .app-text-block p {
  color: rgba(255, 255, 255, 0.82);
}

.app-pillar-business .placeholder-graphic {
  border-color: rgba(201, 166, 70, 0.25);
  background: rgba(201, 166, 70, 0.03);
}

.app-pillar-business .placeholder-graphic::after {
  color: #c9a646;
}

.app-pillar-business .placeholder-corner {
  border-color: #c9a646;
}

/* =============================================
   PILLAR C: General English — Ivory Light
   ============================================= */
.app-pillar-general {
  background-color: #f4f1e8;
  color: #0f2240;
}

[data-theme="dark"] .app-pillar-general {
  background-color: var(--bg-color);
}

.app-pillar-general .section-overline-master {
  color: #c9a646;
  border-bottom-color: rgba(201, 166, 70, 0.4);
}

.app-pillar-general .app-text-block h2 {
  color: #0f2240;
}

[data-theme="dark"] .app-pillar-general .app-text-block h2 {
  color: #ffffff;
}

.app-pillar-general .app-text-block p {
  color: #2a3a52;
}

[data-theme="dark"] .app-pillar-general .app-text-block p {
  color: var(--text-color);
}

.app-pillar-general .placeholder-graphic {
  border-color: rgba(201, 166, 70, 0.3);
  background: rgba(201, 166, 70, 0.04);
}

.app-pillar-general .placeholder-graphic::after {
  color: #c9a646;
}

.app-pillar-general .placeholder-corner {
  border-color: #c9a646;
}

.app-content-wrapper {
  display: flex;
  align-items: center;
  gap: 6rem;
  width: 100%;
  max-width: 73.684rem;
  margin: 0 auto;
  position: relative;
  z-index: 2; /* Content sits above watermark */
}

.app-section.reverse .app-content-wrapper {
  flex-direction: row-reverse;
}

/* Text Block */
.app-text-block {
  flex: 1;
}

.app-text-block h2 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 2rem;
  font-family: var(--heading-font);
}

.app-text-block p {
  font-size: 1.15rem;
  line-height: 1.9;
  margin-bottom: 2rem;
}

/* Visual Block (Placeholder) */
.app-visual-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.app-image-container {
  width: 100%;
  max-width: 35rem;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(201, 166, 70, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: rgba(201, 166, 70, 0.03);
  overflow: visible; /* Allow corners to pop out */
}

.app-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9) contrast(1.1);
  transition:
    filter 0.4s ease,
    transform 0.4s ease;
}

.app-image:hover {
  filter: brightness(1) contrast(1.05);
  transform: scale(1.02);
}

.placeholder-graphic::after {
  content: "Architectural Visual Placeholder";
  font-family: var(--body-font);
  color: var(--accent-gold);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.7;
  text-align: center;
  padding: 1rem;
}

.placeholder-corner {
  position: absolute;
  width: 1rem;
  height: 1rem;
  border: 1px solid var(--accent-gold);
}

.corner-tl {
  top: -0.5rem;
  left: -0.5rem;
  border-right: none;
  border-bottom: none;
}
.corner-tr {
  top: -0.5rem;
  right: -0.5rem;
  border-left: none;
  border-bottom: none;
}
.corner-bl {
  bottom: -0.5rem;
  left: -0.5rem;
  border-right: none;
  border-top: none;
}
.corner-br {
  bottom: -0.5rem;
  right: -0.5rem;
  border-left: none;
  border-top: none;
}

/* Gold Diamond Divider between sections */
.app-divider-wrapper {
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 0;
  position: relative;
  z-index: 10;
}

/* CTA Section specific */
.app-cta-section {
  background-color: #0f2240;
  background-image: radial-gradient(
    circle at center,
    rgba(201, 166, 70, 0.05) 0%,
    transparent 70%
  );
  text-align: center;
  color: #fdfbf7;
  padding-bottom: 5.263rem;
  margin-bottom: 0;
  transition: background-color 0.4s ease;
}

.app-cta-section h2 {
  font-family: var(--heading-font);
  font-size: 3.5rem;
  font-weight: 400;
  color: #fdfbf7;
  max-width: none;
  margin: 0 auto 3rem;
  line-height: 1.4;
}

.app-cta-section .cta-voice {
  color: var(--accent-gold);
  font-style: italic;
}

/* Mobile */
@media (max-width: 992px) {
  .app-content-wrapper {
    flex-direction: column !important;
    gap: 4rem;
    text-align: center;
  }

  .app-text-block h2 {
    font-size: 2.5rem;
  }

  .placeholder-graphic,
  .app-image-container {
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .app-hero {
    min-height: 65vh;
    padding: 4.211rem 5%;
  }

  .app-hero h1 {
    font-size: 2.5rem;
  }

  .app-hero-watermark {
    right: -25%;
    width: 80%;
  }

  .app-cta-section h2 {
    font-size: 2rem;
  }
}
