.accordion {
    cursor: pointer;
    padding: 10px;
    border: none;
    background-color: inherit;
    display: flex;
    align-items: center;
    font-size: 16px;
    transition: background-color 0.3s ease;
    -webkit-transition: background-color 0.3s ease;
    -moz-transition: background-color 0.3s ease;
    -ms-transition: background-color 0.3s ease;
    -o-transition: background-color 0.3s ease;
}

.arrow {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.active .arrow {
    transform: rotate(90deg);
}

.panel {
    padding: 10px;
    display: none;
    background-color: #fafafa;
    border: 1px solid #ddd;
    border-top: none;
}

.custom-shape-divider-top-1749140368 {
    position: block;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.custom-shape-divider-top-1749140368 svg {
    position: relative;
    display: block;
    width: calc(216% + 1.3px);
    height: 248px;
}

.custom-shape-divider-top-1749140368 .shape-fill {
    fill: #4A90E2;
}

h2 {
    font-family: vazir;
}

.rules {
    padding-inline: 100px;
}

.rules .gav {
    display: flex;
    flex-direction: column;
}

.rules .gav .titleofrule {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.rules .gav .titleofrule p {
    font-weight: bold;
}

.rules .gav .descriptionn {
    display: none;
    text-align: justify;
}

.rules .underline {
    height: 1px;
    background-color: #ccc;
    width: 100%;
    margin-bottom: 10px;
}

.rules .details {
    display: block;
}

.rules .titles {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.nav{
    display:flex;
    gap:35px;
}

.nav a{
    color:#555;
    text-decoration:none;
    font-size:15px;
    position:relative;
    transition:.3s;
}

.nav a:hover{
    color:#0693E3;
}

.nav a::after{
    content:"";
    position:absolute;
    bottom:-8px;
    right:0;
    width:0;
    height:3px;
    border-radius:50px;
    background:#0693E3;
    transition:.3s;
}

.nav a:hover::after{
    width:100%;
}

.actions{
    display:flex;
    align-items:center;
    gap:15px;
}

.login{
    background:#0693E3;
    color:white;
    padding:12px 22px;
    border-radius:12px;
    text-decoration:none;
    transition:.3s;
}

.login:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(6,147,227,.3);
}

.profile{
    display:flex;
    align-items:center;
    gap:10px;
    text-decoration:none;
    color:#222;
}

.profile img{
    width:42px;
    height:42px;
    border-radius:50%;
}

.menu-btn{
    display:none;
    border:none;
    background:none;
    font-size:24px;
    cursor:pointer;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

.site-footer {
	background: #1f2937;
	color: #e5e7eb;
	padding: 3rem 4% 1.5rem 4%;
	margin-top: 4rem;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 2rem;
}
.enamad {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
}
.footer-col h4 {
	font-size: 1.05rem;
	margin-bottom: 1.2rem;
	color: white;
	position: relative;
	display: inline-block;
}
.footer-col h4::after {
	content: '';
	position: absolute;
	width: 35px;
	height: 3px;
	background: #fd1d1d;
	bottom: -6px;
	right: 0;
}
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col a { color: #d1d5db; font-size: 0.85rem; transition: all 0.3s ease-in-out; }
.footer-col a:hover { color: white; padding-right: 4px; }
.footer-col p { font-size: 0.85rem; color: #9ca3af; margin-bottom: 0.5rem; }
.footer-bottom {
	grid-column: 1/-1;
	text-align: center;
	border-top: 1px solid #374151;
	padding-top: 1.5rem;
	font-size: 0.8rem;
	color: #9ca3af;
}

/* Terms page — mobile fixes */
@media (max-width: 768px) {
  .rules {
    padding-inline: 20px;
  }

  .rules .titles {
    align-items: flex-start;
    gap: 10px;
  }

  .rules .titles h1 {
    font-size: 20px;
    line-height: 1.6;
  }

  .rules .titles img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
  }

  .rules .gav .titleofrule {
    align-items: center;
  }

  .rules .gav .titleofrule p {
    font-size: 15px;
  }

  .rules .descriptionn p {
    font-size: 14px;
    line-height: 1.8;
  }

  .custom-shape-divider-top-1749140368 svg {
    height: 100px; /* was 248px — way too tall relative to screen height on phones */
  }
}

@media (max-width: 480px) {
  .rules {
    padding-inline: 12px;
  }

  .rules .titles {
    flex-direction: column;
  }
}