@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

body {
  font-family: "Lato", sans-serif;
  height:fit-content;
}* {
    margin: 0;
    padding: 0;
    box-sizing: inherit;
    

  }
  .button{
    
    padding: 1rem 2.5rem;
    color: #000;
    background-color: #fff;
    text-decoration: none;
    border-radius: 6px;
  }

  nav{
    height:15vh;
    background-color:#CD210F;
    width:100%;
  
    display: flex;
    flex-direction: row;
    overflow-x: hidden;


  }
  .nav__links{
    display:flex;
    flex-direction: row;
    list-style: none;
    align-items: center;
    position: relative;
    
    margin-left: 25rem;
    
  }
  .nav__item {
    margin-left: 4rem;
    
  }
  .nav__logo{
    margin-left: 2rem;
  }
  
  .nav__link{
    color: white;
    text-decoration: none;
    font-size: 30px;  
    list-style: none;
  }
  .nav__link--btn{
    padding: 0.8rem 2rem;
    color: red;
    font-size: 1.2rem;
text-decoration: none;
    border-radius: 8px;
   background-color: white;
  
  }
  
 
  .hero-title{
    background-color: white;
    width:40vw;
    border: 1px solid gray;
    padding: 4rem 3.5rem;
    position: relative;
    top: 20vh;
   text-align: center;
   border-radius: 16px;
    line-height: 2.2rem;
    opacity: 0;
    transform: translateY(-100px);
    transition: all 1s ease;
 
  }
  .hero-title.show{
    opacity: 1;
    transform: translateY(0);
  }
  .box-title{ 
    color:#CD210F;
    margin-bottom:0.4rem;
  }
  .box-textcontent{
    line-height:1.5rem;
    color:rgb(67, 66, 66);
    margin-top: 0.8rem;
  }
  .hero {
    
      width: 100vw;
      aspect-ratio: 1800 / 875;
      background: url("../images/shkolla.png") center/cover no-repeat;
      position: relative;
    
    display: flex;
    justify-content: center;
    align-items: center;
   
     
    
   
  }

  .section {
    display:flex;
    flex-direction: column;
    align-items: center;
    width:100vw;
    height: auto;
    justify-content: center;
    margin-bottom:5vh;
    margin-top:5vh;
    
    gap:2rem;
    padding: 3rem 10%;
    
  }
  .sub-text{
    text-align: center;
    font-size: 1.2rem;
   color: rgb(67, 66, 66);
   font-weight: 500;
  }
 
  .partners {
    display: flex;             
    justify-content: center;  
    gap: 2rem;               
    flex-wrap: wrap;    
     
      /* wrap on small screens */
  }
  
  .partners img {
    
      width: 200px;       /* same width */
      height: 140px;       /* same height */
      object-fit: contain; /* logos scale to fit without stretching */
      background: white;   /* optional, to see boundaries */
      padding: 0.5rem;     /* optional, some spacing inside */
      opacity: 0;
      
      transition: all 0.6s ease;
   
  }
  .partners img.show{
    opacity: 1;
    
  }
  .partners img:nth-child(1){
    transition-delay: 0.1s;
  }
  .partners img:nth-child(2){
    transition-delay: 0.3s;
  }
  .partners img:nth-child(3){
    transition-delay: 0.5s;
  }
  .partners img:nth-child(4){
    transition-delay: 0.7s;
  }
  .partners img:nth-child(5){
    transition-delay: 0.9s;
  }


  :root {
    --accent: #d62828;
    --bg: #f7f7f9;
    --text: #111;
  }

  * { box-sizing: border-box; }

  body {
    margin: 0;
    font-family: Poppins, sans-serif;
    
    color: var(--text);
  }

  

  .section-title {
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
 
  }
  .section-title.show{
    opacity: 1;
    transform: translateY(0);
  }

  .section-title span {
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.9rem;
  }

  .section-title h2 {
    font-size: 2.8rem;
    margin: 0.5rem 0 0;
  }

  .dege {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 8rem;
    opacity:0;
    transition: all 0.6s ease;
    transform: translateY(50px);

  }
  .dege.show{
    opacity: 1;
    transform: translateY(0);
  }
  .dege-2{
    margin-bottom:4rem;
  }

  .dege:nth-child(even) {
    grid-template-columns: 1fr 1.1fr;
  }

  .dege-content h3 {
    color: var(--accent);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
  }

  .dege-content h4 {
    font-size: 1.8rem;
    margin: 0 0 1rem;
  }

  .dege-content p {
    line-height: 1.7;
    opacity: 0.85;
  }

  .dege-toggle {
    margin-top: 1.2rem;
    background: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .4rem 0;
    color: var(--accent)
  }

  .dege-toggle::after {
    content: '›';
    font-size: 1.4rem;
    transition: transform .3s ease;
  }

  .dege-toggle.active::after {
    transform: rotate(90deg);
  }

  .dege-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    list-style: none;
    padding-left: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .4s ease, opacity .3s ease;
  }

  .dege-list.open {
    max-height: 300px;
    opacity: 1;
    margin-top: 1rem;
  }

  .dege-list li {
    padding: .9rem 1rem;
    border-radius: 12px;
    background: #f3f3f6;
    font-weight: 500;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
  }

  .dege-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
  }

  .dege-list li:last-child {
    border-bottom: none;
  }

  .dege-image {
    position: relative;
  }

  .dege-image::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: linear-gradient(135deg, var(--accent), transparent);
    z-index: -1;
    border-radius: 20px;
    opacity: 0.25;
  }

  .dege-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,.15);
    transition: transform .4s ease;
  }

  .dege-image img:hover {
    transform: scale(1.04);
  }

  @media (max-width: 900px) {
    .dege {
      grid-template-columns: 1fr;
    }
  }
  
  

  
  
 /* ---------- footer ---------- */
footer {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding: 3rem 2rem;
  background-color: #090E35;
  color: white;
  font-family: Arial, sans-serif;
  align-items: start;
  width: 100vw;
}

.footer1 {
  display: flex;
  flex-direction: column;
  margin-left: 5rem;
}

.footer-img {
  width: 250px;
  height: auto;
  margin-bottom: 1.5rem;
}


.footer-address {
  font-style: normal;
  line-height: 1.5;
  opacity: 0.8;
  font-size: 0.95rem;
}

.footer2 .nav__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.nav__item {
  display: block;
}

.nav__link {
  color: white;
  text-decoration: none;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}



.footer3 {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
  margin-right: 5rem;
}

.contacts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.contact-icon {
  color: #CD210F;
  font-size: 1.1rem;
  min-width: 20px;
  text-align: center;
}

.contact-text {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.4;
}

.button {
  display: inline-block;
  background-color: #CD210F;
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-align: center;
  min-width: 180px;
}

.button:hover {
  background-color: #e02510;
  transform: translateY(-2px);
}

.social-icons {
  display: flex;
  gap: 0.8rem;
  
}

.social-icons a {
  color: black;
  font-size: 1.2rem;
  transition: opacity 0.3s ease, color 0.3s ease, background-color 0.3s ease;
  padding: 0.6rem;
  background-color: white;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  text-decoration: none;
}

.social-icons a:hover {
  background-color: #CD210F;
  color: white;
}

/* responsive */
@media (max-width: 900px) {
  footer {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  footer .nav__links {
    display:none;
  }
  .footer-left {
    margin-left: 0;
  }
}
.shape1{
  width:7vw;
  height:30vh;
  background-color: #CD210F;
  
}
.shape2{
  width:7vw;
  height:30vh;
  background-color: #F83A26;
  position:relative;
  left:60px;
  top:-27.3vh;
  
}
.rect--1{
  position: relative;
  transform: rotate(-45deg);
  left:-12vw;
  overflow:hidden;
}
.rect--2{
  position: relative;
  transform: rotate(135deg);
  right:-12vw;
  top:70vh;
  overflow:hidden;
  
}
.shape-wrapper{
  position: relative;
  top: -280vh;
  
}
#typing{
  color: #F83A26;
}
.hvr-underline-from-left {
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
  position: relative;
  overflow: hidden;
}

.hvr-underline-from-left:before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 100%;
  bottom: -2px;
  background: whitesmoke;
  height: 3px;
  -webkit-transition-property: right;
  transition-property: right;
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.4s;
  -webkit-transition-timing-function: ease-out;
  transition-timing-function: ease-out;
}
.hvr-underline-from-left:hover:before, .hvr-underline-from-left:focus:before, .hvr-underline-from-left:active:before {
  right: 0;
}
.hvr-underline-from-center {
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
  position: relative;
  overflow: display;
}
.hvr-underline-from-center:before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  right: 50%;
  bottom: -3px;
  background: whitesmoke;
  height: 2.3px;
  -webkit-transition-property: left, right;
  transition-property: left, right;
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.4s;
  -webkit-transition-timing-function: ease-out;
  transition-timing-function: ease-out;
}
.hvr-underline-from-center:hover:before, .hvr-underline-from-center:focus:before, .hvr-underline-from-center:active:before {
  left: 0;
  right: 0;
}

.cilesite-modern {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4.8rem ;
  align-items: start;
}

/* individual card */
.cilesi {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.6rem; /* space between image and text */
  


}

.cilesi span{
  color:#d62828;
  font-weight: bold;
  font-size: 1.6rem;
}
.cilesi p i{
  color:rgb(61, 216, 136);
  margin-left: 0.6rem;
}
.news-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  top:-50px;
  
}





/* TEXT */
.cilesi p {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}







/* image wrapper */
.cilesi img {
  width: 540px;
  height: 330px;               /* forces uniform size */
  object-fit: cover;           /* prevents stretching */
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  opacity: 0;
  transition: opacity 0.6s ease;
}
/* SHOW STATE */
.cilesi.show img {
  opacity: 1;
}
/* staggered text */
.cilesi.show:nth-child(1) p { transition-delay: 0.5s; }
.cilesi.show:nth-child(2) p { transition-delay: 1s; }
.cilesi.show:nth-child(3) p { transition-delay: 1s; }
.cilesi.show:nth-child(4) p { transition-delay: 1.5s; }
.cilesi.show p {
  opacity: 1;
  transform: translateX(0);
}

/* CARD */
.blog-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  transform: translateY(70px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  transition: transform .8s ease, box-shadow .8s ease,opacity .8s ease;
  opacity: 0;
  margin-top: 5vh;
  width: 18vw;
  height: 60vh;
}

.blog-card.show:nth-child(1){ transition-delay: 0.3s; }
.blog-card.show:nth-child(2){ transition-delay: 0.6s; }
.blog-card.show:nth-child(3){ transition-delay: 0.9s; }
.blog-card.show:nth-child(4){ transition-delay: 1.2s; }

.blog-card.show {
  opacity: 1;
  transform: translateY(0);
}



/* IMAGE */
.blog-card img {
  width: 260px;
  height: 160px;
  object-fit: cover;
}

/* CONTENT */
.blog-content {
  padding: 1.5rem;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  
}

.blog-content h2 {
  font-size: 1.2rem;
  margin-bottom: .5rem;
}

.blog-content p {
  font-size: 0.95rem;
  opacity: 0.85;
  line-height: 1.5;
  max-width: 90%;
}

/* DIVIDER */
.blog-content hr {
  margin: 1rem 0;
  border: none;
  height: 1px;
  background: #e5e5e5;
}


.blog-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: #666;
}


.blog-meta::between {
  content: "";
}

.blog-meta span:first-child {
  font-weight: 600;
  color: #d62828;
}

.blog-meta span + span {
  padding-left: 1rem;
  border-left: 1px solid #ddd;
}



/* Responsive Breakpoints */
@media (max-width: 1200px) {
  /* Large tablets and small laptops */
  .nav__links {
    margin-left: 15rem;
  }
  
  .hero-title {
    width: 50vw;
    padding: 3rem 2.5rem;
  }
  
  .news-wrapper {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .blog-card {
    width: 24vw;
  }
  
  .dege {
    gap: 3rem;
  }
  footer .nav__links {
    display:none;
  }
}

@media (max-width: 992px) {
  /* Tablets */
  nav {
    height: auto;
    padding: 1rem 0;
    flex-direction: column;
    align-items: center;
  }
  
  .nav__logo {
    margin-left: 0;
    margin-bottom: 1rem;
  }
  
  .nav__links {
    display: none;
    margin-left: 0;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .nav__item {
    margin: 0.5rem 1rem;
  }
  
  .nav__link {
    font-size: 24px;
  }
  
  .hero-title {
    width: 60vw;
    top: 15vh;
    padding: 2.5rem 2rem;
  }
  
  .section {
    padding: 2rem 5%;
  }
  
  .news-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .blog-card {
    width: 38vw;
  }
  
  footer {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }
  
  .footer1, .footer3 {
    margin-left: 0;
    margin-right: 0;
    align-items: center;
    text-align: center;
  }
  
  .footer2 .nav__links {
    align-items: center;
  }
  footer .nav__links {
    display:none;
  }
  .shape-wrapper {
    display: none;
  }
  
  .cilesite-modern {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .cilesi img {
    width: 100%;
    max-width: 540px;
    height: auto;
    aspect-ratio: 16/9;
  }
  
  .partners img {
    width: 150px;
    height: 100px;
  }
}

@media (max-width: 768px) {
  /* Small tablets and large phones */
  .nav{
    display:none;

  }
  .nav__links {
    display: none;
  }
  .hero {
    aspect-ratio: 16/9;
  }
  
  .hero-title {
    width: 80vw;
    top: 10vh;
    padding: 2rem 1.5rem;
    line-height: 1.8rem;
  }
  
  .section-title h2 {
    font-size: 2.2rem;
  }
  
  .dege {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
  }
  
  .dege:nth-child(even) {
    grid-template-columns: 1fr;
  }
  
  .dege-content h4 {
    font-size: 1.6rem;
  }
  
  .news-wrapper {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .blog-card {
    width: 100%;
    height: auto;
    margin: 1rem 0;
  }
  
  .blog-card img {
    width: 100%;
    height: 200px;
  }
  
  .nav__link {
    font-size: 20px;
  }
  
  .nav__link--btn {
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
  }
  
  .partners {
    gap: 1rem;
  }
  
  .partners img {
    width: 120px;
    height: 85px;
  }
  
  .cilesite-modern {
    gap: 2.5rem;
  }
  
  .cilesi span {
    font-size: 1.4rem;
  }
  
  .sub-text {
    font-size: 1.1rem;
    padding: 0 1rem;
  }
  .footer2 .nav__links {
    display:none;
  }
}

@media (max-width: 576px) {
  /* Mobile phones */
  .nav{
    display:none;
  }
  .nav__links {
    flex-direction: column;
    align-items: center;
    display:none;
  }
  
  .nav__item {
    margin: 0.5rem 0;
  }
  
  .nav__link {
    font-size: 18px;
  }
  
  .hero-title {
    width: 90vw;
    padding: 1.5rem 1rem;
    top: 5vh;
  }
  
  .button {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .section {
    padding: 1.5rem 3%;
    margin-top: 3vh;
    margin-bottom: 3vh;
  }
  
  .partners img {
    width: 100px;
    height: 70px;
  }
  
  .dege-content h3 {
    font-size: 1.2rem;
  }
  
  .dege-content h4 {
    font-size: 1.4rem;
  }
  
  .dege-list {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .dege-image::before {
    inset: -10px;
  }
  
  .footer-img {
    width: 200px;
  }
  
  .footer2 .nav__links {
    align-items: center;
  }
  
  .nav__link {
    font-size: 1.1rem;
  }
  
  .contact-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }
  
  .social-icons {
    justify-content: center;
  }
  
  .button {
    min-width: 160px;
    padding: 0.7rem 1.2rem;
  }
  
  .news-wrapper {
    gap: 1rem;
  }
  
  .blog-content {
    padding: 1rem;
  }
  
  .blog-content h2 {
    font-size: 1.1rem;
  }
  
  .blog-content p {
    font-size: 0.9rem;
  }
  
  .blog-meta {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
  
  .blog-meta span + span {
    padding-left: 0;
    border-left: none;
    padding-top: 0.5rem;
  }
  
  .cilesi p {
    font-size: 0.95rem;
  }
}

@media (max-width: 400px) {
  /* Small mobile phones */
  .nav__link {
    font-size: 16px;
  }
  
  .nav__link--btn {
    padding: 0.5rem 1rem;
  }
  
  .hero-title {
    padding: 1rem 0.8rem;
  }
  
  .box-title {
    font-size: 1.1rem;
  }
  
  .box-textcontent {
    font-size: 0.9rem;
    line-height: 1.4rem;
  }
  
  .section-title h2 {
    font-size: 1.6rem;
  }
  
  .sub-text {
    font-size: 1rem;
  }
  
  .partners img {
    width: 80px;
    height: 60px;
  }
  
  .dege-list {
    grid-template-columns: 1fr;
  }
  
  .dege-list li {
    text-align: center;
  }
  
  .news-wrapper {
    grid-template-columns: 1fr;
  }
  
  .footer-img {
    width: 180px;
  }
  
  .contacts {
    align-items: center;
  }
  
  .button {
    min-width: 140px;
  }
}

/* Fix for mobile navigation */
.mobile-menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1000;
  }
  
  .nav__links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
   
    background-color: #CD210F;
    flex-direction: column;
    justify-content: center;
    z-index: 999;
    margin-left: 0;
    padding: 2rem;
  }
  
  
  
  .nav__item {
    margin: 1rem 0;
  }
  
  .nav__link {
    font-size: 1.5rem;
  }
  
  .nav__link--btn {
    margin-top: 1rem;
  }
  
  .close-menu {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
  }
}

/* Fix for touch devices */
@media (hover: none) and (pointer: coarse) {
  .hvr-underline-from-left:hover:before,
  .hvr-underline-from-center:hover:before {
    all: unset;
  }
  
  .button:active {
    transform: scale(0.98);
  }
  
  .dege-list li:active {
    transform: scale(0.98);
    background: #e8e8e8;
  }
  
  .nav__link:active {
    opacity: 0.8;
  }
}

/* Landscape mode fixes */
@media (max-height: 600px) and (orientation: landscape) {
  .hero {
    height: 100vh;
  }
  
  .hero-title {
    top: 10vh;
    padding: 1.5rem;
  }
  
  nav {
    height: 10vh;
    padding: 0.5rem 0;
  }
  
  .mobile-menu-toggle {
    top: 0.5rem;
    right: 0.5rem;
  }
}

/* High-resolution displays */
@media (min-resolution: 192dpi) {
  .hero {
    background-image: url("../images/shkolla.png");
  }
  
  .partners img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  .hero {
    background: none !important;
  }
  
  .button,
  .nav__link--btn,
  .mobile-menu-toggle,
  .social-icons {
    display: none !important;
  }
  
  body {
    color: black;
    background: white;
  }
  
  .hero-title {
    border: 1px solid #ccc;
    opacity: 1;
    transform: none;
  }
}