/* ============================================
   CEO Messages Page - Final Version
   Modern, Professional, Accessible
   Consistent with Papyrus 2026 Design System
   ============================================ */

/* ===== Font Import ===== */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&display=swap");

/* ===== CSS Variables ===== */
:root {
  --primary: #6bb8be;
  --primary-dark: #5aa8ae;
  --primary-darker: #4a9da3;
  --primary-light: rgba(107, 184, 190, 0.1);
  --primary-glow: rgba(107, 184, 190, 0.3);
  --text-dark: #2c3e50;
  --text-medium: #475569;
  --text-light: #666;
  --border: #e8e8e8;
  --border-light: #f0f0f0;
  --bg-light: #f8f9fa;
  --bg-hover: #f1f5f9;
}

/* ===== Hide Contact Elements ===== */
.contactus,
#go_up,
.icon-chevron-up {
  display: none !important;
}

/* ============================================
   HERO SECTION
   ============================================ */
.ceo-hero {
  background-image: linear-gradient(
      135deg,
      rgba(30, 41, 59, 0.92) 0%,
      rgba(45, 55, 72, 0.2) 40%,
      rgba(55, 65, 81, 0.1) 70%,
      rgba(100, 116, 139, 0.1) 100%
    ),
    url("/e15/images/misc/apbg1.jpg");
  background-size: cover;
  background-position: center;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

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

.ceo-hero-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

/* CEO Info - Left Side */
.ceo-hero-info {
  color: white;
}

.ceo-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85em;
  font-weight: 600;
  margin-bottom: 20px;
}

.ceo-label i {
  color: var(--primary);
}

.ceo-hero h1 {
  font-family: "Montserrat", sans-serif;
  color: white;
  font-weight: 800;
  font-size: 2.6rem;
  margin: 0 0 16px;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ceo-name {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 6px;
}

.ceo-title {
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 24px;
}

.ceo-intro {
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  max-width: 550px;
  font-style: italic;
}

/* CEO Photo & Signature - Right Side */
.ceo-photo-wrapper {
  position: relative;
  text-align: center;
  flex-shrink: 0;
  padding-bottom: 25px;
}

.ceo-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 4px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.ceo-photo:hover {
  transform: scale(1.03);
  border-color: rgba(255, 255, 255, 0.5);
}

.ceo-signature {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: 130px;
  opacity: 0.95;
  filter: brightness(0) invert(1) drop-shadow(0 2px 10px rgba(0, 0, 0, 0.4));
}

/* ============================================
   MESSAGES SECTION
   ============================================ */
.ceo-messages-section {
  padding: 60px 0;
  background: var(--bg-light);
}

.ceo-section-header {
  text-align: center;
  margin-bottom: 45px;
}

.ceo-section-header h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 12px;
}

.ceo-section-header p {
  color: var(--text-medium);
  margin: 0 auto;
  max-width: 600px;
}

/* ============================================
   MESSAGE CARDS GRID
   ============================================ */
.ceo-messages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Message Card */
.ceo-message-card {
  background: white;
  border-radius: 16px;
  border: 2px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.ceo-message-card:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 40px var(--primary-glow);
  transform: translateY(-6px);
}

/* Card Header */
.ceo-card-header {
  padding: 24px 24px 0;
}

.ceo-card-title {
  margin: 0;
}

.ceo-card-title a {
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
  transition: color 0.3s ease;
}

.ceo-card-title a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

.ceo-message-card:hover .ceo-card-title a {
  color: var(--primary-dark);
}

/* Card Body */
.ceo-card-body {
  padding: 16px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ceo-card-excerpt {
  line-height: 1.65;
  color: var(--text-medium);
  margin: 0;
  flex: 1;
}

/* Card Footer */
.ceo-card-footer {
  padding: 16px 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}

/* Language Links */
.ceo-lang-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ceo-lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-light);
  background: var(--bg-light);
  border-radius: 6px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.ceo-lang-link:hover {
  color: var(--primary-dark);
  background: var(--primary-light);
  border-color: var(--primary-glow);
  text-decoration: none;
}

/* Read More - Only visible on hover */
.ceo-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--primary-dark);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.ceo-message-card:hover .ceo-read-more {
  opacity: 1;
  transform: translateX(0);
}

.ceo-read-more i {
  transition: transform 0.3s ease;
}

.ceo-message-card:hover .ceo-read-more i {
  transform: translateX(3px);
}

/* ============================================
   NEWSLETTER CTA SECTION
   ============================================ */
.ceo-newsletter-cta {
  padding: 60px 0;
  background: white;
}

.ceo-cta-card {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 40px 48px;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  border-radius: 20px;
  color: white;
  box-shadow: 0 15px 50px var(--primary-glow);
  position: relative;
  overflow: hidden;
}

.ceo-cta-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 350px;
  height: 350px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.ceo-cta-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
  position: relative;
}

.ceo-cta-content {
  flex: 1;
  position: relative;
}

.ceo-cta-content h3 {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 1.6em;
  color: white;
}

.ceo-cta-content p {
  margin: 0;
  opacity: 0.92;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
}

.ceo-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: white;
  color: var(--primary-dark);
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
}

.ceo-cta-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: var(--primary-dark);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
  .ceo-messages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .ceo-hero {
    padding: 50px 0;
  }

  .ceo-hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .ceo-hero-info {
    order: 1;
  }

  .ceo-photo-wrapper {
    order: 2;
  }

  .ceo-photo {
    width: 180px;
    height: 180px;
  }

  .ceo-signature {
    max-width: 110px;
  }

  .ceo-hero h1 {
    font-size: 2.2rem;
  }

  .ceo-intro {
    margin-left: auto;
    margin-right: auto;
  }

  .ceo-cta-card {
    flex-direction: column;
    text-align: center;
    padding: 36px;
  }

  .ceo-cta-card::before {
    top: -30%;
    right: -20%;
  }
}

@media (max-width: 768px) {
  .ceo-hero {
    padding: 40px 0;
  }

  .ceo-hero h1 {
    font-size: 1.8rem;
  }

  .ceo-photo {
    width: 160px;
    height: 160px;
  }

  .ceo-signature {
    max-width: 100px;
  }

  .ceo-messages-section {
    padding: 40px 0;
  }

  .ceo-messages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ceo-card-header {
    padding: 20px 20px 0;
  }

  .ceo-card-body {
    padding: 14px 20px;
  }

  .ceo-card-footer {
    padding: 14px 20px 18px;
  }

  .ceo-lang-links {
    flex-wrap: wrap;
  }

  .ceo-lang-link {
    font-size: 1rem;
  }

  /* Show read more on mobile since no hover */
  .ceo-read-more {
    opacity: 1;
    transform: translateX(0);
  }

  .ceo-newsletter-cta {
    padding: 40px 0;
  }

  .ceo-cta-icon {
    width: 64px;
    height: 64px;
    font-size: 28px;
  }
}

@media (max-width: 576px) {
  .ceo-photo {
    width: 140px;
    height: 140px;
  }

  .ceo-signature {
    max-width: 90px;
  }

  .ceo-label {
    font-size: 0.8em;
    padding: 6px 12px;
  }

  .ceo-hero h1 {
    font-size: 1.6rem;
  }

  .ceo-lang-link {
    padding: 5px 8px;
    font-size: 0.95rem;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.ceo-message-card:focus-within {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.ceo-lang-link:focus,
.ceo-card-title a:focus,
.ceo-cta-btn:focus {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.ceo-lang-link:focus-visible,
.ceo-card-title a:focus-visible,
.ceo-cta-btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ceo-message-card,
  .ceo-photo,
  .ceo-cta-btn,
  .ceo-lang-link,
  .ceo-read-more,
  .ceo-read-more i,
  .ceo-card-title a {
    transition: none;
  }

  .ceo-message-card:hover,
  .ceo-photo:hover,
  .ceo-cta-btn:hover {
    transform: none;
  }

  .ceo-message-card:hover .ceo-read-more {
    transform: none;
  }

  .ceo-message-card:hover .ceo-read-more i {
    transform: none;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .ceo-hero {
    background: #f5f5f5 !important;
    color: black !important;
    padding: 20px 0;
  }

  .ceo-hero h1,
  .ceo-name,
  .ceo-title,
  .ceo-intro {
    color: black !important;
  }

  .ceo-newsletter-cta {
    display: none !important;
  }

  .ceo-message-card {
    break-inside: avoid;
    border: 1px solid #ccc;
    box-shadow: none;
  }

  .ceo-messages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .ceo-read-more {
    display: none;
  }
}
