/* ===========================
   RESET & BASE
   =========================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #0d0d0d;
    color: #ffffff;
    line-height: 1.5;
    overflow-x: hidden;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    position: relative;
}

img {
    display: block;
    max-width: 100%;
}

/* ===========================
   HEADER
   =========================== */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.6rem 1rem;
    background-color: #000000;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.2px;
    color: #ffffff;
}

.logo-icon {
    width: 24px;
    height: 24px;
    background-color: #e30000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.lang-selector {
    position: relative;
    display: flex;
    align-items: center;
    gap: 3px;
    background-color: #ffffff;
    color: #111111;
    padding: 0.22rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.lang-selector:hover {
    background-color: #e5e5e5;
}

.lang-selector svg {
    transition: transform 0.2s ease;
}

.lang-selector.open svg {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background-color: #111111;
    border: 1px solid #222222;
    border-radius: 8px;
    padding: 0.25rem 0;
    min-width: 70px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
}

.lang-dropdown.show {
    display: flex;
}

.lang-option {
    padding: 0.35rem 0.8rem;
    color: #888888;
    font-weight: 700;
    font-size: 0.72rem;
    text-align: center;
    transition: all 0.2s ease;
}

.lang-option:hover {
    color: #ffffff;
    background-color: #1c1c1c;
}

.lang-option.active {
    color: #e30000;
    background-color: rgba(227, 0, 0, 0.08);
}

/* ===========================
   MULTI-LANGUAGE VISIBILITY SYSTEM
   =========================== */
.only-fr,
.only-ar {
    display: none !important;
}

body.lang-fr .only-fr {
    display: block !important;
}

body.lang-ar .only-ar {
    display: block !important;
}

/* Special inline rules for text spans inside buttons */
body.lang-fr span.only-fr {
    display: inline-block !important;
}

body.lang-ar span.only-ar {
    display: inline-block !important;
}

/* ===========================
   HERO SECTION (Stadium Background)
   =========================== */
.hero {
    position: relative;
    width: 100%;
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-top: 0rem;
    /* space below header logo */
    overflow: visible;
    /* let the phone overflow down into action section */
    z-index: 10;
}

/* ===========================
   PHONE CONTAINER & IMAGE
   =========================== */
.phone-container {
    width: 85%;
    max-width: 290px;
    position: relative;
    z-index: 15;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    margin-bottom: 5rem;
    margin-top: 2rem;
}

.card-top {
    position: relative;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    z-index: 10;
}

.phone-img {
    width: 100%;
    height: auto;
    display: block;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.top-text-wrapper {
    position: absolute;
    top: 12%;
    left: 0;
    right: 0;
    text-align: center;
    padding: 0 15px;
    z-index: 5;
}

.top-text-wrapper h2 {
    color: #0c2c4a;
    font-size: 1.15rem;
    font-weight: 900;
    line-height: 1.25;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
}

.confirm-button-container {
    position: absolute;
    bottom: 12%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 0 24px;
    z-index: 5;
}

.input-box {
    background-color: #ffffff;
    color: #111111;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    padding: 12px 10px;
    border-radius: 30px;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-overlay-confirm {
    background: linear-gradient(90deg, #4CAF50, #1976D2);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 12px 10px;
    border: none;
    border-radius: 30px;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-overlay-confirm:hover {
    transform: scale(1.02);
}

.notch {
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 14px solid #000000;
    z-index: 10;
}

/* ===========================
   ICONS SECTION
   =========================== */
.icons {
    background-color: #ffffff;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    padding: 0px 10px 10px;
    width: 100%;
    position: absolute;
    top: calc(100% - 1px);
    z-index: 5;
}

.icon-list {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.icon-item img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.icon-text {
    color: #111111;
    font-size: 0.65rem;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
}

/* ===========================
   ACTION BOX SECTION
   =========================== */
.action-section {
    padding: 1.5rem 0.7rem 1.25rem;
    background-color: #0d0d0d;
    position: relative;
    z-index: 2;
}

.action-box {
    background-color: #f5f5f5;
    border-radius: 14px;
    padding: 1.25rem 1.1rem 1.1rem;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

.action-title {
    color: #e30000;
    font-size: 1rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.action-desc {
    color: #111111;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.75;
}

.action-desc strong {
    font-weight: 900;
    color: #000000;
}

/* ===========================
   VIDEO GALLERY
   =========================== */
.gallery-section {
    padding: 1.6rem 1rem 1rem;
    background-color: #0d0d0d;
}

.gallery-title {
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.9rem;
    text-align: left;
}

.video-grid {
    display: flex;
    gap: 0.45rem;
    align-items: stretch;
}

.video-card {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.more-link-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.35rem;
}

.more-link {
    color: #666666;
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 500;
    transition: color 0.2s;
}

.more-link:hover {
    color: #ffffff;
}

/* ===========================
   FOOTER / TERMS
   =========================== */
.footer {
    padding: 0.9rem 1rem 2.5rem;
    margin-top: 0.5rem;
    background-color: #0d0d0d;
    text-align: center;
}

.footer p {
    font-family: 'Roboto', sans-serif;
    font-size: 0.54rem;
    line-height: 1.5;
    color: #444444;
    text-align: center;
}

.footer a {
    font-family: 'Roboto', sans-serif;
    font-size: 0.54rem;
    line-height: 1.5;
    color: #444444;
}

.footer img {
    margin: 0 auto;
}

.pause_play {
    position: relative;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center
}

.pause_play img:first-child {
    position: absolute;
    opacity: 0;
    -webkit-animation: show 0.9s steps(1, end) forwards;
    animation: show 0.9s steps(1, end) forwards
}

.pause_play img:last-child {
    -webkit-animation: hidden 0.9s steps(1, end) forwards;
    animation: hidden 0.9s steps(1, end) forwards
}


.player_navigation {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    width: 100%;
    padding: 12px 10px 0;
}

.player_navigation_item {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center
}

.player_navigation_item img {
    height: 20px;
    cursor: pointer
}

.player_navigation_item p {
    font-size: .8rem;
    margin-left: 12px;
    color: #fff
}

.player_navigation_item:last-child img {
    margin-right: 15px
}

.player_navigation_item:last-child img:last-child {
    margin-right: 0
}

.progress {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, .4);
    margin: 0 12px;
    position: relative;
    cursor: pointer
}

.progress_load {
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, .4);
    -webkit-animation: progress_load 20s linear forwards;
    animation: progress_load 20s linear forwards
}

.progress_line {
    width: 0%;
    height: 100%;
    background: #4080ff;
    -webkit-animation: progress_line 1s linear forwards;
    animation: progress_line 1s linear forwards
}

@-webkit-keyframes progress_load {
    0% {
        width: 0
    }

    100% {
        width: 50%
    }
}

@keyframes progress_load {
    0% {
        width: 0
    }

    100% {
        width: 50%
    }
}

@-webkit-keyframes progress_line {
    0% {
        width: 0
    }

    100% {
        width: 10px
    }
}

@keyframes progress_line {
    0% {
        width: 0
    }

    100% {
        width: 10px
    }
}


@-webkit-keyframes show {
    0% {
        opacity: 0
    }

    100% {
        opacity: 1
    }
}

@keyframes show {
    0% {
        opacity: 0
    }

    100% {
        opacity: 1
    }
}

@-webkit-keyframes hidden {
    100% {
        opacity: 0
    }
}

@keyframes hidden {
    100% {
        opacity: 0
    }
}

/* ===========================
   WIDER SCREENS
   =========================== */
@media (min-width: 480px) {
    .action-title {
        font-size: 1.15rem;
    }
}