body
{
    background-color: #f8f8fd;
    box-sizing: border-box;
    margin: 0px;

}


#maingrid-header
{
    display: grid;
    grid-template-columns: auto auto;
    margin: 70px 53px;
    gap: 60px;
}


#gridone-header
{

    margin-left: 70px;
    margin-top: 40px;

}


#gridone-header h1
{
    width: 557px;
    height: 204px;
    color: #1c1d3a;
    font-size: 56px;
    font-family: Inter, sans-serif;
    font-weight: bold;
}

#gridone-header span
{
    color: rgb(188, 6, 126);;
}


#gridone-header p
{
    width: 557px;
    height: 115px;
    color: #555a7b;
    font-size: 16px;
    font-family: Inter, sans-serif;

}

.summary 
{
    width: 271px;
    height: 36px;
    background: linear-gradient(90deg, #b81c88, #2babe2);
    color: white;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 999px;
    text-align: center;
    font-weight: 700;
    margin-bottom: 16px;
}

.btn-home 
{

    width: 131px;
    height: 36px;
    background: linear-gradient(90deg, #b81c88, #2babe2);
    margin-bottom: 50px;
    color: white;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 999px;
    text-align: center;
    font-weight: 700;
    display: flex;
    justify-content: center;
    gap: 10px;
    position: relative;
    bottom: 110px;
    left: 330px;
    display: flex;
    align-items: center;
    transition: transform .35s ease, box-shadow .35s ease, filter .35s ease;

}




.btn-home span
{
  color: white !important;
}


.btn-home:hover
{

  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 24px rgba(0,0,0,.15);

}

#grid-static
{
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    padding: 22px;
    gap: 20px;
    width: 480px;

}

#static-one
{
    display: flex;
    gap: 20px;
}


.static-number
{
    width: 130px;
    height: 93px;
    background: #f8f8fd;
    border: 1px solid #ddd;
    border-radius: 14px;
    padding: 14px;
    text-align: center;
}

.static-domain
{

    width: 434px;
    height: 93px;
    background: #f8f8fd;
    border: 1px solid #ddd;
    border-radius: 14px;
    padding: 14px;
}


.static-domain h4
{

    font-size: 26px;
    font-weight: 700;
    color: rgb(188, 6, 126);
}

.static-domain p
{

    font-size: 15px;    
    color: #555a7b;
}


.static-number h4
{
    width: 100px;
    height: 44px;
    color: rgb(188, 6, 126);
    font-size: 28px;
    font-weight: 700;
}

.static-number p
{
    width: 100px;
    height: 19px;
    color: #555a7b;
  
}


#gridtwo-header
{
    margin-top: 150px;
}

#title-achevment
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 25px;
    margin-top: 220px;
}

#title-achevment h3
{

color: #1c1d3a;
font-size: 32px;
font-family: Inter, sans-serif;
font-weight: 600;

}


#title-achevment p
{
    margin-right: 40px;
    margin-top: 30px;
    font-size: 16px;
    font-family: Inter, sans-serif;
    color: #555a7b;
}

.gce-title
{
    margin-left: 70px;
}

.gce-year
{
    width: 90px;
    background: linear-gradient(90deg, #b81c88, #2babe2);
    color: white;
    font-size: 13px;
    padding: 5px 14px;
    border-radius: 999px;
    text-align: center;
    font-weight: 700;
    margin-bottom: 16px;
}


/*
#3238ca
*/

#grid-2023
{
    display: grid;
    grid-template-columns: auto auto;
    margin-left: 90px;
    margin-top: 70px;
    gap: 70px;
}

.pre-project
{
    width: 513px;
    background: #fff;
    border: 2px solid  rgb(188, 6, 126);
    border-radius:18px;
    padding: 22px;
    box-shadow:  0 8px 24px rgba(0, 0, 0, .08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pre-project h3
{
    color: #3238ca;
}

.pre-project p
{
    color: #555a7b;
}


.skill-badge span
{
    
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgb(188, 6, 126);
    background: linear-gradient(90deg, rgb(188, 6, 126), #2babe2);
    color: white

}


.skill-badge span:hover 
{
    border: 1px solid #2babe2;
    background: #2babe2;
    color: white;
}


.static-info
{

    display: flex;
    gap: 20px;


}

.static-card
{

    display: flex;
    flex-direction: column;
    background: #fff;
    border: 2px solid rgb(188, 6, 126);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    padding: 22px;
    gap: 20px;
    width: 513px;
}

.summary-info li
{
color: #555a7b;

}


.image-scroll 
{

    margin-left: 360px;
    margin-top: 200px;
    background: #fff;
    border: 8px solid rgb(188, 6, 126);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    padding: 6px;
    gap: 20px;
    width: 810px;
    height: 425px;
}

.image-scroll img
{
    width: 783px;
    height: 400px;
    border-radius: 20px;
}


#arrow-pic
{
    display: flex;
    margin-top: 20px;
    justify-content: center;
    gap: 80px;

}

#circles
{
    display: flex;
    align-items: center;
}


#leftArrow
{

    background: linear-gradient(90deg, rgb(188, 6, 126), #2babe2);
    border: none;
    border-radius: 50%;
    padding: 10px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    width: 40px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;

    
}


#rightArrow
{


    background: linear-gradient(90deg, rgb(188, 6, 126), #2babe2);
    border: none;
    border-radius: 50%;
    padding: 10px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    width: 40px;
    height: 44px;

}

#review
{


margin-bottom: 190px;

}

#header-review
{

font-weight: bold;
font-size: 25px;
margin-left: 550px;
margin-top: 220px;

}

#line
{

border-top:solid 5px rgb(188, 6, 126);
width: 80px;
position: relative;
left: 200px;
}

#review-card
{

display: flex;
gap: 30px;
margin-left: 200px;
margin-top: 100px;
width: 100%;
}

.feedback-card
{

display: flex;
width: 366px;
height: 204px;
gap: 30px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
border-radius: 20px;
}


.bg-profile
{

background-color: #2babe2;
border-radius: 50%;
width: 38px;
height: 48px;
position: relative;
position: relative;
left: 10px;

}

.bg-profile svg
{

    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-icon svg
{
    color: white;
    width: 30px;
    height: 30px;
    position: relative;
    left: 12px;
}

.star
{
    color: #ffca28;
}


.part1-card
{
    display: flex;
    flex-direction: column;
    background-color: rgb(188, 6, 126);
    gap: 30PX;
    padding: 25px;

   
}

.part2-card 
{
    display: flex;
    text-align: center;
    align-items: center;
    padding: 30px;
    width: 256px;
}

.part2-card p
{
    font-style: italic;
    color: #555;
    line-height: 1.5;
    font-size: 0.95rem;
    overflow: hidden;
}


#arrow
{
    display: flex;
    justify-content: space-between;
}

#left-arrow
{
    display: flex;
    background: linear-gradient(90deg, rgb(188, 6, 126), #2babe2);
    border-radius: 50%;
    color: white;
    padding: 10px;
    width: 40px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    top: 230px;
    left: 90px;
    cursor: pointer;
}


#right-arrow
{
    display: flex;
    background: linear-gradient(90deg, rgb(188, 6, 126), #2babe2);
    border-radius: 50%;
    color: white;
    padding: 10px;
    width: 40px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    top: 230px;
    right: 90px;
    cursor: pointer;

}


.feedback-card{
  transition: transform .35s ease, box-shadow .35s ease, filter .35s ease;

}
.feedback-card:hover{
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 10px 24px rgba(0,0,0,.15);
}


.part1-card{
  background: linear-gradient(135deg, #b81c88, #2babe2);
  background-size: 200% 200%;
  transition: background-position .6s ease;
}
.feedback-card:hover .part1-card{
  background-position: 100% 0;
}

#left-arrow,#right-arrow{
  transition: transform .2s ease, box-shadow .25s ease, filter .2s ease;
}
#left-arrow:hover,#right-arrow:hover{ transform: scale(1.06); }
#left-arrow:active,#right-arrow:active{ transform: scale(.94); filter: brightness(.95); }

.pre-project
{

    transition: transform .35s ease, box-shadow .35s ease, filter .35s ease;
}

.pre-project:hover{
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 10px 24px rgba(0,0,0,.15);
}

/* === Hero gallery (Antalya-style) === */
.hero-gallery{
  position: relative;
  margin: 120px auto 80px;
  width: min(1200px, 92vw);
  height: clamp(380px, 55vw, 520px);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  border: 8px solid rgb(188, 6, 126);
  background: #fff;
}

.hero-bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.03);
}

.hero-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(0,0,0,.05) 45%, rgba(0,0,0,0));
}

.hero-badge{
  position: absolute;
  left: 24px; top: 24px;
  background: linear-gradient(90deg, rgb(188, 6, 126), #2babe2);
  color:#fff; font-weight:700; font-size:14px;
  padding:6px 14px; border-radius:999px; 
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
}

/* Thumbnails rail on the right */
.thumb-rail{
  position: absolute;
  right: 20px; bottom: 20px;
  display: grid;
  gap: 10px;
  padding: 10px;
  background: #fff;
  border-radius: 14px;
  border: 3px solid #e9e9ff;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
  max-height: calc(100% - 40px);
  width: 176px;
  overflow: auto;
}
.thumb{
  width: 136px; height: 86px; border-radius: 10px;
  background-size: cover; background-position: center;
  cursor: pointer; border: 3px solid transparent;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, filter .22s ease;
}
.thumb:hover{ transform: translateY(-2px); filter: brightness(1.03); }
.thumb.active{
  border-color: rgb(188, 6, 126);
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
}

/* Bottom chevrons */
.chev{
  position: absolute; bottom: 20px;
  width: 42px; height: 42px; border-radius: 50%;
  border: none; cursor: pointer; font-size: 18px;
  color: #fff;
  background: linear-gradient(90deg, rgb(188, 6, 126), #2babe2);
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
  display: grid; place-items: center;
  transition: transform .18s ease, filter .18s ease;
}
.chev.prev{ left: 20px; }
.chev.next{ left: 70px; }
.chev:hover{ transform: scale(1.06); }
.chev:active{ transform: scale(.94); filter: brightness(.95); }

/* Hide old gallery bits if still present */
.image-scroll, #arrow-pic, #circles, #leftArrow, #rightArrow, #mainImage{ display:none !important; }
.hero-bg{
  background-size: contain !important;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #f8f8fd; /* backdrop behind letterbox bars */
}

.reels a
{
    text-decoration: none;
    color: white;
    font-weight: 800;

}


.reels:hover
{

  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 10px 24px rgba(0,0,0,.15);
}

.reels svg
{
    color: white;
    width: 60px;
    height: 20px;
}

.reels
{
    background: linear-gradient(90deg, rgb(188, 6, 126), #2babe2);
    display: flex;
    align-items: center;
    gap: 0px;
    width: 180px;
    padding: 12px 10px;
    border-radius: 40px;
    transition: transform .35s ease, box-shadow .35s ease, filter .35s ease;
}

@media (max-width:500px)
{


    .feedback-card
    {
        margin-right: 20px;
    }


    #arrow
    {
        gap: 1500px;
    }
  .hero-gallery{
    width: 100%;
    height: clamp(260px, 76vw, 420px);
    margin: 24px auto 16px;
    border-width: 6px;
    margin-left: 400px;
    margin-top: 120px;
  }

  /* Badge smaller + closer to edges */
  .hero-badge{
    left: 12px; top: 12px;
    font-size: 12px;
    padding: 5px 10px;
  }

  /* Thumbs: move to bottom, horizontal scroll */
  .thumb-rail{
    left: 10px; right: 10px; bottom: 10px;
    top: auto;
    width: auto;
    max-height: 110px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(88px, 1fr);
    gap: 8px;
    padding: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    border-width: 2px;
    border-radius: 12px;
  }
  .thumb{ width: 100%; height: 64px; }

  /* Chevrons sit just above the thumb strip */
  .chev{ bottom: 130px; }
  .chev.prev{ left: 12px; }
  .chev.next{ left: 60px; }



#maingrid-header
{
    grid-template-columns: auto;
    gap: 10px;
}

#gridone-header 
{
    margin-left: 0px;

}

#gridone-header h1
{
    width: 385px;
    font-size: 35px;
}

#gridone-header p
{
    width: 360px;
    position: relative;
    bottom: 30px;

}


#grid-2023
{

grid-template-columns: auto;
margin-left: 40px;
}

.gce-title h3
{
    width: 470px;
}

.gce-title
{
    margin-left: 14px;
}

.hero-gallery
{
    margin-left: 40px;
}

#header-review
{
    margin-left: 60px;
}

#review-card
{
    display: grid;
    grid-template-columns: auto ;
    margin-left: 30px;
}

#grid-static
{
    width: 360px;
}

.static-number
{
    width: 110px;
    height: 110px;
    text-align: center;
    flex-direction: column;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.static-domain
{
    width: 320px;
    height: 100px;
}

.static-number p
{
font-size: 12px;
font-weight: 400;

}

.static-one
{
    gap: 0px;
}


.static-number h4
{

width: 50px;
font-weight: 700;
}

.static-number p
{
width: 80px;
}

.pre-project
{
    width: 390px;
}

#arrow
{
    display: flex;
    gap: 35px;
    justify-content: start;
    position: relative;
    top: 900px;
    left: 160px;
}

#left-arrow
{
    position: relative;
    top: 0px;
    left: 0px;
}


#right-arrow
{
    position: relative;
    top: 0px;
    right: 0px;
}

.btn-home
{
    position: absolute;
    left: 15px;
    top: 15px;
    
}

}


@media (min-width:500px) and (max-width:1024px)
{

     #header-review h2
    {
       width: 500px;
    }

    .feedback-card
    {
        margin-right: 20px;
    }


    #arrow
    {
        gap: 1500px;
    }

      .hero-gallery{
    width: 100%;
    height: clamp(260px, 76vw, 420px);
    margin: 24px auto 16px;
    border-width: 6px;
    margin-left: 400px;
    margin-top: 120px;
  }

  /* Badge smaller + closer to edges */
  .hero-badge{
    left: 12px; top: 12px;
    font-size: 12px;
    padding: 5px 10px;
  }

  /* Thumbs: move to bottom, horizontal scroll */
  .thumb-rail{
    left: 10px; right: 10px; bottom: 10px;
    top: auto;
    width: auto;
    max-height: 110px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(88px, 1fr);
    gap: 8px;
    padding: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    border-width: 2px;
    border-radius: 12px;
  }
  .thumb{ width: 100%; height: 64px; }

  /* Chevrons sit just above the thumb strip */
  .chev{ bottom: 130px; }
  .chev.prev{ left: 12px; }
  .chev.next{ left: 60px; }

  #maingrid-header
{

    gap: 90px;
}

#gridone-header 
{
    margin-left: 0px;

}

#gridone-header h1
{
    width: 385px;
    font-size: 35px;
}

#gridone-header p
{
    width: 360px;
    position: relative;
    bottom: 30px;

}


#grid-2023
{


margin-left: 40px;
}

.gce-title h3
{
    width: 470px;
}

.gce-title
{
    margin-left: 14px;
}

.hero-gallery
{
    margin-left: 40px;
}

#header-review
{
    margin-left: 90px;
}

#review-card
{
    display: grid;
    grid-template-columns: auto auto;
    margin-left: 60px;
}

#grid-static
{
    width: 460px;
}

.static-number
{
    width: 180px;
    height: 110px;
    text-align: center;
    flex-direction: column;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.static-domain
{
    width: 415px;
    height: 100px;
}

.static-number p
{
font-size: 12px;
font-weight: 400;

}

.static-one
{
    gap: 0px;
}


.static-number h4
{

width: 50px;
font-weight: 700;
}

.static-number p
{
width: 80px;
}

.pre-project
{
    width: 390px;
}

#arrow
{
    display: flex;
    gap: 35px;
    justify-content: start;
    position: relative;
    top: 480px;
    left: 630px;
}

#left-arrow
{
    position: relative;
    top: 0px;
    left: 0px;
}


#right-arrow
{
    position: relative;
    top: 0px;
    right: 0px;
}



}


/* ==== Header (hero) responsive fixes ==== */
#maingrid-header{
  display:grid;
  grid-template-columns: minmax(0,1fr) minmax(0,520px);
  align-items:center;
  gap: clamp(24px,5vw,60px);
  margin: clamp(24px,6vw,70px) clamp(16px,4vw,53px);
}

#gridone-header{ margin:0; }
#gridone-header h1{
  max-width: 22ch;
  height:auto;
  font-size: clamp(28px,5.2vw,56px);
  line-height:1.08;
  margin-bottom: 30px;
}

.reels
{
    margin-top: 40px;
}

#gridone-header p{
  max-width: 60ch;
  height:auto;
  font-size: clamp(14px,2.2vw,16px);
  margin: 10px 0 0;
}
.summary{ width: fit-content; }
.btn-home{
  position: static;            /* stop overlapping on small screens */
  display:inline-flex;
  width:auto; height:auto;
  padding:8px 14px;
  margin-left:auto;  
        /* keeps it to the right on wide screens */
}
#grid-static{
  width:100%;
  max-width: 520px;

}
.static-number,.static-domain{ width:auto; height:auto; }

/* ====== phones ====== */
@media (max-width:500px){
  #maingrid-header{
    grid-template-columns: 1fr;
    gap: 20px;
  }
  #gridone-header h1{ font-size:23px; max-width: 100%; margin-bottom: 40px;}
  #gridone-header p{ max-width: 100%; font-size:12px }
  .btn-home{ align-self: end; }
  #grid-static{ 
    order: 2;
  width: auto;                /* stop fixed width */
  max-width: 100%;
}    /* comes after the text block */
}



/* ====== tablets (≥500px and ≤1024px) ====== */
@media (min-width:500px) and (max-width:1024px){
  #maingrid-header{
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin: 40px 24px;
  }
  #gridone-header h1{ font-size: clamp(30px,4.4vw,44px); max-width: 26ch; }
  #gridone-header p{ max-width: 54ch; }
  #grid-static{ max-width: 560px; }
}
/* === Base: let cards be fluid === */
#grid-2023{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin: 70px 24px 0;
}
.pre-project{
  width: auto;                /* stop fixed width */
  max-width: 100%;
}

@media (min-width:500px) and (max-width:811px)
{
      #maingrid-header{
    grid-template-columns: 1fr;
    gap: 20px;
  }

  #gridone-header h1{ margin-bottom: 40px;}

}

/* === Phones (≤500px) === */
@media (max-width:500px){
  #grid-2023{
    grid-template-columns: 1fr;     /* single column */
    gap: 20px;
    margin: 32px 16px 0;
    margin-bottom: 120px;
  }
  .pre-project{
    padding: 18px;
  }
  .pre-project h3{ font-size: 20px; }
  .skill-badge span{ display: inline-block; margin: 6px 6px 0 0; }
}

/* === Tablets (≥500px and ≤1024px) === */
@media (min-width:500px) and (max-width:1024px){
  #grid-2023{
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* two equal columns */
    gap: 24px;
    margin: 48px 20px 0;
  }
  .pre-project{
    padding: 20px;
  }
}


/* === GCE 2023 hero gallery (base) === */
.hero-gallery{
  position: relative;
  margin: 120px auto 80px;
  width: min(1200px, 92vw);
  height: clamp(380px, 55vw, 520px);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  border: 8px solid rgb(188, 6, 126);
  background: #fff;
}
.hero-bg{
  position: absolute;
  inset: 0;
  background-size: contain;         /* keeps full photo visible */
  background-repeat: no-repeat;
  background-position: center;
  background-color: #f8f8fd;        /* letterbox backdrop */
}
.hero-overlay{
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(0,0,0,.05) 45%, rgba(0,0,0,0));
}
.hero-badge{
  position: absolute; left: 24px; top: 24px;
  background: linear-gradient(90deg, rgb(188, 6, 126), #2babe2);
  color:#fff; font-weight:700; font-size:14px;
  padding:6px 14px; border-radius:999px; 
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
}

/* Thumbnails rail (desktop/right) */
.thumb-rail{
  position: absolute; right: 20px; bottom: 20px;
  display: grid; gap: 10px; padding: 10px;
  background: #fff; border-radius: 14px; border: 3px solid #e9e9ff;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
  max-height: calc(100% - 40px);
  width: 176px; overflow: auto;
}
.thumb{
  width: 136px; height: 86px; border-radius: 10px;
  background-size: cover; background-position: center;
  cursor: pointer; border: 3px solid transparent;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, filter .22s ease;
}
.thumb:hover{ transform: translateY(-2px); filter: brightness(1.03); }
.thumb.active{ border-color: rgb(188, 6, 126); box-shadow: 0 6px 16px rgba(0,0,0,.18); }

/* Bottom chevrons */
.chev{
  position: absolute; bottom: 20px;
  width: 42px; height: 42px; border-radius: 50%;
  border: none; cursor: pointer; font-size: 18px; color: #fff;
  background: linear-gradient(90deg, rgb(188, 6, 126), #2babe2);
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
  display: grid; place-items: center;
  transition: transform .18s ease, filter .18s ease;
}
.chev.prev{ left: 20px; }
.chev.next{ left: 70px; }
.chev:hover{ transform: scale(1.06); }
.chev:active{ transform: scale(.94); filter: brightness(.95); }

/* ====== phones (≤500px) ====== */
@media (max-width:500px){
  .hero-gallery{
    width: 100%;
    height: clamp(260px, 76vw, 420px);
    margin: 24px auto 16px;
    border-width: 6px;
  }
  .hero-badge{
    left: 12px; top: 12px;
    font-size: 12px; padding: 5px 10px;
  }
  /* Move thumbs to bottom as a horizontal strip */
  .thumb-rail{
    left: 10px; right: 10px; bottom: 10px; top: auto;
    width: auto; max-height: 110px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(88px, 1fr);
    gap: 8px; padding: 8px;
    overflow-x: auto; overflow-y: hidden;
    border-width: 2px; border-radius: 12px;
  }
  .thumb{ width: 100%; height: 64px; }
  /* Chevrons sit just above the thumb strip */
  .chev{ bottom: 130px; }
  .chev.prev{ left: 12px; }
  .chev.next{ left: 60px; }
}

/* ====== tablets (≥500px and ≤1024px) ====== */
@media (min-width:500px) and (max-width:1024px){
  .hero-gallery{
    width: 100%;
    height: clamp(320px, 56vw, 480px);
    margin: 40px auto 20px;
    border-width: 6px;
  }
  /* Keep thumbs bottom & horizontal on tablets too */
  .thumb-rail{
    left: 14px; right: 14px; bottom: 14px; top: auto;
    width: auto; max-height: 120px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(110px, 1fr);
    gap: 10px; padding: 10px;
    overflow-x: auto; overflow-y: hidden;
  }
  .thumb{ width: 100%; height: 74px; }
  .chev{ bottom: 145px; }
  .chev.prev{ left: 18px; }
  .chev.next{ left: 72px; }
}
/* ===== Review section: base responsive cleanup ===== */
#header-review{
  text-align: center;
  margin: 80px auto 0;
}
#line{
  position: static;           /* center with text-align */
  margin: 8px auto 0;
}

#review-card{
  /* grid so cards wrap fluidly */
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 24px;
}

.feedback-card{
  width: auto !important;     /* override fixed 366px */
  min-height: 204px;
  border-radius: 20px;
}

.part2-card{
  width: auto !important;     /* override fixed 256px */
}

/* Arrows: keep in normal flow (no big offsets) */
#arrow{
  position: r;
  max-width: 1200px;
  margin: 22px auto 0;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  gap: 36px;
}
#left-arrow,
#right-arrow{
  position: static;           /* drop the absolute/relative offsets */
}

/* ===== Phones (≤500px) ===== */
@media (max-width:500px){
  #header-review{ margin: 36px auto 0; }
  #review-card{
    grid-template-columns: 1fr;     /* one card per row */
    gap: 16px;
    padding: 0 16px;
    margin-top: 24px;
  }
  .feedback-card{ min-height: 190px; }
  .part2-card{ padding: 18px; }

  #arrow{
    justify-content: center;        /* arrows centered under title */
    gap: 12px;
    margin-top: 12px;
    padding: 0 16px;
  }

  #review
  {
    margin-top: 120px;
  }


}

/* ===== Tablets (≥500px and ≤1024px) ===== */
@media (min-width:500px) and (max-width:1024px){
  #review-card{
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* two columns */
    gap: 20px;
    padding: 0 20px;
    margin-top: 28px;
  }
  #arrow{
    max-width: 940px;
    margin-top: 12px;
    padding: 0 20px;
    justify-content: end;
    position: relative;
    display: none;
  }
}
/* Prevent accidental horizontal scroll as a safety net */
html, body { overflow-x: hidden; }

/* ---- Mobile (≤500px) ---- */
@media (max-width:500px){
  /* Stop giant gaps / offsets */
  #arrow { gap: 12px; position: static; margin: 12px auto 0; }
  #left-arrow, #right-arrow { position: static; }

  /* Center the gallery instead of pushing it off-screen */
  .hero-gallery { margin: 24px auto 16px; }

  /* Keep review cards inside the viewport */
  #review-card { margin-left: 0; padding: 0 16px; }

  /* Make fixed-width blocks fluid */
  #grid-static { width: auto; max-width: 100%; }
  .pre-project { width: auto; max-width: 100%; }
}

/* ---- Tablet (500–1024px) ---- */
@media (min-width:500px) and (max-width:1024px){
  #arrow { gap: 16px; position: static; margin: 12px auto 0; }
  #left-arrow, #right-arrow { position: static; }
  .hero-gallery { margin: 40px auto 20px; }
  #review-card { margin-left: 0; padding: 0 20px; }
  #grid-static { width: auto; max-width: 560px; }
}
/* === Achievements title area (base clean-up) === */
#title-achevment{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap: 14px;
  padding: 12px 20px;
  margin-top: clamp(60px, 12vw, 220px); /* shrink on small screens */
}
.gce-title{ margin-left: 0; }
.gce-year{ 
  font-weight:700; 
  padding: 6px 12px; 
  border-radius: 999px; 
}
/* let the heading be fluid instead of fixed width */
.gce-title h3{
  margin: 0;
  width: auto;
  max-width: 100%;
  font-size: clamp(22px, 4.4vw, 32px);
  line-height: 1.15;
}

/* === Phones (≤500px) === */
@media (max-width:500px){
  #title-achevment{
    flex-direction: column;           /* badge above the title */
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
    margin-top: 36px;
  }
  .gce-year{
    font-size: 12px;
    padding: 5px 10px;
    margin-bottom: 4px;               /* small space above h3 */
  }
  .gce-title h3{
    font-size: clamp(20px, 7.2vw, 26px);
  }
}

/* === Tablets (500–1024px) === */
@media (min-width:500px) and (max-width:1024px){
  #title-achevment{
    flex-direction: row;              /* keep in one line */
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    margin-top: 60px;
  }
  .gce-title h3{
    font-size: clamp(24px, 3.2vw, 28px);
  }
}
