* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f8f9fa;
  color: #333;
  margin: 0;
}
/* Header: Light blue with centered logo and title */
 .site-header {
  background-color: #001f4d; /* Navy blue */
  padding: 10px 0;
  text-align: center;
  color: white; /* Make text white */
  font-weight: bold; /* Make text bold */
  font-family: 'Poppins', sans-serif;
  opacity: 0; /* Hide initially for animation */
  animation: slideDown 0.6s ease-out forwards;
  animation-delay: 0.2s;
}
.header-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.title-bar {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: center;
  margin-bottom: 12px;
  margin-top: 12px;
  flex-wrap: nowrap;
  opacity: 0; /* Hide initially for animation */
  animation: slideDown 0.6s ease-out forwards;
  animation-delay: 0.2s;
}
/* Mobile responsiveness for title */
@media (max-width: 768px) {
  .title-bar {
    flex-wrap: wrap;
    gap: 8px;
    text-align: center;
    padding: 0 10px;
  }
  .site-header h1 {
    font-size: 1.5rem;
    text-align: center;
  }
}
.logo {
  width: 200px;
  height: auto;
}
.site-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  color: white;
  font-family: 'Poppins', sans-serif;
}
/* Navbar: white with blue links */
.navbar {
  background-color: white;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  padding: 12px 40px;
  position: relative;
  z-index: 1000;
  opacity: 0; /* Hide initially for animation */
  animation: slideDown 0.6s ease-out forwards;
  animation-delay: 0.2s;
}
.nav-menu {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 12px;
  margin: 0;
  gap: 1px;
  flex-wrap: wrap;
}
.nav-menu a {
  position: relative;
  text-decoration: none;
  color: #004aad;
  font-weight: 500;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  padding: 10px 15px;
  border-radius: 8px;
  overflow: hidden;
  transition: color 0.3s ease;
  z-index: 1;
}
/* Create animated background */
.nav-menu a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 100%;
  background-color: #004aad;
  z-index: -1;
  transition: transform 0.4s ease;
  transform-origin: center;
  border-radius: 8px;
}
/* On hover or active */
.nav-menu a:hover::before,
.nav-menu a.active::before {
  transform: translateX(-50%) scaleX(1);
}
.nav-menu a:hover,
.nav-menu a.active {
  color: white;
  box-shadow: 0 4px 12px rgba(0, 74, 173, 0.3);
}
.nav-menu a,
.nav-menu a:link,
.nav-menu a:visited,
.nav-menu a:hover,
.nav-menu a:focus,
.nav-menu a:active {
  text-decoration: none !important;
  outline: none;
  box-shadow: none;
}
/* Mobile nav adjustments */
@media (max-width: 768px) {
  .nav-menu {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}
/* Slide down animation */
@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.main-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 50px 20px;
  max-width: 1200px;
  margin: auto;
  background-color: #f5f9fc; /* light background */
}
.intro {
  flex: 1 1 60%;
  max-width: 700px;
}
.intro h2 {
  font-size: 2.4rem;
  color: #003366;
  font-weight: 700;
  margin-bottom: 20px;
  font-family: 'Poppins', sans-serif;
}
.intro p {
  line-height: 1.8;
  font-size: 1.20rem;
  color: #333;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 20px;
}
/* Reset and Base Styling */
 .main-image {
  flex: 1 1 35%;
  max-width: 300px;
}
.main-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease; /* Smooth animation */
}
.main-image img:hover {
  transform: scale(1.05); /* Slight zoom */
}
 /* Modern Gallery Container */
.gallery-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}
.gallery-container {
  overflow: visible; /* or hidden if needed */
}
/* Grid Layout */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 30px 10px;
}
/* Image Styling */
.gallery-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 18 / 10;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
} 
.gallery-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}
/* Modal Overlay */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
/* Modal Image */
 .modal-content {
  max-width: 100%;
  max-height: 100%;
  margin: 0 7%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}
 /* Close Button */
 .close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: #fff;
  font-size: 34px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}
.close:hover {
  color: #ccc;
}
/* Modal Content Typography */
.modal-content h2 {
  font-size: 2rem;
  color: #0b3d91;
  text-align: center;
  margin-bottom: 2px;
  margin-top: 10px;
}
.modal-content h3 {
  margin-top: 30px;
  color: #0b3d91;
}
/* Quote Section */
blockquote {
  background: #fff;
  border-left: 5px solid #0078d7;
  padding: 15px 25px;
  margin: 30px 0;
  font-style: italic;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  border-radius: 6px;
}
/* Main Highlight Image */
.main-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.12);
  margin-top: 30px;
}
/* Responsive Design */
@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-container {
    padding: 40px 20px;
  }
  .close {
    top: 20px;
    right: 20px;
    font-size: 28px;
  }
}
.ncc-flag-section {
  background-color: #e6f2ff;
  padding: 60px 30px;
}
.ncc-flag-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.ncc-flag-container:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}
.ncc-heading {
  color: #3b5998;
  font-size: 28px;
  margin-bottom: 30px;
}
.ncc-flag-card {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}
.ncc-flag-image {
  max-width: 100%;
  margin: 0 auto 30px;
  padding: 20px;
  height: auto;
  display: block;
  border-radius: 12px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* Mobile adjustments */
@media (max-width: 768px) {
  .ncc-flag-card {
    padding: 20px;
  }
  .ncc-flag-image {
    padding: 10px;
  }
}
.ncc-flag-image:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
.ncc-flag-description {
  font-size: 18px;
  color: #333;
  line-height: 1.8;
  text-align: justify;
}
.ncc-intro-section {
  background-color: #e6f2ff;
  padding: 60px 20px;
}
.ncc-intro-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ncc-intro-container:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
}
.ncc-intro-heading {
  font-size: 28px;
  color: #3b5998;
  margin-bottom: 25px;
}
.ncc-intro-text {
  font-size: 18px;
  color: #333;
  line-height: 1.8;
  text-align: justify;
}
.ncc-song-section {
  background-color: #e6f2ff;
  padding: 60px 20px;
}
.ncc-song-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ncc-song-container:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
}
.ncc-song-heading {
  font-size: 24px;
  color: #3b5998;
  text-align: center;
  margin-bottom: 20px;
}
.ncc-song-description {
  font-size: 18px;
  color: #333;
  line-height: 1.8;
  text-align: justify;
  margin-bottom: 20px;
}
.song-lyrics {
  background-color: #f0f4f8;
  padding: 20px;
  border-radius: 8px;
  font-family: 'Courier New', Courier, monospace;
  white-space: pre-wrap;
  font-size: 16px;
  line-height: 1.7;
  color: #222;
}
.ncc-history-section {
  background-color: #e6f2ff;
  padding: 60px 20px;
}
.ncc-history-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ncc-history-container:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.ncc-history-heading {
  font-size: 24px;
  color: #3b5998;
  text-align: center;
  margin-bottom: 20px;
}
.ncc-history-description {
  font-size: 18px;
  color: #333;
  line-height: 1.8;
  text-align: justify;
}
.ncc-motto-section {
  background-color: #e6f2ff; /* subtle gradient */
  padding: 50px 20px; /* added padding for outer spacing */
}
.ncc-motto-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 180px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}
.ncc-motto-container:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.ncc-motto-container:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15); /* subtle lift on hover */
}
.ncc-motto-heading {
   font-size: 24px;
  color: #3b5998;
  text-align: center;
  margin-bottom: 20px;
}
.ncc-motto-description {
  font-size: 18px;
  color: #333;
  line-height: 1.8;
  text-align: justify;
}
/* Mobile view support */
@media (max-width: 768px) {
  .ncc-motto-container {
    padding: 25px 15px;
  }
  .ncc-motto-heading {
    font-size: 22px;
    margin-bottom: 18px;
  }
  .ncc-motto-description {
    font-size: 16px;
    line-height: 1.6;
  }
}
.ncc-aims-section {
 background-color: #e6f2ff;
  padding: 60px 20px;
}
.ncc-aims-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 50px 100px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ncc-aims-container:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.ncc-aims-heading {
  font-size: 24px;
  color: #0b3d91;
  text-align: center;
  margin-bottom: 20px;
}
.ncc-aims-description {
  font-size: 18px;
  color: #333;
  line-height: 1.8;
  text-align: justify;
}
@media (max-width: 768px) {
  .ncc-aims-container {
    padding: 30px 20px;
  }
  .ncc-aims-heading {
    font-size: 20px;
  }
  .ncc-aims-description {
    font-size: 16px;
  }
}
.ncc-oath-section {
  background-color: #e6f2ff;
  padding: 60px 20px;
}
.ncc-oath-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 100px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}
.ncc-oath-container:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.ncc-oath-heading {
  font-size: 24px;
  color: #003366;
  text-align: center;
  margin-bottom: 20px;
}
.ncc-oath-text {
  font-size: 18px;
  color: #444;
  font-style: italic;
  line-height: 1.8;
  text-align: center;
  border-left: 5px solid #003366;
  padding-left: 20px;
}
/* Mobile view adjustments */
@media (max-width: 768px) {
  .ncc-oath-container {
    padding: 25px 15px;
  }
  .ncc-oath-heading {
    font-size: 20px;
  }
  .ncc-oath-text {
    font-size: 16px;
    padding-left: 15px;
    line-height: 1.6;
  }
}
.ncc-pledge-section {
 background-color: #e6f2ff;
  padding: 60px 20px;
}
.ncc-pledge-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 150px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}
.ncc-pledge-container:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
 .ncc-pledge-heading {
  font-size: 24px;
  color: #003366;
  text-align: center;
  margin-bottom: 20px;
}
.ncc-pledge-text {
  font-size: 18px;
  color: #444;
  font-style: italic;
  line-height: 1.8;
  text-align: center;
  border-left: 5px solid #003366;
  padding-left: 20px;
}
/* Mobile view adjustments */
@media (max-width: 768px) {
  .ncc-pledge-container {
    padding: 25px 15px;
  }
  .ncc-pledge-heading {
    font-size: 20px;
  }
  .ncc-pledge-text {
    font-size: 16px;
    line-height: 1.6;
    padding-left: 15px;
  }
}
.ncc-organization-section {
  background-color: #e6f2ff;
  padding: 60px 20px;
}
.ncc-organization-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 220px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}
.ncc-organization-container:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
 .ncc-organization-heading {
  font-size: 26px;
  color: #003366;
  text-align: center;
  margin-bottom: 25px;
}
.ncc-organization-text {
  font-size: 18px;
  color: #333;
  line-height: 1.8;
  text-align: center;
  margin-bottom: 30px;
}
.ncc-organization-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
/* Mobile view adjustments */
@media (max-width: 768px) {
  .ncc-organization-container {
    padding: 25px 15px;
  }
  .ncc-organization-heading {
    font-size: 22px;
    margin-bottom: 18px;
  }
  .ncc-organization-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
  }
}
.ncc-organization-image:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
.ncc-strength-section {
  background-color: #e9f2ff;
  padding: 60px 20px;
}
.ncc-strength-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 220px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}
.ncc-strength-container:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.ncc-strength-heading {
  font-size: 26px;
  color: #002b5e;
  text-align: center;
  margin-bottom: 25px;
}
.ncc-strength-list {
  list-style-type: disc;
  padding-left: 20px;
  font-size: 18px;
  color: #333;
  line-height: 1.8;
}
/* Mobile view adjustments */
@media (max-width: 768px) {
  .ncc-strength-container {
    padding: 25px 15px;
  }
  .ncc-strength-heading {
    font-size: 22px;
    margin-bottom: 18px;
  }
  .ncc-strength-list {
    font-size: 16px;
    line-height: 1.6;
    padding-left: 18px;
  }
}
.ncc-strength-list li {
  margin-bottom: 12px;
}
.structure-points {
  list-style-type: square;
  padding-left: 25px;
}
.structure-points li {
  font-size: 18px;
  margin-bottom: 8px;
}
.ncc-ranks-section {
  background-color: #e6f2ff;
  padding: 40px 20px;
  border-radius: 12px;
  margin: 40px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.ncc-ranks-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 100px;
  overflow: hidden;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}
.ncc-ranks-container:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.ncc-ranks-image {
  width: 100%;
  display: block;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}
.ncc-ranks-image:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
.ncc-ranks-text {
  padding: 20px;
  text-align: center;
}
.ncc-ranks-heading {
  font-size: 26px;
  color: #002d5a;
  margin-bottom: 15px;
}
@media (max-width: 768px) {
  .ncc-ranks-container {
    padding: 20px 15px;
  }
  .ncc-ranks-heading {
    font-size: 22px;
    margin-bottom: 12px;
  }
  .ncc-ranks-text {
    padding: 15px;
  }
}
.ncc-ranks-description {
  font-size: 18px;
  color: #333;
  line-height: 1.6;
}
.ncc-ranks-list {
  display: block;
  margin-top: 10px;
  font-weight: 600;
  color: #004080;
}
.cadet-activities-section {
 background-color: #e6f2ff;
  padding: 40px 20px;
  border-radius: 12px;
  margin: 40px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.cadet-activities-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 400px;
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}
.cadet-activities-container:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.cadet-activities-heading {
  font-size: 28px;
  color: #003366;
  text-align: center;
  margin: 20px 0;
}
.cadet-activities-list {
  padding: 0 30px 20px 30px;
  font-size: 18px;
  color: #333;
  line-height: 1.8;
  list-style: disc;
}
/* Mobile view adjustments */
@media (max-width: 768px) {
  .cadet-activities-container {
    padding: 20px 15px;
  }
  .cadet-activities-heading {
    font-size: 22px;
    margin: 16px 0;
  }
  .cadet-activities-list {
    font-size: 16px;
    padding: 0 15px 15px 20px;
    line-height: 1.6;
  }
}