:root {
    --primary: #3a9661;
    --primary-light: #e8f5ee;
    --primary-dark: #2d774d;
    --secondary: #f9f8f3;
    --light: #FFFFFF;
    --dark: #444444;
    --gray: #f8f9fa;
    --text: #555555;
    --text-light: #777777;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.7;
    color: var(--text);
    background-color: var(--light);
    font-size: 1.05rem;
    direction: rtl;
    text-align: right;
    font-feature-settings: "kern" 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    color: var(--dark);
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn[href^="mailto:"],
.btn[href^="https://"] {
    direction: ltr;
    unicode-bidi: bidi-override;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--light);
    box-shadow: 0 4px 15px rgba(58, 150, 97, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(58, 150, 97, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary-light);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--light);
}

.btn-white {
    background-color: var(--light);
    color: var(--primary);
}

.btn-white:hover {
    background-color: var(--primary-light);
}

.section-padding {
    padding: 90px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    direction: rtl;
    unicode-bidi: normal;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    direction: ltr;
    unicode-bidi: bidi-override;
}

.section-title p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Header */
header {
    background-color: var(--light);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
  }
  
  header.scrolled {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.98);
  }
  
  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    position: relative;
  }
  
  .logo {
    display: flex;
    align-items: center;
  }
  
  .logo h1 {
    color: var(--primary);
    font-size: 1.6rem;
    font-weight: 700;
  }
  
  .nav-links {
    display: flex;
    list-style: none;
  }
  
  .nav-links li {
    margin-left: 0;
    margin-right: 30px;
  }
  
  .nav-links a {
    font-weight: 500;
    color: var(--dark);
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a[href^="https://"] {
    direction: ltr;
    unicode-bidi: bidi-override;
}
  
  .nav-links a:hover {
    color: var(--primary);
  }
  
  .nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    bottom: -5px;
    left: 0;
    transition: width 0.3s;
    direction: ltr;
    unicode-bidi: bidi-override;
  }
  
  .nav-links a:hover::after {
    width: 100%;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .menu-toggle {
      display: flex;
      flex-direction: column;
      cursor: pointer;
      gap: 5px;
      direction: ltr;
      unicode-bidi: bidi-override;
    }
  
    .menu-toggle span {
      width: 25px;
      height: 3px;
      background-color: #333;
      border-radius: 2px;
      direction: ltr;
      unicode-bidi: bidi-override;
    }
  
    .nav-links {
      position: absolute;
      top: 100%;
      right: 0;
      width: 100%;
      background-color: white;
      flex-direction: column;
      align-items: flex-end;
      padding: 0 20px;
      gap: 15px;
      display: none;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      z-index: 999;
    }
  
    .nav-links.open {
      display: flex;
      padding: 20px;
      background-color: var(--gray);
    }
  
    .nav-links li {
      margin-right: 0;
    }
  }


/* Hero Section - Split Layout */
.hero {
    width: 100%;
    padding: 100px 0;
    margin-top: 80px;
    background-color: var(--primary-light);
    position: relative; /* Potrebno za pozicioniranje krugova */
    overflow: hidden; /* Sakriva dijelove krugova koji izlaze iz okvira */
}

/* PRVI DEKORATIVNI KRUG - gornji desni */
.hero::before {
    content: '';
    position: absolute;
    width: 400px; /* Velicina kruga */
    height: 400px; /* Velicina kruga */
    background: rgba(58, 150, 97, 0.08); /* Boja kruga (svijetlo zelena s prozirnoscu) */
    border-radius: 50%; /* Ovo ga cini krugom */
    top: -150px; /* Pozicioniranje vertikalno */
    right: -150px; /* Pozicioniranje horizontalno */
    z-index: 0; /* Iza sadrzaja */
    direction: ltr;
    unicode-bidi: bidi-override;
}

/* DRUGI DEKORATIVNI KRUG - donji lijevi */
.hero::after {
    content: '';
    position: absolute;
    width: 300px; /* Velicina kruga */
    height: 300px; /* Velicina kruga */
    background: rgba(58, 150, 97, 0.06); /* Boja kruga (jos svjetlija zelena) */
    border-radius: 50%; /* Ovo ga cini krugom */
    bottom: -100px; /* Pozicioniranje vertikalno */
    left: -100px; /* Pozicioniranje horizontalno */
    z-index: 0; /* Iza sadrzaja */
    direction: ltr;
    unicode-bidi: bidi-override;
}

.hero-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 50px;
    position: relative; /* Osigurava da sadrzaj bude iznad krugova */
    z-index: 1; /* Sadrzaj iznad pozadinskih elemenata */
}

.hero-image {
    flex: 1;
    min-width: 0;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
   /* box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: perspective(1000px) rotateY(-10deg);
    transition: transform 0.5s ease;*/
}

.hero-image img[alt*="مسجد"] {
    direction: rtl;
    unicode-bidi: normal;
}

.hero-image:hover img {
    transform: perspective(1000px) rotateY(0deg);
}

.hero-content {
    flex: 1;
    min-width: 0;
    direction: rtl;
    unicode-bidi: normal;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--dark);
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text);
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-buttons a[href^="https://"] {
    direction: ltr;
    unicode-bidi: bidi-override;
}

@media (max-width: 992px) {
    .hero-container {
        flex-direction: column-reverse;
        gap: 30px;
    }
    
    .hero-image, .hero-content {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .hero-image img {
        transform: none;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 0;
    }
    
    /* Sakrij krugove na mobilnim uredjajima */
    .hero::before,
    .hero::after {
        display: none;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
}


/* Features Section */
.features {
    background-color: var(--gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--light);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.03);
    transition: all 0.4s ease;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.03);
    border-top: 4px solid var(--primary);
    direction: rtl;
    unicode-bidi: normal;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border-color: rgba(58, 150, 97, 0.2);
}

.feature-card:hover .feature-icon {
    background-color: var(--primary);
    color: white;
    transform: scale(1.1);
}

.feature-card:hover h3 {
    color: var(--primary);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--primary);
    font-size: 2rem;
    transition: all 0.3s ease;
}

.feature-icon i {
    direction: ltr;
    unicode-bidi: bidi-override;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--dark);
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.feature-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
    margin-top: 15px;
    direction: rtl;
    unicode-bidi: normal;
}

.feature-details span {
    display: flex;
    align-items: center;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
}

.feature-details i {
    color: var(--primary);
    margin-left: 8px;
    font-size: 0.8rem;
    direction: ltr;
    unicode-bidi: bidi-override;
}

/* About Section */
.about {
    display: flex;
    align-items: center;
}

.about-content {
    flex: 1;
    padding-left: 60px;
    direction: rtl;
    unicode-bidi: normal;
}

.about-content .hero-buttons a[href^="https://"] {
    direction: ltr;
    unicode-bidi: bidi-override;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.about-image img[alt*="مسجد"] {
    direction: rtl;
    unicode-bidi: normal;
}

.about-image:before {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    border: 5px solid var(--primary);
    border-radius: 10px;
    top: -20px;
    right: -20px;
    z-index: -1;
    direction: ltr;
    unicode-bidi: bidi-override;
}

.about h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about p {
    margin-bottom: 20px;
    color: var(--text);
}

.about-list {
    margin: 25px 0;
    list-style: none;
    direction: rtl;
    unicode-bidi: normal;
}

.about-list li {
    margin-bottom: 12px;
    position: relative;
    padding-right: 30px;
}

.about-list li:before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 2px;
    color: var(--primary);
    direction: ltr;
    unicode-bidi: bidi-override;
}

/* Gallery Carousel Styles */
.gallery-carousel {
    position: relative;
    margin: 40px auto 0;
    max-width: 1200px;
    padding: 0 40px;
}

.carousel-container {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
}

.gallery-item {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 0;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item img[alt*="مسجد"],
.gallery-item img[alt*="تطبيق"] {
    direction: rtl;
    unicode-bidi: normal;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.4), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    direction: rtl;
    unicode-bidi: normal;
}

.gallery-caption h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.gallery-caption p {
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0.9;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    direction: ltr;
    unicode-bidi: bidi-override;
}

.carousel-btn:hover {
    background: var(--primary-dark);
}

.prev-btn {
    right: 0;
}

.next-btn {
    left: 0;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
    direction: rtl;
    unicode-bidi: normal;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-img[alt*="مسجد"],
.lightbox-img[alt*="تطبيق"] {
    direction: rtl;
    unicode-bidi: normal;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    left: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    direction: ltr;
    unicode-bidi: bidi-override;
}

.lightbox-caption {
    color: white;
    margin-top: 20px;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    direction: rtl;
    unicode-bidi: normal;
}

.lightbox-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.lightbox-caption p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.lightbox-prev, .lightbox-next {
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    direction: ltr;
    unicode-bidi: bidi-override;
}

@media (max-width: 768px) {
    .gallery-item {
        flex: 0 0 calc(50% - 10px);
    }
    
    .feature-details {
        font-size: 0.85rem;
    }
    
    .feature-details span {
        font-size: 0.85rem;
    }
    
    .gallery-caption h3 {
        font-size: 1rem;
    }
    
    .gallery-caption p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .gallery-item {
        flex: 0 0 100%;
    }
}



/* Members Gallery Styles */
.members-gallery-carousel {
    position: relative;
    margin: 40px auto 0;
    max-width: 1200px;
    padding: 0 40px;
}

.members-carousel-container {
    overflow: hidden;
    position: relative;
}

.members-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
}

.members-gallery-item {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 0;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    aspect-ratio: 4/3;
    cursor: pointer;
}

.members-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.members-gallery-item img[alt*="عضو"],
.members-gallery-item img[alt*="بطاقة"] {
    direction: rtl;
    unicode-bidi: normal;
}

.members-gallery-item:hover img {
    transform: scale(1.05);
}

.members-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.4), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    direction: rtl;
    unicode-bidi: normal;
}

.members-gallery-caption h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.members-gallery-caption p {
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0.9;
}

.members-gallery-item:hover .members-gallery-caption {
    transform: translateY(0);
}

.members-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    direction: ltr;
    unicode-bidi: bidi-override;
}

.members-carousel-btn:hover {
    background: var(--primary-dark);
}

.members-prev-btn {
    right: 0;
}

.members-next-btn {
    left: 0;
}

/* Members Lightbox Styles */
.members-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.members-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
    direction: rtl;
    unicode-bidi: normal;
}

.members-lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.members-lightbox-img[alt*="عضو"],
.members-lightbox-img[alt*="بطاقة"] {
    direction: rtl;
    unicode-bidi: normal;
}

.members-close-lightbox {
    position: absolute;
    top: 20px;
    left: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    direction: ltr;
    unicode-bidi: bidi-override;
}

.members-lightbox-caption {
    color: white;
    margin-top: 20px;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    direction: rtl;
    unicode-bidi: normal;
}

.members-lightbox-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.members-lightbox-caption p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.members-lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.members-lightbox-prev, .members-lightbox-next {
    background: rgba(0,0,0,0.5);
    border: none;
    font-size: 2rem;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    direction: ltr;
    unicode-bidi: bidi-override;
}

@media (max-width: 768px) {
    .members-gallery-item {
        flex: 0 0 calc(50% - 10px);
    }
    
    .members-gallery-caption h3 {
        font-size: 1rem;
    }
    
    .members-gallery-caption p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .members-gallery-item {
        flex: 0 0 100%;
    }
}


/* Testimonials */
.testimonials {
    background-color: var(--secondary);
    position: relative;
    overflow: hidden;
}

.testimonials:before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    font-size: 200px;
    color: rgba(58, 150, 97, 0.03);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    direction: ltr;
    unicode-bidi: bidi-override;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background-color: var(--light);
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    direction: rtl;
    unicode-bidi: normal;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 25px;
    color: var(--text);
    position: relative;
}

.testimonial-text:before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -15px;
    right: -10px;
    color: rgba(58, 150, 97, 0.2);
    font-size: 1.5rem;
    direction: ltr;
    unicode-bidi: bidi-override;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-left: 15px;
    object-fit: cover;
    border: 3px solid var(--primary-light);
}

.testimonial-author img[alt*="عضو"] {
    direction: rtl;
    unicode-bidi: normal;
}

.author-info h4 {
    color: var(--dark);
    margin-bottom: 5px;
    font-weight: 600;
}

.author-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Pricing Section Styles */
.pricing {
    background-color: var(--primary-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pricing-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    padding: 30px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    direction: rtl;
    unicode-bidi: normal;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
}

.pricing-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    direction: rtl;
    unicode-bidi: normal;
}

.pricing-header h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.price {
    margin-top: 15px;
}

.price .amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.price .period {
    display: block;
    color: var(--text-light);
    font-size: 0.9rem;
    direction: rtl;
    unicode-bidi: normal;
}

.features {
    list-style: none;
    margin: 30px 0;
    direction: rtl;
    unicode-bidi: normal;
}

.features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.features i {
    margin-left: 10px;
    width: 20px;
    text-align: center;
    direction: ltr;
    unicode-bidi: bidi-override;
}

.features .fa-check {
    color: var(--primary);
}

.features .fa-times {
    color: #ccc;
}

.pricing-card .btn {
    display: block;
    text-align: center;
    width: 100%;
}

.pricing-card .btn[href^="mailto:"] {
    direction: ltr;
    unicode-bidi: bidi-override;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 20px;
    background-color: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    direction: rtl;
    unicode-bidi: normal;
}

.pricing-footer {
    text-align: center;
    margin-top: 50px;
    color: var(--text-light);
}

.pricing-footer a {
    color: var(--primary);
    text-decoration: none;
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section:before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    top: -100px;
    left: -100px;
    direction: ltr;
    unicode-bidi: bidi-override;
}

.cta-section:after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    bottom: -150px;
    right: -150px;
    direction: ltr;
    unicode-bidi: bidi-override;
}

.cta-content {
    position: relative;
    z-index: 2;
    direction: rtl;
    unicode-bidi: normal;
}

.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.cta-section p {
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta-buttons a[href^="https://"],
.cta-buttons a[href^="mailto:"] {
    direction: ltr;
    unicode-bidi: bidi-override;
}

/* Footer */
footer {
    background-color: #2a2a2a;
    color: var(--light);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h3 {
    color: var(--light);
    margin-bottom: 25px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
    direction: rtl;
    unicode-bidi: normal;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
    bottom: 0;
    right: 0;
    direction: ltr;
    unicode-bidi: bidi-override;
}

.footer-column p {
    color: #bbb;
    margin-bottom: 20px;
    direction: rtl;
    unicode-bidi: normal;
}

.footer-column ul {
    list-style: none;
    direction: rtl;
    unicode-bidi: normal;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #bbb;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-column ul li a[href^="mailto:"],
.footer-column ul li a[href^="https://"] {
    direction: ltr;
    unicode-bidi: bidi-override;
}

.footer-column ul li a:hover {
    color: var(--primary);
    transform: translateX(-5px);
}

.contact-info {
    list-style: none;
    direction: rtl;
    unicode-bidi: normal;
}

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-info li span {
    direction: ltr;
    unicode-bidi: bidi-override;
}

.contact-info i {
    color: var(--primary);
    margin-left: 10px;
    margin-top: 3px;
    direction: ltr;
    unicode-bidi: bidi-override;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    direction: rtl;
    unicode-bidi: normal;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    color: var(--light);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a[href^="https://"],
.social-links a[href^="mailto:"] {
    direction: ltr;
    unicode-bidi: bidi-override;
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.social-links i {
    direction: ltr;
    unicode-bidi: bidi-override;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #999;
    font-size: 0.9rem;
    direction: rtl;
    unicode-bidi: normal;
}

.copyright p {
    direction: rtl;
    unicode-bidi: normal;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero h2 {
        font-size: 2.4rem;
    }
    
    .about {
        flex-direction: column-reverse;
    }
    
    .about-content {
        padding-left: 0;
        margin-bottom: 40px;
    }
    
    .about-image:before {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero {
        height: auto;
        padding: 120px 0 80px;
        min-height: auto;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero-buttons, .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-padding {
        padding: 70px 0;
    }
}

@media (max-width: 576px) {
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
    }
}

/* Lightbox modal */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    overflow: auto;
}

.lightbox-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 20px;
    direction: rtl;
    unicode-bidi: normal;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close-lightbox {
    position: absolute;
    top: 30px;
    left: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.close-lightbox:hover {
    color: var(--primary);
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    padding: 0 20px;
    direction: rtl;
    unicode-bidi: normal;
}

.lightbox-caption h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.lightbox-caption p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* What We Offer Section */
.offer-section {
    position: relative;
    background-color: var(--primary-light);
    overflow: hidden;
}

.offer-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(58, 150, 97, 0.08);
    border-radius: 50%;
    top: -100px;
    left: -100px;
    direction: ltr;
    unicode-bidi: bidi-override;
}

.offer-section::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(58, 150, 97, 0.06);
    border-radius: 50%;
    bottom: -50px;
    right: -50px;
    direction: ltr;
    unicode-bidi: bidi-override;
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.offer-card {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    text-align: center;
    border-top: 4px solid var(--primary);
    backdrop-filter: blur(2px);
    position: relative;
    overflow: hidden;
    direction: rtl;
    unicode-bidi: normal;
}

.offer-card::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(58, 150, 97, 0.05) 0%, rgba(255,255,255,0) 100%);
    top: 0;
    left: 0;
    z-index: -1;
    direction: ltr;
    unicode-bidi: bidi-override;
}

.offer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    background-color: var(--light);
}

/* Ostali CSS ostaje isti kao prije */
.offer-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.offer-icon i {
    direction: ltr;
    unicode-bidi: bidi-override;
}

.offer-card h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.offer-card p {
    color: var(--text);
    margin-bottom: 20px;
}

.offer-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: right;
    margin-top: 20px;
}

.offer-features span {
    display: flex;
    align-items: center;
    color: var(--text);
    font-size: 0.95rem;
}

.offer-features i {
    color: var(--primary);
    margin-left: 10px;
    direction: ltr;
    unicode-bidi: bidi-override;
}

@media (max-width: 768px) {
    .offer-grid {
        grid-template-columns: 1fr;
    }
    
    .offer-section::before,
    .offer-section::after {
        display: none;
    }
}

#back-to-top {
    position: fixed;
    bottom: 40px;
    left: 30px;
    display: none;
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 16px;
    font-size: 18px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transition: opacity 0.3s ease, transform 0.3s ease;
    direction: ltr;
    unicode-bidi: bidi-override;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  #back-to-top:hover {
    background-color: var(--primary); /* mrvicu tamnija nijansa */
    transform: translateY(-2px);
  }
  
/* Arabic text improvements */
.price .amount {
    font-variant-numeric: normal;
    font-feature-settings: "tnum" 1;
    direction: ltr;
    unicode-bidi: bidi-override;
}

.features li,
.feature-details span,
.offer-features span {
    font-variant-numeric: normal;
    font-feature-settings: "tnum" 1;
}

/* Improve Arabic text spacing */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em;
}

p, li, span {
    letter-spacing: 0.01em;
}

/* RTL specific adjustments */
.nav-links {
    flex-direction: row;
}

.hero-buttons,
.cta-buttons {
    flex-direction: row;
}

.feature-details span,
.offer-features span {
    flex-direction: row;
}

.features li {
    flex-direction: row;
}

.testimonial-author {
    flex-direction: row;
}

.contact-info li {
    flex-direction: row;
}

/* Fix button positioning for RTL */
.carousel-btn,
.members-carousel-btn {
    transform: translateY(-50%);
}

/* Ensure proper icon positioning in RTL */
.feature-icon,
.offer-icon {
    margin: 0 auto 25px;
}

/* Fix footer column alignment */
.footer-column h3:after {
    right: 0;
}

/* Ensure proper spacing for Arabic text */
.hero h2,
.section-title h2,
.about h2,
.cta-section h2 {
    line-height: 1.4;
}

/* Improve readability for Arabic paragraphs */
.hero p,
.section-title p,
.about p,
.cta-section p {
    line-height: 1.8;
}

/* Ensure proper text alignment for mixed content */
.section-title,
.pricing-header,
.lightbox-caption,
.members-lightbox-caption {
    text-align: center;
}
  