@font-face {
  font-family: "IRANSans";
  src:
    url(../fonts/woff2/IRANSansWeb_Light.woff2) format("woff2"),
    url(../fonts/woff/IRANSansWeb_Light.woff) format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IRANSans";
  src:
    url(../fonts/woff2/IRANSansWeb.woff2) format("woff2"),
    url(../fonts/woff/IRANSansWeb.woff) format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IRANSans";
  src:
    url(../fonts/woff2/IRANSansWeb_Medium.woff2) format("woff2"),
    url(../fonts/woff/IRANSansWeb_Medium.woff) format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IRANSans";
  src:
    url(../fonts/woff2/IRANSansWeb_Bold.woff2) format("woff2"),
    url(../fonts/woff/IRANSansWeb_Bold.woff) format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg-main: #f8f9fa;
  --bg-card: #ffffff;
  --text-main: #3a2525;
  --text-title: #000080;
  --text-body: #3a2525;
  --primary: #000080;
  --primary-hover: #9e2a3a;
  --accent-breaking: #ff0000;
  --secondary: #9e2a3a;
  --shadow-sm: #00000040;
  --border-light: #d1d5db;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "IRANSans";
}
body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-main);
  color: var(--text-body);
}
header {
  width: 100%;
  padding: 24px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: sticky;
  top: -12px;
  z-index: 100;
}
.mainheader {
  padding: 8px 24px;
  width: 100%;
  background-color: var(--bg-card);
  box-shadow: 0 0 10px var(--shadow-sm);
  border-radius: 15px;
  display: flex;
  border: 1px solid var(--border-light);
  justify-content: space-between;
  align-items: center;
}
.logosec {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.logosec img {
  width: 80px;
  height: auto;
  object-fit: contain;
}
.logosec h1 {
  font-size: 1.5rem;
  color: var(--text-title);
}
.logosec h1 span {
  color: var(--accent-breaking);
}
.navsec ul {
  gap: 64px;
  display: flex;
  align-items: center;
  list-style-type: none;
  justify-content: center;
}
.navsec ul a {
  text-decoration: none;
  color: var(--text-body);
  font-weight: 500;
  transition: color 0.2s ease;
}
.navsec ul a:hover,
.herosec a:hover {
  color: var(--accent-breaking);
}
.navsec ul li {
  transition: transform 0.2s ease;
}
.navsec ul li:hover {
  transform: scale(1.2);
}
.herosec {
  width: 100%;
  padding: 48px 64px;
}
.hero {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  min-height: 70vh;
  align-items: center;
  border-radius: 15px;
  gap: 24px;
  background: linear-gradient(45deg, var(--text-title), var(--primary-hover));
  color: var(--bg-card);
}
.hero h2 {
  font-size: 2rem;
}
.hero a {
  text-decoration: none;
  color: var(--border-light);
  font-weight: 500;
}
.mainbody {
  width: 100%;
  padding: 0 64px;
  display: flex;
  gap: 24px;
}
.newssec {
  width: 70%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.newsside {
  display: flex;
  flex-direction: column;
  width: 30%;
  justify-content: start;
  gap: 24px;
  padding: 8px;
}
.postimg {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}
.post {
  width: 100%;
  background-color: var(--bg-card);
  border-radius: 15px;
  padding: 16px;
  box-shadow: 0 0 10px var(--shadow-sm);
  display: flex;
  gap: 20px;
  justify-content: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  align-items: center;
  border: 1px solid var(--border-light);
  position: relative;
  z-index: 99;
}
.post:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px var(--shadow-sm);
}
.postimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.postbody {
  width: 70%;
}
.post h3 {
  margin-top: 8px;
  margin-bottom: 16px;
  line-height: 1.6;
  color: var(--text-title);
}
.post .meta {
  display: block;
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: var(--text-body);
}
.readmore {
  text-decoration: none;
  color: var(--accent-breaking);
  font-weight: 500;
  position: absolute;
  bottom: 16px;
  left: 16px;
  cursor: pointer;
}
.readmore:hover {
  color: var(--text-body);
}
.side {
  width: 100%;
  padding: 12px;
  box-shadow: 0 0 10px #00000040;
  background-color: var(--bg-card);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.vidsec,
.audsec,
.favnewssec {
  width: 100%;
  border-radius: 10px;
  background-color: var(--primary);
  padding: 14px;
}
.sectitle,
.favnewssec h4 {
  width: 100%;
  text-align: right;
  margin-bottom: 12px;
  padding-bottom: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bg-card);
  border-bottom: 2px solid var(--accent-breaking);
  display: flex;
  align-items: center;
  gap: 6px;
}
.vid,
.aud {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
}
.vid video {
  display: block;
  width: 100%;
  height: auto;
}
.aud audio {
  display: block;
  width: 100%;
  outline: none;
}
.favnewssec ul {
  list-style-type: none;
}
.favnewssec li {
  margin: 10px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all ease 0.5s;
}
.favnewssec li a {
  text-decoration: none;
  color: var(--bg-card);
  font-size: 0.85rem;
  line-height: 1.5;
  transition: all 0.2s ease;
  transition: all ease 0.5s;
}
.favnewssec li:hover {
  transform: translateY(-5px) scale(1.08) translatex(-5px);
}
.favnewssec li:hover a {
  color: var(--accent-breaking);
}
.notif span {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  background-color: var(--primary);
  color: #ffffff;
  font-size: 0.9rem;
}
.badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--accent-breaking, #e63946);
  color: var(--bg-card, #ffffff);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 8px;
  border-radius: 5px;
  box-shadow: 0 2px 6px var(--secondary, rgba(0, 0, 0, 0.3));
}
.site-footer {
  background-color:var(--shadow-sm);
  color:var(--border-light);
  border-top: 3px solid var(--primary-hover);
  margin-top: 50px;
  padding-top: 40px;
  font-size: 0.9rem;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}
.footer-col {
  flex: 1 1 250px;
  line-height: 1.8;
  color: var(--primary);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.footer-brand h3 {
  color:var(--bg-card);
  font-size: 1.3rem;
  margin: 0;
}
.footer-brand span {
  color:var(--secondary);
}
.footer-col h4 {
  color: var(--bg-card);
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--text-body);
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col ul li a {
  color:var(--secondary);
  text-decoration: none;
  transition:
    color 0.2s ease,
    padding-right 0.2s ease;
  display: inline-block;
}
.footer-col ul li a:hover {
  color:var(--accent-breaking);
  padding-right: 6px;
}
.footer-links-simple {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.footer-links-simple a {
  background-color: var(--text-title);
  color:var(--border-light);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  border: 1px solid var(--shadow-sm);
  transition: background-color 0.2s ease;
}
.footer-links-simple {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.footer-links-simple a {
  background-color: var(--text-title);
  color:var(--border-light);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  border: 1px solid var(--primary);
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
.footer-links-simple a:hover {
  background-color: var(--primary-hover);
  color: var(--bg-card);
  border-color:var(--secondary);
}
.footer-bottom {
  background-color:var(--shadow-sm);
  text-align: center;
  padding: 16px 20px;
  font-size: 0.8rem;
  color: var(--accent-breaking);
  border-top: 1px solid var(--shadow-sm);
}
