
:root {
    --text-color: #333333;
    --app-bg-color: #9c9c9c;
    --section-bg-color: #d1cece;
    --primary-color: #c04848;
    --primary-dark: #800010;
} 
 
body {
    font-family: "dana", sans-serif;
    font-size: 18px;
    background-color: var(--app-bg-color);
    color: var(--text-color);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

  /*      HEADER     */
.header {
    padding-top: 2rem;
    background:  linear-gradient(rgba(59, 55, 53, 0.5), rgba(59, 55, 53, 0.5)), url(../images/file_00000000c54c71f4ba9ef1e0143592d5.png);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 25rem;
    position: relative;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%);
  position: relative;
    z-index: 1;
}

/*       NAVBAR     */
.nav {
    background-color: rgba(120, 144, 156, 0.3);
    padding: 1rem 2.5rem;
    border-radius: 3rem;
    backdrop-filter: blur(8px);
}

.nav__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-logo__img {
    width: 3rem;
    border-radius: 100%;
}

.menu {
    display: flex;
    align-items: center;
}

.menu__item {
    margin-right: 2rem;
}

.menu_link {
    transition: 0.25s ease-in;
}

.menu_link:hover,
.menu_link--active {
    color: var(--primary-color);
}

.menu_link--active {
    font-size: 1.4rem;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hamburger {
    display: none;
    width: 30px;
    height: 22px;
    position: relative;
    cursor: pointer;
    z-index: 150;
}

.hamburger_line,
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger_line {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger::before {
    top: 0;
}

.hamburger::after {
    bottom: 0;
}

.nav.active .hamburger_line {
    opacity: 0;
}

.nav.active .hamburger::before {
    transform: rotate(45deg) translate(5px, 5px);
    top: 50%;
}

.nav.active .hamburger::after {
    transform: rotate(-45deg) translate(5px, -5px);
    bottom: 50%;
}


.dropdown-parent {
    position: relative;
}

.dropdown-popup {
    position: absolute;
    top: 1.5rem;
    right: 0;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-radius: 1rem;
    width: 11rem;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    z-index: 50;
}

.dropdown-item {
    padding: 0.7rem 1.2rem;
    color: var(--text-color);
    transition: 0.25s;
}

.dropdown-item:hover {
    background: #f1f1f1;
}

/* Hover trigger */
.dropdown-parent:hover .dropdown-popup {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.wrapper {
  position: relative;      
    margin-top: 1rem;
    background-color: var(--section-bg-color);
    padding: 3rem;
    border-radius: 3rem;
    z-index: 1;
}

h2 {
    font-family: "Morabba Bold";
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* لیست رشته‌ها */
.cards-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* کارت */
.card {
    background: var(--primary-dark);
    color: #fff;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: background .3s;
}

.card:hover {
    background: var(--primary-color);
}

/* هدر کارت */
.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-icon {
    font-size: 28px;
}

.card-title {
    font-weight: bold;
    font-size: 18px;
}

/* توضیحات */
.card-details {
    margin-top: 12px;
    background: #fff;
    color: var(--text-color);
    padding: 12px;
    border-radius: 10px;
    display: none;
}

.card.open .card-details {
    display: block;
}