* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', Tahoma, Geneva, Verdana, sans-serif;
}
html {
  scroll-behavior: smooth;
}
:root {
/* =================================================================================== 
                                        LIGHT
=================================================================================== */

    /* Backgrounds */
    --bg-primary: #f8fafc;
    --bg-second:#f8fafc;
    --bg-third:linear-gradient(135deg, #2a4596, #2e7faa);
    --bg-card: #ffffff;
    --bg-card-hover: rgba(255, 255, 255, 0.05);
    --bg-icon-hover: linear-gradient(135deg, #06b6d4, #0284c7);
    --bg-second-hover:#06b6d4;
    --bg-btn:linear-gradient(135deg, #06b6d4, #0284c7);
    --bg-btn-second:#0284c7;
    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-third: #06b6d4; /* رنگ بخش تیک tc bottom */
    --text-white: #ffffff;
    --text-four: #b1eff9;
    --text-five: #64748b;
    --text-six:#00a0b6;
    --text-seven:#132148;    
    
    /* Accent Colors */
    --accent-highlight: #2ea0c2; /* عناوین و آیکون‌ها */
    --accent-highlight-secondary:#6ed3f1;
    --icon-second:linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(59, 130, 246, 0.1));
    --icon-third: #06b6d4;  /* عناوین و آیکون‌ها سوم*/    
    --icon-four:#0284c7;

    
    /* Borders & Dividers */
    --border-1: #e2e8f0;
    --border-2:   #e2e8f0;

    /* HERO */
    --hero-header:#1e293b;
    --hero-text:#64748b;
    --hero-sites-button:linear-gradient(135deg, #06b6d4, #0284c7);
    --hero-info-button:#ffffff;
    
    /* SECTION */
    --section-headers-txt:#1e293b;

    /* effect */
    --box-shadow-second: 0 5px 20px rgba(14, 165, 233, 0.4);
    --shadow-sm:0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.1);
}
/* =================================================================================== 
                                        DARK
=================================================================================== */
[data-theme="dark"]{
   /* Backgrounds */
    --bg-primary: #08151f;
    --bg-second:rgb(255 255 255 / 4%);
    --bg-third:linear-gradient(270deg, rgb(20 48 88 / 40%) 40%, rgb(82 232 195 / 14%) 100%);
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-hover: rgba(255, 255, 255, 0.05);
    --bg-icon-hover:linear-gradient(135deg, #0bc4bf9e, #2876a77a);
    --bg-second-hover: #74b9c8;
    --bg-btn: linear-gradient(135deg, #0bc4bf9e, #2876a77a);
    --bg-btn-second:#082944;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-white: #ffffff;
    --text-secondary: #64748b;
    --text-third: #74b9c8; /* رنگ بخش تیک tc bottom */
    --text-four: #ffffff;
    --text-five: #ffffffdb;
    --text-six:#cfedff;
    --text-seven:#71cdcd;

    /* Accent Colors */
    --accent-highlight: #2ea0c2; /* عناوین و آیکون‌ها */
    --accent-highlight-secondary:#6ed3f1;
    --accent-highlight-third: #1bc2c7bf;
    --icon-second: linear-gradient(135deg, #0bc4bf9e, #2876a77a);
    --icon-third: #99d8f9;  /* عناوین و آیکون‌ها سوم*/    
    --icon-four:#ffffff;

    /* Borders & Dividers */
    --border-1: rgba(255, 255, 255, 0.07);
    --border-2: #ffffff69;

    /* HERO */
    --hero-header:#6ed3f1;
    --hero-text:#ffffff;
    --hero-sites-button:#1bc2c7bf;
    --hero-info-button:#ffffff;

    /* SECTION */
    --section-headers-txt:#99d8f9;

    /* effect */
    --box-shadow-second: 0 5px 20px rgba(14, 165, 233, 0.4);
}

main{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
body{
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
}
.Section-header{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}
.section-headers-text{
    color: var(--section-headers-txt);
    font-size: 25px;
}
.section-headers-icon{
    padding: 16px 9px;
    color: var(--icon-third);
    font-size: 28px;
}
/*  ============================= Header =============================*/
.Navbar{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-2);
    min-height: 74px;
    padding: 0px 30px;
}
.Nav-content{
    display: flex;
    flex-direction: row;
    align-items:center;
}
.Nav-logo-container{
  width: 45px;
  height: auto;
}
.Nav-text-container{
    padding: 10px;
}
.Nav-text{
    color: #e6e6e6;
}
.Nav-options{
    align-items: center;
    display: flex;
    flex-direction: row;
}
.Nav-options .Nav-option:first-child {
border-right: none;
}
.Nav-options button{
    background: none;
    color: var(--text-five);
    border: none;
    padding: 1px 8px;
    font-size: 15px;
    cursor: pointer;
    border-right: 1px solid #cccccca6;
    font-weight: 500;
}
.Nav-options button:hover{
    color: var(--icon-third);
}
.Line-section{
    margin-top: 130px;
}

@media(max-width:420px){
    .teams , .systems-section{
        padding: 80px 24px !important;
    }
    .systems-section{
        padding-top: 0px !important;
    }
    .Nav-options{
        display: inline-block;
    }
    .Nav-options button{
        padding: 10px 7px;
        font-size: 13px;
    }
    .Navbar{
        flex-direction: column;
        justify-content: center;
        padding: 20px 30px;
        border-bottom: none;
    }
    .Nav-options button{
        border-bottom: 1px solid #cccccca6;
        border-right: none;
        font-size: 18px;
    }
    main{
        padding-top: 0px !important;
    }
    .Nav-content{
        gap: 10px;
    }
    .tog-nav{
        display: flex !important;
    }
    .tog-op{
        display: none !important;
    }
    
}
/*  ============================= Hero section =============================*/

.Hero-section{
    display: flex;
    flex-direction: column;
    align-items:center;
    justify-content: center;
    max-width: 1193px;
    min-height: 100vh;
    padding-bottom: 10%;
}
.Hero{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 85px;
}
.Hero-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 480px;
    margin-left: 5px;
    margin-right: 5px;
}
.Content-header{
    font-size: 30px;
    width: 100%;
    color: var(--hero-header);
    text-align: center;
}
.Content-body{
    font-size:20px;
    width: 100%;
    color: var(--hero-text);
    text-align: justify;
}
.Hero-image{
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 547px;
    height: 396px;
    overflow: hidden;
    border-radius: 12px;

}
.Hero-image img{
    height: inherit;
    width: inherit;
    border-radius: 12px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.Hero-image:hover img {
    transform: scale(1.05);
}
.Hero-btn{
    font-size: 17px;
    padding: 10px;
    min-width: 222PX;
    background: white;
    border-radius: 16px;
    cursor: pointer;
}
.Sites-btn{
    background: var(--hero-sites-button);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
    color: white;
    border: none;
}
.Info-btn{
    border: 1px solid var(--border-1);
    box-shadow: var(--shadow-sm);
    transition: 0.25s ease;
}
.Info-btn:hover{
    border: 1px solid var(--icon-third);
    color: var(--icon-third);
}
.Content-header,.Content-body,.Content-actions{
    padding: 7px;
}
.Content-actions{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 7px;
    padding-top: 20px;
}
/* responsive when hero image will come on the top of hero content */
@media (max-width:1135px){
    .Hero{gap:36px;}
    .Navbar{min-height:85px;}
    main{padding-top: 10px;}
}
@media (max-width:481px){
    .Hero-btn{
        min-width: 173px;
    }
    .Content-body{
        padding: 0px 17px !important;
        padding-top: 26px !important;
    }
    .Content-header{
        font-size: 23px;
        text-align: center;
    }
    .Hero-image{
        height: 386px;
        padding: 0px 20px;
    }
}

/*  ============================= Work Unit section =============================*/

/* Work Unit card styles */
.teams {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0px 48px;
    max-width: 1300px;
    margin: 0 auto;
}

.teams-header{
    display: flex;
    flex-direction: row;
    align-items: center;
}
.teams-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
}
.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-1);
    border-radius: 20px;
    padding: 30px;
    transition: 0.4s ease-in-out;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    height: 280px;
}
.tc-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 18px;
    transition: 0.35s;
    overflow: hidden;
}
.tc-icon img{
    scale: 1.1;
    user-select: none;
}
.team-card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--text-primary);
}
.team-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 18px;
}
.tc-bottom {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--border-1);
}
.tc-bottom-text {
    font-size: 0.78rem;
    color: var(--muted);
    margin-right: 6px;
    color: var(--text-third);
    user-select: none;
}
.tc-arrow {
    position: absolute;
    left: 22px;
    bottom: 22px;
    width: 34px;
    height: 34px;
    background: var(--bg-second);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    color: var(--text-third);
    user-select: none;
}
.team-card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: none;
    pointer-events: none;
}
/* Team explain styles */
.team-card-header{
    color: var(--text-six);
    text-align: center;
    user-select: none;
}
.team-card-text{
    color: var(--text-seven);
    text-align: justify;
    padding-top: 3px;
    user-select: none;
}
/* non selectable styles */
.team-preview h3,p{
    user-select: none; 
}

/* hovers for team card and their childs  */
.team-card:hover { transform: translateY(-8px); border-color: rgb(153 216 235 / 46%); box-shadow: 0 8px 40px rgb(78 114 128 / 13%);}
.team-card:hover .tc-icon { transform: scale(1.1) rotate(-4deg); } 
.team-card:hover .tc-arrow {background: var(--bg-second-hover); color: var(--text-white);}

/* team card icon background */
.ci-1 {background: rgb(57 117 140 / 24%);}
.ci-2 {background: rgb(34 184 197 / 12%);}
.ci-3{background: rgb(0 163 189 / 12%);}
.ci-4 {background: rgb(67 170 255 / 12%);}
.ci-5 {background: rgb(97 227 193 / 8%);}
.ci-6 {background: rgb(36 85 122 / 12%);}

/*Hide and Display classes & Flip Team Card */
.tc-show{ display: unset;}
.tc-hide{ display: none;}
.flip{ rotate: 1 2 1 360deg; transition: 1s ease-in-out !important;}

/* Teams Drop down */
.drop-down{padding-top: 15px; cursor: pointer;}

.drop-down:hover{
    background: radial-gradient(circle, rgb(44 165 213 / 20%) 0%, #00000000 70%);
}
.drop-down i{
    padding: 10px;
}
.drop-down i::before{
    color: var(--text-white);
}

/* Teams section and Teams grid div responsive */
@media(max-width:395px){
    .flip{
        rotate: y 360deg;
        transition: 1s ease-in-out !important; 
        backface-visibility: hidden;
    }
}
@media (max-width: 768px) {
    .teams-grid {
        grid-template-columns: 1fr !important;
    }
}
@media (max-width: 1024px) {
    .teams-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =======================================================================================
                              TEAM CARD Drop down STYLES
========================================================================================== */

/* حالت پیش‌فرض کارت‌های مخفی (پنهان) */
.team-card.tc-hide {
    opacity: 0;
    transform: translateY(20px); /* کمی پایین‌تر از جای اصلی */
    pointer-events: none; /* جلوگیری از کلیک روی آیتم‌های مخفی */
    /* اگر از max-height استفاده می‌کنید، باید روی والد اعمال شود، 
       اما opacity/transform روی خود کارت بهتر کار می‌کند */
}
/* حالت نمایش کارت‌ها */
.team-card.tc-show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
/* انیمیشن نرم برای تغییر حالت */
.team-card {
    transition: opacity 0.5s ease, transform 0.5s ease ;
    /* اگر کارت‌ها ارتفاع متغیر دارند و می‌خواهید فضای آن‌ها هم انیمیشن بخورد،
       بهتر است روی والد (teams-grid) انیمیشن max-height بگذارید، 
       اما برای سادگی و زیبایی بیشتر، opacity و transform روی خود کارت کافی است. */
    will-change: transform;
    contain: layout style paint;
    transform: translateZ(0);
}
/* برای آیکون فلش چرخش داشته باشد */
.dd-icon {
    transition: transform 0.3s ease;
}
.dd-sh .dd-icon {
    transform: rotate(360deg); /* چرخش آیکون */
}

/* =======================================================================================
                              Systems CARD  STYLES
========================================================================================== */

/* ==================== Systems Container ==================== */
.systems-section{
    padding: 80px 48px;
    max-width: 1300px;
}
.systems-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 20px;
    padding: 20px 0;
}
/* ==================== System Card Base ==================== */
.system-card {
    background: var(--bg-card);
    border: 1px solid var(--border-1);
    border-radius: 20px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    display: flex;
    flex-direction: column;
        will-change: transform;
    contain: layout style paint;
    transform: translateZ(0);
}
.system-card:hover::before {
    opacity: 1;
}
.system-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: var(--bg-card-hover);
    box-shadow: var(--box-shadow-second)
    
}

/* Card Glow Effect */
.card-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(
        circle,
        rgba(14, 165, 233, 0.15) 0%,
        transparent 70%
    );
    top: -50px;
    right: -50px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.system-card:hover .card-glow {
    opacity: 1;
}

/* ==================== Card Content ==================== */
.card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--icon-second);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--icon-four);
    margin-bottom: 16px;
    transition: transform 0.4s ease;
}

.system-card:hover .card-icon {
    transform: rotate(-8deg) scale(1.1);
    background: var(--bg-icon-hover);
    /* icon four */
    color: var(--text-white);
}
.card-info{
    padding-bottom: 10px;
}
.card-info h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.card-info p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.7;
    flex-grow: 1;
}
/* tag */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.tag {
    background: rgba(14, 165, 233, 0.15);
    color: var(--accent-highlight);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-1);
}

/* status */
.status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}
.status.active {
    color: #22c55e;
}
.status.active i {
    font-size: 8px;
    animation: pulse 2s infinite;
}

.status.soon {
    color: #f59e0b;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
/* card btn */
.card-btn {
    background: var(--bg-btn);
    color: var(--text-white);
    border: none;
    padding: 7px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}
.card-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--box-shadow-second);
}

.card-btn i {
    transition: transform 0.3s ease;
}
.card-btn:hover i {
    transform: translateX(-4px);
}

/* ==================== Card Sizes ==================== */

/* Large Card - Spans 2 columns and 2 rows */
.system-card--large {
    grid-column: span 2;
    grid-row: span 2;
    padding: 32px;
}
.system-card--large .card-icon {
    width: 60px;
    height: 60px;
    font-size: 28px;
}
.system-card--large .card-info h3 {
    font-size: 1.4rem;
}
.system-card--large .card-info p {
    font-size: 0.95rem;
}

/* Medium Card - Spans 2 columns */
.system-card--medium {
    grid-column: span 2;
}

/* Wide Card - Spans full width */
.system-card--wide {
    grid-column: span 4;
    flex-direction: row;
    align-items: center;
    gap: 40px;
}
.system-card--wide .card-content {
    flex: 1;
    flex-direction: row;
    align-items: center;
    gap: 24px;
}
.system-card--wide .card-icon {
    width: 70px;
    height: 70px;
    font-size: 32px;
    flex-shrink: 0;
}
.system-card--wide .card-info {
    flex: 1;
}
.system-card--wide .card-info h3 {
    font-size: 1.3rem;
}

.app-badges {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}
.app-badges img {
    height: 40px;
    width: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}
.app-badges img:hover {
    transform: scale(1.1);
}

/* Small Card */
.system-card--small {
    grid-column: span 1;
}
.system-card--small .card-content .card-footer{
    padding-top: 3px !important;
}

/* Coming Soon Cards */
.coming-soon {
    opacity: 0.7;
}
.coming-soon:hover {
    opacity: 1;
}


/* ==================== Responsive ==================== */

@media (max-width: 1024px) {
    .systems-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .system-card--large {
        grid-column: span 2;
        grid-row: span 1;
    }
    .system-card--medium {
        grid-column: span 2;
    }
    .system-card--wide {
        grid-column: span 2;
        flex-direction: column;
        text-align: center;
    }
    .system-card--wide .card-content {
        flex-direction: column;
    }
    .app-badges {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .systems-container {
        grid-template-columns: 1fr;
    }
    .system-card--large,
    .system-card--medium,
    .system-card--wide {
        grid-column: span 1;
    }
    .section-headers-text {
        font-size: 22px;
    }
    .card-visual {
        display: none;
    }
}

/* ==================== Entrance Animation ==================== */
.system-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.system-card:nth-child(1) { animation-delay: 0.1s; }
.system-card:nth-child(2) { animation-delay: 0.2s; }
.system-card:nth-child(3) { animation-delay: 0.3s; }
.system-card:nth-child(4) { animation-delay: 0.4s; }
.system-card:nth-child(5) { animation-delay: 0.5s; }
.system-card:nth-child(6) { animation-delay: 0.6s; }
.system-card:nth-child(7) { animation-delay: 0.7s; }
.system-card:nth-child(8) { animation-delay: 0.8s; }
.system-card:nth-child(9) { animation-delay: 0.9s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =======================================================================================
                              Footer STYLES
========================================================================================== */

#footer {
    background: var(--bg-third);/* رنگ پس‌زمینه فوتر */
    padding: 40px 0;
    color: #333;
    direction: rtl;
    text-align: right;
}

/* کانتینر اصلی */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* بخش بالایی فوتر */
.top-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

/* لوگوی موبایل (معمولا فقط در موبایل دیده می‌شود) */
.logo-mobile {
    display: none; /* در دسکتاپ مخفی است، اگر می‌خواهید در موبایل باشد با مدیا کوئری تنظیم کنید */
}

/* بخش توضیحات */
.description {
    width: 50%;
}

.title {
    display: flex;
    flex-direction: row;
    text-align: right;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text-four);
}
.title .logo-image{
    margin: 8px;
    width: 33px;
    height: 50px;
}

.desc-light p {
    line-height: 1.6;
    font-size: 14px;
    color: white;
    margin: 0;
    text-align: justify;
}

/* بخش لینک‌ها */
.link-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}

.link-wrapper .text-wrapper {
    min-width: 150px;
}

.text{
    color: white;
}

.link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #555;
    margin-bottom: 10px;
    font-size: 14px;
    transition: color 0.3s;
}

.link:hover {
    color: #007bff; /* رنگ لینک هنگام هاور */
}

.circle {
    width: 6px;
    height: 6px;
    background-color: #999;
    border-radius: 50%;
    margin-left: 8px; /* فاصله دایره از متن */
    display: inline-block;
}

/* لوگوی دسکتاپ */
.logo-desktop {
    display: block;
    width: 50%;
    text-align: center;
    margin-top: 10px;
}

.logo-image {
    max-width: 25px;
    height: auto;
}

/* خط جداکننده */
.divider-main {
    height: 1px;
    background-color: #ddd;
    margin: 30px 0;
    width: 100%;
}

/* بخش پایین فوتر */
.bottom-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* شبکه اجتماعی */

.social-image__wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.social-image {
    display: inline-block;
    width: 24px;
    height: 24px;
}

.social-image svg {
    width: 100%;
    height: 100%;
    fill: #212936;
}

.social-image:hover svg {
    fill: #007bff;
}

.social-icon{
    width: 25px;
    height: 25px;
    background: white;
    border-radius: 45px;
}
.icon-img{
    width: inherit;
    height: inherit;
    scale: 1.06;
}

/* تصاویر پایین (انماد و ساماندهی) */
.image-bottom__wrapper {
    display: flex;
    gap: 10px;
}

.image-bottom__wrapper img {
    height: 40px;
    width: auto;
    border-radius: 5px;
}

/* بخش کپی‌رایت و تگ */
.w-100 {
    width: 100%;
}

.tag {
    text-align: center;
    margin-top: 20px !important; /* اولویت به اینستاایل اضافه شده در HTML */
}

.tag a {
    text-decoration: none;
    color: #888;
    font-size: 12px;
}

.heart {
    color: red;
    margin: 0 5px;
}

/* مدیا کوئری برای ریسپانسیو کردن (موبایل) */
@media (max-width: 768px) {
    .top-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 17px;
    }

    .description {
        width: 100%;
        text-align: center;
        margin-bottom: 30px;
    }
    
    .logo-mobile {
        display: block;
    }

    .logo-desktop {
        display: none; /* در موبایل لوگوی دسکتاپ را مخفی می‌کنیم اگر لوگوی موبایل داریم */
    }

    .link-wrapper {
        justify-content: center;
        gap: 20px;
    }

    .bottom-wrapper {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .image-bottom__wrapper {
        justify-content: center;
    }
}

/* =======================================================================================
                              Theme switch styles
========================================================================================== */

/* CSS */.toggle{
  --width:50px;
  --height:28px;
  --thumb:22px;
  display:flex;
  position:relative;
  cursor: pointer;
}
.tog-nav{
    display: none;
}
.toggle input{
    position:absolute;
    opacity:0;
    width:0;
    height:0;
}
.track{
    display: inline-block;
    width:var(--width);
    height:var(--height);
     /* gray-300 */
    background: #ffffff38;     
    /* background:#d1d5db;     */
    border-radius:999px;
    position:relative;
    transition:background .22s;
}
.thumb{
    position:absolute;
    top:50%;
    left:3px;
    width:var(--thumb);
    height:var(--thumb);
    background: #000000;
    /* background:#fff; */
    border-radius:50%;
    transform:translateY(-50%);
    box-shadow:0 2px 4px rgba(0,0,0,.15);
    transition:transform .22s;
}
.theme-icon-container{
    color: #a8a83a;
}
.theme-icon{
    position: absolute;
    padding: 7px 0px;
    border-radius: 999px;
    font-size: 19px;
}
.moon{
    top: 28%;
    right: 5px;  
    background: #6c743d;
    box-shadow: -1px 1px 14px #fdff00;
}
.sun{
    display: none;
    top: 28%;
    left: 4px;
    box-shadow: -1px 1px 14px #fdff00;
    font-size: 17px;
    color: #ffff2e;
}

/* Checked state */.toggle input:checked + .track{
  background:#7eccff /* green-400 */}
.toggle input:checked + .track .thumb{
  transform:translate(calc(var(--width) - var(--thumb) - 6px), -50%);
  background: #e8f6fd;
}
.toggle input:checked + .track .moon{
    display: none;
}
.toggle input:checked + .track .sun{
    display: unset;
}

/* Focus */.toggle input:focus-visible + .track{
  box-shadow:0 0 0 4px rgba(59,130,246,.18);
}
/* Reduced motion */@media (prefers-reduced-motion: reduce){
  .track, .thumb{ transition:none; }
}

/* =======================================================================================
                               scroll to top styles
========================================================================================== */
.scroll-top {
    position: fixed; 
    bottom: 20px;   
    right: 20px;     
    cursor: pointer;
    padding: 15px;
    border-radius: 20px;
    background: var(--bg-btn-second);
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2); 
    z-index: 1000; 
    visibility: hidden;  
    opacity: 0;
    transition: all 0.3s ease;
}
.show {
    opacity: 1;
    visibility: visible;
}

