/* Main styling for NexaTech platform */

:root {
  /* Color scheme */
  --primary-color: #0a3d62;  /* Deep blue */
  --secondary-color: #00bcd4;  /* Cyan */
  --accent-color: #00e676;  /* Neon green */
  --dark-color: #1a1a2e;  /* Dark blue-black */
  --light-color: #f5f6fa;
  --gray-color: #485460;
  --danger-color: #e53935;
  --success-color: #43a047;
  --warning-color: #ffa000;
  --info-color: #039be5;
}

/* Global Styles */
body {
  font-family: 'Poppins', 'Segoe UI', Roboto, Arial, sans-serif;
  line-height: 1.7;
  background-color: var(--dark-color);
  color: var(--light-color);
  overflow-x: hidden;
  font-size: 16px; /* Base font size for better readability */
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--light-color);
}

.text-primary {
  color: var(--primary-color) !important;
}

.text-secondary {
  color: var(--secondary-color) !important;
}

.text-accent {
  color: var(--accent-color) !important;
}

/* Improved Readability for Small Text and Secondary Information */
.text-muted {
  color: #b0bec5 !important; /* Lighter gray for better contrast */
  font-size: 1rem !important; /* Increased from default small size */
  line-height: 1.6 !important;
}

small, .small {
  font-size: 0.95rem !important; /* Increased from 0.875rem */
  color: #c5d1d9 !important; /* Better contrast */
  line-height: 1.6 !important;
}

/* Address and Contact Information */
address, .address {
  font-size: 1.05rem !important;
  color: #e0e7ed !important; /* Much lighter for better readability */
  line-height: 1.8 !important;
  font-style: normal;
}

/* Business Hours and Similar Info */
.hours, .business-hours, [class*="hours"] {
  font-size: 1.05rem !important;
  color: #d0dde5 !important;
  line-height: 1.8 !important;
}

/* Card Text Improvements */
.card-text {
  font-size: 1rem !important;
  line-height: 1.7 !important;
  color: #e8edf2 !important;
}

.card-body p {
  font-size: 1rem !important;
  line-height: 1.7 !important;
  color: #e8edf2 !important;
}

/* Footer Text */
.footer p, .footer li, .footer a {
  font-size: 1rem !important;
  color: #d0dde5 !important;
  line-height: 1.7 !important;
}

.footer small {
  font-size: 0.95rem !important;
  color: #b8c5cd !important;
}

/* Contact Information */
.contact-info p, .contact-info-item p {
  font-size: 1.05rem !important;
  color: #e0e7ed !important;
  line-height: 1.8 !important;
}

/* Meta Information */
.meta, .meta-info, [class*="meta"] {
  font-size: 1rem !important;
  color: #c5d1d9 !important;
  line-height: 1.7 !important;
}

/* List Items */
li {
  font-size: 1rem !important;
  line-height: 1.7 !important;
  color: #e8edf2 !important;
}

ul li, ol li {
  margin-bottom: 0.5rem;
}

/* Paragraph Text */
p {
  font-size: 1rem !important;
  line-height: 1.7 !important;
  color: #e8edf2 !important;
  margin-bottom: 1rem;
}

/* Lead Text */
.lead {
  font-size: 1.2rem !important;
  line-height: 1.8 !important;
  color: #f0f4f8 !important;
  font-weight: 400;
}

/* Badge Text */
.badge {
  font-size: 0.9rem !important;
  padding: 0.5rem 0.75rem !important;
  font-weight: 600 !important;
}

/* Form Labels and Help Text */
.form-label {
  font-size: 1rem !important;
  color: #e8edf2 !important;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-text, .form-help {
  font-size: 0.95rem !important;
  color: #c5d1d9 !important;
  line-height: 1.6 !important;
}

/* Table Text */
table td, table th {
  font-size: 1rem !important;
  color: #e8edf2 !important;
  line-height: 1.6 !important;
}

/* Alert Text */
.alert {
  font-size: 1rem !important;
  line-height: 1.7 !important;
}

/* General Text Improvements */
.text-light {
  color: #f0f4f8 !important; /* Brighter for better readability */
}

.text-dark {
  color: #1a1a2e !important;
}

/* Button styles */
.btn {
  border-radius: 30px;
  padding: 0.75rem 1.5rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--light-color);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  box-shadow: 0 5px 15px rgba(0, 188, 212, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--dark-color);
}

.btn-secondary:hover {
  background-color: var(--light-color);
  box-shadow: 0 5px 15px rgba(245, 246, 250, 0.4);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent-color);
  color: var(--dark-color);
}

.btn-accent:hover {
  background-color: #00c853;
  box-shadow: 0 5px 15px rgba(0, 230, 118, 0.4);
  transform: translateY(-2px);
}

.btn-outline-light {
  border: 2px solid var(--light-color);
  color: var(--light-color);
}

.btn-outline-light:hover {
  background-color: var(--light-color);
  color: var(--dark-color);
}

/* Navbar */
.navbar {
  background-color: var(--dark-color) !important; /* Changed from primary-color to dark-color for better contrast */
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--light-color) !important;
  letter-spacing: 1px;
  padding: 0.5rem 0;
}

.navbar-brand img {
  height: 70px !important;
  width: auto !important;
  filter: brightness(1.3) contrast(1.1); /* Make logo brighter and more visible */
  max-height: 70px;
}

.navbar-nav .nav-link {
  color: var(--light-color) !important;
  font-weight: 600;
  padding: 0.5rem 1rem;
  position: relative;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--accent-color);
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 80%;
  left: 10%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--accent-color) !important;
}

.dropdown-menu {
  background-color: var(--dark-color);
  border: 1px solid var(--secondary-color);
}

.dropdown-item {
  color: var(--light-color);
}

.dropdown-item:hover {
  background-color: var(--secondary-color);
  color: var(--dark-color);
}

/* Hero section */
.hero {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
}

.hero-about {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 5rem 0;
  background: linear-gradient(135deg, #001e3c, #00264d);
  overflow: hidden;
}

.hero-content {
  z-index: 1;
  position: relative;
}

.hero h1, .hero-about h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-about h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.hero p, .hero-about p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

/* Hero background effects */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* No background image */
  opacity: 0.2;
}

/* Cards */
.card {
  background-color: var(--dark-color);
  border: 1px solid var(--secondary-color);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 188, 212, 0.2);
}

.card-title {
  color: var(--secondary-color);
  font-weight: 700;
}

.card-img-top {
  height: 200px;
  object-fit: cover;
}

.card-img-overlay {
  background: rgba(26, 26, 46, 0.8);
}

/* Features section */
.features {
  padding: 5rem 0;
}

.feature-item {
  text-align: center;
  padding: 2rem;
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-10px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
}

/* Testimonials */
.testimonial {
  background-color: rgba(10, 61, 98, 0.3);
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
}

.testimonial::before {
  content: '\201C';
  font-family: Georgia, serif;
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 5rem;
  color: var(--secondary-color);
  opacity: 0.2;
}

.testimonial-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
}

.testimonial-rating {
  color: #ffc107;
  margin-bottom: 1rem;
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: var(--light-color);
  padding: 3rem 0 1.5rem;
}

.footer img,
.footer .d-flex img,
footer img,
.footer-logo {
  height: 100px !important;
  width: auto !important;
  max-height: 100px !important;
  min-height: 100px !important;
}

.footer h5 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--light-color);
  opacity: 0.8;
}

.footer-links a:hover {
  color: var(--accent-color);
  opacity: 1;
}

.footer-bottom {
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--light-color);
  margin-right: 10px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--accent-color);
  color: var(--dark-color);
  transform: translateY(-3px);
}

/* Courses page */
.course-filter {
  background-color: rgba(10, 61, 98, 0.3);
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.course-card .badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 30px;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  color: var(--gray-color);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.course-meta span {
  display: flex;
  align-items: center;
}

.course-meta i {
  margin-right: 5px;
}

/* Course detail */
.course-banner {
  height: 300px;
  background-size: cover;
  background-position: center;
  position: relative;
  margin-bottom: 2rem;
  border-radius: 10px;
  overflow: hidden;
}

.course-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(10, 61, 98, 0.2), rgba(26, 26, 46, 0.8));
}

.course-banner-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  color: var(--light-color);
}

.course-info {
  background-color: rgba(10, 61, 98, 0.3);
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.course-instructor {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.instructor-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
}

/* Tests */
.test-timer {
  position: fixed;
  top: 80px;
  right: 20px;
  background-color: var(--warning-color);
  color: var(--dark-color);
  padding: 1rem;
  border-radius: 10px;
  z-index: 100;
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(255, 160, 0, 0.3);
}

.question-card {
  background-color: rgba(10, 61, 98, 0.3);
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
  border-left: 5px solid var(--secondary-color);
}

.question-number {
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.option-label {
  display: block;
  padding: 1rem;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.05);
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.option-label:hover {
  background-color: rgba(0, 188, 212, 0.1);
}

.option-input:checked + .option-label {
  background-color: rgba(0, 188, 212, 0.2);
  border-left: 3px solid var(--accent-color);
}

/* Jobs page */
.job-card {
  border-left: 5px solid var(--secondary-color);
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.job-meta-item {
  display: flex;
  align-items: center;
  margin-right: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--gray-color);
  font-size: 0.9rem;
}

.job-meta-item i {
  margin-right: 5px;
  color: var(--secondary-color);
}

.job-description {
  margin-bottom: 1.5rem;
}

.job-tag {
  display: inline-block;
  background-color: rgba(0, 188, 212, 0.1);
  color: var(--secondary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 30px;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

/* Profile page */
.profile-header {
  background-color: rgba(10, 61, 98, 0.3);
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
}

.profile-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-right: 2rem;
  object-fit: cover;
  border: 5px solid var(--secondary-color);
}

.profile-stats {
  display: flex;
  margin-top: 1rem;
}

.profile-stat-item {
  text-align: center;
  margin-right: 2rem;
}

.profile-stat-item h4 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}

/* Certificate */
.certificate {
  background-color: var(--light-color);
  color: var(--dark-color);
  border: 10px solid var(--primary-color);
  padding: 3rem;
  position: relative;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}

.certificate::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%230a3d62' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.3;
}

.certificate-logo {
  text-align: center;
  margin-bottom: 1.5rem;
}

.certificate-title {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.certificate-name {
  font-size: 2.5rem;
  text-align: center;
  font-family: 'Dancing Script', cursive;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.certificate-text {
  text-align: center;
  margin-bottom: 2rem;
}

.certificate-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
}

.certificate-signature {
  text-align: center;
  border-top: 1px solid var(--gray-color);
  padding-top: 1rem;
  width: 200px;
}

.certificate-qr {
  text-align: center;
  width: 100px;
}

/* Admin dashboard */
.admin-sidebar {
  background-color: var(--primary-color);
  height: 100%;
  padding: 2rem 0;
  position: fixed;
  left: 0;
  width: 250px;
  transition: all 0.3s ease;
}

.admin-sidebar-link {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--light-color);
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.admin-sidebar-link:hover,
.admin-sidebar-link.active {
  background-color: rgba(0, 188, 212, 0.2);
  color: var(--accent-color);
  border-left-color: var(--accent-color);
}

.admin-sidebar-link i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

.admin-content {
  margin-left: 250px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.dashboard-card {
  background-color: rgba(10, 61, 98, 0.3);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.dashboard-card i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.dashboard-card h3 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}

.dashboard-card::before {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  opacity: 0.1;
  top: -30px;
  right: -30px;
}

.data-table {
  background-color: rgba(10, 61, 98, 0.3);
  border-radius: 10px;
  overflow: hidden;
}

.data-table th {
  background-color: var(--primary-color);
  color: var(--light-color);
  font-weight: 600;
  border: none;
}

.data-table td {
  border-color: rgba(255, 255, 255, 0.1);
  vertical-align: middle;
}

/* Contact form */
.contact-form {
  background-color: rgba(10, 61, 98, 0.3);
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.contact-info {
  background-color: rgba(10, 61, 98, 0.3);
  border-radius: 10px;
  padding: 2rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.contact-info-item i {
  width: 40px;
  height: 40px;
  background-color: var(--secondary-color);
  color: var(--dark-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

/* FAQ */
.faq-item {
  margin-bottom: 1rem;
}

.faq-question {
  background-color: rgba(10, 61, 98, 0.3);
  padding: 1rem;
  border-radius: 5px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background-color: rgba(0, 188, 212, 0.2);
}

.faq-question::after {
  content: '\f107';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

.faq-question.active::after {
  transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
  padding: 1rem;
  display: none;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 5px 5px;
}

/* Animation classes */
.fade-in {
  animation: fadeIn 1s ease-in-out;
}

.slide-up {
  animation: slideUp 0.8s ease-in-out;
}

.slide-in-right {
  animation: slideInRight 0.8s ease-in-out;
}

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

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

@keyframes slideInRight {
  from { transform: translateX(100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Responsive styles */
@media (max-width: 991.98px) {
  .admin-sidebar {
    width: 70px;
    padding: 1rem 0;
  }
  
  .admin-sidebar-link span {
    display: none;
  }
  
  .admin-sidebar-link i {
    margin-right: 0;
    font-size: 1.5rem;
  }
  
  .admin-content {
    margin-left: 70px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 767.98px) {
  .hero {
    height: auto;
    padding: 5rem 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .profile-header {
    flex-direction: column;
    text-align: center;
  }
  
  .profile-img {
    margin-right: 0;
    margin-bottom: 1.5rem;
  }
  
  .profile-stats {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .certificate {
    padding: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .navbar {
    padding: 0.5rem 1rem;
  }
  
  .navbar-brand {
    font-size: 1.5rem;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .course-banner {
    height: 200px;
  }
  
  .footer-logo {
    height: 80px !important;
  }
}

/* Footer Logo Size - Must be at end to override any other rules */
.footer .col-md-4 img,
.footer img[alt="NexaTech Logo"],
.footer-logo {
  height: 100px !important;
  width: auto !important;
  max-height: 100px !important;
  min-height: 100px !important;
}
