*{
 /* border: solid green;*/
 font-family: 'Rubik'
}

header{
 background-image:  url(img/home6.jpg);
    background-position: center;
    background-size:cover;
    background-repeat: no-repeat;
}
:root {
  --main-color: rgb(0,133,134);
  --text-color: #333;
  --font-family: 'Arial', sans-serif;
}
p{
 
}

#why-us{
  display: flex;
  justify-content: space-evenly;
  width:900px;
  margin:0 auto;
  margin-top: 50px;
  margin-bottom: 50px;
}
#why-us div{
  width:400px;
  
}
#why-us p{
  font-size:1rem;
  padding-left: 10px;
  text-align: justify;
  margin-top: 10px;
 color:#444;
 
}
#why-us img{
  width:400px;
 object-fit: cover;
}
.subheading{
  text-align: center;
  font-size: 1.5em;
  margin: 0 auto;
  color: #008384;
  width:fit-content;
  padding-bottom: 5px;
 
}
/* why */
.why-choose-us {
 display: flex;
  padding: 40px 20px;
  background-color: #f9f9f9;
color: #fff;
  text-align: center;
}

.why-choose-us h2 {
  color: rgb(0,133,134);
  margin-bottom: 30px;
}

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
 padding: 15px 0;
 background-color: rgb(0,133,134);
}

.feature {
  background: none;
  /*border: 1px solid #ddd;*/
  padding-bottom: 20px;
  width: 250px;
  border-radius: 0px;
 border-bottom: 1px solid #ddd;
/*  box-shadow: 0 2px 5px rgba(0,0,0,0.1);*/
}
.features h3{
 margin-bottom: 8px;
}
.feature .icon {
  font-size: 30px;
  color: #fff;
  margin-bottom: 10px;
}
.feature p{
 color:#eeeeee;
 font-weight: 600
}
.image-placeholder {
  width: 500px;
  background-color: #ccc;
 object-fit: cover;
}
/****/

.news-section {
  background-color: #ffffff;
  padding: 60px 20px;
  text-align: center;
}

.news-section h2 {
  color: rgb(0, 133, 134);
  margin-bottom: 40px;
}

.news-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.news-card {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 20px;
  max-width: 300px;
  flex: 1 1 280px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.news-img.grey-div {
  width: 100%;
  height: 160px;
  background-color: #ccc;
  border-radius: 4px;
  margin-bottom: 15px;
}

.news-card h3 {
  color: #333;
  margin-bottom: 10px;
}

.news-card p {
  font-size: 0.95em;
  color: #555;
  margin-bottom: 10px;
 
}

.news-card .date {
  font-size: 0.85em;
  color: #888;
}
/************** Enrollment ************

#enrollment{
  display: flex;
  justify-content: space-evenly;
  width:900px;
  margin: 0 auto;
  margin-top: 50px;
  margin-bottom: 50px;
  
}
#enrollment img{
  width:400px;
}
#enrollment div{
  width:400px;
 
}
/***************** Apply *******************/
#apply{
  width:900px;
  margin: 0 auto;
    margin-top: 50px;
  margin-bottom: 50px;
}

#apply img{
 width:80%;
}
#apply-img{
 width:80vw;
 display: block;
 margin:0 auto 30px auto;
}
#tracksuit-img{
 width:400px;
}


.apply-section {
  font-family: var(--font-family);
  padding: 40px 20px;
  background-color: #fff;
  color: var(--text-color);
  max-width: 900px;
  margin: auto;
}

.apply-section h2 {
  color: var(--main-color);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.apply-section ol {
  padding: 30px;
 display: grid;
 width:80%;
 margin: auto;
 border: 1px solid #008586;
 grid-template-columns: repeat( auto-fit  , minmax(250px,1fr) )
}

.apply-section li {
 margin: 10px auto;
/* display: block;*
 border: solid red;
  /*margin-bottom: 35px;*/
 width:280px;
 height: 100px;
 font-size: 15px;
  line-height: 1.6;
 /*;*/
}

.apply-section li strong {
  color: var(--main-color);
  display: block;
  margin-bottom: 5px;
}

.apply-section li i {
  margin-right: 8px;
  color: var(--main-color);
}
.apply-section button{
 display: block;
 margin: 20px 0;
 border:  solid #fff;
 padding: 12px 28px;
 border-radius: 5px;
 background: #008586;
 font-weight: bold;
 color: rgb(255,255,255);
 position:relative; 
 
}


.apply-section button:active{
 display: block;
 border: 1px solid #008586;
 padding: 10px 20px;
 border-radius: 5px;
 background: #fff;
 color: rgb(0,133,134);
}
.contact {
  margin-top: 30px;
  font-size: 1rem;
}

.contact a {
  color: var(--main-color);
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}

.contact i {
  margin-right: 6px;
  color: var(--main-color);
}
/* Advantages */

#advantages {
  background-color: #f9f9f9;
  padding: 60px 20px;
  /*font-family: 'Segoe UI', sans-serif;*/
  color: #003535;
  text-align: center;
}

#advantages .container {
  max-width: 80%;
  margin: 0 auto;
}

#advantages h2 {
 /* color: rgb(0, 133, 134);
  font-size: 2.5rem;*/
  margin-bottom: 40px;
}

.advantages-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.advantage-card {
  background-color: #fff;
 display: block;
  padding: 20px;
  border-radius: 0px;
  border: 1px solid rgb(0,133, 134);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: left;
 width:350px;
  font-size: 15px;
  /*line-height: 1.6;*/
  transition: transform 0.3s ease;
 height: 70px;
}

.advantage-card i {
  color: rgb(0,133, 134);
  margin-right: 10px;
}

.advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}
/* courses*/

#courses {
  background: #f0f0f0;
  padding: 60px 20px;
  font-family: 'Segoe UI', sans-serif;
  text-align: center;
}

.courses-container {
  max-width: 1200px;
  margin: auto;
}

.courses-container h2 {
  /*font-size: 32px;*/
  color: rgb(0, 133, 134);
  margin-bottom: 40px;
}

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

.course-card {
  background: white;
  padding: 20px;
  border-radius: 3px;
  text-align: left;
 width:300px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.course-image {
  background: #ccc;
  height: 250px;
 width:100%;
  border-radius: 6px;
  margin-bottom: 15px;
 object-fit: cover;
}

.course-card h3 {
  color: rgb(0, 133, 134);
  margin-bottom: 10px;
 font-size: 19px;
}

.course-card p {
  font-size: 15px;
  margin-bottom: 8px;
  padding-top: 15px;
  color: #444;
 border-top: 1px solid #008586;
 height: 60px;
}

.course-card small {
  color: #666;
 display: block;
 font-size: 11px;
 margin-bottom: 8px;
}
.course-card strong{
 color:#f4a261
}

.view-all-btn {
  display: inline-block;
  margin-top: 40px;
  background: rgb(0, 133, 134);
  color: white;
  padding: 12px 28px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background 0.3s;
}

.view-all-btn:hover {
  background: #006b6b;
 
 
}
/* News*/
#news-events {
  background-color: #f2f2f2;
  padding: 60px 20px;
  font-family: 'Segoe UI', sans-serif;
  color: #003535;
  text-align: center;
}

#news-events .container {
  max-width: 850px;
  margin: 0 auto;
  position: relative;
}

#news-events h2 {
  color: rgb(0, 133, 134);
  font-size: 2rem;
  margin-bottom: 40px;
}

.slider {
  position: relative;
  overflow: hidden;
  height: 280px;
}

.slide {
 
  display: none;
  background: white;
 border: 1px solid rgb(0,133, 134);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: left;
  animation: fade 0.5s ease-in-out;
}

.slide.active {
  display: flex;
}

.slide-img {
  /*width: 100%;
  height: 120px;
  background-color: #ccc;
  border-radius: 6px;
  margin-bottom: 15px;
  background-size: cover;
  background-position: center;*/
 color:orangered;
}

.slide h3 {
  color: rgb(0, 133, 134);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.slide i {
  margin-right: 8px;
}

.slider-controls {
  margin-top: 15px;
}

.slider-controls button {
  background-color: rgb(0, 133, 134);
  color: white;
  border: none;
  padding: 8px 16px;
  margin: 0 5px;
  font-size: 18px;
  border-radius: 4px;
  cursor: pointer;
}

.slider-controls button:hover {
  background-color: #006b6b;
}
@keyframes fade {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}
@media (max-width:800px){
   .textbox{
        top:0%;
    }
  #why-us{
    display: block;
    width:100vw;
  }
 #why-us p{
  padding:25px;
 }
 .why-choose-us{
  display: block;
 }
 .why-choose-us img{
  width:95%;
 }
  /************** Enrollment ************/

  #enrollment{
    display: block;
    width:100vw;
  }
 /**/
 #advantages .container{
  
 }
 .container{
  margin: 0;
  padding: 0;
 }
   #advantages h2 {
    margin-top: 150px
  }
 #advantages{
  width:99vw;
  padding: 0;
  
 }
  
  .advantages-list {
     grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    font-size: 1rem;
   width:100%;
   margin: auto;
   
  }
 .advantage-card{
  display: block;
  margin: auto;
  width:100%;
  height: 95px;
 }
 
 .course-card{
  margin: auto;
 }
  /***************** Apply *******************/
  #apply{
    width:100vw;
  }
   .apply-section {
    padding: 20px 15px;
  }

  .apply-section h2 {
    font-size: 1.5rem;
  }
}
