@font-face {
  font-family: Vazir;
  src: url('../fonts/Vazir.eot');
  src: url('../fonts/Vazir.eot?#iefix') format('embedded-opentype'),
       url('../fonts/Vazir.woff') format('woff'),
       url('../fonts/Vazir.ttf') format('truetype');
  font-weight: normal;
}
      
@font-face {
  font-family: Vazir;
  src: url('../fonts/Vazir-Bold.eot');
  src: url('../fonts/Vazir-Bold.eot?#iefix') format('embedded-opentype'),
       url('../fonts/Vazir-Bold.woff') format('woff'),
       url('../fonts/Vazir-Bold.ttf') format('truetype');
  font-weight: bold;
}

@font-face {
  font-family: Vazir;
  src: url('../fonts/Vazir-Light.eot');
  src: url('../fonts/Vazir-Light.eot?#iefix') format('embedded-opentype'),
       url('../fonts/Vazir-Light.woff') format('woff'),
       url('../fonts/Vazir-Light.ttf') format('truetype');
  font-weight: 300;
}

/* === Global Styles === */
body {
  font-family: Vazir;
  font-optical-sizing: auto;
  background: rgb(220, 230, 240);
  padding: 5px;
  margin: 5px;
  line-height: 1.6;
}

.wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 5px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* === Top Bar === */
.top-bar {
  background-color: #FA8072;
  color: black;
  font-size: 0.9rem;
  padding: 8px 15px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 3px 8px rgba(250, 128, 114, 0.5);
  user-select: none;
}

.top-bar a {
  color: black;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.25s ease;
  padding: 2px 5px;
  border-radius: 4px;
}

.top-bar a:hover,
.top-bar a:focus {
  color: white;
  text-decoration: underline;
  background-color: rgba(0,0,0,0.1);
}

/* === Navigation Bar === */
nav {
  background-color: black;
  color: #FA8072;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.5rem;
  box-shadow: 0 5px 15px rgba(250, 128, 114, 0.4);
  user-select: none;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.menu-toggle {
  font-size: 28px;
  cursor: pointer;
  display: none;
  color: #FA8072;
  transition: all 0.3s ease;
  background: none;
  border: none;
  padding: 5px;
}

.menu-toggle:hover,
.menu-toggle:focus {
  color: white;
  transform: scale(1.1);
}

.menu-toggle:focus {
  outline: 3px solid #ffd1ca;
  outline-offset: 3px;
  border-radius: 5px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  white-space: nowrap;
  color: white;
  text-shadow:
    0 0 5px rgba(255, 255, 255, 0.8),
    0 0 10px rgba(255, 255, 255, 0.6),
    0 0 20px rgba(255, 255, 255, 0.5),
    0 0 30px rgba(255, 255, 255, 0.4);
  transition: text-shadow 0.3s ease;
}

.logo:hover {
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.9),
    0 0 15px rgba(255, 255, 255, 0.7),
    0 0 25px rgba(255, 255, 255, 0.6),
    0 0 40px rgba(255, 255, 255, 0.5);
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
}

nav ul li {
  margin: 0 10px;
}

nav ul li a {
  color: #FFD700;
  text-decoration: none;
  padding: 12px 16px;
  display: block;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

nav ul li a:hover,
nav ul li a:focus {
  background-color: #FA8072;
  color: black;
  box-shadow: 0 6px 12px rgba(250, 128, 114, 0.6);
  outline: none;
  transform: translateY(-2px);
}

/* === Content Area === */
.content2 {
  font-size: 1.2em;
  padding: 0 20px;
  background: rgb(180, 200, 250);
  flex: 1;
  max-width: 100%;
  border-radius: 8px;
  margin: 10px 0;
}

/* === Album Slider === */
.album-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin: 5px 0;
}

.album {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 20px;
  padding: 15px;
  scroll-behavior: smooth;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

.album::-webkit-scrollbar {
  height: 8px;
}

.album::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.3);
  border-radius: 4px;
}

.album::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.1);
  border-radius: 4px;
}

.container2 {
  flex: 0 0 calc(25% - 15px);
  scroll-snap-align: start;
  border-radius: 20px;
  box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
  padding: 20px;
  background: lavender;
  font-size: 18px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 250px;
}

.container2:hover {
  transform: translateY(-5px);
  box-shadow: 8px 8px 25px rgba(0,0,0,0.4);
}

.container2 img {
  border-radius: 10px;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.container2:hover img {
  transform: scale(1.03);
}

.album-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 24px;
  border-radius: 50%;
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

/* Always show buttons on mobile */
@media (max-width: 768px) {
  .album-btn {
    opacity: 1 !important;
    pointer-events: auto !important;
    background: rgba(0,0,0,0.8) !important;
    width: 45px;
    height: 45px;
    font-size: 28px;
  }
  
  .album-wrapper:hover .album-btn {
    opacity: 1 !important;
  }
}

.album-wrapper:hover .album-btn {
  opacity: 1;
  pointer-events: auto;
}

.album-btn:hover {
  background: rgba(0,0,0,0.8);
  transform: translateY(-50%) scale(1.1);
}

.prev-btn { 
  left: 10px;
  visibility: hidden;
}

.next-btn { 
  right: 10px;
  visibility: hidden;
}

/* === Flag Logo Items === */
.logo-flags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
}

.logoitem {
  display: inline-block;
  margin: 0 10px;
  transition: transform 0.3s ease;
}

.logoitem:hover {
  transform: translateY(-5px);
}

.picture1 {
  width: 60px;
  height: auto;
  transition: all 0.3s ease;
  border-radius: 5px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.picture1:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* === Footer === */
footer {
  background-color: #FA8072;
  color: black;
  padding: 20px;
  text-align: center;
  margin-top: auto;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 -4px 15px rgba(250, 128, 114, 0.8);
}

footer .links2,
footer .contacts {
  margin-bottom: 15px;
}

footer a {
  margin: 0 12px;
  color: black;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 3px 8px;
  border-radius: 4px;
}

footer a:hover,
footer a:focus {
  color: #f0f0f0;
  text-decoration: underline;
  background-color: rgba(0,0,0,0.1);
}

footer .contacts a {
  font-size: 1.8rem;
  margin: 0 15px;
  display: inline-block;
}

footer .contacts a:hover,
footer .contacts a:focus {
  color: #f0f0f0;
  transform: scale(1.1);
}

footer p {
  margin: 10px 0 0;
  font-size: 0.9rem;
}

.flag{
    text-align: center;
    display: flex;
}

.flagitem {
	width: 20%;
	display: inline-block;
}

.links {
	font-size: 24px;
    padding-right: 15%;
	padding-left: 15%;
    background: rgb(200, 200, 200);
	display: flex;
	direction: ltr;
}

.linksdiv {
	width: 50%;
	display: inline-block;
}

.linkscontent {
	display: flex;
}

.linkscell {
	width: 50%;
	display: inline-block;
}

/* === Responsive Styles === */
@media (max-width: 768px) {
  .menu-toggle { 
    display: block; 
    font-size: 24px;
  }
  
  nav {
    padding: 0.6rem 1rem;
  }
  
  nav ul {
    flex-direction: column;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    width: 100%;
    background-color: black;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 5px 12px rgba(250, 128, 114, 0.3);
  }
  
  nav ul.active { 
    max-height: 1000px; 
    opacity: 1;
    padding: 10px 0;
  }
  
  nav ul li { 
    width: 100%; 
    margin: 8px 0; 
    text-align: center; 
  }
  
  .top-bar { 
    justify-content: center; 
    flex-wrap: wrap; 
    gap: 10px;
    padding: 8px 10px;
  }
  
  .content2 { 
    font-size: 1em; 
    padding: 0 10px; 
  }
  
  .container2 { 
    flex: 0 0 calc(100% - 20px); 
    padding: 15px; 
    font-size: 16px;
    min-width: auto;
  }
  
  .album {
    padding: 10px;
    gap: 15px;
  }
  
  footer .contacts a {
    font-size: 1.5rem;
    margin: 0 10px;
  }

	.links {
		font-size: 16px;
        padding-right: 4%;
		padding-left: 4%;
		display: block;
	}

	.linksdiv {
		width: 100%;
		display: block;
	}

	.linkscontent {
		display: block;
	}
	
	.linkscell {
		width: 100%;
		display: block;
	}
}

@media (max-width: 1024px) and (min-width: 769px) {
  nav ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 5px;
  }
  
  nav ul::-webkit-scrollbar { 
    display: none; 
  }
  
  nav ul li { 
    margin: 0 8px; 
  }
  
  nav ul li a { 
    padding: 10px 12px; 
    font-size: 0.95rem; 
  }
  
  .content2 { 
    font-size: 1.125em; 
    padding: 0 15px; 
  }
  
  .container2 { 
    flex: 0 0 calc(33.333% - 15px); 
    font-size: 18px; 
  }
  
  .logo-flags {
    gap: 15px;
  }
  
  .picture1 {
    width: 50px;
  }

	.links {
		font-size: 18px;
        padding-right: 7%;
		padding-left: 7%;
		display: block;
	}

	.linksdiv {
		width: 100%;
		display: block;
	}

	.linkscontent {
		width: 100%;
	}

	.linkscell {
		width: 100%;
	}
}