/* ===================== */

/* Header section */

.header__logo {
    position: absolute;
    left: 26px;
    top: 20px;
    z-index: 1000;
    width: 220px;
    max-width: 100%;
}

.header__logo a:hover {
    opacity: 0.8;
}

/* Hero section */
.hero:before {
    content: '';
    background: url(../images/hero-top.png) no-repeat center top;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    /* z-index: -1; */
    background-size: cover;
    width: 100%;
    height: 400px;
}
.hero:after {
    content: '';
    background: url(../images/hero-bottom.png) no-repeat center top;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    /* z-index: -1; */
    background-size: cover;
    width: 100%;
    height: 1100px;
}
.hero {
    background: var(--color-white);
    text-align: center;
    margin: 0 auto;
    /* height: 2350px; */
    padding-bottom: 100px;
    position: relative;
    background-size: contain;
}

.hero__content-image {
    width: 100%;
    margin:0 auto;
    max-width: 100%;
    position: relative;
    z-index: -1;
}

.hero__date-image {
    width: 50%;
    margin: 0 auto 0;
    max-width: 100%;
    position: absolute;
    bottom: 15%;
    left: 0;
    right: 0;
    z-index: 10;
}

.ranking-summary__header {
    width: 400px;
    margin: 0 auto 20px;
    max-width: 100%;
}

.ranking-summary__progress-bar {
    position: relative;
    height: 30px;
    background: #f2f2f2;
    border: 3px solid #aaa;
    border-radius: 20px;
    overflow: hidden;
    width: 80%;
    margin: 0 auto;
    max-width: 100%;
}

.ranking-summary__progress-fill {
    height: 100%;
    background: red;
    /* width: 0%; */
    transition: width 0.5s ease;
    border-radius: 20px;
    border: 2px solid #fff;
}

.ranking-summary__progress-percent {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
}
.ranking-summary__progress-label {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

.hero__wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.hero_btn {
    width: 300px;
}

.hero__holder {
    position: relative;
    z-index: 200;
}

/* .hero__content {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    margin: 0 auto;
} */

.hero__text {
    text-align: center;
    margin: 0 auto;
    position: relative;
}

.hero__banner img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.hero__title {
    font-size: 24px;
    font-weight: bold;
}

.hero__duration {
    font-size: 16px;
    color: #555;
}

.hero__duration span {
    display: inline-block;
    margin: 0 6px;
}

.hero__duration strong {
    font-weight: bold;
    color: #0077c2;
    font-size: 25px;
}

.hero__btns {
    position: relative;
    z-index: 10;
}

.hero__buttons {
    display: flex;
    /* 0 */
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
}

.hero-btn {
    width: 300px;
    display: block;
    margin: 40px auto 0;
    max-width: 100%;
}

.hero-btn:hover {
    opacity: 0.8;
}

.hero__buttons li a:hover,.hero__buttons li:hover {
    opacity: 0.8;
}
.hero__buttons li {
    width: 30%;
}
.hero__buttons li {
    display: block;
}
.hero__buttons li img {
    width: 100%;
}

.hero__button {
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.hero__button--yellow {
    background-color: #ffeb3b;
}

.hero__button--yellow:hover {
    background-color: #fdd835;
}

.hero__entry {
    margin-top: 30px;
    font-size: 16px;
    padding: 12px 28px;
}

/* Ranking tab styles */

.ranking-area {
    background: #FBF0CF url(../images/ranking-area-bg.png) no-repeat center top;
    position:relative;
    background-size: cover;
    padding: 120px 0 350px;
    height: 1200px;
}

.ranking-area:after {
    content: '';
    background: url(../images/guide-bg-overlay.png) no-repeat center top;
    background-size: auto;
    width: 100%;
    height: 360px;
    position: absolute;
    bottom: 0;
    left: 0;
    background-size: cover;
    z-index: 1;
}

.ranking-area__header {
    width: 400px;
    margin: 0 auto 20px;
    max-width: 100%;
}

.ranking-area__content {
    background: var(--color-white);
    padding: 50px;
    border-radius: 15px;
    position: relative;
    z-index: 10;
}

.ranking-area__tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.ranking-area__tab {
    background-color: #c1c1c1;
    color: var(--color-white);
    border: none;
    border-radius: 999px;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    line-height: 100%;
    width: 100%;
    max-width: 30%;
    font-size: 16px;
}

.ranking-area__tab:hover {
    background-color: #c4c4c4;
}

.ranking-area__tab--active {
    background-color: #00bcd4;
    color: #fff;
}

.ranking-area__panel {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
    background: var(--color-accent2);
    border-radius: 10px;
    padding:20px;
}

.ranking-area__panel--active {
    display: block;
}

.ranking-area__map {
    width: 45%;
}


.ranking-area__highlight {
    color:var(--color-accent1);
    font-weight: bold;
}
.ranking-area__formula {
    color: #7c7c7c;
}
 
.ranking-area__left-holder {
    width: 50%;
}

/* Ranking chart start */

.ranking-area__table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.ranking-area__table {
    width: 100%;
    border-collapse: collapse;
    background: #dff6fa;
    border-radius: 8px;
    overflow: hidden;
    font-size: 16px;
}

.ranking-area__table th {
    font-size: 20px;
}


.ranking-area__table th,
.ranking-area__table td {
    padding: 12px;
    text-align: center;
    font-weight: bold;
    width: 50%;
}

.ranking-area__table tr td:first-child {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    width: 100%;
}

.ranking-area__table thead {
    background-color: var(--color-main);
    color: var(--color-white);
}

.ranking-area__table tr:nth-child(even) {
    background-color: #c1e9f2;
}

.ranking-area__table-body img {
    height: 30px;
    margin-left: -30px;
    margin-right: 10px;
}

/* Ranking chart end */

 
/* Ranking list styling by rank */
.ranking-area__chart-list {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-left: 30px;
}

.ranking-area__chart-container {
    display: flex;
    justify-content: space-between;
    /* align-items: center; */
}

.ranking-area__chart-table {
    width: 100%;
    margin-top: 20px;
    position: relative;
}

.ranking-area__chart-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: bold;
    position: relative;
}

.ranking-area__top {
    position: absolute;
    left: -5px;
    top:-1px;
}

.ranking-area__top img {
    width: 25px;
    height: auto;
}

.ranking-area__digit {
    min-width: 55px;
}

.ranking-area__label {
    flex-grow: 1;
    padding: 2px 12px;
    margin: 0 10px;
    text-align: left;
}

/* Define a rule for each rank (1–10) */
.ranking-area__label[data-rank="1"] { background: #1e50a2; color: #fff; }
.ranking-area__label[data-rank="2"] { background: #00a3de; color: #fff; }
.ranking-area__label[data-rank="3"] { background: #0a8a2a; color: #fff; }
.ranking-area__label[data-rank="4"] { background: #b6cd00; color: #000; }
.ranking-area__label[data-rank="5"] { background: #ffc200; color: #000; }
.ranking-area__label[data-rank="6"] { background: #ffa5e0; color: #000; }
.ranking-area__label[data-rank="7"] { background: #ff8800; color: #000; }
.ranking-area__label[data-rank="8"] { background: #f74485; color: #fff; }
.ranking-area__label[data-rank="9"] { background: #f50000; color: #fff; }
.ranking-area__label[data-rank="10"] { background: #000000; color: #fff; }

/* Fallback if someone forgets data-rank */
.ranking-area__label { background: #ccc; color: #000; }


.ranking-area__bar {
    height: 24px;
    /* width: var(--pct, 100%); */
    border-radius: 4px;
    background-color: currentColor;
    margin: 0 8px;
    flex-grow: 1;
    transition: width 0.3s ease-in-out;
}

.ranking-area__label {
    padding: 0 12px;
    font-weight: bold;
    color: white;
    display: inline-block;
    background-color: #999;
    min-width: 100px;
    text-align: left;
}

.ranking-area__count {
    min-width: 50px;
    text-align: right;
}

.ranking-area__bar {
    display: inline-block;
    height: 28px;
    line-height: 28px;
    font-weight: bold;
    border-radius: 4px;
    margin: 0 8px;
}

/* label text inside each bar */
.ranking-area__bar-label {
    color: var(--color-white);
    font-size: 0.8em;
    white-space: nowrap;
    text-shadow: 0 2px 3px rgb(0, 0, 0);
    position: absolute;
    left: 5%;
    top: 48%;
    line-height: 100%;
    transform: translateY(-50%);
}

/* 1. Wrapper to position our fake arrow */
.custom-select-wrapper {
    position: relative;
    display: inline-block;
    width: 160px;
    /* adjust as needed */
}

/* 2. Style the select itself */
.custom-select-wrapper select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    padding: 8px 12px;
    padding-right: 32px;
    border-radius: 4px;
    background: var(--color-white);
    font-size: 1em;
    cursor: pointer;
    transition: border-color 0.2s;
    margin: 10px auto;
    line-height: 100%;
    color: #000;
    font-family: var(--font-noto-sans);
    border: 1px solid #ccc;
}

/* 3. On focus, highlight border */
.custom-select-wrapper select:focus {
    outline: none;
    border-color: #0077cc;
}

/* 4. Position and style the fake arrow */
.custom-select-wrapper .custom-select-arrow {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    font-size: 1em;
    pointer-events: none;
    color: #000;
}

/* 5. Hide the native arrow in IE10+ */
.custom-select-wrapper select::-ms-expand {
    display: none;
}




.ranking-area__chart-individual-area,
.ranking-area__chart-area {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.ranking-area__item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.ranking-area__bar {
    flex: 1;
    background-color: var(--color-white);
    height: 25px;
    margin: 0 8px;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.ranking-area__bar-fill {
    height: 100%;
    width: 0;
    border-radius: 5px 0 0 5px;
    transition: width 0.4s ease;
}

.big-rank {
    font-size: 1.4em;
    font-weight: bold;
    vertical-align: middle;
}

.table-medal-icon {
    margin-right: 4px;
    vertical-align: middle;
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Ranking Area End */

/* ===================== */

/* Layout for ranking-summary */

.ranking-summary {
    margin-top: 100px;
}

.ranking-summary__wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
}

.ranking-summary__header:before {
    content: '';
    background: url(../images/ranking-summary-ttl-left.png) no-repeat;
    display: block;
    height: 100%;
    width: 100px;
    position: absolute;
    top: 0;
    left: -30%;
    z-index: 1;
    background-size: contain;
}
.ranking-summary__header:after {
    content: '';
    background: url(../images/ranking-summary-ttl-right.png) no-repeat;
    display: block;
    height: 100%;
    width: 100px;
    position: absolute;
    top: 0;
    right: -30%;
    z-index: 1;
    background-size: contain;
}

.ranking-summary__header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    display: block;
    max-width: 100%;
}

.ranking-summary__lessons {
    text-align: center;
    margin-bottom: 70px;
}

.ranking-summary__lessons-text {
    font-size:25px;
    margin-bottom: 10px;
}

.ranking-summary__content:before {
    content: '';
    background: url(../images/hero-kid.png) no-repeat center bottom/contain;
    position: absolute;
    right: -70px;
    /* top: -1200px; */
    bottom: 60%;
    width: calc(100% - 200px);
    height: 1442px;
    z-index: -1;
}

.ranking-summary__content {
    background: var(--color-white);
    padding: 40px;
    border-radius: 35px;
    position: relative;
}

.ranking-summary__results {
    display: flex;
    gap: 20px;
    justify-content: space-around;
    align-items: stretch;
}

.ranking-summary__box:before {
    content: '';
    background: url(../images/crown-icon.png) no-repeat;
    margin: 0 auto;
    position: absolute;
    display: block;
    text-align: center;
    right: 0;
    left: 0;
    top: -70px;
    width: 100px;
    height: 100%;
    background-size: contain;
}
.ranking-summary__box {
    position: relative;
    flex: 1;
    /* min-width: 200px; */
    max-width: 45%;
    background-color: #f0f8f4;
    border-radius: 20px;
    text-align: center;
    
}

/* Crown */
.ranking-summary__crown {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 48px;
    line-height: 1;
}

/* Header label */
.ranking-summary__label {
    position: relative;
    display: block;
    background: #007acc;
    color: #fff;
    font-size: 25px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    overflow: hidden;
    z-index: 1;
}

/* “Shine” overlay on header */
.ranking-summary__label::after {
    content: "";
    position: absolute;
    top: -20px;
    left: -50%;
    width: 200%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    clip-path: ellipse(25% 50% at 50% 50%);
    right: 0;
    margin: 0 auto;
    z-index: -1;
}

/* The select area in the second card */
.ranking-summary__select {
    margin: 12px 0;
    font-size: 14px;
    color: #0099cc;
}

.ranking-summary__select label {
    margin-right: 6px;
}

.ranking-summary__select select {
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Rank area */
.ranking-summary__rank {
    font-size: 24px;
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    position:relative;
    z-index:1;
}

.ranking-summary__rank-value--left {
    font-size: 50px;
    font-weight: normal;
}

.ranking-summary__rank-value--right {
    font-size: 50px;
    font-weight: normal;
}

.ranking-location {
    font-size: 25px;
    color: var(--color-accent1);
    text-align: left;
    padding: 5px 10px 0;
    position: relative;
    z-index: 1;
}

.ranking-summary__box--individual .ranking-summary__rank{
    min-height: 170px;
}

.ranking-location span {
    color: var(--color-gray);
    font-size: 20px;
}

.ranking-summary__rank-medal {
    font-size: 36px;
}

.ranking-summary__rank-medal img {
    width: 60px;
    display: block;
}

span.block-rank {
    font-weight: bold;
    font-size: 80px;
    line-height: 100%;
}

span.solo-rank {
    font-weight: bold;
    font-size: 80px;
    line-height: 100%;
}

/* Ranking Summary End */

/* ===================== */
/* Layout for guide */

.guide {
    background: url(../images/guide-background.png) no-repeat center top;
    background-size: cover;
    padding: 100px 0;
    /* height: 1200px; */
    height: auto;
}

.guide__content {
    background: var(--color-white);
    padding: 50px 25px;
    border-radius: 15px;
}

.guide__header {
    width: 400px;
    margin: 0 auto 20px;
    max-width: 100%;
}

.guide__steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.guide__step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    justify-content: center;
}

.guide__step-head {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 20px;
}

ul.guide__steps li .guide__step.guide__step-number {position: relative;}
ul.guide__steps li:not(:last-child) .guide__step-number::after {
    position: absolute;
    content: "";
    left: 0;
    right: 0;
    margin: 0 auto;
    background: #e0f7ff;
    width: 3px;
    height: 100%;
    text-align: center;
    top:70px;
}

.guide__step-number {
    position: relative;
    top:-10px;
}

.guide__step-number img {
    display: block;
    width: 60px;
    height: auto;
}

.guide__step-body {
    flex: 1;
}

.guide__step-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.guide__step-description {
    font-size: 15px;
}

.guide__step-text:before {
 content: "";
  position: absolute;
  top: 50%;        
  left: -10px;              
  transform: translateY(-50%);
  border-width: 10px 12px 10px 0;
  border-style: solid;
  border-color: transparent #e0f7ff transparent transparent;
}

.guide__step-text-sub {
    margin: 30px auto;
}

.guide__step-text {
    position: relative;
    background: #e0f7ff;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 30px;
    width: 650px;
}

.guide__buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    justify-content: center;
}

.guide__button {
    padding: 8px 16px;
    background: #ffeb3b;
    border: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease;
}

.guide__buttons a {
    width: 300px;
    display: block;
    max-width: 100%;
}

.guide__buttons a:hover {
    opacity: 0.8;
}

/* ===================== */
/* Layout for campaign */
.campaign {
    background: var(--color-main);
    padding:100px 0;
}

.campaign__content {
    background: var(--color-white);
    padding: 50px 5%;
    border-radius: 40px;
    position: relative;
}

.campaign__header {
    text-align: center;
}

.campaign__header {
    width: 400px;
    margin:0 auto 20px;
    max-width: 100%;
}

.campaign__section {
    margin-bottom: 40px;
}

.campaign__section:last-of-type {
    margin-bottom: 0;
}
 
.campaign__heading {
    font-size: 25px;
    margin-bottom: 10px;
    color: var(--color-white);
    background: #00C5ED;
    text-align: center;
    padding:8px;
    font-weight:normal;
}

.campaign__list {
    list-style: disc inside;
    padding-left: 1em;
}

.campaign__list--notes {
    list-style: disc inside;
}

.campaign__list li {
    line-height: 1.5;
}

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

.campaign__subheading {
    margin-bottom: 5px;
}

/* ===================== */
/* Layout for footer */

.footer:before {
    content: '';
    background: url(../images/footer-vector1.png) no-repeat bottom center/contain;
    position: absolute;
    left: 20px;
    top: auto;
    width: 400px;
    height: 400px;
    bottom: 20px;
}
.footer::after {
    content: '';
    background: url(../images/footer-vector2.png) no-repeat bottom center/contain;
    position: absolute;
    right: 20px;
    top: auto;
    width: 400px;
    height: 400px;
    bottom: 20px;
}
.footer {
    background: var(--color-white);
    height:400px;
    position: relative;
    padding:80px 0;
    box-sizing: border-box;
    overflow:hidden
}

.footer__wrapper {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer__title {
    font-size: 35px;
    font-weight: bold;
    color: var(--color-main);
}

.footer__text {
    font-size: 20px;
    color: var(--color-black);
    position: relative;
    z-index: 10;
}

.footer__socials {
    display: flex;
    justify-content: center;
    gap: 40px;
    position: relative;
    z-index: 10;
}

.footer__socials li a{
    width:80px;
    display: block;
}
.footer__socials li a:hover {
    opacity: 0.8;
}


.footer__social {
    width: 32px;
    height: 32px;
    background-size: contain;
    display: inline-block;
    background-repeat: no-repeat;
    background-position: center;
}
