/* ============================================================
   TCET NCC - index.css
   Table of Contents:
   1.  GENERAL STYLES           - Used across all pages
   2.  NAVBAR STYLES            - Used in Home page and layout
   3.  CONTAINER                - Container utilities
   4.  HEADER SECTION           - Logo and tab box in header
   5.  SOCIAL MEDIA SECTION     - Social handles on Home page
   6.  CAROUSEL & TESTIMONIALS  - Testimonials carousel
   7.  GALLERY SECTION          - Carousel images on Home page
   8.  FEATURES & OBJECTIVES    - Features and objectives cards
   9.  ABOUT US SECTION         - About section styles
   10. PRELOADER STYLES         - Page loading animation
   11. SCROLL TO TOP BUTTON     - Scroll to top functionality
   12. POPUP MODAL STYLES       - Popup notifications
   13. FOOTER SECTION           - Footer styles
   14. ACHIEVERS PAGE           - Achievers page styles
   15. CALENDAR PAGE            - Calendar page styles
   16. GALLERY PAGE             - Gallery page styles
   17. CONTACT US PAGE          - Contact page styles
   18. MAGAZINE PAGE            - Magazine page styles
   19. OFFICER PROFILE PAGE     - Officer profile page styles
   20. TEAM PAGE                - Army and Navy Wings styles
============================================================ */

/* ============================================================
   1. GENERAL STYLES
   Used across all pages
============================================================ */
/* Sets base font, removes default margin/padding, and app
es global font. */
html,
body {
  margin: 0;
  font-size: 14px;
  background: #f6f8fa;
  color: #232323;
  width: 100%;
  font-family: 'Poppins', sans-serif;
  text-align: justify;
}

.outer-wrapper {
  width: 90%;
  padding: 0 10px;
  margin: auto;
}

/* ============================================================
   2. NAVBAR STYLES
   Used in Home page and layout
============================================================ */
/* Custom gradient navbar with hover effects and dropdown styling. */
.custom-navbar {
  /* margin-left: 390px; */
  padding: 20px;
  background: linear-gradient(90deg, #8b0000, #1a1a2e);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  /* <-- Fix here */
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.custom-navbar .brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.5rem;
  font-weight: bold;
  margin-right: 80px;
  text-decoration: none;
  color: #fff;
}

.navbrand {
  font-family: "Black Ops One", system-ui !important;
  font-weight: 400 !important;
}

.me-4 {
  margin-right: 4.5rem !important;
}

.custom-navbar .brand img {
  height: 40px;
  width: auto;
  display: block;
}

.custom-navbar .nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  /* Allow wrapping */
  overflow-x: auto;
  /* Allow horizontal scroll if needed */
  max-width: 100vw;
}

.custom-navbar .nav-link {
  color: #fff;
  text-decoration: none;
  font-size: 1.0rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  display: block;
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link:focus {
  background: #d63911;
  color: #fff;
}

/* Proper Active / Onclick State for Navigation */
.custom-navbar .nav-link.active {
  background: #da2d2d;
  color: #fff;
  font-weight: 700;
  position: relative;
}


/* Mobile active state */
@media (max-width: 992px) {
  .custom-navbar .nav-links .nav-link.active {
    background: #d63911;
    color: #fff;
    font-weight: 700;
  }
}

/* Hamburger menu for mobile */
.custom-navbar .nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: 1rem;
}

@media (max-width: 900px) {
  .custom-navbar .nav-toggle {
    display: block;
  }

  .custom-navbar .nav-links {
    position: fixed;
    top: 60px;
    right: -100vw;
    background: #1a1a2e;
    flex-direction: column;
    width: 220px;
    height: 100vh;
    align-items: flex-start;
    padding: 2rem 1.2rem;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.12);
    z-index: 2000;
    transition: right 0.3s cubic-bezier(.4, 2, .6, 1);
  }

  .custom-navbar .nav-links.active {
    right: 0;
  }
}

@media (max-width: 1100px) {
  .custom-navbar .nav-links {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .custom-navbar .brand {
    font-size: 1.5rem;
  }

  .custom-navbar .nav-link {
    font-size: 1rem;
    padding: 0.3rem 0.7rem;
  }
}


/* ============== Container =============== */
.container{
  margin:auto;
}

/* ===================== 3. Slider Image Section ===================== */
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
  width: 97%;
  /* padding-right: calc(var(--bs-gutter-x) * .5); */
  /* padding-left: calc(var(--bs-gutter-x) * .5); */
  margin-right: 15px;
  margin-left: 15px;
}

/* ===================== 3. Header Section ===================== */
/* Styles for the logo and tab box in the header. */
.headcontainer {
  width: 100%;
  margin: 0 auto;
  padding: 5px;
}

.tab-box {
  padding: 2px;
  text-align: center;
}

.header-logo {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ===================== 4. Official Profile Section ===================== */
/* Card hover effect for profile cards. */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

/* ============================================================
   5. SOCIAL MEDIA SECTION STYLES
   Used in Home page for social handles
============================================================ */
/* Modern floating cards and glowing animated icons for social links. */


.social-card.attract-effect {
  position: relative;
  overflow: visible;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
  border-radius: 1rem;
  transition: transform 0.25s cubic-bezier(.4, 2, .3, 1), box-shadow 0.25s;
  animation: floatCard 3.5s ease-in-out infinite alternate;
}

.social-card.attract-effect:hover {
  transform: translateY(-10px) scale(1.04) rotate(-2deg);
  box-shadow: 0 16px 40px 0 rgba(31, 38, 135, 0.22), 0 0 0 4px #ffd60055;
  border-color: #ffd600;
  z-index: 2;
}



@keyframes floatCard {
  0% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-8px) rotate(1.5deg);
  }

  100% {
    transform: translateY(0) rotate(-1deg);
  }
}

/* Animated glowing border for icons */
.attract-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  margin: 0 auto 1rem auto;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 #ffd600, 0 0 24px 0 #ffd60055;
  transition: box-shadow 0.3s, transform 0.3s;
  animation: glowPulse 2.2s infinite alternate;
}

.attract-icon i {
  transition: color 0.3s, transform 0.3s;
}

.social-card.attract-effect:hover .attract-icon i {
  transform: scale(1.18) rotate(-8deg);
}

@keyframes glowPulse {
  0% {
    box-shadow: 0 0 0 0 #ffd600, 0 0 24px 0 #ffd60055;
  }

  50% {
    box-shadow: 0 0 0 8px #ffd60044, 0 0 32px 8px #ffd60099;
  }

  100% {
    box-shadow: 0 0 0 0 #ffd600, 0 0 24px 0 #ffd60055;
  }
}

/* Platform-specific icon glows */
.youtube-glow {
  box-shadow: 0 0 0 0 #ff0000, 0 0 24px 0 #ff000055;
  animation: youtubeGlow 2.2s infinite alternate;
}

.insta-glow {
  box-shadow: 0 0 0 0 #e1306c, 0 0 24px 0 #e1306c55;
  animation: instaGlow 2.2s infinite alternate;
}

.twitter-glow {
  box-shadow: 0 0 0 0 #111, 0 0 24px 0 #11133355;
  animation: twitterGlow 2.2s infinite alternate;
}

.linkedin-glow {
  box-shadow: 0 0 0 0 #0077B5, 0 0 24px 0 #0077B555;
  animation: linkedinGlow 2.2s infinite alternate;
}

@keyframes youtubeGlow {
  0% {
    box-shadow: 0 0 0 0 #ff0000, 0 0 24px 0 #ff000055;
  }

  50% {
    box-shadow: 0 0 0 8px #ff000044, 0 0 32px 8px #ff000099;
  }

  100% {
    box-shadow: 0 0 0 0 #ff0000, 0 0 24px 0 #ff000055;
  }
}

@keyframes instaGlow {
  0% {
    box-shadow: 0 0 0 0 #e1306c, 0 0 24px 0 #e1306c55;
  }

  50% {
    box-shadow: 0 0 0 8px #e1306c44, 0 0 32px 8px #e1306c99;
  }

  100% {
    box-shadow: 0 0 0 0 #e1306c, 0 0 24px 0 #e1306c55;
  }
}

@keyframes twitterGlow {
  0% {
    box-shadow: 0 0 0 0 #111, 0 0 24px 0 #11133355;
  }

  50% {
    box-shadow: 0 0 0 8px #11133344, 0 0 32px 8px #11133399;
  }

  100% {
    box-shadow: 0 0 0 0 #111, 0 0 24px 0 #11133355;
  }
}

@keyframes linkedinGlow {
  0% {
    box-shadow: 0 0 0 0 #0077B5, 0 0 24px 0 #0077B555;
  }

  50% {
    box-shadow: 0 0 0 8px #0077B544, 0 0 32px 8px #0077B599;
  }

  100% {
    box-shadow: 0 0 0 0 #0077B5, 0 0 24px 0 #0077B555;
  }
}

/* Button hover and gradient effects for social section */
.attract-btn {
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 12px 0 #ffd60033;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.2s;
  border-radius: 2rem;
  border: none;
}

.attract-btn.btn-gradient-pink {
  background: linear-gradient(90deg, #e1306c 60%, #ffd600 100%);
  color: #fff;
}

.attract-btn.btn-gradient-pink:hover {
  background: linear-gradient(90deg, #ffd600 60%, #e1306c 100%);
  color: #fff;
  box-shadow: 0 4px 24px 0 #e1306c55;
  transform: scale(1.05);
}

.attract-btn.btn-danger:hover {
  background: linear-gradient(90deg, #ffd600 60%, #ff0000 100%);
  color: #fff;
  box-shadow: 0 4px 24px 0 #ff000055;
  transform: scale(1.05);
}

.attract-btn.btn-dark:hover {
  background: linear-gradient(90deg, #ffd600 60%, #111 100%);
  color: #fff;
  box-shadow: 0 4px 24px 0 #11133355;
  transform: scale(1.05);
}

.attract-btn.btn-primary:hover {
  background: linear-gradient(90deg, #ffd600 60%, #0077B5 100%);
  color: #fff;
  box-shadow: 0 4px 24px 0 #0077B555;
  transform: scale(1.05);
}

/* ============================================================
   4. CAROUSEL & TESTIMONIALS STYLES
   Used in Home page for testimonials carousel
============================================================ */
/* Carousel fade/slide-in animation and testimonial card styling. */
.carousel .carousel-item {
  opacity: 0;
  transform: translateX(80px) scale(0.98);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.carousel .carousel-item.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  z-index: 2;
}

.carousel .card {
  opacity: 0;
  transform: translateX(60px) scale(0.97);
  transition: opacity 0.7s, transform 0.7s;
  min-height: 370px;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  border-radius: 1.5rem;
  background: #fff;
  transition: box-shadow 0.3s, transform 0.3s;
  padding: 1.5rem 1.2rem 1.2rem 1.2rem !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.carousel-item.active .card {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.carousel .card:hover {
  box-shadow: 0 12px 48px rgba(29, 78, 137, 0.18), 0 2px 8px rgba(0, 0, 0, 0.06);
  transform: translateY(6px) scale(1.03);
}
#testimonials{
  /* height: 1100px; */
  height: auto;
  /* background-color: red; */
}
.testimonial-img-lg {
  width: 180px !important;
  height: 180px !important;
}

.testimonial-img {
  width: 180px !important;
  height: 200px !important;
  object-fit: cover;
  border-radius: 50%;
  /* border: 8px solid #ff0000; */
  /* box-shadow: 0 4px 16px rgba(29, 78, 137, 0.15); */
  transition: transform 0.3s;
}

.testimonial-img:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(29, 78, 137, 0.25);
}

.testimonial-text {
  color: #1d4e89;
  font-size: 1.08rem;
  line-height: 1.7;
  margin-top: 0.5rem;
  margin-bottom: 0;
  text-align: justify;
  font-family: 'Poppins', Arial, sans-serif;
  letter-spacing: 0.01em;
}

#testimonials .carousel-inner {
  padding-bottom: 2rem;
}

#testimonials .carousel-control-prev,
#testimonials .carousel-control-next {
  filter: drop-shadow(0 2px 8px #1d4e89cc);
}

#testimonials .fw-bold {
  color: #1d4e89;
}

/* ============================================================
   3. GALLERY SECTION STYLES
   Used in Home page for carousel images
============================================================ */
/* Gallery section with responsive carousel images. */
.gallery-section {
  justify-content: center;
  background-color: #ffffff;
  width: 100%;
  margin: auto;
  padding: 20px 0;
  align-items: center;
}

.gallery-section h2 {
  text-align: center;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 10px;
  color: #800000;
  text-transform: uppercase;
}

.gallery-section .intro-text {
  text-align: center;
  color: #333;
  font-weight: 500;
  font-size: 15px;
  max-width: 800px;
  margin: 0 auto 20px auto;
}

.carousel-item img {

  object-fit: cover;
  border-radius: 10px;
}

/* Image resizing */
.w-100 {
  width: 100% !important;
  margin: auto;
}

.carousel-column {
  margin-bottom: 20px;
}

.carousel-column h5 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #004080;
}

@media (max-width: 768px) {
  .carousel-item img {
    height: 200px;
  }
}

/* ============================================================
   7. FEATURES & OBJECTIVES STYLES
   Used in Home page for features and objectives cards
============================================================ */
/* Stylish cards for features/objectives with hover and quote styling. */
.features-objectives-card {
  background: linear-gradient(135deg, #f8fafc 60%, #e3e6ee 100%);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(44, 62, 80, 0.10);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  margin-bottom: 2rem;
  transition: box-shadow 0.3s, transform 0.3s;
  border: 1px solid #e0e0e0;
}

.features-objectives-card:hover {
  box-shadow: 0 8px 32px rgba(44, 62, 80, 0.18);
  transform: translateY(-4px) scale(1.02);
}

.features-objectives-card h3 {
  font-size: 1.7rem;
  font-weight: 700;
  color: #b30000;
  margin-bottom: 1.2rem;
  border-bottom: 2px solid #b30000;
  display: inline-block;
  padding-bottom: 0.3rem;
}

.features-list,
.objectives-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.features-list li,
.objectives-list li {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.07);
  margin-bottom: 1rem;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  transition: box-shadow 0.2s, background 0.2s;
}

.features-list li:hover,
.objectives-list li:hover {
  background: #f8e6e6;
  box-shadow: 0 4px 16px rgba(44, 62, 80, 0.13);
}

.features-list i,
.objectives-list i {
  font-size: 1.7rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.features-list strong,
.objectives-list strong {
  color: #800000;
  font-weight: 600;
}

.features-objectives-card p {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 1.2rem;
}

.features-objectives-quote {
  background: #f8fafc;
  border-left: 4px solid #b30000;
  padding: 1rem 1.5rem;
  font-style: italic;
  color: #555;
  border-radius: 8px;
  margin-top: 2rem;
}

/* ============================================================
   6. ABOUT US SECTION STYLES
   Used in Home page for about section
============================================================ */
/* Responsive about section with text and image slider. */
.about-wrapper {
  width: 100%;
  margin: 30px auto;
  padding: 30px;
  background-color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.about-text {
  flex: 2;
  text-align: justify;
}

.about-text h1 {
  font-size: 45px;
  font-weight: 700;
  color: #b30000;
  margin-bottom: 20px;
}

.about-text p,
.about-text li {
  font-size: 20px;
  color: #333;
  line-height: 1.7;
}

.about-text ul {
  padding-left: 20px;
}

.image-slider {
  flex: 1;
  position: relative;
  height: 650px;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 0px solid #e0e0e0;
}

.image-slider img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  top: 0;
  left: 0;
  opacity: 1;
  z-index: 0;
}


@media (max-width: 768px) {
  .about-wrapper {
    flex-direction: column;
  }

  .image-slider {
    height: 400px;
  }

  .carousel-item img {
    width: 100%;
    height: auto;
    max-height: 600px;
    max-width: 900px;
    object-fit: cover;
    border-radius: 10px;
  }

  .about-text p,
.about-text li {
  font-size: 14px;
  color: #333;
  line-height: 1.7;
}

.about-text h1 {
  font-size: 28px;
  font-weight: 700;
  font-family: 'black ops one', Arial, sans-serif;
  color: #b30000;
  text-align: center;
  margin-bottom: 20px;

}
}

@media (max-width: 900px) {
  .custom-navbar .nav-links {
    position: fixed;
    top: 94px;
    right: -100vw;
    background: #1a1a2e;
    flex-direction: column;
    width: 220px;
    height: 100vh;
    align-items: flex-start;
    padding: 2rem 1.2rem;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.12);
    z-index: 2000;
    transition: right 0.3s cubic-bezier(.4, 2, .6, 1);
  }

  .custom-navbar .nav-links.active {
    right: 0;
  }

  .custom-navbar .nav-toggle {
    display: block;
  }
}



/* ============================================================
   8. PRELOADER STYLES
   Used for page loading animation
============================================================ */
/*==========================Preloader=========================== */

:root {
  --accent-1: #ff2129;
  /* saffron */
  --accent-2: #280071;
  /* white */
  --accent-3: #5085b6;
  /* green */
  --bg: #0b1220;
  /* deep navy backdrop */
  --text: #e8eef6;
  --muted: #a9b4c3;
  --ring: #2a3a57;
}

/* Preloader container */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(90deg, var(--accent-1) 0 33.33%, var(--accent-2) 33.33% 66.66%, var(--accent-3) 66.66% 100%) top/100% 6px no-repeat,
    var(--bg);
  transition: opacity .5s ease, visibility .5s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Card */
.loader-card {
  width: min(96vw, 560px);
  border-radius: 20px;
  background: linear-gradient(180deg, #3c61b8 0%, #15284d 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .05);
  padding: 28px 24px 22px;
  text-align: center;
  color: var(--text);
}

/* Crest circle with subtle pulse */
.crest {
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background:
    radial-gradient(60% 60% at 50% 45%, #3e63bb 0%, #131c31 100%);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .04), 0 8px 20px rgba(0, 0, 0, .45);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}


/* Unused keyframe removed */

/* Unused selector removed */

h1 {
  font: 600 20px/1.2 system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  margin: 6px 0 6px;
  letter-spacing: .2px;
}

.sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}

/* Progress bar */
.progress {
  height: 10px;
  border-radius: 999px;
  background: #0d1a30;
  outline: 1px solid var(--ring);
  overflow: hidden;
  position: relative;
}

.bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-3));
  transform-origin: left center;
}

/* Marching stripes sheen */
.bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(60deg,
      rgba(255, 255, 255, .12) 0 10px,
      transparent 10px 20px);
  mix-blend-mode: overlay;
  animation: move 1.2s linear infinite;
}

@keyframes move {
  to {
    background-position: 200% 0;
  }
}

/* Helper row */
.meta {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .bar::after {
    animation: none;
  }

  #preloader {
    transition: none;
  }
}

/* ============================================================
   9. SCROLL TO TOP BUTTON
   Used for scroll to top functionality
============================================================ */
#scrollTopBtn {
  position: fixed;
  width: 45px;
  height: 45px;
  bottom: 15px;
  right: 32px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(90deg, #8b0000, #1a1a2e);
  /* tri-color gradient */
  color: white;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s, transform .2s;
  z-index: 1000;
}

#scrollTopBtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
}

/* ============================================================
   10. POPUP MODAL STYLES
   Used for popup notifications
============================================================ */
/* Overlay background */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.show {
  visibility: visible;
  opacity: 1;
}

/* Popup card */
.popup {
  background: linear-gradient(135deg, #FF9933 0%, #FFFFFF 50%, #128807 100%);
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  padding: 30px;
  position: relative;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  text-align: center;
  font-family: Arial, sans-serif;
  animation: fadeIn 0.3s ease;
}

.popup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../assets/img/Logo_and_Branding/logo/tri-services-logo.webp') no-repeat center center;
  background-size: contain;
  opacity: 0.1;
  border-radius: 16px;
  pointer-events: none;
}

@keyframes fadeIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Close button */
.popup .close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 30px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  transition: color 0.2s;
}

.popup .close-btn:hover {
  color: #d62828;
}

.popup p {
  text-align: center;
  color: #333;
  font-weight: 500;
  font-size: 15px;
  max-width: 800px;
  margin: 0 auto 20px auto;
}


.popup h3 {
  text-align: center;
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 10px;
  color: #800000;
  text-transform: uppercase;
}

.popup h4 {
  text-align: center;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 10px;
  color: #000000;
}

.popup h5 {
  text-align: center;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 10px;
  color: #004080;
  text-transform: uppercase;
}

/* Benefits list */
.popup ul {
  list-style: none;
  padding: 0;
  margin: 15px 0 20px 0;
  text-align: left;
}

.popup ul li {
  margin: 8px 0;
  font-size: 15px;
}

/* Deadline */
.deadline {
  font-weight: 700 !important;
  color: #d62828;
  font-size: 18px;
  margin-bottom: 15px;
}

/* CTA button */
.popup button {
  padding: 14px 30px;
  font-size: 18px;
  background: #1a3d7c;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.popup a {
  text-decoration: none;
  color: white;
}

.popup a:hover {
  color: #ffd700
}

.popup button:hover {
  background: #274f9e;
}

@media screen and (min-device-width: 365px) and (max-device-width: 768px) {
  .popup {
    background: #fff;
    border-radius: 16px;
    max-width: 850px;
    width: 100%;
    padding: 15px;
    height: 900px;
    position: relative;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    text-align: center;
    font-family: Arial, sans-serif;
    animation: fadeIn 0.3s ease;
  }

  .popup h3 {
    font-size: 36px;
  }

  .popup h5 {
    font-size: 32px;
  }

  .popup p {
    font-size: 28px;

  }

  .popup h4 {
    font-size: 32px;
  }

  .popup ul li {
    font-size: 26px;
  }

  .popup button {
    padding: 21px 90px;
    font-size: 28px;
  }

  .popup .close-btn {
    position: absolute;
    top: -5px;
    right: 13px;
    font-size: 50px;

  }


}

.float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  left: 30px;
  background-color: #1AA330;
  color: #FFF;
  border-radius: 50%;
  text-align: center;
  box-shadow: 1px 1px 2px #1aa330;
  z-index: 99;
  cursor: pointer;
  /* center icon and allow ring effect to show */
  display: grid;
  place-items: center;
  overflow: visible;
  /* pseudo-element needs a containing block */
  position: fixed;
}

@media screen and (min-device-width: 365px) and (max-device-width: 768px) {
/* ============================================================
   11. FLOAT BUTTON STYLES
   Used for floating action button
============================================================ */
.float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 35px;
    right: 22px;
  }
}

/* Soft expanding glow (pulse ring) */
.float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  /* box-shadow: 0 0 0 0 rgba(26, 163, 48, 0.55);
  animation: wa-pulse 1.8s ease-out infinite; */
  pointer-events: none;
}

/* Icon */
.my-float {
  width: 36px;
  height: 36px;
  margin: 0;
  /* will-change: transform, opacity;
  transform-origin: center;
  animation: wa-beat 1.8s ease-in-out infinite; */
}

/* Keyframes */
@keyframes wa-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(26, 163, 48, 0.55);
  }

  70% {
    box-shadow: 0 0 0 16px rgba(26, 163, 48, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(26, 163, 48, 0);
  }
}

@keyframes wa-beat {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  45% {
    transform: scale(1.12);
    opacity: 0.92;
  }
}

/* Optional: pause on hover so it’s less distracting */
.float:hover .my-float,
.float:focus .my-float,
.float:hover::after,
.float:focus::after {
  animation-play-state: paused;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .float::after,
  .my-float {
    animation: none;
  }
}

/* ===================== Notification Sidebar ===================== */
.notification-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 350px;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1050;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.notification-sidebar.open {
  right: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: linear-gradient(90deg, #8b0000, #1a1a2e);
  color: #fff;
  border-bottom: 1px solid #ddd;
}

.sidebar-header h4 {
  margin: 0;
  font-size: 1.2rem;
}

.close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.sidebar-content {
  padding: 20px;
}

.notification-item {
  border-bottom: 1px solid #eee;
  padding: 15px 0;
  cursor: pointer;
  transition: background 0.2s;
}

.notification-item:hover {
  background: #f8f9fa;
}

.notification-item h5 {
  margin: 0 0 5px 0;
  font-size: 1rem;
  color: #333;
}

.notification-item p {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

.notification-toggle {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 100px;
  left: 30px;
  background: linear-gradient(90deg, #8b0000, #1a1a2e);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1040;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.notification-toggle:hover {
  transform: scale(1.1);
}

.badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff0000;
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-content {
  margin-top: 10px;
}

.notification-content img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

.notification-content a {
  color: #007bff;
  text-decoration: none;
}

.notification-content a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
/* ============================================================
   12. NOTIFICATION SIDEBAR STYLES
   Used for notification sidebar component
============================================================ */
.notification-sidebar {
    width: 300px;
    right: -300px;
  }

  .notification-toggle {
    bottom: 120px;
    right: 15px;
  }
}

/* ===================== Footer Section ===================== */
.footer-section {
  background: linear-gradient(90deg, #8b0000, #1a1a2e);
  color: #fff;
  padding: 40px 0 20px;
  margin-top: auto;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffd600;
  position: relative;
  padding-bottom: 8px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: #ffd600;
}

.footer-link {
  color: #e0e0e0;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #ffd600;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid #333;
  font-size: 0.85rem;
  color: #aaa;
}

.footer-bottom p {
  margin: 5px 0;
}

/* ============================================================
   13. ACHIEVERS PAGE STYLES
   Used for Achievers page showcasing cadet achievements
============================================================ */
/* === Achievers Page Variables === */
:root {
  --ncc-green: #0a4d0a;
  --ncc-gold: #ffc107;
  --light-bg: #f5f5f5;
  --dark-text: #333;
  --secondary-text: #777;
  --card-bg-light: #ffffff;
  --card-border: #ddd;
  --transition-speed: 0.3s;
}

/* === Achievers Main Wrapper === */
.achievers-main-wrapper {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 40px 5%;
  max-width: 1400px;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  position: relative;
  overflow: hidden;
}

.achievers-main-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--ncc-green), var(--ncc-gold), var(--ncc-green));
}

/* === Header Section === */
.achievers-header-section {
  text-align: center;
  margin-bottom: 50px;
  padding: 30px 20px;
  border-bottom: 2px solid var(--ncc-gold);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  margin: 0 20px 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
}

.achievers-logo-section {
  margin-bottom: 20px;
}

.achievers-logo {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.achievers-main-title {
  font-size: 3rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  color: var(--ncc-gold);
  margin-bottom: 10px;
  -webkit-text-stroke: 1px var(--ncc-green);
  text-stroke: 1px var(--ncc-green);
  text-shadow:
    -1px -1px 0 var(--ncc-green),
    1px -1px 0 var(--ncc-green),
    -1px 1px 0 var(--ncc-green),
    1px 1px 0 var(--ncc-green);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.achievers-main-title i {
  margin-right: 15px;
  color: var(--ncc-gold);
}

.achievers-hero-heading {
  font-size: 2.2rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  margin-bottom: 15px;
  background: linear-gradient(135deg, var(--ncc-green) 0%, var(--ncc-gold) 50%, var(--ncc-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(255, 193, 7, 0.5);
  animation: glow 2s ease-in-out infinite alternate;
  position: relative;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.achievers-hero-heading::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ncc-gold), var(--ncc-green));
  animation: expandWidth 1.5s ease-out forwards;
}

@keyframes glow {
  from { text-shadow: 0 0 20px rgba(255, 193, 7, 0.5); }
  to { text-shadow: 0 0 30px rgba(255, 193, 7, 0.8), 0 0 40px rgba(10, 77, 10, 0.3); }
}

@keyframes expandWidth {
  to { width: 200px; }
}

.achievers-hero-description {
  color: var(--dark-text);
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.1rem;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  font-weight: 400;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.5s forwards;
  text-align: center;
  padding: 0 20px;
  position: relative;
}

.achievers-hero-description::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: var(--ncc-gold);
  animation: fadeIn 1s ease-out 1s forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* === Gallery Section === */
.achievers-gallery-section {
  margin-bottom: 50px;
}

.achievers-section-header {
  text-align: center;
  margin-bottom: 30px;
  padding-top: 20px;
}

.achievers-section-title {
  font-size: 2rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  color: var(--ncc-green);
  border-bottom: 3px solid var(--ncc-gold);
  display: inline-block;
  padding-bottom: 5px;
  margin-bottom: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.achievers-section-subtitle {
  color: var(--secondary-text);
  margin-top: 10px;
  font-style: italic;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
}

/* === Flex Layout === */
.achievers-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 50px;
  justify-content: center;
}

.achiever-item {
  flex: 0 0 calc(25% - 15px);
  min-width: 180px;
  max-width: 250px;
  position: relative;
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  border: 2px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  text-align: center;
  backdrop-filter: blur(10px);
}

.achiever-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--ncc-gold);
}

.achiever-featured {
  flex: 0 0 calc(50% - 10px);
  min-width: 300px;
}

.achiever-image-wrapper {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.achiever-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition-speed);
  padding: 20px;
}

.achiever-item:hover .achiever-image-wrapper img {
  transform: scale(1.05);
}

.achiever-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 20px 15px 15px;
  transform: translateY(100%);
  transition: transform var(--transition-speed);
}

.achiever-item:hover .achiever-overlay {
  transform: translateY(0);
}

.achiever-name {
  font-size: 1.1rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  margin: 5px;
  background: linear-gradient(135deg, var(--ncc-green) 0%, var(--ncc-gold) 50%, var(--ncc-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(255, 193, 7, 0.5);
  animation: glow 2s ease-in-out infinite alternate;
  position: relative;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.achiever-rank {
  display: none;
}

p.achievement-text {
  margin: 3px;
  margin-bottom: 1rem;
}

/* === Additional Section === */
.achievers-additional-section {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 2px solid var(--card-border);
}

/* === Responsive Design === */
@media (max-width: 992px) {
  .achiever-item {
    flex: 0 0 calc(50% - 10px);
  }
}

@media (max-width: 768px) {
  .achievers-main-wrapper {
    padding: 20px 3%;
    border-radius: 10px;
  }
  .achievers-main-wrapper::before {
    height: 3px;
  }
  .achievers-header-section {
    margin: 0 10px 50px;
    padding: 20px 15px;
  }
  .achievers-logo {
    width: 60px;
    height: 60px;
  }
  .achievers-main-title {
    font-size: 2.2rem;
  }
  .achievers-hero-heading {
    font-size: 1.8rem;
  }
  .achievers-hero-heading::before {
    width: 150px;
  }
  .achievers-hero-description {
    font-size: 1rem;
    padding: 0 10px;
  }
  .achievers-hero-description::after {
    width: 40px;
  }
  .achievers-section-title {
    font-size: 1.8rem;
  }
  .achievers-grid {
    gap: 15px;
  }
  .achiever-item {
    flex: 0 0 calc(50% - 7.5px);
    min-width: 150px;
  }
  .achiever-image-wrapper {
    height: 180px;
  }
  .achiever-featured {
    flex: 0 0 100%;
    min-width: 250px;
  }
}

@media (max-width: 480px) {
  .achievers-main-wrapper {
    padding: 15px 2%;
    border-radius: 8px;
  }
  .achievers-main-wrapper::before {
    height: 2px;
  }
  .achievers-header-section {
    margin: 0 5px 30px;
    padding: 15px 10px;
  }
  .achievers-logo {
    width: 50px;
    height: 50px;
  }
  .achievers-main-title {
    font-size: 1.8rem;
  }
  .achievers-hero-heading {
    font-size: 1.5rem;
  }
  .achievers-hero-heading::before {
    width: 120px;
  }
  .achievers-hero-description {
    font-size: 0.95rem;
    padding: 0 5px;
  }
  .achievers-hero-description::after {
    width: 30px;
  }
  .achievers-section-title {
    font-size: 1.5rem;
  }
  .achievers-grid {
    gap: 10px;
  }
  .achiever-item {
    flex: 0 0 100%;
    min-width: 120px;
  }
  .achiever-image-wrapper {
    height: 150px;
  }
.achiever-featured {
  flex: 0 0 100%;
  min-width: 200px;
}
}

/* ============================================================
   14. CALENDAR PAGE STYLES
   Used for Calendar page to display NCC events
============================================================ */

/* === Calendar Main Section === */
.calendar-main {
  max-width: 1600px;
  margin: 2rem auto;
  padding: 0 1rem;
  background: #fff;
}

.calendar-title {
  font-family: 'Montserrat', 'Poppins', sans-serif;
  color: #8b0000;
  font-weight: 700;
  text-align: center;
  letter-spacing: 1px;
  font-size: clamp(1.25rem, 3vw, 2.25rem);
  margin: 0 0 1.5rem;
}

/* === Card Row: responsive grid === */
.calendar-row {
  display: grid;
  gap: 1.5rem;
  justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(467px, 1fr));
}

/* === Event Card Columns === */
.calendar-col {
  display: flex;
  flex-direction: column;
}

/* === Event Card === */
.calendar-card {
  background: linear-gradient(130deg, #fff 70%, #f5f7fa 100%);
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(44, 62, 80, 0.12);
  padding: 1rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: none;
}

.calendar-card-title {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  font-weight: 600;
  color: #ba1b1b;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* === Scrollable Table === */
.calendar-table-scroll {
  overflow-x: auto;
  overflow-y: auto;
  flex: 1 1 auto;
  max-height: 65vh;
  -webkit-overflow-scrolling: touch;
}

.calendar-table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(0.7rem, 2vw, 0.85rem);
  background: #fff;
  min-width: 500px;
  table-layout: auto;
}

.calendar-table th,
.calendar-table td {
  padding: 0.4rem;
  text-align: left;
  border: 1px solid #eee;
  word-wrap: break-word;
  hyphens: auto;
  font-size: clamp(0.65rem, 1.8vw, 0.8rem);
}

.calendar-table th {
  background: #f8dad5;
  color: #8b0000;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 1;
}

.calendar-table tbody tr:nth-child(even) {
  background: #faf7f4;
}

.calendar-table tbody tr:hover {
  background: #fff8ec;
}

/* === Responsive Breakpoints === */
@media (max-width: 1200px) {
  .calendar-row {
    grid-template-columns: 1fr;
  }
  .calendar-main {
    padding: 0 0.75rem;
  }
  .calendar-table {
    min-width: 450px;
  }
}

@media (max-width: 768px) {
  .calendar-main {
    padding: 0 0.5rem;
  }
  .calendar-card {
    padding: 0.75rem;
  }
  .calendar-table th,
  .calendar-table td {
    padding: 0.3rem;
    font-size: 0.65rem;
  }
  .calendar-table {
    min-width: 400px;
  }
  .calendar-table-scroll {
    max-height: 55vh;
  }
}

@media (max-width: 480px) {
  .calendar-main {
    padding: 0 0.25rem;
  }
  .calendar-card {
    padding: 0.5rem;
    border-radius: 8px;
  }
  .calendar-table {
    min-width: 350px;
  }
  .calendar-table th,
  .calendar-table td {
    padding: 0.2rem;
    font-size: 0.6rem;
  }
}

/* === Optional: Modern scrollbar for table scroll === */
.calendar-table-scroll::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.calendar-table-scroll::-webkit-scrollbar-thumb {
  background: #a0a0a0;
  border-radius: 10px;
}

.calendar-table-scroll::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 10px;
}

.calendar-table-scroll {
  scrollbar-width: thin;
  scrollbar-color: #a0a0a0 #f0f0f0;
}

/* === Sticky Footer Logic Only (NO color change) === */
html,
body {
  height: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: auto;
}

.calendar-main {
  flex: 1 0 auto;
}

.ncc-footer {
  flex-shrink: 0;
}

/* ============================================================
   15. GALLERY PAGE STYLES
   Used for Gallery page to display photo galleries
============================================================ */
.gallery-controls {
  margin: 20px 0;
}

.gallery-controls .form-label {
  font-weight: 600;
  color: #333;
}

.gallery-controls .form-select,
.gallery-controls .form-control {
  border-radius: 8px;
  border: 2px solid #ddd;
}

.hero-banner {
  background: linear-gradient(135deg, #8b0000 0%, #1a1a2e 100%);
  color: #fff;
  padding: 40px 30px;
  border-radius: 15px;
  margin-bottom: 30px;
  text-align: center;
}

.hero-banner h2 {
  font-size: 2.2rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.hero-banner p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 800px;
  margin: 0 auto;
}

.gallery-event-heading {
  font-size: 1.6rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  color: #8b0000;
  margin-bottom: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.gallery .item {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.gallery .item:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.gallery .thumb {
  width: 100%;
  height: 100%;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

.gallery .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery .item:hover .thumb img {
  transform: scale(1.08);
}

.dropdown{
  background-color: #2f6dac;
  border: 2px solid #ddd;
  width: 70%;
}

/* ============================================================
   16. CONTACT US PAGE STYLES
   Used for ContactUs page
============================================================ */
.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: 'Poppins', sans-serif;
}

.contact-title {
  font-size: 2.2rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  color: #8b0000;
  text-align: center;
  margin-bottom: 30px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.contact-row {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.bottom{
  display: flex;
  gap:0px;

}

.contact-col {
  flex: 1 1 350px;
  max-width: 100%;
  min-width: 380px;
}

.contact-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  border: 2px solid #ddd;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  padding: 25px;
  backdrop-filter: blur(10px);
  height: 100%; 
}

.contact-card h2 {
  font-size: 1.3rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  color: #0a4d0a;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-icon {
  color: #ffc107;
}

.contact-card input,
.contact-card textarea,
.contact-card select {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
}

.contact-card input:focus,
.contact-card textarea:focus,
.contact-card select:focus {
  outline: none;
  border-color: #8b0000;
}

.btn-sub{
  align-self: center;
}


.btn-submit {
  background: linear-gradient(90deg, #8b0000, #1a1a2e);
  color: #fff;
  border: none;
  padding: 13px 18px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 25px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-submit:hover {
  background: linear-gradient(90deg, #1a1a2e, #8b0000);
  transform: translateY(-2px);
}

.contact-pair {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
}

.contact-pair i {
  color: #8b0000;
  margin-top: 4px;
}

.contact-info-link {
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

.contact-info-link:hover {
  color: #8b0000;
  text-decoration: underline;
}

.official-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.official-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.official-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.official-name-link {
  color: #8b0000;
  text-decoration: none;
  font-weight: 600;
}

.official-name-link:hover {
  text-decoration: underline;
}

.profile-link {
  color: #666;
  font-size: 0.85rem;
  text-decoration: none;
}

.profile-link:hover {
  color: #8b0000;
}

.address-card address {
  font-style: normal;
  color: #555;
  line-height: 1.7;
  margin-bottom: 20px;
}

.map-embed iframe {
  border-radius: 10px;
}

@media (max-width: 768px) {
  .contact-container {
    padding: 20px 15px;
  }
  .contact-title {
    font-size: 1.6rem;
  }
  .contact-col {f
    max-width: 100%;
    min-width: 0;
  }
  .contact-card {
    padding: 20px;
  }

  .bottom{
    gap:0px; !important;
  }

  .btn-submit {
    padding: 13px 18px;
  }
}

/* ============================================================
   17. MAGAZINE PAGE STYLES
   Used for Magazine page to display digital magazine
============================================================ */

/* ------------ 1. Global Styles ------------ */
:root {
  --primary: #8b0000;
  --primary-light: #a62c2c;
  --nav-bg: #1a1a2e;
  --accent: #ffd700;
  --sidebar: #85909b;
  --headline: #3104d3;
  --card: #fff;
  --shadow: 0 4px 24px rgba(44, 62, 80, 0.13);
}

/* ------------ Magazine Section Layout (Desktop) ------------ */
.magazine-section {
  display: flex;
  flex-direction: row;
  gap: 20px;
  max-width: 1200px;
  margin: 1% 10%;
  padding: 0 10px;
}

.sidebar {
  width: 260px;
  min-width: 220px;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  align-self: flex-start;
}

.sidebar h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 15px;
  padding: 8px 10px;
  background: #e9ecef;
  border-radius: 8px;
  text-align: center;
}

.dropdown-container {
  position: relative;
}

.magazine-dropdown {
  width: 100%;
  background: #f5f6f7;
  color: #1a1a1a;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid #ced4da;
  border-radius: 11px;
  padding: 12px 40px 12px 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%231a1a2e' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 12px) center;
  background-size: 20px;
}

.magazine-dropdown:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(139, 0, 0, 0.25);
}

.magazine-dropdown option {
  background: #fff;
  color: #1a1a1a;
}

@media (max-width: 767.98px) {
  .dropdown-container {
    display: block !important;
  }

  .magazine-links {
    display: none !important;
  }
}

/* Sidebar links - matching original */
.nav-link-sidebar {
  color: #1a1a1a !important;
  background: #f5f6f7;
  font-weight: 600;
  font-size: 1.01rem;
  border-radius: 11px;
  padding: 12px 12px;
  text-decoration: none;
  margin-bottom: 6px;
  border-left: 3px solid transparent;
  transition: all 0.17s cubic-bezier(0.31, 0.91, 0.53, 1.06);
  box-shadow: 0 2px 6px rgba(44, 62, 80, 0.06);
  display: block;
}

.nav-link-sidebar.active,
.nav-link-sidebar:focus,
.nav-link-sidebar:hover {
  background: #fff;
  color: var(--primary) !important;
  border-left: 3px solid var(--primary);
  transform: scale(1.045);
  box-shadow: 0 6px 20px rgba(60, 82, 110, 0.13);
}

/* ------------ Magazine Content ------------ */
.magazine-content {
  flex: 1;
  min-width: 0;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.magazine-title {
  font-size: 2.44rem;
  font-weight: 800;
  background: var(--sidebar);
  color: var(--headline);
  padding: 16px 0;
  text-align: center;
  letter-spacing: 1.5px;
  border-radius: 10px;
  margin: 28px 0 14px 0;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.06);
}

.magazine-embed {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  width: 100%;
  margin-top: 0;
}

/* Description card below embed */
.magazine-desc {
  margin: 14px auto 0 auto;
  padding: 4px 6px;
  max-width: 800px;
  background: #f5f8fa;
  color: #232323;
  font-size: 1.08rem;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(50, 60, 85, 0.07);
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.15px;
  transition: background 0.12s;
}

/* Embedded Flipbook Magazine or PDF */
.magazine-embed iframe {
    width: 100%;
    /* max-width: 950px; */
    /* min-width: 240px; */
    height: 80vh;
    min-height: 340px;
    max-height: 85vh;
    border: none;
    box-shadow: 0 6px 28px rgba(44, 62, 80, 0.13);
    border-radius: 17px;
    background: #dadada;
    display: block;
    margin: 12px auto 32px auto;
}

/* ------------ 5. Responsive Adjustments ------------ */

/* Tablet and smaller screens */
@media (max-width: 1024px) {
  .magazine-section {
    flex-direction: column;
    max-width: 100%;
    margin: 10px auto;
    padding: 0;
  }

  .sidebar {
    width: 100%;
    min-width: unset;
    max-width: unset;
    border-radius: 22px 22px 0 0;
    padding: 20px 15px;
  }

  .magazine-content {
    padding: 10px;
  }

  .magazine-embed iframe {
    height: 60vh;
    min-height: 300px;
  }

}

/* Mobile screens */
@media (max-width: 768px) {
  .magazine-section {
    margin: 5px auto;
    border-radius: 15px;
  }

  .sidebar {
    padding: 15px 10px;
  }

  .sidebar h4 {
    font-size: 1.1rem;
    padding: 8px 6px;
  }

  .nav-link-sidebar {
    font-size: 0.95rem;
    padding: 10px 10px;
  }

  .magazine-content {
    padding: 5px;
  }

  .magazine-embed iframe {
    height: 50vh;
    min-height: 250px;
    max-height: 70vh;
  }

  .magazine-desc {
    font-size: 0.95rem;
    padding: 3px 5px;
  }

  .nav-links {
    gap: 5px;
  }

  .nav-link {
    padding: 0.4rem 0.3rem;
    font-size: 0.9rem;
  }
}

/* Small mobile screens */
@media (max-width: 480px) {
  .magazine-embed iframe {
    height: 40vh;
    min-height: 200px;
  }

  .sidebar h4 {
    font-size: 1rem;
  }

  .nav-link-sidebar {
    font-size: 0.9rem;
    padding: 8px 8px;
  }

  .magazine-desc {
    font-size: 0.9rem;
  }
}

.load-more-btn {
  display: block;
  margin: 20px auto;
  padding: 10px 30px;
  background: linear-gradient(90deg, #8b0000, #1a1a2e);
  color: #fff;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.load-more-btn:hover {
  background: linear-gradient(90deg, #1a1a2e, #8b0000);
  transform: translateY(-2px);
}

/* Lightbox Styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox__stage {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.lightbox__img {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .hero-banner {
    padding: 25px 20px;
  }
  .hero-banner h2 {
    font-size: 1.6rem;
  }
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }
}

/* ============================================================
  18. OFFICER PROFILE PAGE STYLES
  Used for Officer Profile page
============================================================ */

/* === 1. Profile Page Header === */
.profile-header {
  background-color: #6c757d;
  color: #fff;
  padding: 2.4rem 1rem 2rem 1rem;
  text-align: center;
}
.profile-header h1 {
  font-family: 'Montserrat', 'Poppins', sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 0.4em;
}
.profile-header p {
  margin-bottom: 0.5em;
  font-size: 1.15rem;
  font-weight: 400;
}
.badge-rank {
  background-color: #fff;
  color: #071022;
  padding: 0.45rem 1.1rem;
  border-radius: 1rem;
  font-size: 1.04rem;
  font-weight: 700;
  margin-top: 0.5rem;
  display: inline-block;
  letter-spacing: 0.05em;
}

.branding-section{
  
  background-size: cover;
  background-position: center;
}

/* === 2. Profile Main Container and Photo === */
.officer-main-container {
  max-width: 89vw;
  width: 84%;
  margin: 2.2rem auto 2.3rem auto;
}

.profile-photo {
  max-width: 390px;
  width: 100%;
  min-height: 310px;
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.17);
  margin-bottom: 1.4rem;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
}

/* On large screens, center vertically with min height */
@media (min-width: 992px) {
  .officer-main-container .row.align-items-center {
    align-items: center !important;
    min-height: 575px;
  }
}

/* === 3. Section Titles and Highlights === */
.section-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: #232323;
  border-bottom: 3px solid #6c757d;
  padding-bottom: 0.3rem;
  margin-bottom: 1.2rem;
  line-height: 1.2;
}
.highlight {
  color: #6c757d;
  font-weight: 700;
  font-size: 1.13em;
}

/* === 4. Badge and Misc Info Text === */
.info-text {
  font-size: 1.1rem;
  line-height: 1.67;
  color: #2d2d2d;
  margin-bottom: 0.6em;
}
b {
  text-decoration-color: #1822bd;
  font-weight: 700;
}

/* === 5. Button and Footer === */
.btn-secondary {
  background: #6c757d;
  color: #fff;
  font-weight: 600;
  border-radius: 9px;
  border: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.19s;
  padding-top: 0.55rem !important;
  padding-bottom: 0.55rem !important;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #343a40;
  color: #fff;
}

footer {
  background: #f8f9fa;
  color: #333;
  text-align: left;
  font-size: 0.95rem;
  margin-top: 1.8rem;
  padding: 1rem 0 0.8rem 0;
  border-top: 1px solid #e0e0e0;
}

/* === 6. Responsive Tweaks === */
@media (max-width: 992px) {
  .officer-main-container {
    max-width: 97vw;
    width: 99%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .profile-photo {
    max-width: 70vw;
    min-height: 190px;
  }
}

@media (max-width: 650px) {
  .profile-header h1 {
    font-size: 1.24rem;
  }
  .profile-header, .officer-main-container {
    padding-left: 0.3em;
    padding-right: 0.3em;
  }
  .section-title {
    font-size: 1.1rem;
    border-bottom-width: 2px;
  }
  .profile-photo {
    min-height: 120px;
    margin-bottom: 0.7rem;
  }
  .info-text {
    font-size: 1rem;
  }
  .badge-rank {
    font-size: 0.96rem;
    padding: 0.28rem 0.73rem;
  }
  .highlight {
    font-size: 1em;
  }
}

/* Optional: fix for Bootstrap row/col spacing on smallest screens */
@media (max-width: 575px) {
  .officer-main-container .row.g-4 {
    gap: 0.8rem !important;
  }
}

/* ============================================================
  19. OFFICER PROFILE PAGE STYLES
  Used for Officer Profile page
============================================================ */

/* === 1. Profile Page Header === */
.profile-header {
  background-color: #6c757d;
  color: #fff;
  padding: 2.4rem 1rem 2rem 1rem;
  text-align: center;
}
.profile-header h1 {
  font-family: 'Montserrat', 'Poppins', sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 0.4em;
}
.profile-header p {
  margin-bottom: 0.5em;
  font-size: 1.15rem;
  font-weight: 400;
}
.badge-rank {
  background-color: #fff;
  color: #071022;
  padding: 0.45rem 1.1rem;
  border-radius: 1rem;
  font-size: 1.04rem;
  font-weight: 700;
  margin-top: 0.5rem;
  display: inline-block;
  letter-spacing: 0.05em;
}

/* === 2. Profile Main Container and Photo === */
.officer-main-container {
  max-width: 89vw;
  width: 84%;
  margin: 2.2rem auto 2.3rem auto;
}

.profile-photo {
  max-width: 390px;
  width: 100%;
  min-height: 310px;
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.17);
  margin-bottom: 1.4rem;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
}

/* On large screens, center vertically with min height */
@media (min-width: 992px) {
  .officer-main-container .row.align-items-center {
    align-items: center !important;
    min-height: 575px;
  }
}

/* === 3. Section Titles and Highlights === */
.section-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: #232323;
  border-bottom: 3px solid #6c757d;
  padding-bottom: 0.3rem;
  margin-bottom: 1.2rem;
  line-height: 1.2;
}
.highlight {
  color: #6c757d;
  font-weight: 700;
  font-size: 1.13em;
}

/* === 4. Badge and Misc Info Text === */
.info-text {
  font-size: 1.1rem;
  line-height: 1.67;
  color: #2d2d2d;
  margin-bottom: 0.6em;
}
b {
  text-decoration-color: #1822bd;
  font-weight: 700;
}

/* === 5. Button and Footer === */
.btn-secondary {
  background: #6c757d;
  color: #fff;
  font-weight: 600;
  border-radius: 9px;
  border: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.19s;
  padding-top: 0.55rem !important;
  padding-bottom: 0.55rem !important;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #343a40;
  color: #fff;
}

footer {
  background: #f8f9fa;
  color: #333;
  text-align: left;
  font-size: 0.95rem;
  margin-top: 1.8rem;
  padding: 1rem 0 0.8rem 0;
  border-top: 1px solid #e0e0e0;
}

/* === 6. Responsive Tweaks === */
@media (max-width: 992px) {
  .officer-main-container {
    max-width: 97vw;
    width: 99%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .profile-photo {
    max-width: 70vw;
    min-height: 190px;
  }
}

@media (max-width: 650px) {
  .profile-header h1 {
    font-size: 1.24rem;
  }
  .profile-header, .officer-main-container {
    padding-left: 0.3em;
    padding-right: 0.3em;
  }
  .section-title {
    font-size: 1.1rem;
    border-bottom-width: 2px;
  }
  .profile-photo {
    min-height: 120px;
    margin-bottom: 0.7rem;
  }
  .info-text {
    font-size: 1rem;
  }
  .badge-rank {
    font-size: 0.96rem;
    padding: 0.28rem 0.73rem;
  }
  .highlight {
    font-size: 1em;
  }
}

/* Optional: fix for Bootstrap row/col spacing on smallest screens */
@media (max-width: 575px) {
  .officer-main-container .row.g-4 {
    gap: 0.8rem !important;
  }
}

/* ============================================================
  20. TEAM PAGE STYLES
  Used for Team page (Army and Navy Wings)
============================================================ */

/* === 1. ANIMATION STYLES === */
.team-section > * {
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-card:nth-child(odd) {
  animation-delay: 0.1s;
}

.profile-card:nth-child(even) {
  animation-delay: 0.2s;
}

.profile-card:focus-within {
  outline: 3px solid #007bff;
  outline-offset: 2px;
}

/* === 2. GENERAL LAYOUT STYLES === */
.team-section {
  padding: 60px 20px;
  max-width: 85vw;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 20px;
  margin: 20px auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.team-container {
  max-width: 85vw;
  margin: 0 auto;
}

.team-heading {
  font-weight: bold;
  margin-bottom: 40px;
  font-family: 'Poppins', sans-serif;
  color: #2c3e50;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* === 3. PROFILE CARDS STYLES === */
.profile-card {
  border: 2px solid #e0e0e0;
  border-radius: 20px;
  text-align: center;
  padding: 25px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.15), transparent);
  transition: left 0.6s ease;
  z-index: 1;
}

.army-wing .profile-card::before {
  background: linear-gradient(90deg, transparent, rgba(194, 44, 61, 0.15), transparent);
}

.profile-card:hover::before {
  left: 100%;
}

.profile-card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  border-color: #007bff;
}

.army-wing .profile-card:hover {
  border: 2px solid #dc3545;
  border-color: #dc3545;
  box-shadow: 0 15px 35px rgba(220, 53, 69, 0.3);
}

.wing-heading-navy + .row .profile-card {
  border-left: 4px solid #007bff;
}

.wing-heading-navy + .row .profile-card:hover {
  border-color: #007bff;
  box-shadow: 0 15px 35px rgba(0, 123, 255, 0.3);
}

.profile-img {
  border-radius: 15px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
}

.profile-card:hover .profile-img {
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.cadet-name {
  font-weight: 900;
  font-size: 1.2rem;
  margin-top: 15px;
  color: #2c3e50;
  font-family: 'Poppins', sans-serif;
  position: relative;
  z-index: 2;
}

.cadet-role {
  font-size: 0.95rem;
  color: #be32be;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: linear-gradient(45deg, #3498db, #e74c3c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 2;
}

/* === 4. WING SECTION STYLES === */
.wing-heading-army {
  display: inline-block;
  padding: 12px 25px;
  margin: 25px 0 15px;
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-left: 6px solid #e74c3c;
  background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
  color: #c0392b;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(231, 76, 60, 0.2);
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
}

.wing-heading-army:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}

.wing-heading-navy {
  display: inline-block;
  padding: 12px 25px;
  margin: 25px 0 15px;
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-left: 6px solid #3498db;
  background: linear-gradient(135deg, #a8e6cf 0%, #74b9ff 100%);
  color: #2c3e50;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(52, 152, 219, 0.2);
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
}

.wing-heading-navy:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

/* === 5. DOMAIN SECTION STYLES === */
.bg-heading-domain {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  padding: 15px 30px;
  border-radius: 15px;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
  width: 100%;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* === 6. PROFILE CARDS FLEX CONTAINER === */
.profile-cards-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 0 auto;
  max-width: 100%;
}

.profile-cards-flex .profile-card {
  flex: 0 0 auto;
  width: 280px;
  margin: 0;
}

/* === 7. MODAL STYLES === */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* === 8. TANK & SHIP IMAGE GALLERY === */
.tank-images-flex, .ship-images-flex {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.tank-images-flex img, .ship-images-flex img {
  cursor: pointer;
  transition: transform 0.3s ease;
  object-fit: contain !important;
  max-width: 49%;
  max-height: 500px;
  width: 100%;
  height: auto;
}

.tank-images-flex img:hover, .ship-images-flex img:hover {
  transform: scale(1.05);
}

/* === 9. RESPONSIVE DESIGN === */
@media (min-width: 768px) {
  .container-md, .container-sm {
    max-width: 80vw;
  }
  .team-section {
    padding: 80px 30px;
  }
  .profile-cards-flex {
    gap: 2rem;
  }
  .profile-cards-flex .profile-card {
    width: 300px;
  }
}

@media (max-width: 768px) {
  .profile-card {
    padding: 20px;
    border-radius: 15px;
  }
  .profile-img {
    height: 260px;
    border-radius: 12px;
  }
  .cadet-name {
    font-size: 1.1rem;
  }
  .cadet-role {
    font-size: 0.85rem;
  }
  .bg-heading-domain {
    font-size: 1.6rem;
    padding: 12px 20px;
  }
  .wing-heading-army, .wing-heading-navy {
    font-size: 1.2rem;
    padding: 10px 20px;
  }
  .team-section {
    padding: 40px 15px;
    max-width: 95vw;
  }
  .profile-cards-flex {
    gap: 1rem;
  }
  .profile-cards-flex .profile-card {
    width: 250px;
  }
}

@media (max-width: 576px) {
  .profile-card {
    padding: 15px;
    border-radius: 12px;
  }
  .profile-img {
    height: 140px;
    border-radius: 10px;
  }
  .cadet-name {
    font-size: 1rem;
  }
  .cadet-role {
    font-size: 0.8rem;
  }
  .bg-heading-domain {
    font-size: 1.4rem;
    padding: 10px 15px;
  }
  .wing-heading-army, .wing-heading-navy {
    font-size: 1.1rem;
    padding: 8px 15px;
  }
  .team-section {
    padding: 30px 10px;
  }
  .profile-cards-flex {
    gap: 0.75rem;
  }
  .profile-cards-flex .profile-card {
    width: 200px;
  }
}

@media (max-width: 480px) {
  .profile-card {
    padding: 12px;
  }
  .profile-img {
    height: 120px;
  }
  .cadet-name {
    font-size: 0.9rem;
  }
  .cadet-role {
    font-size: 0.75rem;
  }
  .bg-heading-domain {
    font-size: 1.2rem;
  }
  .wing-heading-army, .wing-heading-navy {
    font-size: 1rem;
  }
  .profile-cards-flex {
    gap: 0.5rem;
  }
  .profile-cards-flex .profile-card {
    width: 180px;
  }
}
