@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');
/* Add smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Better focus states for accessibility */
button:focus,
a:focus,
input:focus {
    outline: 3px solid rgba(254, 195, 95, 0.5);
    outline-offset: 2px;
}

/* Remove outline from navbar elements */
.navbar button:focus,
.navbar a:focus,
.navbar .nav-link:focus,
.navbar .dropdown-toggle:focus,
.navbar .dropdown-item:focus,
.navbar .nav-item a:focus,
.navbar .nav-item > a:focus,
li.nav-item > a:focus,
.navbar button:focus-visible,
.navbar a:focus-visible,
.navbar .nav-link:focus-visible,
.navbar .dropdown-toggle:focus-visible,
.navbar .dropdown-item:focus-visible,
.navbar .nav-item a:focus-visible,
.navbar .nav-item > a:focus-visible,
li.nav-item > a:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    background-color: transparent !important;
}

/* Loading state for images */
img {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

/* Better touch targets for mobile */
@media (max-width: 767.98px) {
    button,
    a.btn {
        min-height: 44px;
        min-width: 44px;
    }
}

/* For all browsers */
html {
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}


body {
    font-family: 'Tajawal', sans-serif;
    overflow-x: hidden;
}

.footer-link{
    font-weight: 600;
}

.bg-image {
    background: url('/assets/v2/imgs/bg.webp');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    position: relative;
}

/* Enhanced overlay for better text readability */
.bg-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.bg-image > * {
    position: relative;
    z-index: 1;
}

.logo {
    max-width: 150px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.program-card {
    border-top: 0px;
    border-left: 0px;
    border-right: 0px;
    transition: all 0.3s ease;
}
    
.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

#navbar {
    transition: background-color 0.4s ease, opacity 0.4s ease;
  }
  

.btn-khuta {
    background: #596F71;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(89, 111, 113, 0.3);
}

.btn-khuta:hover {
    background: #788f91;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(89, 111, 113, 0.4);
}

.user-avatar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar >img {
    border-radius: 50%;
    width: 45px;
    height: 45px;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.user-avatar >img:hover {
    transform: scale(1.1);
}

.user-avatar span {
    font-weight: 500;
    font-size: 0.95rem;
}


.btn-khuta-2 {
    background: #FEC35F;
    color: black;
    font-size: 15px;
    font-weight: 600;
}

.btn-khuta-2:hover {
    background: #ffd68f;
    color: black;
}
img.partner-logo {
    max-width: 80px;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: grayscale(10%);
    opacity: 0.9;
    /* display: inline-block;
    margin: 0 0.5rem;
    animation: fadeInUp;
    animation-duration: 2s; */
}

img.partner-logo:hover {
    transform: scale(1.15);
    filter: grayscale(0%);
    opacity: 1;
}

.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background: rgba(33, 37, 41, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Better navbar item spacing */
.navbar-nav .nav-item {
    margin: 0 0.25rem;
}

.navbar-nav .dropdown-menu {
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 0.5rem;
}

/* Desktop navbar - let Bootstrap handle width naturally */
@media (min-width: 992px) {
    .navbar-nav {
        flex-wrap: nowrap;
    }
    
    .navbar-nav .nav-link {
        white-space: nowrap;
        padding: 0.5rem 0.75rem;
    }
}

/* Mobile navbar fixes */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(33, 37, 41, 0.98);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    
    .navbar-nav .nav-item {
        margin: 0.5rem 0;
        text-align: right;
    }
    
    .navbar-nav {
        align-items: stretch !important;
    }
    
    .navbar-nav .dropdown-menu {
        background: rgba(255, 255, 255, 0.98);
        margin-right: 1rem;
        margin-top: 0.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 6px;
        transition: background 0.2s ease;
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .navbar .container {
        flex-wrap: wrap;
    }
}

.social-icons a {
    text-decoration: none;
    display: inline-block;
    vertical-align: middle;
    margin: 0 0.5rem;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-3px);
}

.social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icons img {
    display: block;
    transition: all 0.3s ease;
}

.social-icons img:hover {
    transform: scale(1.15);
    filter: brightness(1.1);
}


.play-btn-wrapper {
    display: inline-block;
    position: relative;
    z-index: 10;
}

.play-btn-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.85);
    border: 2px solid #ffffff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.play-btn-container:hover {
    background-color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.play-btn-container:active {
    transform: scale(0.95);
}

.play-btn {
    width: 30px !important;
    height: 30px !important;
    color: #000000 !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    filter: none !important;
    box-sizing: content-box !important;
}

/* Removed separate transform for icon to prevent jitter */
.play-btn-container:hover .play-btn {
    /* No extra transform needed, container scale handles it */
}

/* Navbar link colors - Force white on dark navbar */
.navbar .nav-link,
.navbar-dark .nav-link,
.navbar .nav-item .nav-link,
a.nav-link {
    color: #ffffff !important;
    font-weight: 500;
}

.navbar .nav-link:hover,
.navbar-dark .nav-link:hover {
    color: rgba(255, 255, 255, 0.85) !important;
}

.navbar .dropdown-toggle::after {
    border-top-color: #ffffff;
}

.card {
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease-in-out;
}

.card:hover {
    transform: translateY(-8px);
}

.card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: var(--animation-width, 0%);
    height: 2px;
}
.card-1 {
    border-radius: 5px;
    border-bottom: 2px solid #596F71;
    background: rgba(89, 111, 113, 0.06);
}
.card-1::after {
    background-color: #596F71;
}
.card-2 {
    border-radius: 5px;
    border-bottom: 2px solid #FEC35F;
    background: rgba(254, 195, 95, 0.09);
}
.card-2::after {
    background-color: #FEC35F;
}
.card-3 {
    border-radius: 5px;
    border-bottom: 2px solid #8A5176;
    background: rgba(138, 81, 118, 0.06);
}
.card-3::after {
    background-color: #8A5176;
}
.card-4 {
    border-radius: 5px;
    border-bottom: 2px solid #7A86B6;
    background: rgba(122, 134, 182, 0.07);
}
.card-4::after {
    background-color: #7A86B6;
}
.active-card {
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}


.tools-section {
    position: relative;
}

.tools-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    padding: 0 40px;
}

/* Hide scrollbar completely */
.tools-container::-webkit-scrollbar {
    display: none;
}

/* Mobile */
@media (max-width: 767.98px) {
    .tools-container {
        padding: 0 10px;
    }
    
    .tools-container::after {
        content: '← اسحب لترى المزيد';
        position: absolute;
        left: 50%;
        bottom: -30px;
        transform: translateX(-50%);
        font-size: 0.85rem;
        color: #5C6E71;
        opacity: 0.7;
        font-weight: 500;
    }
}

.tools-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    padding-bottom: 1rem;
}

.tool-card {
    background: white;    
    flex: 0 0 auto;
    width: calc(100% - 2rem);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

button.navbar-toggler {
    border: 1px solid white !important;
}

@media (min-width: 576px) {
    .tool-card {
        width: calc(50% - 1.5rem);
    }
}

@media (min-width: 768px) {
    .tool-card {
        width: calc(33.333% - 1.333rem);
    }
}

/* Enhanced responsive design */
@media (max-width: 767.98px) {
    .logo {
        width: 90px !important;
    }

    .app-store {
        width: 145px !important;
    }

    .google-play {
        width: 165px !important;
    }
    
    .container-wc {
        margin-top: 120px !important;
        padding: 1.5rem 1rem;
    }
    
    .container-wc > h1 {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }
    
    .container-wc > p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        padding: 0 0.5rem;
    }
    
    .play-btn-container {
        width: 60px !important;
        height: 60px !important;
    }
    
    .play-btn {
        width: 24px !important;
        height: 24px !important;
    }
    
    .tools-section {
        border-top-right-radius: 40px;
        border-top-left-radius: 40px;
        padding: 3rem 0;
    }
    
    .tools-section h2 {
        font-size: 1.75rem !important;
        padding: 0 1rem;
    }
    
    .tools-section .lead {
        font-size: 1.1rem !important;
        padding: 0 1rem;
    }
    
    .tool-card {
        border-top-left-radius: 35px;
        border-top-right-radius: 35px;
        height: auto;
        min-height: 280px;
        padding: 1.5rem;
        min-width: 260px;
        max-width: 280px;
    }
    
    /* Better partner logos on mobile */
    img.partner-logo {
        max-width: 65px;
    }
    
    /* Improve mobile navbar */
    .navbar {
        padding: 0.75rem 0;
    }
    
    /* Better mobile sections */
    .sections {
        margin-bottom: 1.5rem;
    }
    
    /* Improve program cards on mobile */
    .program-card {
        margin-bottom: 1rem;
    }
    
    /* Better mobile footer */
    .social-icons img {
        width: 32px !important;
        height: 32px !important;
    }
    
    .social-icon-link img {
        width: 32px !important;
        height: 32px !important;
    }
    
    /* Footer logo on mobile */
    footer img[alt*="خُطى"] {
        max-width: 140px !important;
    }
    
    /* Improve CTA section on mobile */
    .cta-bg h2 {
        font-size: 1.5rem !important;
    }
    
    .cta-bg .lead {
        font-size: 1rem !important;
    }
    
    /* Better app download section */
    .app-downlaod h2 {
        font-size: 1.75rem !important;
        text-align: center;
    }
    
    .app-downlaod .lead {
        font-size: 1.1rem !important;
        text-align: center;
    }
}

@media (min-width: 992px) {
    .tool-card {
        width: calc(25% - 1.25rem);
    }
}

.tool-card-body {
    /* height: 200px; */
    overflow-y: auto;
    padding: 1.25rem;
}

.tool-card-title {
    font-size: 1.55rem;
    margin-bottom: 1.75rem;
}

.tool-card-text {
    font-size: 0.99rem;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(89, 111, 113, 0.9);
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-arrow:hover {
    background-color: rgba(89, 111, 113, 1);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.nav-arrow.left {
    left: 0;
}

.nav-arrow.right {
    right: 0;
}

/* Hide arrows on mobile */
@media (max-width: 767.98px) {
    .nav-arrow {
        display: none;
    }
}

.nav-arrow .material-symbols-outlined {
    font-size: 24px;
}

.cta-bg {
    background-color: #FEC35F;
    color: black;
    background-image: url('/assets/v2/cta-bg.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    padding: 4rem 2rem !important;
    border-radius: 15px;
    margin: 2rem 0;
}

@media (max-width: 767.98px) {
    .cta-bg {
        padding: 2.5rem 1.5rem !important;
    }
}

.text-number{
    font-weight: 600;
}

.app-downlaod {
    background: transparent;
    border-radius: 0;
    padding: 4rem 0;
    margin: 2rem 0;
    box-shadow: none;
}

@media (max-width: 767.98px) {
    .app-downlaod {
        padding: 3rem 0;
        border-radius: 0;
    }
}

.app-download-buttons {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    margin-top: 2rem;
}

@media (max-width: 767.98px) {
    .app-download-buttons {
        justify-content: center;
        margin-top: 1.5rem;
        gap: 1rem;
    }
}

.app-store {
    width: 180px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
}

.app-store:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline-light {
    border-width: 2px;
}

.google-play {
    width: 200px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
}

.google-play:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.video-modal{
    padding:56.25% 0 0 0;
    position:relative;
}

#vimeoPlayer {
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
}

.container-wc {
    margin-top: 200px;
    padding: 2rem 1rem;
}

@media (min-width: 768px) {
    .container-wc {
        margin-top: 250px;
    }
}

@media (min-width: 992px) {
.container-wc {
    margin-top: 300px;
    }
}

.container-wc > h1 {
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
}

.container-wc > p {
    font-size: 1.4rem;
    line-height: 1.8;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    margin: 0 auto 2rem;
}

@media (max-width: 767.98px) {
    .container-wc > p {
        font-size: 1.1rem;
    }
}
.sections {
    margin-bottom: 3rem;
}

.sections.p-3 {
    padding: 2rem 1rem !important;
}

.programs-section {
    padding: 4rem 0;
}

.program-image-container {
    position: relative;
    overflow: visible;
    background: transparent;
}

.program-image-container img {
    transition: transform 0.3s ease;
    width: 100%;
    height: auto;
    border: none;
    box-shadow: none;
    background: transparent;
}

.program-image-container:hover img {
    transform: scale(1.01);
}

.programs-section .card {
    margin-bottom: 1rem;
}

.card:hover {
    transform: translateY(-10px);
}
.tools-section {
    background: linear-gradient(180deg, #fffaf1 0%, #fff5e6 100%);
    border-top-right-radius: 50px;
    border-top-left-radius: 50px;
    min-height: 600px;
    height: fit-content;
    padding: 4rem 0;
}

.tools-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2C3E50;
}

.tools-section .lead {
    font-size: 1.3rem;
    color: #5C6E71;
    margin-bottom: 3rem;
}

@media (max-width: 767.98px) {
    .tools-section h2 {
        font-size: 1.75rem !important;
    }
    
    .tools-section .lead {
        font-size: 1.1rem !important;
    }
}

.tool-card {
    transition: all 0.3s ease-in-out;
    border: 0;
    border-bottom: 4px solid #E8E8E8;
    padding: 2rem 1.5rem;
    cursor: pointer;
    position: relative;
    background-color: #fff;
    border-top-left-radius: 45px;
    border-top-right-radius: 45px;
    min-width: 280px;
    max-width: 320px;
    height: 310px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-bottom-color: #FFC360;
}

.tool-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tool-card-text {
    flex: 1;
    margin-bottom: 1rem;
}

.tool-card .btn {
    margin-top: auto !important;
    align-self: flex-start;
}

.tool-card .badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 3px 12px rgba(40, 167, 69, 0.3);
    border: none;
    z-index: 5;
}

.tool-card .badge.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.tool-card:hover .badge {
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.card.h-100.tool-card:hover {
    border-right: 5px solid #ffc360;
    transition: all 0.3s ease-in-out;
}

.animate__animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -100%, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 100%, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale3d(0.3, 0.3, 0.3);
    }
    50% {
        opacity: 1;
    }
}

.animate__fadeInDown {
    animation-name: fadeInDown;
}

.animate__fadeInUp {
    animation-name: fadeInUp;
}

.animate__zoomIn {
    animation-name: zoomIn;
}
