/* =================================================================
   IRANCELL MODERN LIGHT THEME
   =================================================================
   
   Professional light theme inspired by Irancell official website
   Modern design with yellow accents and clean typography
================================================================= */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: var(--font-size-5xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: var(--font-size-4xl);
  color: var(--irancell-yellow);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: var(--font-size-3xl);
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: var(--font-size-2xl);
  color: var(--irancell-yellow);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  text-align: justify;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Lists spacing */
ul, ol {
  margin-bottom: 1.5rem;
  padding-right: 1.5rem;
}

ul li, ol li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

/* Horizontal rule */
hr {
  margin: 2rem 0;
  border: none;
  border-top: 1px solid var(--border-light);
}

/* Content body styling */
.content-body h2:first-child,
.content-body h3:first-child {
  margin-top: 0;
}

a {
  color: var(--irancell-yellow);
  text-decoration: none;
  transition: var(--transition-normal);
}

a:hover {
  color: var(--irancell-yellow-hover);
  text-decoration: underline;
}

/* Header - Modern Light Design */
header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px var(--shadow-light);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--text-primary);
  border-radius: 3px;
  transition: var(--transition-normal);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

.logo h1 {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.logo h1 span {
  color: var(--irancell-yellow);
}

.logo a {
  color: var(--text-primary);
  text-decoration: none;
}

.logo a:hover {
  color: var(--irancell-yellow);
  text-decoration: none;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  margin: 3px 0;
  border-radius: 2px;
  transition: var(--transition-normal);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Navigation - Modern Style */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0;
  margin: 0;
}

.main-nav li {
  margin: 0;
}

.main-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius-small);
  transition: var(--transition-normal);
  position: relative;
  display: block;
}

.main-nav a:hover {
  color: var(--irancell-yellow);
  background-color: rgba(255, 193, 7, 0.1);
  text-decoration: none;
}

.main-nav a.active {
  background: var(--irancell-yellow);
  color: var(--text-dark);
}

/* Main Content */
main {
  min-height: calc(100vh - 200px);
  padding: 0;
}

.content {
  background: var(--bg-card);
  padding: 3rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px var(--shadow-light);
  margin-bottom: 2rem;
  border: 1px solid var(--border-light);
}

/* Hero Section - Modern Light Style */
.hero {
  background: var(--bg-hero, #f8f9fa);
  color: var(--text-primary);
  text-align: center;
  padding: 6rem 2rem;
  margin: 0;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--irancell-yellow);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%23ffc107" opacity="0.15"/><circle cx="80" cy="40" r="1" fill="%23ffc107" opacity="0.25"/><circle cx="40" cy="80" r="1.5" fill="%23ffc107" opacity="0.15"/></svg>');
  animation: float 20s infinite linear;
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-20px) rotate(360deg); }
}

.hero h1 {
  color: var(--text-primary);
  font-size: var(--font-size-5xl);
  margin-bottom: 1.5rem;
  text-shadow: none;
  position: relative;
  z-index: 2;
}

.hero p {
  font-size: var(--font-size-xl);
  margin-bottom: 3rem;
  color: var(--text-secondary);
  position: relative;
  z-index: 2;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

/* Cards - Modern Design */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
  padding: 2rem 0;
}

.card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px var(--shadow-medium);
  overflow: hidden;
  transition: var(--transition-normal);
  border: 1px solid var(--border-light);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-yellow);
  opacity: 0;
  transition: var(--transition-normal);
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 48px var(--shadow-medium);
  border-color: var(--irancell-yellow);
}

.card-content {
  padding: 2rem;
}

.card h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: var(--font-size-2xl);
}

.card h3 a {
  color: inherit;
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--irancell-yellow);
  text-decoration: none;
}

.card p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.card-description {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.card-summary {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.card-summary h3 {
  font-size: var(--font-size-xl);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.card-summary h3:first-child {
  margin-top: 0;
}

.card-summary ul,
.card-summary ol {
  margin-bottom: 1rem;
  padding-right: 1.25rem;
}

.card-summary li {
  margin-bottom: 0.25rem;
  font-size: var(--font-size-sm);
}

.card-summary p {
  font-size: var(--font-size-sm);
  margin-bottom: 0.75rem;
}

.card-categories {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.card-button {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

/* Price Display - Modern Style */
.price {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--irancell-yellow-dark);
  margin: 1.5rem 0;
  text-shadow: none;
  display: block;
  padding: 0.5rem 1rem;
  background: rgba(255, 193, 7, 0.15);
  border-radius: var(--border-radius-small);
  border-right: 4px solid var(--irancell-yellow);
}

/* Buttons - Modern Design */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-normal);
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: var(--font-size-base);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: var(--transition-slow);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-yellow);
  color: var(--text-dark);
  box-shadow: 0 4px 15px var(--shadow-yellow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow-yellow);
  color: var(--text-dark);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--irancell-yellow);
  border: 2px solid var(--irancell-yellow);
}

.btn-secondary:hover {
  background: var(--irancell-yellow);
  color: var(--text-dark);
  text-decoration: none;
}

.btn-accent {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-accent:hover {
  background: var(--irancell-yellow);
  color: var(--text-dark);
  border-color: var(--irancell-yellow);
  text-decoration: none;
}

/* Forms - Modern Dark Style */
form {
  max-width: 600px;
  margin: 2rem 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

input,
textarea,
select {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-light);
  border-radius: var(--border-radius-small);
  font-family: inherit;
  font-size: var(--font-size-base);
  transition: var(--transition-normal);
  background-color: var(--bg-card);
  color: var(--text-primary);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--irancell-yellow);
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
  background-color: var(--bg-secondary);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* Info Sections */
.info-section {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: var(--border-radius);
  margin: 2rem 0;
  border: 1px solid var(--border-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.feature {
  text-align: center;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px var(--shadow-light);
  border: 1px solid var(--border-light);
  transition: var(--transition-normal);
}

.feature:hover {
  transform: translateY(-5px);
  border-color: var(--irancell-yellow);
}

.feature h4 {
  color: var(--irancell-yellow);
  margin-bottom: 1rem;
}

/* Contact Info */
.contact-info {
  background: var(--bg-secondary);
  padding: 3rem 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: 0 4px 20px var(--shadow-light);
  border: 1px solid var(--border-light);
  margin: 2rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.contact-item h4 {
  color: var(--irancell-yellow);
  margin-bottom: 0.5rem;
}

.contact-item a {
  color: var(--text-secondary);
}

.contact-item a:hover {
  color: var(--irancell-yellow);
}

/* Categories/Tags */
.category-tag {
  background: var(--irancell-yellow);
  color: var(--text-dark);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-large);
  font-size: var(--font-size-sm);
  margin: 0 0.5rem 0.5rem 0;
  display: inline-block;
  transition: var(--transition-normal);
  font-weight: 500;
}

.category-tag:hover {
  background: var(--irancell-yellow-hover);
  transform: translateY(-2px);
}

/* Footer */
footer {
  background: var(--bg-secondary);
  color: var(--text-primary);
  text-align: center;
  padding: 3rem 0;
  margin-top: 4rem;
  border-top: 3px solid var(--irancell-yellow);
}

footer p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  .header-content {
    position: relative;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-radius: var(--border-radius-small);
    box-shadow: 0 8px 32px var(--shadow-dark);
    border: 1px solid var(--border-light);
    z-index: 1000;
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    margin-top: 1rem;
  }
  
  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    text-align: center;
    width: 100%;
    padding: 1rem 0;
  }
  
  .main-nav a {
    padding: 1rem 2rem;
    border-radius: 0;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .hero {
    padding: 3rem 1rem;
  }
  
  .hero h1 {
    font-size: var(--font-size-4xl);
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  h1 {
    font-size: var(--font-size-4xl);
  }
  
  .content {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2rem 1rem;
  }
  
  .hero h1 {
    font-size: var(--font-size-3xl);
  }
  
  .content {
    padding: 1.5rem 1rem;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: var(--font-size-sm);
  }
  
  .card-content {
    padding: 1.5rem;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--irancell-yellow);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--irancell-yellow-hover);
}

/* =================================================================
   HERO IMAGE SLIDER
================================================================= */
.hero-with-images {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
  padding: 0;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-content {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  padding: 2rem 3rem;
  border-radius: var(--border-radius-large);
  box-shadow: 0 8px 40px var(--shadow-medium);
  text-align: center;
  max-width: 500px;
  margin: 2rem;
  border: 2px solid var(--irancell-yellow);
}

.hero-content h1 {
  margin-bottom: 1rem;
  text-shadow: none;
}

.hero-content p {
  margin-bottom: 2rem;
  text-align: center;
}

/* =================================================================
   PAGE BANNER WITH IMAGE
================================================================= */
.page-banner {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-bottom: 4px solid var(--irancell-yellow);
}

.page-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-banner .banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.85));
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-banner h1 {
  color: var(--text-primary);
  font-size: var(--font-size-4xl);
  text-shadow: none;
  margin: 0;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--border-radius);
  border-right: 4px solid var(--irancell-yellow);
}

/* Responsive for banners */
@media (max-width: 768px) {
  .hero-with-images {
    min-height: 400px;
  }
  
  .hero-content {
    padding: 2rem;
    margin: 1rem;
  }
  
  .page-banner {
    height: 200px;
  }
  
  .page-banner h1 {
    font-size: var(--font-size-2xl);
  }
}

@media (max-width: 480px) {
  .hero-with-images {
    min-height: 350px;
  }
  
  .hero-content {
    padding: 1.5rem;
  }
  
  .page-banner {
    height: 150px;
  }
  
  .page-banner h1 {
    font-size: var(--font-size-xl);
    padding: 0.75rem 1rem;
  }
}
}