/* ===== Global Styles ===== */

body {
    font-family: b yekan, sans-serif;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;



    background-color: #f7f2e9;
    color: #3e3e3e;    
}


h1, h2, h3, h4, h5, h6 {
    color: #6b4423;
}

.btn-primary {
    background-color: #6b4423;
    border-color: #6b4423;
    color: #ffffff;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #9c6d3f;
    border-color: #9c6d3f;
}

.btn-warning {
    background-color: #d98830;
    color: #ffffff;
}

.btn-warning:hover {
    background-color: #9c6d3f;
}

/* ===== Header Styles ===== */
header {
    background-color: #f7f2e9;
    border-bottom: 2px solid #d98830;
}

.navbar {
    padding: 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand img {
    width: 120px;
    height: auto;
    max-width: 100%;
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.navbar-toggler {
    border-color: #6b4423;
    background-color: transparent;
}

.navbar-toggler:focus {
    outline: 2px solid #d98830;
}

.nav-link {
    color: #3e3e3e;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

.nav-link:hover {
    color: #9c6d3f;
}

.nav-link:focus {
    outline: 2px solid #d98830;
}

.btn-primary {
    background-color: #6b4423;
    border-color: #6b4423;
    color: #ffffff;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    background-color: #9c6d3f;
}

.btn-primary:focus {
    box-shadow: 0 0 4px 2px #d98830;
}

.btn-search {
    background-color: transparent;
    border: none;
    font-size: 1.25rem;
    color: #6b4423;
    transition: color 0.3s ease;
}

.btn-search:hover {
    color: #9c6d3f;
}

.btn-search:focus {
    outline: 2px solid #d98830;
}

.skip-link {
    position: absolute;
    top: -1000px;
    left: -1000px;
    background-color: #d98830;
    color: #ffffff;
    padding: 0.5rem 1rem;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
    left: 0;
}

/* Main Navigation */
.navbar {
    background-color: #f7f2e9;
    border-bottom: 2px solid #d98830;
    font-size: 16px;
}

.navbar .navbar-brand {
    color: #6b4423;
    font-weight: bold;
}

.navbar .nav-link {
    color: #3e3e3e;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
}

.navbar .nav-link:hover,
.navbar .dropdown-item:hover {
    color: #9c6d3f;
}

.navbar .dropdown-menu {
    background-color: #f5e9d2;
    border: 1px solid #d98830;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);

}

.navbar .dropdown-item {
    color: #6b4423;
    font-size: 15px;
    padding: 8px 16px;
    transition: background-color 0.3s;

    text-align: right;
}

.navbar .dropdown-item:hover {
    background-color: #f7f2e9;
    color: #9c6d3f;
}

.sticky-top {
    z-index: 1020;
    transition: box-shadow 0.3s ease-in-out;
}

.sticky-top.shadow-sm {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background-color: #f7f2e9;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  justify-content: flex-end;
  direction: rtl;
}

.mobile-menu-overlay.active {
  transform: translateX(0);
}

.mobile-menu-content {
  width: 85%;
  max-width: 320px;
  background: #fff;
  padding: 2rem;
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  overflow-y: auto;
}

.close-menu {
  background: none;
  border: none;
  color: #6b4423;
  position: absolute;
  top: 20px;
  left: 20px;
}

.mobile-nav li {
  margin-bottom: 1rem;
}

.mobile-nav a {
  color: #6b4423;
  font-size: 18px;
  text-decoration: none;
}

.mobile-nav summary {
  font-weight: bold;
  cursor: pointer;
  color: #6b4423;
}

.mobile-nav ul {
  padding-right: 1rem;
}

.mobile-nav ul li a {
  font-size: 16px;
  color: #3e3e3e;
}

/* پیش‌فرض: لوگو مخفی */
.logo-scrolled {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

/* وقتی کلاس scroll-active فعال شد */
.logo-scrolled.show {
    opacity: 1;
    visibility: visible;
}


/* ===== Hero Section Styles ===== */
.hero {
    background-image: url('../images/hero-bg.jpg') ;
    background-color: #f7f2e9;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: calc(100vh - 88px);
}

.hero-logo {
    width: 300px;
    height: 150px;
    animation: fadeIn 1.5s ease;
}

.logo-fade {
    width: 100%;
    height: auto;
}

.hero-message {
    font-size: 18px;
    font-weight: 500;
    color: #6b4423;
}

.dynamic-text {
    font-weight: bold;
    color: #d98830;
    animation: fadeText 3s infinite;
}

.hero h1 {
    font-size: 42px;
    font-weight: bold;
    color: #6b4423;
    transition: border-bottom 0.3s ease;
}

.hero h1:focus {
    border-bottom: 2px solid #d98830;
}

.hero h2 {
    font-size: 28px;
    font-weight: 400;
    color: #3e3e3e;
    margin-bottom: 2rem;
}

.hero-ctas .btn-primary {
    background-color: #6b4423;
    border-color: #6b4423;
    color: #ffffff;
}

.hero-ctas .btn-primary:hover {
    background-color: #9c6d3f;
}

.hero-ctas .btn-warning {
    background-color: #d98830;
    color: #ffffff;
}

.hero-ctas .btn-warning:hover {
    background-color: #9c6d3f;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeText {
    0% { content: "پلاگین‌های امنیتی"; }
    33% { content: "پلاگین‌های فروش اقساطی"; }
    66% { content: "پشتیبانی حرفه‌ای"; }
    100% { content: "پلاگین‌های امنیتی"; }
}

/* ===== Offers Section Styles ===== */
.offers-section {
    /* background-color: #f5e9d2; */
    padding: 4rem 0;
}

.offers-title {
    font-size: 32px;
    font-weight: bold;
    color: #6b4423;
    text-align: center;
    margin-bottom: 2rem;
}

.offer-card {
    background-color: #ffffff;
    border: 1px solid #d98830;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
 
}


.offer-card:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.offer-card .card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.offer-card .card-title {
    font-size: 18px;
    font-weight: bold;
    color: #6b4423;
    margin-bottom: 1rem;
}

.offer-card .btn-primary {
    background-color: #d98830;
    border-color: #d98830;
    color: #ffffff;
    padding: 10px 20px;
}

.offer-card .btn-primary:hover {
    background-color: #9c6d3f;
}

.offer-card .btn-secondary {
    background-color: #6b4423;
    border-color: #6b4423;
    color: #ffffff;
    padding: 10px 20px;
}

.offer-card .btn-secondary:hover {
    background-color: #9c6d3f;
}


.feedback-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #6b4423;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    display: none;
    z-index: 9999;
}






/* ===== Plugins Section Styles ===== */
.plugins-section {
    background-color: #ffffff;
    padding: 4rem 0;
}

.plugins-title {
    font-size: 32px;
    font-weight: bold;
    color: #6b4423;
    text-align: center;
    margin-bottom: 2rem;
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: #6b4423;
}

.breadcrumb-item.active {
    color: #9c6d3f;
}

.plugin-card {
    background-color: #ffffff;
    border: 1px solid #d98830;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}
.plugin-card .devider{
    position: relative;
    text-align: left;
    padding: 10px;

}
.plugin-card .devider:after{
    content: '';
    position: absolute;
    transform: rotate(-30deg);
    background-color: #d98830;
    top: 0;
    left: -23px;
    right: 0;
    height: 1px;

}

.plugin-card:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.plugin-card .card-img-top {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.plugin-card .btn-primary {
    background-color: #d98830;
    border-color: #d98830;
    color: #ffffff;
    padding: 8px 16px;
}

.plugin-card .btn-primary:hover {
    background-color: #9c6d3f;
}

.feedback-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #6b4423;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    display: none;
    z-index: 1000;
}




/* ===== Services Section Styles ===== */
.services-section {
    padding: 4rem 0;
}

.services-title {
    font-size: 32px;
    font-weight: bold;
    color: #6b4423;
    text-align: center;
    margin-bottom: 2rem;
}

.service-card {
    background-color: #f7f2e9;
    border: 1px solid #d98830;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 20px;
}

.service-card:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
}

.service-title {
    font-size: 18px;
    font-weight: bold;
    color: #6b4423;
    margin-bottom: 1rem;
}

.service-description {
    font-size: 14px;
    color: #3e3e3e;
    margin-bottom: 1.5rem;
}

.btn-warning {
    background-color: #d98830;
    border-color: #d98830;
    color: #ffffff;
}

.btn-warning:hover {
    background-color: #9c6d3f;
}



.blog-showcase {
  background-color: #ffffff;
  padding: 4rem 0;
}

.blog-swiper {
  padding-bottom: 40px;
}

.swiper-slide {
  display: flex;
  justify-content: center;
}

.blog-card {
  background-color: #f7f2e9;
  border: 1px solid #d98830;
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
  max-width: 320px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card img
{
    height: 200px;
    overflow: hidden
}
.blog-card:hover  img{
    transform: scale(1.1);
  
}
.blog-card:hover{
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-info {
  padding: 1rem;
}

.blog-info h5 {
  font-size: 18px;
  color: #6b4423;
  margin-bottom: 0.5rem;
}

.blog-info p {
  font-size: 14px;
  color: #3e3e3e;
  margin-bottom: 1rem;
}

.blog-info .btn-primary {
  background-color: #d98830;
  border-color: #d98830;
  color: #ffffff;
}


.blog-slick-slider .blog-card {
    background-color: #f7f2e9;
    border: 1px solid #d98830;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 10px;
    padding: 1rem;
}

.blog-slick-slider .blog-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #d98830;
    margin-bottom: 1rem;
}






/* ===== FAQ Section Styles ===== */
.faq-section {
    background-color: #f5e9d2;
    padding: 4rem 0;
}

.faq-title {
    font-size: 32px;
    font-weight: bold;
    color: #6b4423;
    text-align: center;
    margin-bottom: 2rem;
}

.accordion-button {
    background-color: #f7f2e9;
    color: #6b4423;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.accordion-button:not(.collapsed) {
    background-color: #d98830;
    color: #ffffff;
}

.accordion-button:hover {
    background-color: #9c6d3f;
    color: #ffffff;
}

.accordion-body {
    background-color: #ffffff;
    padding: 1rem;
    border: 1px solid #d98830;
    border-top: none;
}


.question-form {
  background-color: #fff;
  border: 1px solid #d98830;
  border-radius: 8px;
}

.question-form input,
.question-form textarea {
  border-radius: 6px;
  border: 1px solid #ccc;
}

.question-form button {
  background-color: #d98830;
  border: none;
  color: #fff;
  transition: background-color 0.3s;
}

.question-form button:hover {
  background-color: #9c6d3f;
}




/* ===== Footer Section Styles ===== */
.footer-section {
    background-color: #6b4423;
    /* padding: 4rem 0; */
    padding: 1rem 0;
    color: #ffffff;
}

.footer-logo {
    width: 120px;
}

.footer-title {
    font-size: 18px;
    font-weight: bold;
    color: #d98830;
    /* margin-bottom: 1rem; */
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a i {
    margin-right: 8px;
    color: #d98830;
}

.footer-links a:hover {
    color: #d98830;
}

.social-icons a {
    font-size: 24px;
    color: #d98830;
    transition: transform 0.3s, color 0.3s;
}

.social-icons a:hover {
    color: #9c6d3f;
    transform: scale(1.1);
}

.footer-divider {
    border-color: #9c6d3f;
    opacity: 0.5;
}

.client-logo{
    display: inline-block;
}

.client-logo img {
  object-fit: contain;
  filter: grayscale(100%) brightness(80%);
  transition: all 0.3s ease;
  width: 200px;
  height: 40px;
}
.client-logo:hover img {
  filter: none;
}
.client-name {
  font-size: 12px;
  color: #6b4423;
  opacity: 0;
  transition: opacity 0.3s;
}
.client-logo:hover .client-name {
  opacity: 1;
}





.newsletter-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1050;
  animation: fadeIn 0.4s ease;
}

.newsletter-modal {
  background: #f7f2e9;
  border: 2px solid #d98830;
  border-radius: 12px;
  padding: 2rem;
  width: 90%;
  max-width: 420px;
  text-align: center;
  position: relative;
  animation: slideUp 0.4s ease;
}

.popup-logo {
  width: 70px;
  margin-bottom: 1rem;
}

.popup-title {
  color: #6b4423;
  font-size: 22px;
  font-weight: bold;
}

.popup-subtitle {
  color: #3e3e3e;
  font-size: 14px;
  margin-bottom: 1.5rem;
}

#newsletterForm input {
  width: 100%;
  padding: 10px;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  text-align: right;
}

#newsletterForm button {
  background-color: #d98830;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px;
  font-weight: bold;
}

.close-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  background: none;
  border: none;
  font-size: 24px;
  color: #6b4423;
  cursor: pointer;
}

.popup-note {
  font-size: 11px;
  color: #777;
  margin-top: 1rem;
}

@keyframes fadeIn {
  from { opacity: 0 }
  to   { opacity: 1 }
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0 }
  to   { transform: translateY(0); opacity: 1 }
}

@media only screen and (max-width: 768px) {

    .client-logo img{
        width: 100%;
    }
    .hero h1{
        font-size: 32px;
    }
    .hero h2{
        font-size: 22px;
    }
    .offers-title,.plugins-title {
        font-size: 22px;
    }
    .plugin-card .devider:after{
        overflow-x: hidden;
    }
}




.newsletter-section {
  background-color: #f7f2e9;
}

.newsletter-form input {
  max-width: 280px;
}

.newsletter-form .form-control {
  border: 1px solid #d98830;
  border-radius: 6px;
}

.newsletter-success,
.newsletter-error {
  font-size: 14px;
}
.btn-custom i{
    font-size: 24px;
    margin-left: 5px;
  }
  .btn-custom:hover{
    border-color: transparent;
  }
  
