/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

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

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

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

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

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 600px;
  margin: 0 auto;
  background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
  border: 2px solid #8fbc8f;
  border-radius: 12px;
  color: white;
  padding: 20px;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: none;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s ease;
  -webkit-transform: translateY(20px) scale(0.95);
  -webkit-transition: all 0.3s ease;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.cookie-banner.show {
  display: block !important;
  opacity: 1;
  transform: translateY(0) scale(1);
  -webkit-transform: translateY(0) scale(1);
  -webkit-animation: cookieBannerShow 0.3s ease;
  animation: cookieBannerShow 0.3s ease;
}

@-webkit-keyframes cookieBannerShow {
  from {
    opacity: 0;
    -webkit-transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0) scale(1);
  }
}

@keyframes cookieBannerShow {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

.cookie-content p {
  margin: 0;
}

.cookie-content a {
  color: #8fbc8f;
  text-decoration: underline;
}

.btn-accept {
  background: #8fbc8f;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-accept:hover {
  background: #7aa67a;
}

/* Cookie Banner Responsive */
@media (max-width: 768px) {
  .cookie-banner {
    bottom: 15px;
    left: 15px;
    right: 15px;
    padding: 15px;
  }
  
  .cookie-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .btn-accept {
    width: 100%;
    padding: 12px 16px;
  }
}

@media (max-width: 480px) {
  .cookie-banner {
    bottom: 10px;
    left: 10px;
    right: 10px;
    padding: 12px;
  }
}

/* Header */
.header-main {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  transition: transform 0.3s ease;
}

.logo-section:hover .logo-icon {
  transform: scale(1.1);
}

.logo-section h1 {
  color: #8fbc8f;
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0;
}

.logo-section h1 a {
  color: #8fbc8f;
  text-decoration: none;
}

.logo-section h1 a:visited {
  color: #8fbc8f;
}

.logo-section h1 a:hover {
  color: #8fbc8f;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #8fbc8f;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
}

/* Mobile Menu Active States */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

@media (max-width: 768px) {
  .nav-menu.active {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    gap: 15px;
    z-index: 1000;
    animation: slideDown 0.3s ease;
    border-top: 1px solid rgba(143, 188, 143, 0.2);
    margin: 0;
    list-style: none;
  }
  
  .nav-menu.active a {
    display: block;
    padding: 15px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 1.1rem;
    color: #333;
    text-decoration: none;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(143, 188, 143, 0.2);
    touch-action: manipulation;
  }
  
  .nav-menu.active a:hover,
  .nav-menu.active a:focus,
  .nav-menu.active a:active {
    background: rgba(143, 188, 143, 0.1);
    border-color: rgba(143, 188, 143, 0.3);
    color: #8fbc8f;
    transform: translateX(5px);
  }
  
  .nav-menu.active a.active {
    background: rgba(143, 188, 143, 0.15);
    color: #8fbc8f;
    border-color: rgba(143, 188, 143, 0.4);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Section with Parallax */
.hero-parallax {
  height: 80vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 120%;
  height: 120%;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("../images/hero-master.jpg") center/cover no-repeat;

  z-index: -1;
  will-change: transform;
}

.hero-content {
  text-align: center;
  color: #8fbc8f;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

.hero-content h2 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #8fbc8f, #7aa67a);
  color: white;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(143, 188, 143, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(143, 188, 143, 0.4);
}

/* Courses Section */
.courses-overview {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f8f8, #e8e8e8);
}

.courses-overview h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #333;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 100%;
  overflow: hidden;
}

@media (max-width: 1200px) {
  .courses-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .courses-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .courses-grid {
    gap: 1rem;
  }
}

.course-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  align-items: center;
  justify-content: flex-start;
  max-width: 100%;
  overflow: hidden;
  word-wrap: break-word;
}

@media (max-width: 768px) {
  .course-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .course-card {
    padding: 1rem;
  }
}

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

.course-card h3 {
  color: #8fbc8f;
  margin: 1.5rem 0;
  font-weight: bold;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.course-card p {
  margin-top: 50px;
  margin-bottom: 1.5rem;
  color: #666;
  flex-grow: 1;
  font-weight: 600;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
}

.course-image {
  margin-bottom: 1.5rem;
}

.course-image svg {
  width: 100%;
  height: auto;
  max-height: 200px;
}

.course-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  width: 100%;
  text-align: center;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.course-details {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
}

.course-details span {
  background: #f0f0f0;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.9rem;
  color: #666;
}

.course-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: #8fbc8f;
  margin-bottom: 1.5rem;
}

.btn-enroll {
  background: linear-gradient(135deg, #8fbc8f, #7aa67a);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: auto;
}

.btn-enroll:hover {
  background: linear-gradient(135deg, #7aa67a, #6b8e6b);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(143, 188, 143, 0.4);
}

@media (max-width: 480px) {
  .course-details {
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
  }

  .course-price {
    font-size: 1.3rem;
  }

  .btn-enroll {
    padding: 10px 20px;
    font-size: 0.9rem;
    width: 100%;
    max-width: 200px;
  }
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: #8fbc8f;
  border: 2px solid #8fbc8f;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #8fbc8f;
  color: white;
}

/* About School Section */
.about-school-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.about-school-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #2c2c2c;
}

.school-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 2rem;
}

.school-description h3,
.graduates-info h3 {
  font-size: 1.8rem;
  color: #8fbc8f;
  margin-bottom: 1.5rem;
}

.school-description p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 1.5rem;
}

.achievements-list {
  list-style: none;
  padding: 0;
}

.achievements-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid #e0e0e0;
  position: relative;
  padding-left: 2rem;
}

.achievements-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #8fbc8f;
  font-weight: bold;
  font-size: 1.2rem;
}

.graduate-stories {
  margin-bottom: 2rem;
}

.graduate-story {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #8fbc8f;
}

.graduate-story h4 {
  color: #2c2c2c;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.graduate-year {
  color: #8fbc8f;
  font-weight: bold;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.graduate-story p:last-child {
  font-style: italic;
  color: #666;
  margin-bottom: 0;
}

.statistics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat-item {
  text-align: center;
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: #8fbc8f;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #666;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .school-info {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .about-school-section h2 {
    font-size: 2rem;
  }
}

/* Gallery Section */
.gallery-section {
  padding: 80px 0;
  background: white;
}

.gallery-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #333;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Registration Section */
.registration-section {
  padding: 50px 0;
  background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
  color: white;
}

.registration-section h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: white;
}

.form-main {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #f0f0f0;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 2px solid #555;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #8fbc8f;
}

.form-group input::placeholder {
  color: #ccc;
}

.error-message {
  color: #ff6b6b;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  display: block;
}

.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #8fbc8f, #7aa67a);
  color: white;
  border: none;
  padding: 15px;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(143, 188, 143, 0.3);
}

.btn-primary:disabled {
  background: #666;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Footer */
.footer-main {
  background: linear-gradient(135deg, #1a1a1a, #2c2c2c);
  color: white;
  padding: 50px 0 20px;
}

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

.footer-section h3,
.footer-section h4 {
  color: #8fbc8f;
  margin-bottom: 1rem;
}

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

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

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #8fbc8f;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #444;
  color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

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

  .hero-content h2 {
    font-size: 2.5rem;
  }

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

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

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .nav-container {
    padding: 1rem;
  }

  .container-main {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .hero-content h2 {
    font-size: 2rem;
  }

  .courses-overview h2,
  .gallery-section h2,
  .registration-section h2 {
    font-size: 2rem;
  }

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

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

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

.course-card,
.gallery-item {
  animation: fadeInUp 0.6s ease forwards;
}

.course-card:nth-child(2) {
  animation-delay: 0.2s;
}

.course-card:nth-child(3) {
  animation-delay: 0.4s;
}

/* Tools Section Styles */
.tools-section {
  padding: 80px 0;
  background: #f8f8f8;
}

.tools-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #333;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.tool-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-5px);
}

.tool-card h3 {
  color: #8fbc8f;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.tool-card p {
  color: #666;
  font-size: 0.9rem;
}

/* CTA Section Styles */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #8fbc8f, #7aa67a);
  color: white;
  text-align: center;
}

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

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

.cta-button {
  display: inline-block;
  background: white;
  color: #8fbc8f;
  padding: 15px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .tool-card {
    padding: 1.5rem;
  }

  .cta-section h2 {
    font-size: 2rem;
  }

  .cta-section p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .tool-card {
    padding: 1rem;
  }

  .cta-section {
    padding: 60px 0;
  }

  .cta-button {
    padding: 12px 24px;
    font-size: 1rem;
  }
}

/* Form Validation Styles */
.form-group input.invalid,
.form-group select.invalid {
  border-color: #ff6b6b;
}

.form-group input.valid,
.form-group select.valid {
  border-color: #8fbc8f;
}

/* Why Choose Us Section */
.why-choose-us {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.why-choose-us h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 3rem;
  position: relative;
}

.why-choose-us h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(135deg, #8fbc8f, #7aa67a);
  border-radius: 2px;
}

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

.advantage-card {
  background: white;
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.advantage-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(143, 188, 143, 0.1),
    transparent
  );
  transition: left 0.5s;
}

.advantage-card:hover::before {
  left: 100%;
}

.advantage-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.advantage-icon {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.advantage-card h3 {
  font-size: 1.4rem;
  color: #333;
  margin-bottom: 15px;
  font-weight: 600;
}

.advantage-card p {
  color: #666;
  line-height: 1.6;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .advantage-card {
    padding: 30px 20px;
  }

  .why-choose-us h2 {
    font-size: 2rem;
  }
}
