
body{
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
background: linear-gradient(45deg, #FFF0E6, #E8FDE8, #E3FAFB, #FFF8E1, #B2EBF2);
    background-size: 300% 300%;
    animation: gradientAnimation 10s ease infinite;
    font-family: b zar, sans-serif;
    font-size: 30%;
    font-weight: bold;
}
@keyframes gradientAnimation {
    0%{
        background-position: 0 50%;
    }
    50%{
        background-position: 100% 50%;
    }
    100%{
        background-position: 0 50%;
    }

}
.container{
    text-align: center;
    display: flex;
    justify-content: space-between;
    width: 80%;
    margin-left: 20px;
    height: 100px;
    padding-bottom: 5px;
    margin-top: 20px;
}
.left, .center, .right{
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 20px;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s;
}
.left{
    background-color: rgba(173, 216, 230, 0.4);
    width: 32.5%;
    color: black;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}
.center{
    background-color: rgba(144, 238, 144, 0.4);
    width: 32.5%;
    color: black;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}
.right{
    background-color: rgba(240, 128, 128, 0.5);
    width: 32.5%;
    color: black;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
.left:hover, .center:hover, .right:hover{
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
}

.header {
    width: 100%;
    height: 100px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

/* آیکون‌ها چپ */
.header-left {
    display: flex;
    gap: 20px;
}

.header-left i {
    font-size: 22px;
    color: #007bff;
    cursor: pointer;
    transition: 0.3s;
}

.header-left i:hover {
    transform: scale(1.2);
}

/* پیام وسط */
.header-center {
    font-size: 30px;
    color: #fc8703;
    font-weight: 600;
    letter-spacing: 1px;
    text-align: center;
    font-family: "B Titr", bold;
}

/* لوگو راست */
.header-right img {
    height: 90px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* موبایل */
@media (max-width: 768px) {
    .header-center {
        font-size: 16px;
    }
    .header-left i {
        font-size: 18px;
    }
}

/* افکت زیبا برای ظاهر شدن متن */
.rotating-box {
    overflow: hidden;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#text-slide {
    color: #fc8703;
    font-size: 24px;
    font-weight: 600;
    display: inline-block;
    transition: 0.3s ease;
    white-space: nowrap;
}


.logo{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
    background: transparent;
}
.logo{
    width: 100px;
    filter: drop-shadow(0 0 10px white) drop-shadow(0 0 20px rgba(255,255,255,0.8));
    transition: transform 0.3s ease, filter 0.3s ease;
}
.logo:hover{
    transform: scale(1.1);
    filter: drop-shadow(0 0 25px white) drop-shadow(0 0 40px rgba(255,255,255,0.9));
}
.font{
    font-weight: bold;
    font-size: 20px;
    text-decoration: none;
}
.pagePrCenter{
    text-align: center;
    align-items: center;
    margin-top: -50px;
}
.footer{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    background: transparent;
    perspective: 1000px;
}
.logo-wrap{
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    filter: drop-shadow(0 0 18px rgba(255,255,255,0.9));
    transform-style: preserve-3d;
    animation: spinY 6s linear infinite;
    margin-top: 50px;
}
.logo2{
    width: 120px;
    height: auto;
    display: block;
    backface-visibility: hidden;
}
@keyframes spinY {
    from{
        transform: rotateY(0deg);
    }
    to{
        transform: rotateY(360deg);
    }
}
.logo-wrap:hover{
    animation-play-state: paused;
    transform: scale(1.05);
}

.style1{
    text-decoration: none;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 10px 25px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-align: right;
    justify-content: right;
    font-size: 50%;
}
.style1 a{
    color: green;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    font-size: 50%;
}
.style1 a:hover{
    color: #00ffff;
    font-size: 50%;
}

nav {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(40px);
    box-shadow: 0 2px 30px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 10;
    direction: rtl;
    display: flex;
    justify-content: flex-start;
}

nav ul {
    margin: 0;
    padding: 0 10px;
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

nav li {
    position: relative;
}

nav a {
    display: block;
    padding: 5px 25px;
    text-decoration: none;
    color: #222;
    font-weight: bold;
    transition: 0.3s;
    border-radius: 8px;
    text-align: right;
}

nav a:hover {
    background: #007bff;
    color: white;
}

/* زیرمنو */
nav li ul {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    list-style: none;
    padding: 5px 0;
    margin: 0;
    min-width: 160px;
    direction: rtl;
}

nav li ul li a {
    padding: 10px 15px;
    color: #333;
    font-weight: normal;
}

nav li ul li a:hover {
    background: #007bff;
    color: #fff;
}

/* نمایش زیرمنو هنگام هاور */
nav li:hover > ul {
    display: block;
}

/* واکنش‌گرایی */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: flex-end; /* منو در موبایل راست‌چین */
        padding: 10px 20px;
    }

    nav li ul {
        position: static;
        box-shadow: none;
        background: transparent;
    }

    nav li ul li a {
        padding-right: 30px;
    }
}

.font2{
    font-size: 20px;
}
.font3{
    font-size: 15px;
    font-family: "B Zar";
}
.font4{
    padding: 10px;
    font-size: 15px;
    font-family: "B Zar";
}
.divFooter{
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 30px rgba(0,0,0,0.6);
    width: 100%;
    height: 40px;
}
.centerHeader{
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 20px;
    border-radius: 15px;
    margin-top: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s;
    background-color: rgba(255, 255, 255, 0.1);
    width: auto;
    color: #d53131;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 5px;
}
.centerHeader:hover{
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
}
/* === بخش باکس‌های رشته‌ها === */
.courses-section {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 50px;
    margin-bottom: 20px;
    align-items: stretch;gap: 30px;
}

.courses-row {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    width: 80%;
    max-width: 100%;
    margin: 0 auto;
    direction: rtl;

}
.course-box {
    width: 150px;
    height: 150px;
    border-radius: 10%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0075bb;
    font-family: 'B Titr', sans-serif;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 1);
    transition: transform 0.3s, background 0.3s;
    flex: 1 1 200px; /* 👈 اضافه شد */
    max-width: 80%; /* 👈 اضافه شد */
    font-weight: bold;
}

#course-box-color1{
    background-color: #E3EBF3;
}
#course-box-color2{
    background-color: #FDF0E4;
}
#course-box-color3{
    background-color: #CFDCE9;
}
#course-box-color4{
    background-color: #FAD7B5;
}
#course-box-color5{
    background-color: #E6E6FA;
}
#course-box-color6{
    background-color: #E0F2F1;
}


.course-under{
    text-decoration: none;
}
.course-box:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

#bodyContainer {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
}

/* ستون چپ */
.bodyBoxLeft{
    width: 10%;           /* کاملاً ثابت */
    min-width: 10%;
    background-color: rgba(58, 118, 143, 0.2);
    margin-right: 1px;
    overflow: hidden;
}

/* ستون راست */
.bodyBoxRight{
    direction: rtl;
    text-align: right;
    font-size: 15px;
    font-weight: bold;
    font-family: "B Titr";
    width: 88%;           /* کاملاً ثابت */
    min-width: 88%;
    background-color: rgba(58, 118, 143, 0.2);
    padding: 20px;
}

.bodyBoxRight-footer{
    direction: rtl;
    text-align: right;
    font-size: 15px;
    font-weight: bold;
    font-family: "B Titr";
    width: 90%;
    height: 150px;
    background-color: rgba(58, 118, 143, 0.2);
    padding-right: 10px;
    border-radius: 20px;
}
.bodyBoxLeft-footer{

    width: 10%;
    height: 150px;
    background-color: rgba(58, 118, 143, 0.2);
    margin-right: 5px;
}

@keyframes spinX {
    from{
        transform: rotateX(0deg);
    }
    to{
        transform: rotateX(-360deg);
    }
}
.logo-wrap-home-X{
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    filter: drop-shadow(0 0 18px rgba(255,255,255,0.9));
    transform-style: preserve-3d;
    animation: spinX 6s linear infinite;
    padding: 30px;
}
@keyframes spinY {
    from{
        transform: rotateY(0deg);
    }
    to{
        transform: rotateY(-360deg);
    }
}
.logo-wrap-home-Y{
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    filter: drop-shadow(0 0 18px rgba(255,255,255,0.9));
    transform-style: preserve-3d;
    animation: spinY 6s linear infinite;
    padding: 30px;
}
.img{
    width: 40px;
    height: 40px;
    border-radius: 30px;
    padding-top: 5px;
}
.date-time {
    font-family: 'Vazirmatn', sans-serif;
    color: #295a93;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 10px;
    display: inline-block;
    font-size: 16px;
    text-align: center;
}
.createAccount{
    background-color: rgba(18, 159, 234, 0.49);
}
.font-create-account{
    font-weight: bold;
    font-size: 10px;
    text-decoration: none;
}

.blackFont {
    color:black;
}

.contact-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    width: auto;
    padding: 25px;
    height: auto;
    width: 60%;
}

.contact-box h2 {
    margin-bottom: 20px;
    font-size: 22px;
    color: #fff;
}

.contact-box input,
.contact-box textarea {
    width: 100%;
    margin: 8px 0;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    outline: none;
    font-size: 14px;
    resize: none;
}

.contact-box input::placeholder,
.contact-box textarea::placeholder {
    color: #0a0a03;
}

.contact-box button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(90deg, #007bff, #00c6ff);
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.contact-box button:hover {
    transform: scale(1.05);
    background: linear-gradient(90deg, #0056ff, #00aaff);
}
.font-color-onlineShop{
    color: #1f1d08;
}

.it-box {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
    padding: 25px 35px;
    max-width: 800px;
    margin: auto;
    border: 1px solid rgba(255, 255, 255, 0.4);
}
h1 {
    text-align: center;
    font-size: 26px;
    color: #004aad;
    text-shadow: 0 0 8px rgba(255,255,255,0.7);
}
h2 {
    color: #0055cc;
    margin-top: 20px;
}
ul {
    line-height: 1.9;
}
.register-btn {
    display: block;
    margin: 30px auto 0;
    text-align: center;
    background: linear-gradient(45deg, #0066ff, #00ccff);
    color: #fff;
    padding: 10px 25px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}
.register-btn:hover {
    background: linear-gradient(45deg, #00ccff, #0066ff);
    transform: scale(1.05);
}

.gallery-section {
    width: 90%;
    margin: 50px auto;
    text-align: center;
    color: #222;
    font-family: 'B Titr', sans-serif;
}

.gallery-section h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #0075bb;
}

.gallery-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.gallery-item {
    width: 300px;
    height: 150px;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* واکنش‌گرایی */
@media (max-width: 768px) {
    .gallery-item {
        width: 35%;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .gallery-item {
        width: 90%;
        height: 150px;
    }
}

.bodyBoxCenter{
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    font-family: "B Titr";
    width: 100%;
    height: 100%;
    background-color: rgba(58, 118, 143, 0.2);
    border-radius: 20px;
    margin-top: 40px;
    
}

#productList { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; }
.productCard { border: 1px solid #ccc; padding: 10px; width: 200px; border-radius: 8px; text-align: center; background: rgba(255,255,255,0.8); }
.productCard img { width: 100%; height: 120px; object-fit: cover; border-radius: 5px; }
#productCategories { margin-top: 10px; }
.categoryBtn { margin: 5px; padding: 5px 10px; cursor: pointer; border-radius: 5px; border: 1px solid #333; background: #fff; }
.categoryBtn:hover { background: #f0f0f0; }
#shoppingCart { margin-top: 30px; border-top: 1px solid #ccc; padding-top: 10px; }

#bodyContainer {
    display: flex;
    flex-direction: row;
    align-items: stretch; /* ارتفاع ستون‌ها برابر می‌شود */
    width: 100%;
}

/* ستون چپ */
.bodyBoxLeft{
    width: auto;
    flex: none; /* جلوگیری از override شدن width */
    background-color: rgba(58, 118, 143, 0.2);
    overflow: hidden;
    margin-right: 1px;
    margin-left: auto;
    border-radius: 20px;
}

/* ستون راست */
.bodyBoxRight{
    width: auto;
    flex: none; /* جلوگیری از override شدن width */
    background-color: rgba(58, 118, 143, 0.2);
    padding-right: 1px;
    direction: rtl;
    text-align: right;
    border-radius: 20px;
    margin-left: auto;
}

.home-box {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(12px);
    padding: 1px;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.home-box h1 {
    margin-bottom: 20px;
}

.home-section {
    margin-bottom: 18px;
}

.home-section h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    color: #333;
}

.home-section ul {
    margin: 8px 25px 0 0;
    color: #222;
    line-height: 1.8;
}

.final-text {
    margin-top: 30px;
    font-weight: bold;
    text-align: justify;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}

.header2 {
    width: 100%;
    height: 80px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid #ddd;
}

/* لوگو سمت راست */
.header2-right .header-logo {
    height: 60px;
}

/* وسط هدر (تبلیغ یا متن چرخشی) */
.header2-center {
    flex: 1;
    text-align: center;
    font-size: 18px;
    color: #333;
    font-weight: bold;
}

/* سمت چپ: آیکون‌ها */
.header2-left .header-icons {
    display: flex;
    gap: 15px;
}

.header2-left .header-icons i {
    font-size: 22px;
    color: #333;
    transition: 0.3s;
}

.header2-left .header-icons i:hover {
    color: #007bff;
}



.vertical-rotator {
    height: auto;
    overflow: visible !important;   /* بسیار مهم */
    display: flex;
    align-items: center;
    justify-content: center;
}

#rotating-text-container {
    height: auto;
    overflow: visible !important;  /* متن قطع نشود */
    position: relative;
}

#rotating-text {
    position: relative;
    display: inline-block;
    color: #ff8806;
    font-family: "B Titr", bold;
    font-size: 30px;
    font-weight: 600;
    opacity: 0;
    animation: fadeIn 1s forwards;
}
.padding{
    padding: 0 10px;
}


#headerCart span {
    transition: transform 0.2s ease;
    font-size: 10px;
}
#headerCart span.update {
    transform: scale(1.3);
}
#headerCart span.update {
    transform: scale(1.3);
}

.white
{
    color: #565656;
}


.my-courses h2 {
    margin-bottom: 20px;
}

.alert {
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

.alert.success {
    background: #e6fffa;
    color: #065f46;
}

.alert.info {
    background: #eff6ff;
    color: #1e40af;
}

.course-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 12px;
    transition: 0.2s;
}

.course-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.course-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 6px;
}

.course-meta {
    font-size: 14px;
    color: #555;
}

.course-date {
    font-size: 13px;
    color: #777;
    margin-top: 8px;
}

.empty {
    text-align: center;
    color: #777;
    margin: 20px 0;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    color: #2563eb;
}
