/* Only target elements within the venom-hero section */
.venom-hero {
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem;
    overflow: hidden;
    position: relative;
}

.venom-hero * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.venom-hero .hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 4rem;
    align-items: center;
    justify-content: space-between;
}

.venom-hero .hero-content {
    z-index: 2;
    position: relative;
    flex: 1;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.venom-hero .hero-title {
    font-family: Tajawal, sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: #000000;
    line-height: 1.1;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.venom-hero .hero-subtitle {
    font-family: Tajawal, sans-serif;
    font-size: 1.30rem;
    color: #333333;
    margin-bottom: 3rem;
    line-height: 1.6;
    font-weight: 400;
}

.venom-hero .hero-cta {
    display: inline-block;
    background-color: #000000;
    color: #ffffff;
    text-decoration: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.venom-hero .hero-cta:hover {
    background-color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.venom-hero .hero-cta:active {
    transform: translateY(0);
}

.venom-hero .hero-image-container {
    position: relative;
    height: 600px;
    perspective: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    flex: 1;
    max-width: 50%;
}

.venom-hero .hero-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 20px;
    transition: transform 0.15s ease-out;
    will-change: transform;
    position: relative;
    z-index: 2;
    background: transparent;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .venom-hero .hero-container {
        gap: 3rem;
    }
    
    .venom-hero .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .venom-hero {
        min-height: auto;
        padding: 1rem;
    }

    .venom-hero .hero-container {
        flex-direction: column;
        gap: 0rem;
    }

    .venom-hero .hero-content {
        max-width: 100%;
        order: 1;
        align-items: center;
        text-align: center;
    }

    .venom-hero .hero-image-container {
        max-width: 100%;
        order: 2;
        height: 400px;
    }

    .venom-hero .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .venom-hero .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .venom-hero .hero-image {
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    .venom-hero {
        padding: 1rem;
    }

    .venom-hero .hero-title {
        font-size: 2rem;
        letter-spacing: -1px;
        margin-bottom: 1rem;
    }

    .venom-hero .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .venom-hero .hero-cta {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .venom-hero .hero-image-container {
        height: 300px;
    }

    .venom-hero .hero-image {
        max-width: 280px;
    }
}

/* Animation for load */
@keyframes venom-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.venom-hero .hero-content > * {
    animation: venom-fadeInUp 0.8s ease-out forwards;
}

.venom-hero .hero-subtitle {
    animation-delay: 0.2s;
}

.venom-hero .hero-cta {
    animation-delay: 0.4s;
}

.venom-hero .hero-image {
    animation: venom-fadeInUp 0.8s ease-out 0.6s both;
}


.ticker-container {
    width: 100%;
    height: 60px;
    background-color: #ffffff;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.ticker-content {
    display: inline-flex;
    white-space: nowrap;
    animation: scroll-left 15s linear infinite;
    width: max-content;
}

.ticker-text {
    display: inline-block;
    color: #000000;
    font-family: Tajawal, sans-serif;
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-right: 100px;
    line-height: 60px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Perfect seamless scrolling animation */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ticker-container {
        height: 50px;
    }
    
    .ticker-text {
        font-size: 1.5rem;
        line-height: 50px;
        margin-right: 80px;
        letter-spacing: 2px;
    }
    
    .ticker-content {
        animation-duration: 20s;
    }
}

@media (max-width: 480px) {
    .ticker-container {
        height: 40px;
    }
    
    .ticker-text {
        font-size: 1.2rem;
        line-height: 40px;
        margin-right: 60px;
        letter-spacing: 1px;
    }
    
    .ticker-content {
        animation-duration: 18s;
    }
}


.logo {
    padding-right: 20px;
}

.tp-category-area .row > div {
    flex: 0 0 25% !important;   /* عرض 25% يعني 4 عناصر في الصف */
    max-width: 25% !important;
}


@media (min-width: 992px) { /* من اول لابتوب وانت طالع */
  .tp-category-area .row > div {
      flex: 0 0 25%;
      max-width: 25%;
  }
}

.tp-category-main-box {
    width: 200px;
    height: 200px;
    margin: 0 auto; /* علشان يبقى الكارت متوسّط */
  	
}

.tp-category-main-thumb {
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: center !important;
}
.tp-category-main-box {
    width: 200px;
    height: 200px;
    margin: 30px auto; /* 30px فوق وتحت - auto يمين وشمال */
  	border-radius: 8px;

}

/* Mobile Category Layout Fix */

/* For mobile devices (up to 575px) - 1 category per row */
@media (max-width: 575.98px) {
    .tp-category-area .col-lg-4.col-sm-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 5px;
    }
}

/* For small tablets (576px to 767px) - 2 categories per row */
@media (min-width: 576px) and (max-width: 767.98px) {
    .tp-category-area .col-lg-4.col-sm-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

/* For medium devices (768px to 991px) - 2 categories per row */
@media (min-width: 768px) and (max-width: 991.98px) {
    .tp-category-area .col-lg-4.col-sm-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

/* For large devices (992px and up) - 3 categories per row (default) */
@media (min-width: 992px) {
    .tp-category-area .col-lg-4.col-sm-6 {
        max-width: 33.333333% !important;
    }
}

    
    .tp-category-main-thumb {
        height: 200px; /* Adjust height for mobile */
    }
    
    .tp-category-main-title {
        font-size: 16px; /* Slightly smaller text on mobile */
    }
}

/* Center the boxes in section and add proper spacing */
.tp-category-area .row {
    justify-content: center !important;
    margin-left: auto;
    margin-right: auto;
}

.tp-category-area .col-lg-4.col-sm-6 {
    display: flex !important;
    justify-content: center !important;
    padding: 0px !important;
}

/* Increase the actual box width */
.tp-category-main-box {
    width: 100% !important;
    max-width: none !important;
}

/* Optional: Add more padding inside the boxes to make them appear larger */
.tp-category-main-content {
    padding: 20px 15px !important;
}

/* Make boxes exactly 300x300 */
.tp-category-main-box {
    width: 300px !important;
    height: 300px !important;
    max-width: 300px !important;
    margin: 0 auto !important; /* Center the boxes */
}

/* Make the thumbnail area fill the box */
.tp-category-main-thumb {
    height: 250px !important;
    min-height: 250px !important;
}

/* For mobile - make boxes even wider by reducing margins */
@media (max-width: 575.98px) {
    .tp-category-area .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    .tp-category-main-box {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .tp-category-main-thumb {
        height: 220px !important;
    }
}

a[title="X (Twitter)"],
a[title="YouTube"] {
    display: none !important;
}
section.venom-hero[lang="ar"],
section.venom-hero[lang="ar"] * {
    direction: rtl !important;
    text-align: right !important;
    unicode-bidi: isolate-override !important;
}

/* العنوان + محتوى القسم يتحول RTL لما يكون عربي */
.tp-about-area h3.section-title,
.tp-about-area .tp-about-content p {
    direction: rtl !important;           /* اتجاه الكتابة من اليمين للشمال */
    text-align: right !important;        /* محاذاة النص لليمين */
    unicode-bidi: isolate-override !important; /* يحافظ على ترتيب العربي مع أي إنجليزي */
}

/* يخفي أيقونات YouTube وX في قسم التواصل الاجتماعي */
.tp-contact-social-icon a[href*="youtube.com"],
.tp-contact-social-icon a[href*="x.com"] {
    display: none !important;
}

.tp-category-main-title a {
    FONT-SIZE: x-large;
    color: #fff !important; /* يخلي النص أبيض */
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8); /* يضيف شادو عشان يبقى باين */
    position: relative;
    top: -7px; /* يرفع النص لفوق 4px */
}

/* Mobile Slider Styles - Only for phones */
@media only screen and (max-width: 767px) {
  /* Make the row a horizontal scrollable container */
  .row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 15px;
    padding: 0 15px;
    margin: 0 -15px;
    scroll-behavior: smooth;
    position: relative;
  }

  /* Remove default column behavior */
  .row .col-lg-4,
  .row .col-sm-6 {
    flex: 0 0 85%;
    max-width: 85%;
    scroll-snap-align: center;
  }

  /* Style the category boxes */
  .tp-category-main-box {
    margin-bottom: 20px;
  }

  /* Hide scrollbar but keep functionality */
  .row::-webkit-scrollbar {
    display: none;
  }
  .row {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  /* Fades */
  .row::before,
  .row::after {
    content: '';
    position: sticky;
    top: 0;
    width: 30px;
    height: 100%;
    z-index: 1;
    pointer-events: none;
  }
  .row::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
  }
  .row::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
  }
}