/* =========================================================
   NATIONAL SERVICE SCHEME (NSS) STYLES
   ========================================================= */

/* CSS Variables for NSS */
:root {
  --dept-primary: #1565c0;
  --dept-secondary: #0d47a1;
  --dept-light: #e3f2fd;
  --dept-dark: #0d47a1;
  --dept-accent: #42a5f5;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

/* =========================================================
   NSS HEADER
   ========================================================= */
.nss-header {
  background: linear-gradient(
    135deg,
    var(--dept-primary) 0%,
    var(--dept-dark) 100%
  );
  position: relative;
  overflow: hidden;
  padding: 2.5rem 0;
  margin: 0;
}
.nss-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="white" opacity="0.05"><path d="M0,70 Q250,10 500,70 T1000,70 L1000,100 L0,100 Z"/></svg>');
  background-size: cover;
}
.nss-header .lead {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}
.nss-info .badge {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-right: 0.75rem;
  display: inline-block;
}
.nss-icon {
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 3.5rem;
  color: white;
  border: 4px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease;
}
.nss-icon:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.25);
}
.nss-symbol {
  text-align: center;
}
.symbol-wheel {
  width: 80px;
  height: 80px;
  background: var(--dept-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 2rem;
  color: white;
  border: 3px solid #ff0000;
}

/* =========================================================
   INTERNAL NAVIGATION - NSS
   ========================================================= */
.internal-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin: 0;
  padding: 0;
}
.internal-nav .navbar-nav {
  gap: 1rem;
}
.internal-nav .nav-link {
  position: relative;
  color: var(--dept-dark);
  font-weight: 600;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  border-radius: 20px;
}
.internal-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--dept-accent);
  transition: all 0.3s ease;
  border-radius: 2px;
  transform: translateX(-50%);
}
.internal-nav .nav-link:hover,
.internal-nav .nav-link.active {
  color: var(--dept-primary);
  background: var(--dept-light);
}
.internal-nav .nav-link:hover::after,
.internal-nav .nav-link.active::after {
  width: 80%;
}

/* =========================================================
   SECTION COMMON STYLES - NSS
   ========================================================= */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dept-dark);
  margin-bottom: 1rem;
  position: relative;
}
.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(
    135deg,
    var(--dept-primary) 0%,
    var(--dept-accent) 100%
  );
  border-radius: 2px;
  margin: 1rem 0 2rem;
}
.section-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--dept-primary);
  transition: transform 0.3s ease;
  margin: 0;
}
.section-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.nss-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555;
}
.nss-text p {
  margin-bottom: 1rem;
}

/* =========================================================
   OBJECTIVE CARDS - NSS
   ========================================================= */
.objective-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
  height: 100%;
  text-align: center;
  margin: 0;
}
.objective-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--dept-accent);
}
.objective-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--dept-primary) 0%,
    var(--dept-accent) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: white;
}
.objective-card h5 {
  color: var(--dept-dark);
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}
.objective-card p {
  color: #666;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

/* =========================================================
   ACTIVITIES GRID - NSS
   ========================================================= */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0 0;
}
.activity-item {
  background: var(--dept-light);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  text-align: center;
  border-left: 4px solid var(--dept-accent);
  transition: all 0.3s ease;
}
.activity-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
  background: white;
}
.activity-item i {
  font-size: 2rem;
  color: var(--dept-primary);
  margin-bottom: 1rem;
}
.activity-item h6 {
  color: var(--dept-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}
.activity-item p {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

/* =========================================================
   COORDINATOR CARDS - NSS
   ========================================================= */
.coordinator-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
  height: 100%;
  margin: 0;
}
.coordinator-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.coordinator-header {
  background: linear-gradient(
    135deg,
    var(--dept-primary) 0%,
    var(--dept-secondary) 100%
  );
  color: white;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.coordinator-header h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}
.coordinator-header .badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.coordinator-body {
  padding: 1.5rem;
}
.coordinator-info p {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  color: #555;
  font-size: 0.95rem;
}
.coordinator-info i {
  color: var(--dept-primary);
  width: 20px;
}

/* =========================================================
   DOCUMENTS SECTION - NSS
   ========================================================= */
.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.document-item {
  background: white;
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.document-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--dept-accent);
}
.document-icon {
  width: 50px;
  height: 50px;
  background: var(--dept-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--dept-primary);
  flex-shrink: 0;
}
.document-content {
  flex: 1;
}
.document-content h5 {
  color: var(--dept-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}
.document-content p {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

/* =========================================================
   BENEFITS SECTION - NSS
   ========================================================= */
.benefit-category {
  margin-bottom: 1.5rem;
}
.benefit-category h4 {
  color: var(--dept-dark);
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
}
.benefit-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.benefit-category li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #555;
  line-height: 1.6;
}
.benefit-category li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--dept-accent);
  font-weight: bold;
  font-size: 1.1rem;
}

/* =========================================================
   JOIN SECTION - NSS
   ========================================================= */
.requirements h5,
.process h5 {
  color: var(--dept-dark);
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
}
.requirements ul,
.process ol {
  padding-left: 1.5rem;
  margin: 0.75rem 0;
}
.requirements li,
.process li {
  color: #555;
  line-height: 1.6;
  margin-bottom: 0.4rem;
}
.requirements li::marker {
  color: var(--dept-accent);
}
.process li::marker {
  color: var(--dept-primary);
  font-weight: bold;
}

/* =========================================================
   BACK TO TOP BUTTON - NSS
   ========================================================= */
#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--dept-primary) 0%,
    var(--dept-secondary) 100%
  );
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1001;
  box-shadow: var(--shadow-md);
  padding: 0;
  margin: 0;
}
#backToTop.visible {
  opacity: 1;
  visibility: visible;
}
#backToTop:hover {
  background: linear-gradient(
    135deg,
    var(--dept-secondary) 0%,
    var(--dept-dark) 100%
  );
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* =========================================================
   RESPONSIVE DESIGN - NSS
   ========================================================= */
@media (max-width: 768px) {
  .nss-header {
    padding: 2rem 0;
  }
  .nss-header h1 {
    font-size: 2rem;
  }
  .nss-icon {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
    margin-top: 1rem;
  }
  .section-card {
    padding: 1.5rem;
  }
  .internal-nav .navbar-nav {
    gap: 0.25rem;
    text-align: center;
  }
  .internal-nav .nav-link {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
  }
  .section-title {
    font-size: 1.75rem;
  }
  .activities-grid {
    grid-template-columns: 1fr;
  }
  .documents-grid {
    grid-template-columns: 1fr;
  }
  .document-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
  .document-icon {
    margin: 0 auto;
  }
  .coordinator-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .coordinator-header .badge {
    align-self: flex-start;
  }
  #backToTop {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .nss-header .badge {
    display: block;
    margin: 0.5rem 0;
    width: 100%;
    text-align: center;
  }
  .section-card,
  .objective-card,
  .activity-item,
  .document-item {
    padding: 1.25rem;
  }
  .nss-text {
    font-size: 1rem;
  }
}

/* =========================================================
   ANIMATIONS - NSS
   ========================================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* =========================================================
   PRINT STYLES - NSS
   ========================================================= */
@media print {
  .internal-nav,
  #backToTop,
  .btn,
  .nss-icon,
  .symbol-wheel {
    display: none !important;
  }
  .section-card,
  .objective-card,
  .coordinator-card,
  .activity-item,
  .document-item {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    break-inside: avoid;
  }
  .nss-header {
    background: white !important;
    color: black !important;
    padding: 1rem 0 !important;
  }
  .nss-header .badge {
    background: #f0f0f0 !important;
    color: black !important;
    border: 1px solid #ccc !important;
  }
  a {
    color: black !important;
    text-decoration: none !important;
  }
  .document-item a::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
}

/* =========================================================
   REMOVE UNWANTED SPACES IN SECTIONS
   ========================================================= */
.nss-content section {
  margin: 0;
  padding: 2.5rem 0;
}
.nss-content section:first-of-type {
  padding-top: 2rem;
}
.nss-content section:last-of-type {
  padding-bottom: 3rem;
}

/* Adjust specific sections */
#about,
#activities,
#documents,
#join {
  padding: 2rem 0;
}
#objectives,
#benefits {
  padding: 2rem 0;
}

/* Container adjustments */
.nss-content .container {
  padding: 0;
}
.nss-content .row {
  margin: 0;
}
.nss-content .col-lg-8,
.nss-content .col-lg-10 {
  padding: 0;
}
