:root {
  --color1: #1E8F2D;
  --color2: #24231D;
  --color3: #F8F7F0;
}

body {
  font-family: "Roboto", sans-serif;
  background-color: #fff;
}

html,
body {
  height: 100%;
  margin: 0;
}

.page {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  min-height: 100vh;
}

main {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

* {
  background-repeat: no-repeat;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

.container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 30px;
}
@media (max-width: 992px) {
  .container {
    width: 100%;
    padding: 0 15px;
  }
}

.mainlogo {
  color: var(--color2);
  font-size: 32px;
  font-weight: 700;
}
.mainlogo--white {
  color: #fff;
}

section {
  padding: clamp(40px, 8vw, 75px) 0;
}

strong {
  font-weight: 600;
}

p {
  line-height: 140%;
}

.top {
  display: -ms-grid;
  display: grid;
  gap: 24px;
  margin-bottom: 44px;
}

.mintitle {
  font-size: clamp(16px, 2.4vw, 20px);
  text-transform: uppercase;
  color: #F39C13;
  letter-spacing: 2px;
  font-weight: 700;
  text-align: center;
}

.big_title {
  text-align: center;
  font-size: clamp(34px, 5.867vw, 50px);
  letter-spacing: 2px;
  font-weight: 700;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.btn {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  color: var(--color1);
  border: 2px solid var(--color1);
  padding: 24px;
  border-radius: 34px;
  font-size: 18px;
  font-weight: 600;
  -webkit-transition: 0.23s;
  transition: 0.23s;
}
.btn:hover {
  color: #fff;
  background-color: var(--color1);
}

/* Hero Section Styles */
.hero {
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0.5))), url("../img/heroimage01.jpg") no-repeat center center/cover;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../img/heroimage01.jpg") no-repeat center center/cover;
  height: 90vh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  color: #ffffff;
  text-align: center;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 900;
}

.hero-content h1 span {
  color: #f39c12;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.hero-btn {
  background-color: #f39c12;
  color: #fff;
  padding: 15px 30px;
  text-decoration: none;
  font-size: 1rem;
  border-radius: 8px;
  -webkit-transition: background 0.3s;
  transition: background 0.3s;
}

.hero-btn:hover {
  background-color: #d35400;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
}
/* Courses Section */
.courses {
  padding: 60px 20px;
  text-align: center;
}

.courses-header h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.courses-header p {
  font-size: 1.1rem;
  color: #555;
  max-width: 600px;
  margin: 0 auto 40px auto;
}

.courses-grid {
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.course-card {
  position: relative;
  height: 250px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  -webkit-transition: -webkit-transform 0.3s;
  transition: -webkit-transform 0.3s;
  transition: transform 0.3s;
  transition: transform 0.3s, -webkit-transform 0.3s;
}

.course-card:hover {
  -webkit-transform: scale(1.03);
          transform: scale(1.03);
}

.course-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background: rgba(0, 0, 0, 0.5);
}

.course-overlay h3 {
  color: #fff;
  font-size: 1.5rem;
  margin: 0;
}

@media (max-width: 768px) {
  .courses-header h2 {
    font-size: 2rem;
  }
  .course-overlay h3 {
    font-size: 1.2rem;
  }
}
/* Events Section */
.events {
  padding: 60px 20px;
  background-color: #ffffff;
  text-align: center;
}

.events-header h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.events-header p {
  font-size: 1.1rem;
  color: #555;
  max-width: 600px;
  margin: 0 auto 40px auto;
}

.events-grid {
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.event-card {
  background-color: #f9f9f9;
  border-radius: 12px;
  overflow: hidden;
  -webkit-box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
          box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  -webkit-transition: -webkit-transform 0.3s;
  transition: -webkit-transform 0.3s;
  transition: transform 0.3s;
  transition: transform 0.3s, -webkit-transform 0.3s;
}

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

.event-card img {
  width: 100%;
  height: 180px;
  -o-object-fit: cover;
     object-fit: cover;
}

.event-info {
  padding: 20px;
  text-align: left;
}

.event-date {
  display: inline-block;
  font-size: 0.9rem;
  color: #f39c12;
  margin-bottom: 10px;
}

.event-info h3 {
  font-size: 1.3rem;
  margin: 5px 0 10px 0;
}

.event-info p {
  font-size: 0.95rem;
  color: #555;
}

@media (max-width: 768px) {
  .events-header h2 {
    font-size: 2rem;
  }
  .event-card img {
    height: 150px;
  }
}
/* Info Section */
.info-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.info-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.info-text {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 500px;
          flex: 1 1 500px;
}

.info-text h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #1a1a1a;
}

.info-text p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 25px;
  line-height: 1.6;
}

.info-btn {
  display: inline-block;
  background-color: #f39c12;
  color: #fff;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  -webkit-transition: background 0.3s;
  transition: background 0.3s;
}

.info-btn:hover {
  background-color: #d35400;
}

.info-image {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 400px;
          flex: 1 1 400px;
}

.info-image img {
  width: 100%;
  border-radius: 12px;
  -webkit-box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
          box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
  .info-container {
    text-align: center;
  }
  .info-text h2 {
    font-size: 2rem;
  }
  .info-text p {
    font-size: 1rem;
  }
}
.info-article {
  padding: 60px 20px;
  background-color: #ffffff;
  font-family: Arial, sans-serif;
  line-height: 1.7;
}

.info-article .container {
  max-width: 1000px;
  margin: 0 auto;
}

.info-article h2 {
  font-size: 2.5rem;
  color: #1a1a1a;
  margin-bottom: 15px;
}

.info-article .subtitle {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 30px;
  max-width: 800px;
}

.info-article .article-text p {
  margin-bottom: 20px;
  font-size: 1rem;
  color: #333;
}

@media (max-width: 768px) {
  .info-article h2 {
    font-size: 2rem;
  }
  .info-article .subtitle {
    font-size: 1rem;
  }
}
/* Contact Section */
.contact-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
  font-family: Arial, sans-serif;
}

.contact-section .container {
  max-width: 1100px;
  margin: 0 auto;
}

.contact-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.contact-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 40px;
}

.contact-content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 40px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.contact-form {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 500px;
          flex: 1 1 500px;
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  -webkit-box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
          box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.contact-btn {
  background-color: #f39c12;
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  -webkit-transition: background 0.3s;
  transition: background 0.3s;
}

.contact-btn:hover {
  background-color: #d35400;
}

.contact-info {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 300px;
          flex: 1 1 300px;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.contact-info p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 10px;
}

/* Popup Styles */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  z-index: 1000;
}

.popup-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  max-width: 400px;
  text-align: center;
  position: relative;
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
}

.popup h3 {
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .contact-content {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
}
.courses-info {
  padding: 60px 20px;
  background-color: #f9f9f9;
  font-family: Arial, sans-serif;
}

.courses-info .container {
  max-width: 900px;
  margin: 0 auto;
}

.courses-info h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 25px;
}

.courses-info p {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
}

.about-section h1, .about-section h2, .about-section h3 {
  color: #222;
}
.about-section h1 {
  font-size: 2.8em;
  margin-bottom: 20px;
}
.about-section h2 {
  font-size: 2em;
  margin: 30px 0 15px;
}
.about-section h3 {
  font-size: 1.5em;
  margin: 20px 0 10px;
}
.about-section p {
  margin-bottom: 20px;
}
.about-section img {
  max-width: 100%;
  height: auto;
  margin: 30px 0;
  border-radius: 10px;
}
.about-section .about-section {
  background-color: #fff;
  padding: 50px 20px;
  border-radius: 12px;
  -webkit-box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
          box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.about-section .highlight {
  color: #007bff;
  font-weight: bold;
}
@media (max-width: 768px) {
  .about-section h1 {
    font-size: 2.2em;
  }
  .about-section h2 {
    font-size: 1.6em;
  }
}

.text-page > .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 20px;
  font-family: Arial, sans-serif;
  line-height: 1.7;
  color: #333;
  background-color: #fdfdfd;
}

.text-page > .container h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #222;
}

.text-page > .container h2 {
  font-size: 1.8em;
  margin: 30px 0 15px;
  color: #222;
}

.text-page > .container p {
  margin-bottom: 20px;
}

.text-page > .container ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.text-page > .container li {
  margin-bottom: 10px;
}

.text-page > .container a {
  color: #007bff;
  text-decoration: none;
}

.text-page > .container a:hover {
  text-decoration: underline;
}

/* Teachers Section */
.teachers {
  background-color: var(--color3);
}

.teachers-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 30px 1fr 30px 1fr 30px 1fr;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.teacher-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  -webkit-box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  -webkit-transition: -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
  transition: -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transition: transform 0.3s ease, box-shadow 0.3s ease, -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
}

.teacher-card:hover {
  -webkit-transform: translateY(-5px);
  transform: translateY(-5px);
  -webkit-box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.teacher-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.teacher-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}

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

.teacher-info {
  padding: 25px;
}

.teacher-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--color2);
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.teacher-position {
  font-size: 14px;
  color: var(--color1);
  font-weight: 500;
  margin: 0 0 15px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.teacher-description {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin: 0;
}

/* Responsive Design for Teachers */
@media (max-width: 1200px) {
  .teachers-grid {
    -ms-grid-columns: 1fr 25px 1fr 25px 1fr;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
}
@media (max-width: 992px) {
  .teachers-grid {
    -ms-grid-columns: 1fr 20px 1fr;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .teacher-image {
    height: 220px;
  }
  .teacher-info {
    padding: 20px;
  }
  .teacher-name {
    font-size: 18px;
  }
}
@media (max-width: 768px) {
  .teachers-grid {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .teacher-image {
    height: 250px;
  }
  .teacher-info {
    padding: 25px;
  }
  .teacher-name {
    font-size: 20px;
  }
  .teacher-description {
    font-size: 15px;
  }
}
.topheader {
  padding: clamp(20px, 4vw, 40px) 0;
  background-color: #fff;
}
.topheader__box {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  width: 100%;
  gap: clamp(20px, 8vw, 100px);
}
@media (max-width: 768px) {
  .topheader__box {
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
  }
}
.topheader nav ul {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 48px;
}
.topheader nav ul li a {
  color: var(--color2);
  font-size: 18px;
  font-weight: 500;
  -webkit-transition: 0.23s;
  transition: 0.23s;
}
.topheader nav ul li a:hover {
  text-decoration: underline;
}
@media (max-width: 768px) {
  .topheader nav {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    z-index: 9;
    left: 0;
    top: 0;
    right: 0;
    background: var(--color2);
    -webkit-transition-duration: 0.3s;
            transition-duration: 0.3s;
    height: 100vh;
    width: 100%;
    padding-top: 100px;
  }
  .topheader nav ul {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 35px;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }
  .topheader nav ul a {
    color: #fff !important;
  }
  .topheader nav.active {
    opacity: 1;
    visibility: visible;
  }
}
.topheader .btn-menu {
  display: none;
}
@media (max-width: 768px) {
  .topheader .btn-menu {
    width: 30px;
    height: 40px;
    position: relative;
    cursor: pointer;
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    z-index: 10;
  }
  .topheader .btn-menu span {
    position: absolute;
    height: 2px;
    width: 100%;
    background: #000;
    -webkit-transition: 0.3s ease;
    transition: 0.3s ease;
    border-radius: 1px;
  }
  .topheader .btn-menu span:nth-child(1) {
    top: 10px;
  }
  .topheader .btn-menu span:nth-child(2) {
    top: 19px;
  }
  .topheader .btn-menu span:nth-child(3) {
    top: 28px;
  }
  .topheader .btn-menu.active span {
    background-color: #fff;
  }
  .topheader .btn-menu.active span:nth-child(1) {
    -webkit-transform: rotate(45deg);
            transform: rotate(45deg);
    top: 19px;
  }
  .topheader .btn-menu.active span:nth-child(2) {
    opacity: 0;
  }
  .topheader .btn-menu.active span:nth-child(3) {
    -webkit-transform: rotate(-45deg);
            transform: rotate(-45deg);
    top: 19px;
  }
}

.footer {
  background-color: #242424;
  padding: 60px 0;
}
.footer .container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 30px;
}
.footer a {
  color: #fff;
}
.footer p {
  color: #fff;
}
.footer .menu {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.footer .menu span {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}
.footer .menu ul {
  margin-top: 24px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 24px;
}
.footer .footer-bottom {
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 44px;
  border-top: 1px solid #fff;
  padding-top: 40px;
  opacity: 0.4;
}
.footer .footer-bottom ul {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 20px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

/* Gallery Section */
.gallery {
  background-color: #fff;
}

.gallery-grid {
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 50px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  -webkit-box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
          box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  -webkit-transition: -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
  transition: -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transition: transform 0.3s ease, box-shadow 0.3s ease, -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover {
  -webkit-transform: translateY(-5px);
          transform: translateY(-5px);
  -webkit-box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
          box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

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

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

/* Responsive Design for Gallery */
@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .gallery-item img {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .gallery-item img {
    height: 250px;
  }
}