:root {
  --primary-color: #007bff;
  --dark-blue: #0A142D;
  --light-blue: #1C2E4A;
  --white: #ffffff;
  --gray: #ccc;
  --text-color: #f0f0f0;
  --live-red: #E74C3C;
  --fair-green: #2ECC71;
  --border-radius: 8px;
  --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

body,div,h1,p {
    direction: rtl;
    text-align: right;
}

body {
    font-family: 'Heebo' !important;
    padding-top: 56px;
    background-color: #fafafa;
    color: #222;
    line-height: 1.6;
}

@media only screen and (max-width: 992px) {
    .card .desc {
        height: 100% !important;
    }

    .play-button-icon {
        height: 163px !important;
    }
    .ipc-bigPlayBase {
        height: 55px !important;
        width: 50px !important;
        top: 18% !important;
        left: 50% !important;
        background-size: 100px;
        background-repeat: no-repeat;
        background-position: left;
    }

    div#mediaplaybackdiv_ipc_ic_bigPlay {
        left: 44% !important;
        top: 30% !important;
    }
        

    /*.ipc-bigPlayBase {
        top: 50% !important;
        left: 50% !important;
    }*/

    .video-wrapper lite-youtube {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9;
        transform: scale(0.255) !important;
        transform-origin: top right;
        position: absolute;
        top: 0;
        right: 0;
    }
    
    .video-wrapper lite-youtube iframe {
        width: 100% !important;
        height: 100% !important;
    }
    
    .video-wrapper {
        height: 250px;
        position: relative;
        overflow: hidden;
        background: #000;
    }

    nav a {
        margin-right: 0 !important;
    }

    ul.navbar-nav {
        padding: 0;
    }

    ul li.nav-item {
        border-bottom: 1px solid #fff;
    }

    img.card-image {
        height: 250px;
    }

    .col-xs-12 {
        padding:0 !important;
    }

    body {
        padding-top: 70px;
    }

    /* ✅ תיקון מסך מלא במובייל */
    .video-wrapper lite-youtube:-webkit-full-screen,
    .video-wrapper lite-youtube:-moz-full-screen,
    .video-wrapper lite-youtube:-ms-fullscreen,
    .video-wrapper lite-youtube:fullscreen {
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        transform: none !important;
        transform-origin: center center !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 9999 !important;
    }

    .video-wrapper lite-youtube:-webkit-full-screen iframe,
    .video-wrapper lite-youtube:-moz-full-screen iframe,
    .video-wrapper lite-youtube:-ms-fullscreen iframe,
    .video-wrapper lite-youtube:fullscreen iframe {
        width: 100% !important;
        height: 100% !important;
        transform: none !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
    }

    .video-wrapper:-webkit-full-screen,
    .video-wrapper:-moz-full-screen,
    .video-wrapper:-ms-fullscreen,
    .video-wrapper:fullscreen {
        background: #000 !important;
    }

}

/* ========================================
   📱 מובייל - Landscape (אופקי)
   ======================================== */
@media only screen and (max-width: 992px) and (orientation: landscape) {
    .video-wrapper {
        height: 300px;
    }
    
    .video-wrapper lite-youtube {
        transform: scale(0.38) !important;
    }
}

.play-button-icon {
    height: 300px;
    width: 100%;
}


.ipc-bigPlayBase {
    top: 33%;
    left: 43%;
    opacity: 1;
    width: 100px;
    height: 100px;
    position: absolute;
}


a.navbar-brand {
    padding-bottom: 0;
    padding-top: 0;
    margin-right: 0;
}

nav .container {
    padding-right: 0;
}

header {
    padding: 10px 10px 5px 0 !important;
    height: 157px;
}

header.jumbotron.my-4 {
    margin: 20px 0 !important;
}

iframe {
    height: 300px;
    width:100%;
}

.rishon iframe {
    width: 678px !important;
}

.display-3 {
    font-size:3rem !important;
}

.lead {
    font-size: 1.5rem !important;
}

.card {
    margin-bottom: 20px;
    box-shadow: 0 16.5px 25px 0 rgba(0,0,0,.15);
    border-radius: 20px !important;
}

.ads-container {
    position: relative;
    top: 20px;
    margin-bottom: 10px;
}

.ads-container .card img {
    width: 100%;
    border-radius: 35px 35px 0 0;
    height: 250px;
    pointer-events: none; 
}

.ads-container a {
    text-decoration: none !important;
    color: #000 !important;
    display: inline-block;
}

.card-img-top {
    height: 200px;
}

.card-title {
    margin-top: 10px !important;
    font-size: 19px;
    text-align: center;
}

.card-text {
    margin-right: 5px;
    text-align: center;
}

footer.bg-dark {
    padding: 15px 0;
}

footer p {
    font-size:1.2rem;
}

footer ul {
    text-align: center;
    padding: 0;
    margin: 0;
}

footer ul li {
    list-style-type: none;
    display: inline-block;
    font-size: 1.1rem;
    margin-left: 20px;
}

footer ul li a {
   color: #fff;
}

footer ul li a:hover {
    color: #fff;
    text-decoration: underline;
}

a.cameraPageLink { 
    color: #000;
    cursor: pointer;
    text-decoration: none;
}

a.cameraPageLink:hover { 
    color: #000;
    text-decoration: none;
}

a.cameraPageLink:active { 
    text-decoration: none;
    color: lightgray;
}

a.cameraPageLink .card-body {
    height: 43px;
}

.bg-404, .error-image {   
    text-align: center;
    margin: 80px 0 40px 0;
}

.bg-404 .error-image img {
    margin-top: 20px;
}

section#error-page {
    margin-bottom: 20px;
}

.card-img, .card-image {
    padding: 0 !important;
}

img.card-image, .card-img img {
    width: 100%;
}

img.card-image {
    height: 400px;
}

.card-img img#sdotYam {
    height: 392px;
}

a#sdot-yam {
    display: inline-block;
    margin: 20px 7px 25px 0;
}

a.camLink {
    display: inline-block;
    margin: 7px;
    color: #000;
}

a.camLink:hover {
    color: #000;
    text-decoration: none;
}

.card-body {
    padding: 0 !important;
}

nav, footer {
    box-shadow: 0 16.5px 25px 0 rgba(0,0,0,.15);
    background-color: #0A142D !important;
    padding:20px 0;
}

.rishon {
    overflow: hidden;
}

.rishon iframe {
    width: 905px !important;
}

a.nav-link {
    font-size: 16px;
    color: #fff !important;
    font-weight: 500;   
}

.ad-banner {
    text-align: center;
    background-color: #f8f9fa;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.ad-banner img {
    max-width: 100%;
    height: auto;
}

.card .desc {
    margin: 10px;
    height: 65px;
}

.navbar {
  background-color: var(--dark-blue) !important;
  border-bottom: 1px solid var(--light-blue);
}

.navbar-brand {
    margin-right: 0;
}

.navbar-brand img {
  height: 40px;
}

.navbar-nav .nav-link {
  color: var(--text-color) !important;
  font-weight: 500;
  text-align: right;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
}

.navbar-nav .nav-item.active .nav-link {
    color: #007bbf !important;
}

/* ========================================
   Custom styles for surf products page
   ======================================== */
.hero {
    background: linear-gradient(rgba(0, 123, 191, 0.8), rgba(0, 123, 191, 0.8)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23007bbf" width="1200" height="600"/><path fill="%23ffffff" opacity="0.1" d="M0,300 Q300,200 600,300 T1200,300 L1200,600 L0,600 Z"/></svg>');
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto;
}

.filters {
    padding: 2rem 0;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: #e2e8f0;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: #007bbf;
    color: white;
    transform: translateY(-2px);
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2d3748;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.product-image {
    height: 300px;
    background: linear-gradient(45deg, #007bbf, #00a8e8);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image::before {
    font-size: 4rem;
    opacity: 0.7;
}

.product-image img {
  height: 290px;
}

.product-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.product-description {
    color: #718096;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    flex-grow: 1;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #007bbf;
    margin-bottom: 1rem;
}

.product-badge {
    background: #48bb78;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    display: inline-block;
    align-self: flex-start;
}

.category-section {
    margin: 4rem 0;
}

.category-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2d3748;
    border-bottom: 3px solid #007bbf;
    padding-bottom: 0.5rem;
}

.cta-section {
    background: #007bbf;
    color: white;
    text-align: center;
    padding: 4rem 0;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    background: white;
    color: #007bbf;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

footer {
    background-color: #343a40;
    padding: 2rem 0;
    margin-top: 1rem;
}

footer ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

footer ul li a {
    color: white;
    text-decoration: none;
}

footer ul li a:hover {
    color: #007bbf;
}

@media (max-width: 768px) {
    .hero {
        height: 300px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
}

main.container-fluid {
  max-width: 1200px;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.1);
}

h1, h2 {
  color: #2c3e50;
  font-weight: 700;
  margin-bottom: 12px;
  border-bottom: 2px solid #aa7700;
  padding-bottom: 8px;
}

#faq {
  background-color: #f7f2e7;
  padding: 20px 25px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.07);
  text-align: right;
}

#faq dt {
  font-weight: 600;
  margin-top: 18px;
  cursor: pointer;
  color: #aa7700;
}

#faq dd {
  margin-right: 10px;
  margin-top: 6px;
  color: #555;
}

/* ========================================
   🎥 Video Wrapper - Desktop
   ======================================== */
.video-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    background: #000;
}

.video-wrapper lite-youtube {
    width: 1280px !important;
    height: 720px !important;
    position: absolute;
    top: 0;
    right: 0;
    transform-origin: top right;
    transform: scale(0.42);
    max-width: none;
}

.video-wrapper lite-youtube iframe {
    width: 1280px !important;
    height: 720px !important;
}

.lty-playbtn {
    zoom: 3;
}

.ad-overlay ins.adsbygoogle {
  display: inline-block !important;
  background: #ffffff;
  border-radius: 8px;
  width: 336px;
  height: 280px;
  max-width: 100%;
  margin: 0 auto;
}
