@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap');

:root {
  --bg-primary: #FFFFFF;
  --bg-secondary: #F5F5F5;
  --bg-tertiary: #002B5B;
  --brand-primary: #002B5B;
  --brand-secondary: #00AEEF;
  --brand-tertiary: #F5F5F5;
  --text-primary: #212121;
  --text-secondary: #444444;
  --text-tertiary: #FFFFFF;
  --link-default: #00AEEF;
  --link-hover: #007BBF;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.6;
  background-color: var(--bg-primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--brand-primary);
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

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

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background-color: var(--bg-secondary);
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--brand-primary);
  color: var(--text-tertiary);
}

.btn-primary:hover {
  background-color: var(--brand-secondary);
  color: var(--text-tertiary);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 174, 239, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--brand-primary);
  border: 2px solid var(--brand-primary);
}

.btn-secondary:hover {
  background-color: var(--brand-primary);
  color: var(--text-tertiary);
  text-decoration: none;
}

.hero .btn-secondary {
  color: #fff;
  border-color: #fff;
}

.hero .btn-secondary:hover {
  background-color: #fff;
  color: var(--brand-primary);
}

header {
  background-color: var(--bg-tertiary);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-tertiary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
}

.logo:hover {
  color: var(--brand-secondary);
  text-decoration: none;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

nav a {
  color: var(--text-tertiary);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--brand-secondary);
  text-decoration: none;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 1.5rem;
  cursor: pointer;
}

.hero {
  background: linear-gradient(135deg, rgba(0, 43, 91, 0.8) 0%, rgba(0, 64, 128, 0.8) 100%),
              url('../images/hero/hero-home.png') center/cover no-repeat;
  color: var(--text-tertiary);
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s ease;
}

.hero h1 {
  color: var(--text-tertiary);
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.course-card {
  background: var(--bg-primary);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  animation: fadeIn 0.6s ease;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 174, 239, 0.2);
}

.course-card-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 3rem;
  overflow: hidden;
  position: relative;
}

.course-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.course-card:hover .course-card-image img {
  transform: scale(1.05);
}

.course-card-content {
  padding: 25px;
}

.course-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.course-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.mission-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.mission-item {
  text-align: center;
  padding: 30px;
  background: var(--bg-primary);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.mission-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.mission-icon {
  font-size: 3rem;
  color: var(--brand-secondary);
  margin-bottom: 1rem;
}

.mission-item h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.cta-section {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #004080 100%);
  color: var(--text-tertiary);
  text-align: center;
  padding: 80px 0;
}

.cta-section h2 {
  color: var(--text-tertiary);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.contact-info {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
}

.contact-item a {
  color: var(--text-tertiary);
  font-weight: 600;
}

.contact-item a:hover {
  color: var(--brand-secondary);
}

footer {
  background-color: var(--bg-tertiary);
  color: var(--text-tertiary);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  color: var(--text-tertiary);
  margin-bottom: 1.5rem;
}

.footer-section ul {
  list-style: none;
}

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

.footer-section a {
  color: var(--text-tertiary);
  opacity: 0.9;
}

.footer-section a:hover {
  color: var(--brand-secondary);
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  opacity: 0.8;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-primary);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--brand-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--brand-tertiary);
  border-radius: 6px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brand-secondary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.course-detail {
  max-width: 900px;
  margin: 0 auto;
}

.course-header {
  text-align: center;
  margin-bottom: 60px;
}

.course-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.course-header .tagline {
  font-size: 1.3rem;
  color: var(--text-secondary);
  font-style: italic;
}

.course-section {
  margin-bottom: 50px;
}

.course-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--brand-secondary);
}

.course-section ul {
  list-style: none;
  padding-left: 0;
}

.course-section ul li {
  padding: 12px 0 12px 30px;
  position: relative;
  line-height: 1.7;
}

.course-section ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brand-secondary);
  font-weight: bold;
  font-size: 1.2rem;
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-intro {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 60px;
  color: var(--text-secondary);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.value-card {
  background: var(--bg-primary);
  padding: 30px;
  border-radius: 8px;
  border-left: 4px solid var(--brand-secondary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.value-card h3 {
  margin-bottom: 1rem;
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
}

.legal-content h1 {
  color: var(--brand-primary);
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--brand-secondary);
  padding-bottom: 0.5rem;
}

.legal-content h2 {
  color: var(--brand-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-content h3 {
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
}

.legal-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.legal-content ul, .legal-content ol {
  margin-left: 30px;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.legal-content a {
  color: var(--brand-secondary);
}

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

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

.fade-in {
  animation: fadeIn 0.8s ease;
}

.fade-in-up {
  animation: fadeInUp 0.8s ease;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--bg-tertiary);
    padding: 20px;
    gap: 15px;
  }

  nav ul.active {
    display: flex;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
  }

  .section {
    padding: 50px 0;
  }

  .course-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 30px 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .hero {
    padding: 80px 0;
  }

  .course-header h1 {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.about-image-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.about-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.image-with-caption {
  text-align: center;
}

.image-with-caption img {
  margin-bottom: 15px;
}

.image-with-caption figcaption {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
}

.hero-with-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
}

.icon-large {
  width: 48px;
  height: 48px;
}

.lazy-load {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lazy-load.loaded {
  opacity: 1;
}

/* Cookie Consent Banner */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--brand-primary);
  padding: 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  display: none;
}

.cookie-consent.active {
  display: block;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.cookie-consent-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-consent-text {
  flex: 1;
  min-width: 300px;
}

.cookie-consent-text h3 {
  margin-bottom: 8px;
  color: #fff;
}

.cookie-consent-text p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.cookie-consent-text a {
  color: var(--brand-secondary);
}

.cookie-consent-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-consent-buttons .btn {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.cookie-consent-buttons .btn-secondary {
  color: #fff;
  border-color: #fff;
}

.cookie-consent-buttons .btn-secondary:hover {
  background: #fff;
  color: var(--brand-primary);
}

.cookie-consent-buttons .btn-primary {
  background: var(--brand-secondary);
  border: 2px solid #fff;
}

@media (max-width: 768px) {
  .cookie-consent-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-consent-buttons {
    width: 100%;
    justify-content: center;
  }
}
