* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #05386d;
  --secondary-color: #d58732;
  --text-dark: #333;
  --text-light: #666;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --border-color: #e0e0e0;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow_hover: 0 5px 20px rgba(0, 0, 0, 0.15);
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.nav-brand {
  display: flex;
  align-items: center;
}

/* Logo Styles */
.logo-image {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 8px;
}

/* Remove the old logo-square styles and replace with logo-image */
.logo-square {
  display: none; /* Hide the old square */
}

/* Footer Logo */
.footer-logo-image {
  width: 35px;
  height: 35px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--white);
}

/* Ensure logo container has proper alignment */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.brand-name {
  font-size: 1.9rem;
  font-weight: bold;
  color: var(--primary-color);
}

.login-btn {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.login-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  padding: 120px 0 80px;
  margin-top: 70px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.hero-content h2 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--secondary-color);
}

.cta-btn {
  background: var(--secondary-color);
  color: var(--white);
  border: none;
  padding: 15px 30px;
  border-radius: 30px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background: var(--white);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow_hover);
}

.hero-image img {
  width: 100%;
  position: relative;
  display: inline-block;
  mask-image: radial-gradient(circle, rgb(255, 253, 108) 10%, rgba(0,0,0,0.3) 100%);
  -webkit-mask-image: radial-gradient(circle, rgb(255, 253, 108) 10%, rgba(0,0,0,0.3) 100%);
  display: block;
}

/* Features Section */
.features {
  padding: 80px 0;
  background: var(--bg-light);
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow_hover);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: var(--white);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Internships Section */
.internships {
  padding: 80px 0;
}

.internships h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.internships-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.internship-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.internship-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow_hover);
}

.internship-image {
  height: 200px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
}

.internship-content {
  padding: 25px;
}

.internship-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.internship-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.price-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.original-price {
  text-decoration: line-through;
  color: var(--text-light);
  font-size: 1rem;
}

.current-price {
  color: var(--secondary-color);
  font-size: 1.5rem;
  font-weight: bold;
}

.internship-actions {
  display: flex;
  gap: 10px;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--secondary-color);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* Trainers Section */
.trainers {
  padding: 80px 0;
  background: var(--bg-light);
}

.trainers h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 3rem;
}

.trainers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.trainer-card {
  background: var(--white);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.trainer-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow_hover);
}

.trainer-image {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--secondary-color);
}

.trainer-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trainer-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.trainer-role {
  color: var(--secondary-color);
  font-weight: bold;
  margin-bottom: 10px;
}

.trainer-card p:last-child {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* About Section */
.about {
  padding: 80px 0;
}

.about h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.about-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: justify;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--text-light);
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background: var(--bg-light);
}

.contact h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.contact-item {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: var(--shadow);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  color: var(--white);
}

.contact-item h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.contact-item p {
  color: var(--text-light);
}

/* Footer */
.footer {
  background: var(--primary-color);
  color: var(--white);
  padding: 60px 0 20px;
  position: relative;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h4 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--white);
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 10px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo .logo-square {
  width: 35px;
  height: 35px;
}

.footer-logo span {
  font-size: 1.2rem;
  font-weight: bold;
}

.footer-column p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 15px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: var(--secondary-color);
}

.contact-details p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.8);
}

.contact-details i {
  width: 20px;
  color: var(--secondary-color);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  width: 45px;
  height: 45px;
  background: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.social-links a:hover {
  background: var(--white);
  color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow: auto;
}

.modal-content {
  background-color: var(--white);
  margin: 5% auto;
  padding: 0;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  position: relative;
  animation: modalSlideIn 0.3s ease;
  max-height: 90vh;
  overflow: hidden;
}

.modal-content.large {
  max-width: 800px;
}

.modal-scrollable {
  max-height: 80vh;
  overflow-y: auto;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: var(--white);
  z-index: 1;
}

.close:hover {
  color: var(--secondary-color);
}

.modal-header {
  background: var(--primary-color);
  color: var(--white);
  padding: 30px;
  border-radius: 15px 15px 0 0;
  text-align: center;
}

.modal-header h2 {
  margin-bottom: 10px;
}

.modal-header p {
  opacity: 0.9;
}

.modal form {
  padding: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-color);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.submit-btn {
  width: 100%;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 15px;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: var(--secondary-color);
}

.modal-footer {
  padding: 20px 30px;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.modal-footer a {
  color: var(--primary-color);
  text-decoration: none;
}

.modal-footer a:hover {
  text-decoration: underline;
}

/* Loading Spinner */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Alert Messages */
.alert {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 8px;
  font-weight: 500;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

/* User Menu */
.user-menu {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-menu span {
  color: var(--primary-color);
  font-weight: 500;
}

/* Sidebar Toggle */
.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--primary-color);
  cursor: pointer;
  padding: 10px;
  margin-right: 15px;
}

/* Testimonials Section */
.testimonials {
  padding: 80px 0;
  background: var(--white);
}

.testimonials h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 3rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow_hover);
}

.testimonial-content {
  margin-bottom: 25px;
}

.quote-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.2rem;
  color: var(--white);
}

.testimonial-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-dark);
  font-style: italic;
  margin: 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--secondary-color);
  flex-shrink: 0;
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  margin: 0 0 5px 0;
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 600;
}

.author-info p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Affiliations Section */
.affiliations {
  padding: 80px 0;
  background: var(--bg-light);
}

.affiliations h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.affiliations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 3rem;
}

.affiliation-card {
  background: var(--white);
  border-radius: 15px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.affiliation-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.affiliation-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow_hover);
}

.affiliation-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: var(--white);
  transition: all 0.3s ease;
}

.affiliation-card:hover .affiliation-icon {
  transform: scale(1.1);
}

.affiliation-content h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.affiliation-content p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .affiliations-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .features-grid,
  .internships-grid,
  .trainers-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    text-align: left; /* Keep left alignment for mobile */
  }

  .footer-column {
    margin-bottom: 30px;
  }

  /* Footer logo alignment for mobile */
  .footer-logo {
    justify-content: flex-start; /* Keep left aligned */
  }

  /* Social links alignment for mobile */
  .social-links {
    justify-content: flex-start; /* Keep left aligned */
  }

  /* Responsive logo sizing */
  .logo-image {
    width: 45px;
    height: 45px;
  }

  .footer-logo-image {
    width: 30px;
    height: 30px;
    background: var(--white);
  }

  .brand-name {
    font-size: 1.2rem;
  }

  .modal-content {
    margin: 10% auto;
    width: 95%;
  }

  .header .container {
    padding: 1rem 10px;
  }

  .container {
    padding: 10px 15px;
  }

  .user-menu {
    flex-direction: column;
    gap: 10px;
  }

  .user-menu span {
    font-size: 0.9rem;
  }

  .sidebar-toggle {
    display: block;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .affiliations-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .testimonial-card {
    padding: 25px;
  }

  .affiliation-card {
    padding: 25px 15px;
  }

  .affiliation-icon {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }

  .testimonials h2,
  .affiliations h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .features h2,
  .internships h2,
  .trainers h2,
  .about h2,
  .contact h2 {
    font-size: 2rem;
  }

  .internships-grid {
    grid-template-columns: 1fr;
  }

  .internship-card {
    margin: 0 10px;
  }

  .social-links a {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  /* Responsive logo sizing */
  .logo-image {
    width: 40px;
    height: 40px;
  }

  .footer-logo-image {
    width: 25px;
    height: 25px;
    background: var(--white);
  }

  .brand-name {
    font-size: 1rem;
  }

  .affiliations-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .testimonial-card {
    padding: 20px;
  }

  .affiliation-card {
    padding: 20px 15px;
  }

  .affiliation-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .testimonial-content p {
    font-size: 1rem;
  }

  .author-image {
    width: 50px;
    height: 50px;
  }

  .testimonials h2,
  .affiliations h2 {
    font-size: 1.8rem;
  }
}
