/* =========================================================================
   Madak 2 winners section (index.html)
   Tab + candidate-card styles copied from MadakInternal.css / candidates50.html
   without their page-level rules (label reset, .container width, banner).
   ========================================================================= */
.madak-winners{background:#fff;padding:3rem 0 2rem}
.madak-winners .tabs label{margin-bottom:0}
.madak-winners .tabs .content section h3{font-size:1.25rem}
/* same effective width as candidates50 (.container:not(.nav-container) 99% beats .newcontainer there) */
@media (min-width:576px){.madak-winners .container.newcontainer{max-width:99%}}

.tabs {
  /*left: 50%;
	width: 70%;
	height: 250px;
	transform: translateX(-50%);
	min-width: 240px;
  position: relative;
  background: white;
  padding: 50px;
  padding-bottom: 80px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  border-radius: 5px;*/
	position: relative
}
.names{font-size: 15px}
.names > span {
       border: 1px solid #c4c4c4;
    display: block;
    padding: 12px 10px 12px 45px;
    margin-bottom: 20px;
    border-radius: 30px;
}
.names > span:hover{
	background: #f0f0f0
}
.names > span img{
    float: left;
    margin-top: -7px;
    margin-left: -38px;
    height: 34px;
}
.namesWimg{
	text-align: center;
	
}
.namesWimg > span{
	border: 0px;
	text-align: center;
	padding: 12px 10px;
	border: 1px solid #c4c4c4;
	    border-radius: 12px;
	    height: calc(100% - 20px);
    margin: 14px 8px;
	    transition: all ease 1s;
}
.namesWimg > span img{
    float: none;
	max-width: 50%;
	height: auto;
	display: block;
	margin: auto;
	
}
.CandidateName{
	padding-top: 12px;
    display: block;
}
.Candidatecountry{
	display: block;
	    color: #717171;
    font-size: 12px;
    margin-top: 10px;
}
.tabs:before {
    height: 4px;
    position: absolute;
    background: #eeeeee;
    content: "";
    top: 132px;
    width: 100%;
	border-right: 100px solid #fff;
    border-left: 100px solid #fff;
}
.BestWishes{
	position: relative
}
.BestWishes:before {
       height: 2px;
    position: absolute;
    background: #eeeeee;
    content: "";
    top: -25px;
    width: 60%;
    border-right: 100px solid #fff;
    border-left: 100px solid #fff;
    right: 20%;
}
.tabs input[name="tab-control"] {
  display: none;
}
.tabs ul {
	    height: 125px;
  list-style-type: none;
  padding-left: 0;
  display: flex;
  flex-direction: row;
  margin-bottom: 7px !important;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
	width: 60%;
    margin: auto;
}
.tabs ul li {
     box-sizing: border-box;
    flex: 1;
    width: 25%;
    padding: 10px 10px;
    background: #f7f7f7;
    margin: 0 2%;
    border-radius: 9px;
}
.tabs ul li label {
  transition: all 0.3s ease-in-out;
  color: #929daf;
  padding: 5px auto;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
  -webkit-touch-callout: none;
}

.tabs ul li label svg {
  fill: #929daf;
  height: 1.2em;
  vertical-align: bottom;
  margin-right: -0.2em;
  transition: all 0.2s ease-in-out;
}
.tabIcontxt1{color: #000 ;font-size: 14px}
.tabIcontxt2{font-size: 16px;font-weight: bold}
.tabIcontxt3{font-size: 12px}
.tabIcon{
	float: right;
	margin-left: 10px;
	margin-top:6px
}
.tabs ul li label:hover,
.tabs ul li label:focus,
.tabs ul li label:active {
  outline: 0;
  color: #bec5cf;
}
.tabs ul li label:hover svg,
.tabs ul li label:focus svg,
.tabs ul li label:active svg {
  fill: #bec5cf;
}
.tabs .slider {
  position: relative;
  width: 17.3%;
  transition: all 0.33s cubic-bezier(0.38, 0.8, 0.32, 1.07);
	    margin-right: 22%;
}
.tabs input[name="tab-control"]:nth-of-type(1):checked ~ ul > li:nth-child(1) {
	background: #efecfc
}
.tabs input[name="tab-control"]:nth-of-type(1):checked ~ .slider .indicator{
	    background: #7332e7;
} 
.tabs input[name="tab-control"]:nth-of-type(2):checked ~ ul > li:nth-child(2) {
	background: #e8f6f3
}
.tabs input[name="tab-control"]:nth-of-type(2):checked ~ .slider .indicator{
	    background: #51d762;
} 
.tabs input[name="tab-control"]:nth-of-type(2):checked ~ .slider {
	    margin-right: 24.5%;
} 
.tabs input[name="tab-control"]:nth-of-type(3):checked ~ ul > li:nth-child(3) {
	background: #ebf3fa
}
.tabs input[name="tab-control"]:nth-of-type(3):checked ~ .slider .indicator{
	    background: #1473db;
} 
.tabs input[name="tab-control"]:nth-of-type(3):checked ~ .slider {
	    margin-right: 27%;
} 
.tabs .slider .indicator {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  height: 4px;
  background: #428bff;
  border-radius: 1px;
}
.tabs .content {
  margin-top: 45px;
}
.tabs .content section {
  display: none;
  animation-name: content;
  animation-direction: normal;
  animation-duration: 0.3s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: 1;
  line-height: 1.4;
}
.tabs .content section h2 {
  color: #428bff;
  display: none;
}
.tabs .content section h2::after {
  content: "";
  position: relative;
  display: block;
  width: 30px;
  height: 3px;
  background: #428bff;
  margin-top: 5px;
  left: 1px;
}
.tabs
  input[name="tab-control"]:nth-of-type(1):checked
  ~ ul
  > li:nth-child(1)
  > label {
  cursor: default;
  color: #428bff;
}
.tabs
  input[name="tab-control"]:nth-of-type(1):checked
  ~ ul
  > li:nth-child(1)
  > label
  svg {
  fill: #428bff;
}

.tabs input[name="tab-control"]:nth-of-type(1):checked ~ .slider {
  transform: translateX(0%);
}
.tabs
  input[name="tab-control"]:nth-of-type(1):checked
  ~ .content
  > section:nth-child(1) {
  display: block;
}
.tabs
  input[name="tab-control"]:nth-of-type(2):checked
  ~ ul
  > li:nth-child(2)
  > label {
  cursor: default;
  color: #428bff;
}
.tabs
  input[name="tab-control"]:nth-of-type(2):checked
  ~ ul
  > li:nth-child(2)
  > label
  svg {
  fill: #428bff;
}

.tabs input[name="tab-control"]:nth-of-type(2):checked ~ .slider {
  transform: translateX(-100%);
}
.tabs
  input[name="tab-control"]:nth-of-type(2):checked
  ~ .content
  > section:nth-child(2) {
  display: block;
}
.tabs
  input[name="tab-control"]:nth-of-type(3):checked
  ~ ul
  > li:nth-child(3)
  > label {
  cursor: default;
  color: #428bff;
}
.tabs
  input[name="tab-control"]:nth-of-type(3):checked
  ~ ul
  > li:nth-child(3)
  > label
  svg {
  fill: #428bff;
}
@media (max-width: 600px) {
  .tabIcon {
    float: none;
}
}
.tabs input[name="tab-control"]:nth-of-type(3):checked ~ .slider {
  transform: translateX(-200%);
}
.tabs
  input[name="tab-control"]:nth-of-type(3):checked
  ~ .content
  > section:nth-child(3) {
  display: block;
}
.tabs
  input[name="tab-control"]:nth-of-type(4):checked
  ~ ul
  > li:nth-child(4)
  > label {
  cursor: default;
  color: #428bff;
}
.tabs
  input[name="tab-control"]:nth-of-type(4):checked
  ~ ul
  > li:nth-child(4)
  > label
  svg {
  fill: #428bff;
}
@media (max-width: 600px) {
  .tabs
    input[name="tab-control"]:nth-of-type(4):checked
    ~ ul
    > li:nth-child(4)
    > label {
    background: rgba(0, 0, 0, 0.08);
  }
}
.tabs input[name="tab-control"]:nth-of-type(4):checked ~ .slider {
  transform: translateX(-300%);
}
.tabs
  input[name="tab-control"]:nth-of-type(4):checked
  ~ .content
  > section:nth-child(4) {
  display: block;
}
@keyframes content {
  from {
    opacity: 0;
    transform: translateY(5%);
  }
  to {
    opacity: 1;
    transform: translateY(0%);
  }
}
@media (max-width: 1000px) {
  .tabs ul li label {
    white-space: initial;
	          text-align: center;
  }
  .tabs ul li label br {
    display: initial;
  }
  .tabs ul li label svg {
    height: 1.5em;
  }
	
}
@media (max-width: 600px) {
  .tabs ul li label {
    padding: 5px;
    border-radius: 5px;
  }
  .tabs ul li label span {
    display: none;
  }
  .tabs .slider {
    display: none;
  }
  .tabs .content {
    margin-top: 20px;
  }
  .tabs .content section h2 {
    display: block;
	  margin: 36px 15px;
  }
	.tabs .content section:nth-child(1) h2{
		color: #6a51c5;
	}
	.tabs .content section:nth-child(1) h2::after{
		background: #6a51c5;
	}
	.tabs .content section:nth-child(2) h2{
		color: #2dcda9;
	}
	.tabs .content section:nth-child(2) h2::after{
		background: #2dcda9;
	}
	.tabs .content section:nth-child(3) h2{
		color: #3482fb;
	}
	.tabs .content section:nth-child(3) h2::after{
		background: #3482fb;
	}
}
@media (max-width: 1400px){
	.tabs ul {
    width: 75%;
}
	.tabs .slider {
    width: 21.3%;
    margin-right: 15%;
}
	.tabs input[name="tab-control"]:nth-of-type(2):checked ~ .slider {
	    margin-right: 18.5%;
} 
.tabs input[name="tab-control"]:nth-of-type(3):checked ~ .slider {
	    margin-right: 22%;
} 
}
@media (max-width: 1000px){
	.tabs ul {
    width: 100%;
}
	.tabs .slider {
    width: 33.3%;
    margin-right: 0%;
}
	.tabs input[name="tab-control"]:nth-of-type(2):checked ~ .slider {
	    margin-right: 0%;
} 
.tabs input[name="tab-control"]:nth-of-type(3):checked ~ .slider {
	    margin-right: 0%;
} 
	.tabs:before {

    border-right: 0px solid #fff;
    border-left: 0px solid #fff;
}
}
@media (min-width: 576px) {
  .newcontainer { max-width: 85%; }
}
@media (min-width: 480px) and (max-width: 1000px){
	.namesWimg > span img {
    max-width: 40%;

}
}

/* winner photo ring per track (from candidates50.html) */
/* تنسيق صورة المرشح */
.namesWimg > span > img:first-child {
    border: 4px solid;
    border-radius: 50%;
    box-sizing: border-box;
    object-fit: cover;
}

/* مسار الفنون */
.madak-winners .content section:nth-of-type(1) .namesWimg > span > img:first-child {
    border-color: #7332e7;
}

/* مسار العلوم */
.madak-winners .content section:nth-of-type(2) .namesWimg > span > img:first-child {
    border-color: #51d762;
}

/* مسار الهندسة */
.madak-winners .content section:nth-of-type(3) .namesWimg > span > img:first-child {
    border-color: #1473db;
}

.Candidatecountry {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.Candidatecountry img {
    width: 24px !important;
    height: auto !important;
    flex: 0 0 auto;
}

/* =========================================================================
   index.html banner: buttons were cut off on short screens
   theme-rtl sets .MadakBanner{height:115vh|125vh;overflow:hidden} and
   .Bannertxt{height:45vh}; when content is taller the buttons get clipped.
   Keep the same minimum height but let the banner grow with its content.
   ========================================================================= */
.MadakBanner{height:auto !important}
.Bannertxt{height:auto;padding-bottom:2.5rem}

/* =========================================================================
   index.html banner: Earth + space station strip, same as the internal
   pages' .MadakBanner-internal-Bottom (MadakInternal.css). That box is
   400px tall with the Earth starting at 290px; here only its bottom 200px
   is drawn (positions shifted up by 200px), pinned to the banner's bottom.
   Own keyframe name, because theme-rtl redefines "background-move" inside
   media queries with different positions.
   ========================================================================= */
.MadakBanner{display:flex;flex-direction:column}
/* content sits above the Earth strip; the strip slides up under the button */
.MadakBanner > .Bannertxt{flex:0 0 auto;position:relative;z-index:1}
.MadakBanner-earth{
    flex:0 0 auto;margin-top:-170px;height:200px;width:100%;position:relative;z-index:0;
    background:linear-gradient(360deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,0) 100%), url(EarthBG.webp), url(SpaceStation.webp);
    background-repeat:no-repeat,no-repeat,no-repeat;
    background-size:100%, auto, 180px;
    animation:madak-earth-move 8s infinite linear alternate;
}
@keyframes madak-earth-move{
    0%  {background-position:center center, center top 90px, left 290px top 90px}
    50% {background-position:center center, center top 80px, left 270px top 80px}
    100%{background-position:center center, center top 70px, left 290px top 110px}
}
@media (max-width:575px){.MadakBanner-earth{background-size:100%, 500px, 190px}}
@media (prefers-reduced-motion:reduce){.MadakBanner-earth{animation:none;background-position:center center, center top 80px, left 280px top 90px}}
/* registration note sits over the Earth: keep it readable */
.MadakBanner-note{text-shadow:0 1px 4px rgba(0,0,0,.9)}
/* strategic-partner logo (Sponsors.svg): 100px on phones (theme sets .Bannertxt img{width:200px} at <=575px) */
@media (max-width:575px){.Bannertxt img[src$="Sponsors.svg"]{width:100px}}
