/* Base Styles */
:root {
  --navy-blue: #001f3f;
  --royal-blue: #0056b3;
  --sky-blue: #87CEEB;
  --light-blue: #E6F2FF;
  --white: #FFFFFF;
  --off-white: #F8F9FA;
  --gray: #6C757D;
  --dark-gray: #343A40;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  background-color: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden;
}

html, body {
  width: 100%;
}

.ho-container {
  padding: 0 15px;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--navy-blue);
}

a {
  text-decoration: none;
  color: inherit;
}

/* Secretary Section */
.secretary-section {
  padding: 80px 0;
  background-color: var(--light-blue);
  opacity: 0;
  animation: fadeIn 1s ease-out 0.3s forwards;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h1 {
  font-size: 2.5rem;
  color: var(--navy-blue);
  margin-bottom: 15px;
}

.underline {
  width: 80px;
  height: 4px;
  background-color: var(--royal-blue);
  margin: 0 auto;
  transform: scaleX(0);
  transform-origin: center;
  animation: scaleIn 0.8s ease-out 0.8s forwards;
}

.message-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.profile-card {
  background: linear-gradient(135deg, var(--navy-blue), var(--royal-blue));
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  align-self: start;
  color: white;
  opacity: 0;
  transform: translateX(-30px);
  animation: slideLeft 0.8s ease-out 0.5s forwards;
}

.profile-image {
  width: 100%;
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.profile-image:hover img {
  transform: scale(1.05);
}

.profile-info h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  text-align: center;
  color: #c9e3ef;
}

.profile-info p {
  text-align: center;
  color: var(--sky-blue);
  font-weight: 500;
}

.message-content {
  background-color: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateX(30px);
  animation: slideRight 0.8s ease-out 0.7s forwards;
}

.message-content p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--dark-gray);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Create staggered animation for paragraphs */
.message-content p:nth-child(1) { animation-delay: 1s; }
.message-content p:nth-child(2) { animation-delay: 1.2s; }
.message-content p:nth-child(3) { animation-delay: 1.4s; }
.message-content p:nth-child(4) { animation-delay: 1.6s; }
.message-content p:nth-child(5) { animation-delay: 1.8s; }
.message-content p:nth-child(6) { animation-delay: 2s; }
.message-content p:nth-child(7) { animation-delay: 2.2s; }
.message-content p:nth-child(8) { animation-delay: 2.4s; }
.message-content p:nth-child(9) { animation-delay: 2.6s; }
.message-content p:nth-child(10) { animation-delay: 2.8s; }

.highlight {
  color: var(--royal-blue);
  font-size: 1.1rem;
  text-align: center;
  margin: 30px 0;
  opacity: 0;
  transform: scale(0.9);
  animation: scaleIn 0.6s ease-out 2.8s forwards;
}

.tamil-message {
  font-size: 1.3rem;
  text-align: center;
  color: var(--navy-blue);
  font-weight: 600;
  margin-top: 40px;
  font-style: italic;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out 3s forwards;
}

/* Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}


/* RESPONSIVE MEDIA QUERIES */


@media (max-width: 1024px) {
      .message-grid {
        grid-template-columns: 300px 1fr;
        gap: 30px;
        text-align: justify;
      }
      
      .profile-image {
        height: 350px;
      }
      
      .message-content {
        padding: 30px;
      }
    }

   
    @media (max-width: 768px) {
      .secretary-section {
        padding: 50px 0;
      }
      
      .section-header {
        margin-bottom: 30px;
      }
      
      .section-header h1 {
        font-size: 2rem;
      }
      
      .message-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 600px;
        margin: 0 auto;
        text-align: justify;
      }
      
      .profile-card {
        max-width: 400px;
        margin: 0 auto;
        padding: 25px;
      }
      
      .profile-image {
        height: 380px;
      }
      
      .message-content {
        padding: 30px;
      }
      
      .highlight {
        margin: 20px 0;
      }
      
      .tamil-message {
        margin-top: 25px;
      }
    }

   
    @media (max-width: 600px) {
      .secretary-section {
        padding: 40px 15px;
      }
      
      .section-header h1 {
        font-size: 1.8rem;
      }
      
      .underline {
        width: 60px;
        height: 3px;
      }
      
      .profile-card {
        width: 100%;
        padding: 20px;
      }
      
      .profile-image {
        height: 320px;
      }
      
      .profile-info h2 {
        font-size: 1.4rem;
      }
      
      .message-content {
        padding: 25px;
      }
      
      .tamil-message {
        font-size: 1.15rem;
      }
    }

 
    @media (max-width: 480px) {
      .section-header h1 {
        font-size: 1.7rem;
      }
      
      .profile-image {
        height: 300px;
      }
      
      .profile-info h2 {
        font-size: 1.3rem;
      }
      
      .message-content {
        padding: 20px;
        text-align: justify;
      }
      
      .message-content p {
        font-size: 1rem;
      }
    }

    
    @media (max-width: 400px) {
      .secretary-section {
        padding: 35px 12px;
      }
      
      .section-header h1 {
        font-size: 1.6rem;
        margin-bottom: 8px;
      }
      
      .profile-image {
        height: 280px;
      }
      
      .message-content {
        padding: 18px;
        text-align: justify;
      }
      
      .highlight {
        font-size: 1rem;
      }
      
      .tamil-message {
        font-size: 1.1rem;
      }
    }
