/* General */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  color: #333;
  background: #fff;
}

h1, h2 {
  font-family: 'Poppins', sans-serif;
  color: #001F54; /* navy blue */
  text-align: center;
  margin-bottom: 20px;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Navbar - UNIFORM */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #001F54; /* navy blue */
  padding: 15px 40px;
  color: white;
}

.navbar .logo {
  font-size: 20px;
  font-weight: bold;
}

.navbar .logo img {
  width: 100px;
  height: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: white;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  background: rgba(255, 111, 0, 0.1);
}

.nav-links a.active {
  background: #FF6F00; /* orange */
  color: white;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Hero Section - UNIFORM across all pages */
.hero,
.admissions-hero,
.contact-hero,
.about-hero,
.courses-hero {
  background: #FFE6CC; /* soft orange - UNIFORM */
  text-align: center;
  padding: 80px 20px;
}

.hero h1,
.admissions-hero h1,
.contact-hero h1,
.about-hero h1,
.courses-hero h1 {
  font-size: 2.5em;
  color: #001F54;
  margin-bottom: 15px;
}

.hero p,
.admissions-hero p,
.contact-hero p,
.about-hero p,
.courses-hero p {
  margin: 20px 0;
  font-size: 1.2em;
  color: #333;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  margin-top: 20px;
}

.btn {
  background: #001F54; /* navy */
  color: white;
  padding: 12px 24px;
  border-radius: 5px;
  margin: 5px;
  display: inline-block;
  cursor: pointer;
  border: none;
  font-size: 16px;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #FF6F00; /* orange on hover */
}

.btn-outline {
  background: transparent;
  border: 2px solid #001F54;
  color: #001F54;
}

.btn-outline:hover {
  background: #001F54;
  color: white;
}

/* Why Us / Feature Cards - UNIFORM */
.why-us,
.about,
.courses {
  padding: 60px 20px;
  background: #fff;
}

.cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.card {
  background: #FFE6CC; /* soft orange - UNIFORM */
  padding: 30px 20px;
  border-radius: 15px;
  width: 200px;
  text-align: center;
  font-weight: bold;
  color: #001F54;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Courses Preview Section - UNIFORM */
.courses-preview {
  padding: 60px 20px;
  background: #f8f9fa; /* light gray instead of orange */
}

.course-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
  background: #fff;
}

.course-card {
  background: #FFE6CC; /* soft orange - UNIFORM */
  padding: 30px 20px;
  border-radius: 16px;
  width: 320px;
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: space-between;
  font-weight: bold;
  color: #001F54;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.course-card h3 {
  color: #001F54; /* navy - UNIFORM */
  margin-bottom: 15px;
  margin-top: 0;
  font-size: 1.3em;
  flex-shrink: 0;
}

.course-card ul {
  text-align: left;
  padding-left: 20px;
  margin: 15px 0;
  line-height: 1.8;
  flex-grow: 1;
}

.course-card .btn {
  margin-top: 15px;
  display: block;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}

/* Placements - UNIFORM */
.placements {
  padding: 60px 20px;
  text-align: left;
  background: #fff;
}

.companies {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.companies img {
  width: 120px;
  height: auto;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.companies img:hover {
  filter: grayscale(0%);
}

/* Testimonials - UNIFORM */
.testimonials {
  padding: 60px 20px;
  background: #f8f9fa; /* light gray - UNIFORM */
}

.testimonial-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.testimonial {
  background: white;
  padding: 25px;
  border-radius: 10px;
  width: 250px;
  text-align: center;
  font-style: italic;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #FF6F00;
}

/* Footer - UNIFORM */
.footer {
  background: #001F54; /* navy */
  color: white;
  text-align: center;
  padding: 30px 20px;
  margin-top: 40px;
}

.footer a {
  color: #FFE6CC;
  text-decoration: underline;
}

.footer a:hover {
  color: #FF6F00;
}

/* About Page - UNIFORM */
.about {
  padding: 60px 20px;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
}

.about h1, .about h2 {
  text-align: center;
  margin-bottom: 25px;
}

.about p {
  margin-bottom: 20px;
  text-align: center;
}

.about ul {
  margin: 20px 0;
  padding-left: 40px;
}

/* Admissions Page - UNIFORM */
.eligibility, .process, .placement-policy, .apply-form {
  padding: 40px 20px;
  max-width: 900px;
  margin: auto;
}

.eligibility h2,
.process h2,
.placement-policy h2 {
  color: #001F54;
  margin-bottom: 20px;
}

.process-steps {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 30px;
}

.step {
  background: #001F54; /* navy - UNIFORM */
  color: white;
  padding: 20px;
  border-radius: 8px;
  flex: 1;
  min-width: 180px;
  max-width: 220px;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.step:hover {
  transform: translateY(-3px);
  background: #FF6F00;
}

/* Forms - UNIFORM */
.apply-form form div,
.form-box form div,
#studentForm div,
#professionalForm div {
  margin-bottom: 15px;
}

.apply-form input, 
.apply-form select,
.apply-form textarea {
  padding: 10px;
  width: 100%;
  max-width: 100%;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

/* Flash Messages - UNIFORM */
.flash-messages {
  text-align: center;
  margin: 20px;
}

.flash.success {
  background: #d4edda;
  color: #155724;
  padding: 12px 20px;
  border-radius: 5px;
  display: inline-block;
  border-left: 4px solid #28a745;
}

.flash.error {
  background: #f8d7da;
  color: #721c24;
  padding: 12px 20px;
  border-radius: 5px;
  display: inline-block;
  border-left: 4px solid #dc3545;
}

/* Admin Dashboard - UNIFORM */
.admin-dashboard {
  padding: 40px;
  max-width: 1200px;
  margin: auto;
}

.admin-dashboard h1 {
  text-align: center;
  margin-bottom: 30px;
  color: #001F54;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.admin-table th, .admin-table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

.admin-table th {
  background: #001F54; /* navy - UNIFORM */
  color: white;
  font-weight: 600;
}

.admin-table tr:nth-child(even) {
  background: #f9f9f9;
}

.admin-table tr:hover {
  background: #f1f1f1;
}

.admin-table td:last-child {
  font-weight: bold;
  color: #001F54;
}

/* Contact Page - UNIFORM */
.contact-page {
  padding: 40px 20px;
  text-align: center;
}

.contact-container {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.contact-info, .contact-form {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.contact-info h3,
.contact-form h3 {
  color: #001F54;
  margin-bottom: 20px;
}

.contact-form form div {
  margin-bottom: 15px;
}

.contact-form input, 
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: 'Roboto', sans-serif;
  box-sizing: border-box;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-info iframe {
  margin-top: 15px;
  border-radius: 6px;
  width: 100%;
}

/* Form Container - UNIFORM */
.form-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.form-box {
  flex: 1;
  max-width: 450px;
  background: #fff;
  padding: 30px;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-box h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #001F54; /* navy - UNIFORM */
}

.form-box form div {
  margin-bottom: 15px;
}

.form-box label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #333;
}

.form-box input,
.form-box select,
.form-box textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

.form-box .btn,
#studentForm .btn, 
#professionalForm .btn {
  width: 100%;
  background-color: #001F54; /* navy - UNIFORM */
  color: white;
  font-weight: bold;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.form-box .btn:hover,
#studentForm .btn:hover, 
#professionalForm .btn:hover {
  background-color: #FF6F00; /* orange on hover - UNIFORM */
}

/* Profile Selection - UNIFORM */
.profile-select {
  text-align: center;
  margin: 30px 0;
}

.profile-select select {
  padding: 10px 20px;
  font-size: 16px;
  border: 2px solid #001F54;
  border-radius: 6px;
  background: white;
  color: #001F54;
  cursor: pointer;
}

/* Student & Professional Forms - UNIFORM */
#studentForm, #professionalForm {
  width: 100%;
  max-width: 550px;
  margin: 20px auto;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-radius: 10px;
  background-color: #fff;
  display: none;
}

#studentForm div, #professionalForm div {
  margin-bottom: 15px;
}

#studentForm label, #professionalForm label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #333;
}

#studentForm input, 
#studentForm select,
#professionalForm input, 
#professionalForm select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 14px;
}

#studentForm h2, #professionalForm h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #001F54;
}

/* Legal Page - UNIFORM */
.legal-page {
  max-width: 900px;
  margin: 40px auto;
  padding: 40px 20px;
  line-height: 1.8;
}

.legal-page h1 {
  text-align: center;
  margin-bottom: 30px;
  color: #001F54; /* navy - UNIFORM */
}

.legal-page h3 {
  margin-top: 30px;
  color: #001F54; /* navy - UNIFORM */
}

.legal-page p {
  margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    padding: 15px 20px;
  }
  
  .nav-links {
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero h1 {
    font-size: 1.8em;
  }
  
  .cards, .course-grid, .testimonial-cards {
    flex-direction: column;
    align-items: center;
  }
  
  .card, .course-card, .testimonial {
    width: 100%;
    max-width: 350px;
  }
  
  .contact-container {
    flex-direction: column;
  }
  
  .process-steps {
    flex-direction: column;
  }
  
  .step {
    max-width: 100%;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Link styling for step */
.step a {
  color: white;
  text-decoration: underline;
}

.step a:hover {
  color: #FFE6CC;
}

/* Programs section styling */
.programs {
  padding: 60px 20px;
  background: #f8f9fa;
}

.admissions-process {
  padding: 60px 20px;
  background: #fff;
}

.admissions-process ol {
  max-width: 600px;
  margin: 30px auto;
  text-align: left;
  line-height: 2;
  font-size: 1.1em;
}

.admissions-process ol li {
  margin-bottom: 10px;
  color: #001F54;
  font-weight: 500;
}

/* Improve form validation errors */
input:invalid:focus,
select:invalid:focus,
textarea:invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

input:valid:focus,
select:valid:focus,
textarea:valid:focus {
  border-color: #28a745;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Loading state for buttons */
.btn:active {
  transform: scale(0.98);
}

/* Improve accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #FF6F00;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn {
    display: none;
  }
  
  body {
    color: black;
    background: white;
  }
}

/* Modal Styling */
.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background: #fff;
  margin: 8% auto;
  padding: 20px 30px;
  border-radius: 12px;
  width: 400px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.close {
  color: #666;
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

.modal-content h3 {
  margin-top: 0;
  text-align: center;
  color: #333;
}

.modal-content .form-group {
  margin: 15px 0;
}

.modal-content input[type="text"],
.modal-content input[type="email"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.modal-content .btn {
  width: 100%;
  margin-top: 10px;
  background-color: #2c7a7b;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
}
/*Logout*/
/* ===== ADMIN DASHBOARD ===== */
.admin-header {
  position: relative;
  text-align: center;
  margin-bottom: 20px;
}

.dashboard-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #005fa3;
}

.logout-btn {
  position: absolute;
  right: 100px; /* adjust based on your layout */
  top: 0;
  background-color: #ff7a00;
  color: white;
  font-weight: 600;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease, box-shadow 0.2s ease;
}

.logout-btn:hover {
  background-color: #e96b00;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}


/*Social-media links*/
.social-section {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.social-section span {
  font-size: 14px;
  letter-spacing: 1px;
}

.social-section a i {
  font-size: 22px;
  color: white;
}