@media screen and (min-width: 454px) {
    .carousel-control-prev {
        margin-right: 2.5em;
    }

    .carousel-control-next {
        margin-left: 3em;
    }

    .sidebar-post ul li p {
        margin-top: 0.6em;
    }

    .swiper-pagination-2,
    .swiper-pagination-3 {
        display: block;
    }

    .homepage-03 .p-banner {
        padding: 8em 3.7em 7em 3.6em;
    }

    .homepage-04 .swiper-wrapper {
        margin-bottom: 6em;
    }

    .homepage-04 .Customers-comments p {
        font-size: 1em;
    }

    .plan-card {
        padding: 40px 30px;
    }

    .price-amount {
        font-size: 3em;
    }
}


/************************************************/

@media screen and (min-width: 577px) {
    .carousel-caption h5 {
        font-size: 2em;
    }

    .services-top {
        margin-top: -6.5em;
    }

    .services-caption figure {
        display: block;
    }

    .comingsoon-content .title-comingsoon {
        font-size: 2.7em;
    }

    .comingsoon-content .text-comingsoon {
        font-size: 1em;
        width: 100%;
    }

    .comingsoon-content div {
        margin: 1em;
    }

    .basket table tr {
        text-align: left;
    }

    .basket table td:nth-of-type(6) {
        padding-right: 0;
    }

    .bill table tr td {
        padding-left: 1.5em;
        font-size: 1em;
    }

    .swiper-pagination-2,
    .swiper-pagination-3 {
        right: 43%;
        transform: translate(-43%, -50%);
    }

    .homepage-03 .Customers-logo {
        padding-left: 5.5em;
    }
}


/************************************************/

@media screen and (min-width: 768px) {
    .title {
        font-size: 1.6em;
    }

    .carousel-head img {
        height: 450px;
    }

    .carousel-caption {
        top: 25%;
    }

    .carousel-caption p {
        width: 75%;
        font-size: 1em;
    }

    .banner-top .bannertop-content p:nth-of-type(1) {
        font-size: 2.2em;
    }

    .services-top {
        margin-top: -4em;
    }

    .services-top .card {
        border-radius: 0;
    }

    .services-top .servicesright-radius {
        border-top-left-radius: 1em;
        border-bottom-left-radius: 1em;
    }

    .services-top .servicesleft-radius {
        border-top-right-radius: 1em;
        border-bottom-right-radius: 1em;
    }

    .services-top .card-title {
        font-size: 1em;
    }

    .services-top .card-text {
        font-size: 0.9em;
    }

    .Counseling .icon-email {
        display: block;
    }

    .title2-left {
        margin-top: 1em;
    }

    .date-blog {
        font-size: 1em;
    }

    .title-blog {
        font-size: 1em;
    }

    .blog .swiper-slide .caption-blog {
        font-size: 1em;
    }

    .blog .user-blog {
        font-size: 1em;
    }

    .services-caption .title-Customers {
        margin-right: 3em;
        font-size: 1.2em;
    }

    .banner-service P:nth-of-type(2) {
        font-size: 2em;
    }

    .banner-service P:nth-of-type(3) {
        width: 50%;
    }

    .services-caption figure {
        margin-left: 1em;
    }

    .rejister-content {
        width: 50%;
    }

    .comingsoon-content .title-comingsoon {
        font-size: 3em;
    }

    .not-found img {
        width: 50%;
    }

    .blog-list .card {
        font-size: 1em !important;
    }

    .sidebar {
        padding-right: 2em;
    }

    .sidebar-post ul li p {
        font-size: 1em;
        margin-top: 0.2em;
    }

    .product-detail .carousel img {
        height: 450px;
    }

    .swiper-pagination-2,
    .swiper-pagination-3 {
        right: 45%;
        transform: translate(-45%, -50%);
    }

    .homepage-04 .services-head {
        padding: 4em 2em;
    }

    .plan-card.featured {
        transform: scale(1.05);
        margin-bottom: 30px;
    }
}


/************************************************/

@media screen and (min-width: 992px) {
    .nav-menu {
        padding-top: 18px;
    }

    /* .navbar-level {
        padding: 0 2.8em 1em 2.8em;
        
    } */

    .logo {
        margin-top: 0.5em;
    }

    .link-user {
        margin-top: 0.1em;
    }

    .carousel-head {
        margin-top: 0;
    }

    .carousel-head img {
        height: 600px;
    }

    .carousel-caption {
        top: 30%;
    }

    .Counseling-title {
        font-size: 1.5em;
    }

    .services-top {
        margin-top: -7em;
    }

    .services-top .card-title {
        font-size: 1.3em;
    }

    .services-top .card-text {
        font-size: 1em;
    }

    .parent-services {
        padding: 3em 3em 1em 3em;
    }

    .title2-left {
        margin-top: 0;
    }

    .footer .list-footer-right ul,
    .footer .list-footer-left ul {
        width: auto;
    }

    .banner-top {
        height: 400px;
    }

    .banner-service P:nth-of-type(2) {
        font-size: 1.7em;
    }

    .privacy h3 {
        font-size: 1.5em;
    }

    .myaccount-tab .title-myaccount {
        font-size: 1.5em;
    }

    .error-page nav {
        z-index: 2;
    }

    .about-1 p:nth-of-type(2) {
        padding-right: 1em;
    }

    .about-box .aboutbox-text p:nth-of-type(1) {
        font-size: 1.5em;
    }

    .swiper-pagination-2,
    .swiper-pagination-3 {
        right: 48%;
        transform: translate(-48%, -50%);
    }

    .homepage-02 .about figure {
        margin-left: 2.3em;
    }

    .homepage-03 .logo2,
    .homepage-04 .logo2 {
        margin-top: -3.5em;
    }

    .homepage-03 .navbar-toggler,
    .homepage-04 .navbar-toggler {
        transform: translateY(0);
    }

    .homepage-03 .services-2 figure {
        margin-left: 1.1em;
    }

    .homepage-03 .carousel-head,
    .homepage-04 .carousel-head {
        margin-top: -1.5em;
    }

    .homepage-04 .nav-menu li a {
        margin-right: -0.1em;
    }

    .homepage-04 .services-2 figure {
        margin-left: 1.3em;
    }
}


/************************************************/

@media screen and (min-width: 1300px) {
    .r-container {
        max-width: 1300px;
    }

    .header-top {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }

    .logo {
        margin-right: -3.5em !important;
    }

    .nav-menu ul {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }

    .nav-menu li {
        margin-right: 0.2em;
    }

    .form-nav-desk {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }

    .nav-response {
        margin-top: 3.6em;
        margin-bottom: 0;
        display: none;
    }

    .nav-menu ul {
        margin-right: 8em !important;
    }

    .user {
        display: block;
    }

    .about-section img {
        display: block;
    }

    .footer .list-footer-right {
        margin-left: 6em;
    }

    .footer .list-footer-left {
        margin-left: 1.7em;
    }

    .describe-project {
        padding-right: 1.5em;
    }

    .services-caption figure {
        margin-left: 2em;
    }

    .callus-section .callus-caption {
        padding-right: 2em;
    }

    .homepage-03 .nav-menu,
    .homepage-04 .nav-menu {
        border-radius: 30px;
        padding-bottom: 1em;
        padding-right: 1.5em;
        width: 98%;
        margin: 0 auto;
        height: 60px;
        background-color: #fbab18;
        position: relative;
        z-index: 3;
    }

    .homepage-03 .nav-menu li a {
        margin-right: -0.1em;
    }

    .homepage-03 .nav-menu ul {
        margin-right: 8em !important;
        -webkit-transform: translateX(0);
        -ms-transform: translateX(0);
        transform: translateX(0);
    }

    .homepage-03 .logo-xl,
    .homepage-04 .logo-xl {
        opacity: 1;
    }

    .homepage-03 .link-user,
    .homepage-04 .link-user {
        margin-top: 0;
    }

    .homepage-03 .Customers-logo {
        padding-left: 0;
    }

    .homepage-04 .nav-menu ul {
        margin-right: 8em !important;
        -webkit-transform: translateX(0);
        -ms-transform: translateX(0);
        transform: translateX(0);
    }
}

/* ===== Contact form: minimal success alert & field errors ===== */
.raad-alert-success {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    border-radius: 0.5rem;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    font-size: 0.95rem;
    transition: opacity 0.4s ease;
}
.raad-alert-success i {
    font-size: 1.1rem;
    color: #059669;
}
.raad-alert-error {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    border-radius: 0.5rem;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    font-size: 0.95rem;
    transition: opacity 0.4s ease;
}
.raad-alert-error i {
    font-size: 1.1rem;
    color: #dc2626;
}
.raad-field-error {
    color: #b91c1c;
    font-size: 0.85rem;
    margin-top: 0.35rem;
    line-height: 1.4;
}
.callus-form .form-control {
    border: 1px solid #e2e8f0;
}
.callus-form .form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 0.15rem rgba(37, 99, 235, 0.15);
}
.callus-form textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Search button: span → button (so submit works). Reset defaults to look
   exactly like the original span/icon. */
button.icon-input {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    line-height: 1;
}
button.icon-input:focus {
    outline: none;
}

/* ===== Homepage "شرکت رعد تابان" section: about side image ===== */
.services-2 .raad-about-figure {
    margin: 0;
    height: 100%;
    min-height: 320px;
    overflow: hidden;
    border-radius: 1rem;
    background: linear-gradient(135deg, #0f2a4a 0%, #1e3a6c 100%);
    padding: 0.5rem;
    position: relative;
    box-shadow:
        0 0 0 2px rgba(37, 99, 235, 0.6),
        0 0 12px rgba(37, 99, 235, 0.5),
        0 0 28px rgba(37, 99, 235, 0.35),
        0 10px 30px rgba(15, 23, 42, 0.4);
    animation: raad-neon-pulse 3s ease-in-out infinite;
}
.services-2 .raad-about-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0.75rem;
}
@keyframes raad-neon-pulse {
    0%, 100% {
        box-shadow:
            0 0 0 2px rgba(37, 99, 235, 0.6),
            0 0 12px rgba(37, 99, 235, 0.5),
            0 0 28px rgba(37, 99, 235, 0.35),
            0 10px 30px rgba(15, 23, 42, 0.4);
    }
    50% {
        box-shadow:
            0 0 0 2px rgba(96, 165, 250, 0.85),
            0 0 18px rgba(96, 165, 250, 0.6),
            0 0 40px rgba(96, 165, 250, 0.45),
            0 10px 30px rgba(15, 23, 42, 0.4);
    }
}
@media (max-width: 991.98px) {
    .services-2 .raad-about-figure {
        min-height: 240px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .services-2 .raad-about-figure {
        animation: none;
    }
}

/* ===== Language Switcher ===== */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-block: 0;
  padding: 0;
}
.lang-switcher .btn-lang {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1.5px solid #2A4359;
  background: #2A4359;
  color: #fff;
  text-decoration: none;
  line-height: 1.4;
}
.lang-switcher .btn-lang.active {
  background: #334155;
  color: #fff;
  cursor: default;
}
.lang-switcher button.btn-lang:hover {
  background: #fff;
  color: #000;
}
.lang-switcher .btn-en:hover { background: #fff; color: #000; }
.lang-switcher .btn-fa:hover { background: #fff; color: #000; }

/* --- Flag dropdown selectbox --- */
.lang-switcher.lang-dropdown {
  position: relative;
  display: inline-block;
}
.lang-switcher.lang-dropdown .lang-current {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 2px;
  font-size: 1rem;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-switcher.lang-dropdown .lang-current:hover {
  opacity: 0.8;
}
.lang-flag-img {
  width: 28px;
  height: 20px;
  display: block;
  border-radius: 2px;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,0.1);
}
.lang-switcher.lang-dropdown .lang-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 2px;
  min-width: 36px;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  z-index: 9999;
  overflow: hidden;
}
.lang-switcher.lang-dropdown.open .lang-menu {
  display: flex;
}
.lang-switcher.lang-dropdown .lang-option {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s;
}
.lang-switcher.lang-dropdown .lang-option:hover {
  opacity: 0.7;
}
.lang-switcher.lang-dropdown .lang-option.active {
  opacity: 0.4;
}



