body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    padding-top: 70px;
}
.navbar-custom {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 0.8rem 1.5rem;
    border-radius: 0;
    margin: 0;
    max-width: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    border-bottom: 3px solid #ffc107;
}
.navbar-custom .logo-image {
    max-height: 50px;
}
.navbar-custom .nav-link {
    color: #1a3a5e;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    transition: all 0.25s ease;
    position: relative;
    font-size: 0.95rem;
}
.navbar-custom .nav-link:hover {
    background: #e9f0f7;
    color: #0a2b4f;
}
.navbar-custom .nav-link.active {
    background: #1a4b7a;
    color: white;
}
.navbar-custom .dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    padding: 0.5rem;
    margin-top: 0.3rem;
    min-width: 180px;
}
.navbar-custom .dropdown-item {
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    color: #1a3a5e;
    transition: all 0.2s;
}
.navbar-custom .dropdown-item:hover {
    background: #e9f0f7;
    color: #0a2b4f;
}
.navbar-custom .dropdown-item i {
    margin-left: 10px;
    color: #ffc107;
}
.btn-member {
    background: linear-gradient(135deg, #ffc107 0%, #f0a500 100%);
    color: #0a2b4f;
    font-weight: 700;
    padding: 0.6rem 1.8rem;
    border-radius: 30px;
    border: none;
    transition: all 0.3s;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}
.btn-member:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
    background: linear-gradient(135deg, #ffd633 0%, #f0a500 100%);
    color: #0a2b4f;
}
.btn-member i {
    margin-left: 8px;
}

/* کادر بزرگ 60% - تمام عرض */
.hero-section {
    background: linear-gradient(
            rgba(8, 52, 119, 0.75),
          rgba(25, 118, 210, 0.60)),

                url("/images/banner.jpg");

                background-size: cover;
                background-position: right center;
                background-repeat: no-repeat;
    border-radius: 0;
    padding: 3rem 2rem;
    margin: 0;
    max-width: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 12px 40px rgba(10, 43, 79, 0.25);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255, 193, 7, 0.08);
    border-radius: 50%;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 193, 7, 0.05);
    border-radius: 50%;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: right;
    max-width: 800px;
}
.hero-content--logo img {
    width: 100%;
}

.hero-content--title h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 15px rgba(0,0,0,0.2);
}
.hero-content--title p {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.8;
    margin-bottom: 2rem;
}
.hero-content .btn-hero {
    background: #ffc107;
    color: #0a2b4f;
    font-weight: 700;
    padding: 0.8rem 2.5rem;
    border-radius: 40px;
    border: none;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.3);
}
.hero-content .btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.4);
    background: #ffd633;
}
.hero-content .btn-hero i {
    margin-left: 10px;
}

.hero-crumb {
    text-align: right;
    max-width: 800px;
}
.hero-crumb h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 15px rgba(0,0,0,0.2);
}
.breadcrumb-item + .breadcrumb-item::before {
  float: right;
  padding-left: var(--bs-breadcrumb-item-padding-x);
  color: #f0a500;
  content: var(--bs-breadcrumb-divider, "/");
}

.breadcrumb-item + .breadcrumb-item {
  padding-right: var(--bs-breadcrumb-item-padding-x);
}

.breadcrumb-item.active {
  color: #e9eff5;
}
/* ریسپانسیو */
@media (max-width: 992px) {
    body {
        padding-top: 80px;
    }
    .navbar-custom {
        padding: 0.6rem 1rem;
    }
    .navbar-custom .nav-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
    .btn-member {
        padding: 0.4rem 1.2rem;
        font-size: 0.85rem;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
}
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    .navbar-custom {
        padding: 0.5rem 0.8rem;
    }
    .hero-section {
        min-height: 50vh;
        padding: 2rem 1.5rem;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .btn-member {
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }
}
@media (max-width: 576px) {
    body {
        padding-top: 60px;
    }
    .navbar-custom .nav-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
    .hero-content h1 {
        font-size: 1.5rem;
    }
    .hero-section {
        min-height: 40vh;
        padding: 1.5rem 1rem;
    }
}
.card-service {
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: #ffffff;
    height: 100%;
    padding: 1.5rem 1rem;
    text-align: center;
}
.card-service:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}
.card-service i {
    font-size: 2.8rem;
    color: #1a4b7a;
    background: #e9f0f7;
    padding: 1rem;
    border-radius: 50%;
    margin-bottom: 1rem;
}
.card-service h5,.card-service h5 a {
    font-weight: 700;
    color: #0a2b4f;
    text-decoration:none ;
}
.card-service p {
    color: #6c757d;
    font-size: 0.95rem;
}
.section-title {
    font-weight: 700;
    color: #0a2b4f;
    border-right: 6px solid #ffc107;
    padding-right: 15px;
    margin-bottom: 2rem;
}
/* کادر بزرگ برای عکس */
.about-image-box {
    background-color: #e9eff5;
    border-radius: 20px;
    height: 100%;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    position: relative;
}
.about-image-box .image-placeholder-text {
    background: rgba(10, 43, 79, 0.8);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    backdrop-filter: blur(4px);
    text-align: center;
}
.about-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}
/* بخش توضیحات و تبلیغات */
.about-content-box {
    background-color: #ffffff;
    padding: 1rem;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.03);
    height: 100%;
}
.about-content-box h3 {
    color: #0a2b4f;
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.about-content-box ul {
    list-style: none;
    padding: 0;
}
.about-content-box ul li {
    padding: 0.6rem 0;
    border-bottom: 1px dashed #e9ecef;
    display: flex;
    align-items: center;
    gap: 10px;
}
.about-content-box ul li i {
    color: #ffc107;
    font-size: 1.2rem;
    width: 24px;
}
/* بخش تبلیغات (زیر بخش ما بازوی توانمند) */
.ad-section {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
    margin-top: 2rem;
}
.ad-item {
    background: #f8faff;
    border-radius: 16px;
    padding: 1.2rem 1rem;
    text-align: center;
    border: 1px solid #eef3f8;
    height: 100%;
    transition: all 0.2s;
}

.ad-item a{
    text-decoration: none;
}

.ad-item:hover {
    background: #e9f2fa;
    border-color: #b8d0e3;
}
.ad-item .ad-placeholder {
    background: #dbe4ed;
    height: 70px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3a5a7a;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.ad-item .ad-placeholder {
    background: #dbe4ed;
    height: 70px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3a5a7a;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    padding: 12px 0;
}
.ad-item span {
    display: block;
    font-weight: 600;
    color: #0a2b4f;
    font-size: 0.95rem;
}



.course-section {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
    margin-top: 2rem;
}
.course-item {
    background: #f8faff;
    border-radius: 16px;
    text-align: center;
    border: 2px solid #eef3f8;
    height: 100%;
    transition: all 0.2s;
}
.course-item:hover {
    border-color: #f0a500;
}

.multi-carousel-container {
  direction: ltr;
  cursor: grab;
  margin: 0 auto;
  max-width: 100%;
  overflow: hidden;
  position: relative;
}

/* Cursor styles for dragging */
.multi-carousel-container.dragging,
#multiCarousel.dragging {
  cursor: grabbing;
}

/* Wrapper for all slides */
.multi-carousel-inner {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Individual slide */
.multi-carousel-item,
.clone {
  box-sizing: border-box;
  flex: 0 0 33.333333%;
  padding: 0 5px;
  position: relative; /* Essential for item-number positioning */
}

/* Control buttons */
.multi-carousel-control-prev,
.multi-carousel-control-next {
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  height: 40px;
  justify-content: center;
  position: absolute;
  text-decoration: none;
  top: 50%;
  transform: translateY(-50%);
  transition: background-color 0.3s ease;
  width: 40px;
  z-index: 10;
}

.multi-carousel-control-prev:hover,
.multi-carousel-control-next:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.multi-carousel-control-prev {
  left: 10px;
}

.multi-carousel-control-next {
  right: 10px;
}

/* Image container with dynamic height */
.img-container {
  border-radius: 1.5rem;
  height: var(--carousel-height, 80vh);
  overflow: hidden;
  position: relative;
}

/* Image styling */
.img-container img,
#carouselInner img {
  height: 100%;
  object-fit: cover;
  object-position: top;
  pointer-events: none;
  width: 100%;
  -webkit-user-drag: none;
  transition: transform 0.3s ease;
}

.img-container:hover img {
  transform: translateZ(0) scale(1.02);
}

/* Item number styling - guaranteed visibility */
.item-number {
  align-items: center;
  background-color: rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  display: inline-flex;
  font-size: 120%;
  font-weight: bold;
  height: 35px;
  justify-content: center;
  left: 1rem;
  position: absolute;
  top: 1rem;
  width: 35px;
  z-index: 2; /* Higher than default but below controls */
  /* Isolation prevents z-index context issues */
  isolation: isolate;
}

/* Carousel cursor styling */
#multiCarousel {
  cursor: grab;
  touch-action: pan-y;
}

/* Disable text selection during drag */
#multiCarousel.dragging {
  user-select: none;
  -webkit-user-select: none;
}

/* Responsive adjustments for screens smaller than 720px (45em) */
@media (max-width: 45em) {
  .multi-carousel-item,
  .clone {
    flex: 0 0 100%;
  }

}
.guideline-section {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
    margin-top: 2rem;
}
.guideline-item {
    background: #f8faff;
    border-radius: 16px;
    text-align: center;
    border: 2px solid #eef3f8;
    height: 100%;
    transition: all 0.2s;
}
.guideline-item-title {
    background: #011c36;
    color: #e9f0f7;
    font-weight: bold;
}

.footer {
    background-color: #011c36;
    color: #dce7f1;
    padding: 1.2rem;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}
.footer h5 {
    font-weight: bold;
    color: #ffc107;
}
@media (max-width: 768px) {
    .about-image-box {
        min-height: 200px;
        margin-bottom: 1.5rem;
    }
    .header-gradient h1 {
        font-size: 1.7rem;
    }
}



.news-slider {
    position: relative;
    overflow: hidden;
}

.news-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 40px;
    height: 40px;

    border: none;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.45);
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    z-index: 10;

    transition: all 0.2s ease;
}

.news-slider-btn:hover {
    background: rgba(0, 0, 0, 0.75);
    transform: translateY(-50%) scale(1.1);
}

.news-slider-prev {
    right: 10px;
}

.news-slider-next {
    left: 10px;
}

.news-slider-btn i {
    font-size: 20px;
}

/* استایل اختصاصی کارت‌های دانلود اکسل - هماهنگ با بوت‌استرپ   برای دانلود نرم افزار ها    */


.excel-section {
  background: #2b2f36;
  border-radius: 20px;
  padding: 2.5rem 1.5rem;
}

.excel-section .section-title {
  color: #f1f3f5;
}

.excel-card {
  position: relative;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e3ecfa;
  box-shadow: 0 4px 18px rgba(13, 71, 161, 0.08);
  padding: 1.5rem;
  height: 100%;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.excel-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, #0d47a1, #1976d2, #ff9800);
}

.excel-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(13, 71, 161, 0.18);
}

.excel-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.excel-icon-wrap i {
  font-size: 1.8rem;
  color: #1565c0;
}

.excel-category-badge {
  display: inline-block;
  background: #0d47a1;
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: .28rem .7rem;
  border-radius: 20px;
  margin-bottom: .6rem;
}

.excel-card-title {
  font-weight: 700;
  color: #0d2b52;
  font-size: 1.05rem;
  margin-bottom: .3rem;
}

.excel-card-desc {
  color: #5b7a9c;
  font-size: .88rem;
  margin-bottom: 1.1rem;
}

.excel-meta-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px dashed #dce8f7;
}

.excel-meta-list.collapse:not(.show) {
  display: none;
}

.excel-meta-list li {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  color: #3d5a80;
  margin-bottom: .4rem;
}

.excel-meta-list li:first-child {
  margin-top: .7rem;
}

.excel-meta-list li i {
  color: #ff9800;
  font-size: .9rem;
}

.excel-meta-list li:last-child {
  margin-bottom: 0;
}

.excel-meta-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  font-size: .78rem;
  font-weight: 600;
  color: #1565c0;
  margin-bottom: .8rem;
  cursor: pointer;
  user-select: none;
}

.excel-meta-hint i {
  transition: transform .25s ease;
  font-size: .9rem;
}

.excel-meta-hint[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.excel-download-btn {
  position: relative;
  z-index: 2;
}

.excel-download-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #ff9800;
  color: #fff !important;
  border-radius: 10px;
  padding: .5rem 1rem;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease;
}

.excel-download-btn:hover {
  background: #e68900;
}
