:root {
  --navy-blue: #001f3f;
  --royal-blue: #0056b3;
  --sky-blue: #87CEEB;
  --light-blue: #E6F2FF;
  --white: #FFFFFF;
  --dark-gray: #343A40;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Base Styles */
.message-section {
  padding: 80px 0;
  background-color: var(--light-blue);
  position: relative;
  overflow: hidden;
}

.message-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 86, 179, 0.1) 0%, transparent 70%);
  z-index: 0;
}

.msg-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Header Styles */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h1 {
  font-size: 2.5rem;
  color: var(--navy-blue);
  margin-bottom: 15px;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
}

.underline {
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--royal-blue), var(--sky-blue));
  margin: 0 auto;
  border-radius: 2px;
  transform-origin: center;
}

/* Content Styles */
.message-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 50px;
}

.president-photo {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  text-align: center;
}

.photo-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0, 51, 102, 0.15);
  transition: var(--transition);
}

.photo-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 86, 179, 0.1) 0%, transparent 100%);
  z-index: 1;
  transition: var(--transition);
}

.president-img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
  transform-origin: center center;
}

.photo-container:hover .president-img {
  transform: scale(1.05);
}

.president-info {
  margin-top: 25px;
}

.president-info h3 {
  font-size: 1.8rem;
  color: var(--navy-blue);
  margin-bottom: 5px;
}

.president-info p {
  color: var(--royal-blue);
  font-weight: 500;
  font-size: 1.1rem;
}

.message-text {
  flex: 2;
  min-width: 300px;
  max-width: 700px;
  background-color: var(--white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 51, 102, 0.1);
  transition: var(--transition);
}

.message-text:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 51, 102, 0.2);
}

.message-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--dark-gray);
  position: relative;
  padding-left: 20px;
}

/* Animations */
.slide-up {
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.8s ease-out forwards;
}

.delay-1 {
  animation-delay: 0.3s;
}

.slide-left {
  opacity: 0;
  transform: translateX(-30px);
  animation: slideLeft 0.8s ease-out forwards;
}

.slide-right {
  opacity: 0;
  transform: translateX(30px);
  animation: slideRight 0.8s ease-out forwards;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .message-section {
    padding: 70px 20px;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
}

@media (max-width: 992px) {
  .message-section {
    padding: 60px 30px;
  }
  
  .section-header {
    margin-bottom: 30px;
  }
  
  .section-header h1 {
    font-size: 2rem;
  }
  
  .president-info h3 {
    font-size: 1.5rem;
  }
  
  .message-text p {
    font-size: 1rem;
  }
  
  .message-content {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .message-section {
    padding: 50px 25px;
  }
  
  .message-content {
    flex-direction: column;
    gap: 30px;
  }
  
  .president-photo, .message-text {
    width: 100%;
    max-width: 100%;
  }
  
  .section-header h1 {
    font-size: 1.8rem;
  }
  
  .message-text {
    padding: 30px;
  }
  
  .photo-container {
    max-width: 320px;
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .message-section {
    padding: 40px 20px;
  }
  
  .message-text {
    padding: 25px;
  }
  
  .photo-container {
    max-width: 280px;
  }
  
  .section-header h1 {
    font-size: 1.6rem;
  }
  
  .president-info h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 400px) {
  .message-section {
    padding: 30px 15px;
  }
  
  .message-text {
    padding: 20px;
  }
  
  .section-header h1 {
    font-size: 1.5rem;
  }
}