/* NOC Search Page Styles */

/* Fix Contact menu navigation */
.navbar li:last-child a {
  position: static !important;
  display: inline-block !important;
  cursor: pointer !important;
}

.navbar li:last-child {
  position: static !important;
}

.navbar li:last-child:hover {
  background-color: #0059b3;
}

.noc-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Hero Section */
.noc-hero {
  background: linear-gradient(135deg, #002244 0%, #004080 100%);
  color: white;
  padding: 60px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.noc-hero::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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.noc-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.noc-hero h1 i {
  color: #ffd700;
  margin-right: 15px;
}

.hero-description {
  font-size: 1.2rem;
  line-height: 1.6;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
}

/* Main Content Layout */
.main-content {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Sidebar Styles */
.sidebar {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  height: fit-content;
  position: sticky;
  top: 20px;
}

.sidebar h3 {
  color: #002244;
  font-size: 1.3rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #004080;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Search Section */
.search-section {
  margin-bottom: 30px;
}

.search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.search-box input {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.search-box input:focus {
  outline: none;
  border-color: #004080;
  box-shadow: 0 0 0 3px rgba(0,64,128,0.1);
}

.search-box button {
  padding: 12px 15px;
  background: #004080;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-box button:hover {
  background: #003366;
  transform: translateY(-2px);
}

/* Search Results */
.search-results {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  background: #f8f9fa;
}

.search-result-item {
  padding: 15px;
  border-bottom: 1px solid #e1e5e9;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-result-item:hover {
  background: #e3f2fd;
}

.search-result-item:last-child {
  border-bottom: none;
}

.result-code {
  font-weight: 600;
  color: #004080;
  font-size: 1.1rem;
}

.result-title {
  font-weight: 500;
  margin: 5px 0;
  color: #333;
}

.result-teer {
  font-size: 12px;
  color: #666;
  background: #e8f4f8;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-block;
}

/* TEER Categories */
.teer-categories {
  margin-bottom: 30px;
}

.teer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.teer-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.teer-btn:hover {
  border-color: #004080;
  background: #f0f8ff;
  transform: translateX(5px);
}

.teer-btn.active {
  border-color: #004080;
  background: #004080;
  color: white;
}

.teer-number {
  background: #004080;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.teer-btn.active .teer-number {
  background: white;
  color: #004080;
}

.teer-desc {
  font-weight: 500;
  font-size: 14px;
}

/* Quick Links */
.quick-links ul {
  list-style: none;
  padding: 0;
}

.quick-links li {
  margin-bottom: 8px;
}

.quick-links a {
  color: #004080;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  display: block;
  transition: all 0.3s ease;
  font-weight: 500;
}

.quick-links a:hover {
  background: #f0f8ff;
  transform: translateX(5px);
}

/* Main Content */
.content {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Info Sections */
.info-section {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e1e5e9;
}

.info-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.info-section h2 {
  color: #002244;
  font-size: 2rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.info-section h2 i {
  color: #004080;
}

.info-content p {
  line-height: 1.8;
  margin-bottom: 20px;
  color: #555;
  font-size: 1.1rem;
}

/* Highlight Box */
.highlight-box {
  background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
  padding: 25px;
  border-radius: 12px;
  border-left: 5px solid #004080;
  margin: 20px 0;
}

.highlight-box h4 {
  color: #002244;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.highlight-box h4 i {
  color: #ffd700;
}

.highlight-box ul {
  list-style: none;
  padding: 0;
}

.highlight-box li {
  padding: 8px 0;
  position: relative;
  padding-left: 25px;
  color: #333;
}

.highlight-box li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #004080;
  font-weight: bold;
}

/* TEER Grid */
.teer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.teer-card {
  background: white;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
}

.teer-card:hover {
  border-color: #004080;
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.teer-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.teer-badge {
  background: #004080;
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
}

.teer-card h4 {
  color: #002244;
  margin: 0;
  font-size: 1.2rem;
}

.teer-card p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

.requirements {
  background: #f8f9fa;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  color: #555;
}

.requirements strong {
  color: #004080;
}

/* Steps Container */
.steps-container {
  margin-top: 25px;
}

.step {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  align-items: flex-start;
}

.step-number {
  background: #004080;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
  flex-shrink: 0;
}

.step-content h4 {
  color: #002244;
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.step-content p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* Programs Grid */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 25px;
}

.program-card {
  background: white;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
}

.program-card:hover {
  border-color: #004080;
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.program-icon {
  background: linear-gradient(135deg, #004080 0%, #0066cc 100%);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 24px;
}

.program-card h4 {
  color: #002244;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.program-card p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

.program-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.program-card li {
  padding: 5px 0;
  color: #555;
  position: relative;
  padding-left: 20px;
}

.program-card li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: #004080;
  font-size: 12px;
}

/* Popular NOCs */
.popular-nocs {
  margin-top: 40px;
}

.noc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.noc-card {
  background: white;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.noc-card:hover {
  border-color: #004080;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.noc-code {
  font-size: 1.4rem;
  font-weight: 700;
  color: #004080;
  margin-bottom: 8px;
}

.noc-title {
  font-weight: 600;
  color: #002244;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.noc-teer {
  background: #e8f4f8;
  color: #004080;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 500;
  display: inline-block;
}

/* Footer */
.footer {
  background: #002244;
  color: white;
  text-align: center;
  padding: 30px 20px;
  margin-top: 50px;
}

.footer-links {
  margin-bottom: 20px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-weight: 500;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-social {
  margin-bottom: 20px;
}

.footer-social a {
  color: white;
  background: #004080;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 8px;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: #0066cc;
  transform: scale(1.1);
}

.footer-copy {
  color: #ccc;
  font-size: 14px;
  margin: 0;
}

/* Conclusion Section */
.conclusion-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid #e1e5e9;
}

.conclusion-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
}

.conclusion-content p strong {
  color: #004080;
  font-weight: 600;
}

.cta-section {
  background: linear-gradient(135deg, #f0f8ff 0%, #e3f2fd 100%);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  margin-top: 30px;
  border: 2px solid #e1e5e9;
}

.cta-section h3 {
  color: #002244;
  font-size: 1.5rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.cta-section h3 i {
  color: #004080;
}

.cta-section p {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 25px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary, .btn-whatsapp {
  padding: 15px 25px;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 180px;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, #004080 0%, #0066cc 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(0,64,128,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,64,128,0.4);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(37,211,102,0.3);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37,211,102,0.4);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .main-content {
    grid-template-columns: 300px 1fr;
    gap: 25px;
  }
  
  .noc-hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 968px) {
  .main-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .sidebar {
    position: static;
    order: 2;
  }
  
  .content {
    order: 1;
  }
  
  .teer-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .programs-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .noc-hero {
    padding: 40px 15px;
  }
  
  .noc-hero h1 {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .main-content {
    padding: 20px 15px;
  }
  
  .sidebar, .content {
    padding: 20px;
  }
  
  .teer-list {
    grid-template-columns: repeat(2, 1fr);
    display: grid;
  }
  
  .step {
    flex-direction: column;
    text-align: center;
  }
  
  /* Conclusion section responsive */
  .cta-section {
    padding: 20px;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-primary, .btn-whatsapp {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .noc-hero h1 {
    font-size: 1.8rem;
  }
  
  .search-box {
    flex-direction: column;
  }
  
  .teer-list {
    grid-template-columns: 1fr;
  }
  
  .teer-grid {
    grid-template-columns: 1fr;
  }
  
  .programs-grid {
    grid-template-columns: 1fr;
  }
  
  .noc-grid {
    grid-template-columns: 1fr;
  }
  
  /* Mobile conclusion section */
  .cta-section h3 {
    font-size: 1.3rem;
    flex-direction: column;
    gap: 8px;
  }
  
  .btn-primary, .btn-whatsapp {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}

/* Loading Animation */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.loading::after {
  content: '';
  width: 30px;
  height: 30px;
  border: 3px solid #e1e5e9;
  border-top: 3px solid #004080;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Search result highlighting */
.highlight {
  background-color: #fff3cd;
  font-weight: bold;
}
