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

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

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

/* Header Styles */
.header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Slightly wider header container on large screens */
.header .container {
  max-width: 1300px;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo-images {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 8px;
}

.logo-img {
  height: 75px;
  width: auto;
  object-fit: contain;
}

.rab-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-size: 2.8rem;
  font-weight: 800;
  color: #2563eb;
  line-height: 1;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
}

.logo-subtitle {
  font-size: 0.8rem;
  color: #666;
  margin-top: 5px;
  max-width: 200px;
  line-height: 1.2;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  padding: 8px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #333;
  transition: all 0.3s ease;
}

.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 Styles */
.nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 15px 20px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #2563eb;
  background-color: #f8fafc;
}

.nav-link i {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.has-dropdown.active .nav-link i {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  min-width: 250px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  list-style: none;
  padding: 8px 0;
  z-index: 1001;
}

.has-dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  border-bottom: 1px solid #f1f5f9;
  position: relative;
}

.dropdown-menu li:last-child {
  border-bottom: none;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
}

.dropdown-menu a:hover {
  background-color: #f8fafc;
  color: #2563eb;
  padding-left: 25px;
}

.dropdown-menu a i {
  font-size: 10px;
  transition: transform 0.3s ease;
}

/* Third Level Menu (Submenu) */
.has-submenu {
  position: relative;
}

.has-submenu > a i {
  transition: transform 0.3s ease;
}

.has-submenu.active > a i {
  transform: rotate(90deg);
}

.submenu {
  position: absolute;
  left: 0;
  top: 100%;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  list-style: none;
  padding: 8px 0;
  z-index: 1002;
}

.has-submenu.active .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu li {
  border-bottom: 1px solid #f1f5f9;
}

.submenu li:last-child {
  border-bottom: none;
}

.submenu a {
  padding: 10px 20px;
  font-size: 13px;
  color: #555;
  display: block;
  text-decoration: none;
  transition: all 0.3s ease;
}

.submenu a:hover {
  background-color: #f1f5f9;
  color: #2563eb;
  padding-left: 25px;
}

/* Fourth Level Menu (Subsubmenu) */
.has-subsubmenu {
  position: relative;
}

.has-subsubmenu > a i {
  transition: transform 0.3s ease;
}

.has-subsubmenu.active > a i {
  transform: rotate(90deg);
}

.subsubmenu {
  position: absolute;
  left: 0;
  top: 100%;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  list-style: none;
  padding: 8px 0;
  z-index: 1003;
}

.has-subsubmenu.active .subsubmenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.subsubmenu li {
  border-bottom: 1px solid #f1f5f9;
}

.subsubmenu li:last-child {
  border-bottom: none;
}

.subsubmenu a {
  padding: 8px 20px;
  font-size: 12px;
  color: #666;
  display: block;
  text-decoration: none;
  transition: all 0.3s ease;
}

.subsubmenu a:hover {
  background-color: #f8fafc;
  color: #2563eb;
  padding-left: 25px;
}

/* Arrow indicator for items with submenu */
.has-submenu > a::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 5px solid #ccc;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  transition: all 0.3s ease;
}

.has-submenu.active > a::after {
  border-top-color: #2563eb;
}

/* Arrow indicator for items with subsubmenu */
.has-subsubmenu > a::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 4px solid #ccc;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  transition: all 0.3s ease;
}

.has-subsubmenu.active > a::after {
  border-top-color: #2563eb;
}

/* Mobile styles for third and fourth level menu */
@media (max-width: 768px) {
  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: #f1f5f9;
    border-radius: 0;
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-left: 20px;
    border-left: 2px solid #e2e8f0;
  }

  .has-submenu.active .submenu {
    display: block;
    max-height: 500px;
  }

  .submenu a {
    padding: 8px 20px;
    font-size: 12px;
    color: #666;
  }

  .submenu a:hover {
    background-color: #e2e8f0;
    padding-left: 25px;
  }

  .has-submenu > a::after {
    display: none;
  }

  .has-submenu > a i {
    transform: rotate(0deg);
    transition: transform 0.3s ease;
  }

  .has-submenu.active > a i {
    transform: rotate(90deg);
  }

  /* Fourth level mobile styles */
  .subsubmenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: #e2e8f0;
    border-radius: 0;
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-left: 20px;
    border-left: 2px solid #cbd5e1;
  }

  .has-subsubmenu.active .subsubmenu {
    display: block;
    max-height: 500px;
  }

  .subsubmenu a {
    padding: 6px 20px;
    font-size: 11px;
    color: #777;
  }

  .subsubmenu a:hover {
    background-color: #d1d5db;
    padding-left: 25px;
  }

  .has-subsubmenu > a::after {
    display: none;
  }

  .has-subsubmenu > a i {
    transform: rotate(0deg);
    transition: transform 0.3s ease;
  }

  .has-subsubmenu.active > a i {
    transform: rotate(90deg);
  }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box i {
  position: absolute;
  left: 12px;
  color: #666;
}

.search-box input {
  padding: 10px 15px 10px 40px;
  border: 1px solid #ddd;
  border-radius: 25px;
  width: 250px;
  font-size: 14px;
}

.search-box input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.language-switcher {
  display: flex;
  gap: 5px;
}

.lang {
  padding: 8px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
}

.lang.active {
  background-color: #2563eb;
  color: #fff;
}

.lang:not(.active) {
  background-color: #f1f5f9;
  color: #666;
}

.lang:not(.active):hover {
  background-color: #e2e8f0;
  color: #333;
}

/* Button Styles */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: #2563eb;
  color: white;
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #2563eb;
  border: 2px solid #2563eb;
}

.btn-outline:hover {
  background: #2563eb;
  color: white;
  transform: translateY(-2px);
}

/* Hero Section - Legacy styles (overridden by hero-redesign.css) */
.hero {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 30px;
  line-height: 1.2;
}

.hero-description {
  font-size: 1.1rem;
  color: #475569;
  margin-bottom: 40px;
  line-height: 1.8;
}

.newsletter-section h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 20px;
}

.newsletter-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-group i {
  position: absolute;
  left: 15px;
  color: #666;
}

.input-group input {
  width: 100%;
  padding: 15px 15px 15px 45px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
}

.input-group input:focus {
  outline: none;
  border-color: #2563eb;
}

.hero-image {
  position: relative;
}

.hero-video {
  position: relative;
  width: 100%;
}

.image-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.image-container img {
  width: 100%;
  height: auto;
  display: block;
}

.abstract-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.shape {
  position: absolute;
  background: #2563eb;
  border-radius: 50%;
  opacity: 0.1;
}

.shape-1 {
  width: 120px;
  height: 120px;
  top: 20px;
  right: 30px;
}

.shape-2 {
  width: 80px;
  height: 80px;
  bottom: 40px;
  left: 20px;
}

.shape-3 {
  width: 60px;
  height: 60px;
  top: 60px;
  left: 40px;
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  background: #fff;
}

.cta-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.cta-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 30px;
  line-height: 1.3;
}

.cta-text p {
  font-size: 1.1rem;
  color: #475569;
  margin-bottom: 20px;
  line-height: 1.8;
}

.cta-text strong {
  color: #2563eb;
}

/* Section Styles */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  margin-bottom: 60px;
  line-height: 1.3;
}

.programs-section,
.student-life-section,
.news-section,
.faculty-section {
  padding: 80px 0;
}

.programs-section {
  background: #f8fafc;
}

.student-life-section {
  background: #fff;
}

.news-section {
  background: #f8fafc;
}

.faculty-section {
  background: #fff;
}

/* Grid Layouts */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.program-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.program-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.program-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 15px;
}

.program-content h3 {
  margin-bottom: 10px;
}

.program-content p {
  flex-grow: 1; /* растягиваем текст, чтобы кнопка всегда внизу */
  margin-bottom: 15px;
}

.program-content .btn {
  align-self: flex-start; /* кнопка прилипает внизу */
}

.life-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.life-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.life-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.life-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 15px;
}

.life-content h3 {
  margin-bottom: 10px;
}

.life-content p {
  flex-grow: 1; /* растягиваем текст */
  margin-bottom: 15px;
}

.life-content .btn {
  align-self: flex-start; /* кнопка прижимается вниз */
}

.programs-grid,
.life-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

/* Card Styles */
.program-card,
.life-card,
.news-card,
.faculty-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover,
.life-card:hover,
.news-card:hover,
.faculty-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.program-image,
.life-image,
.news-image {
  height: 250px;
  overflow: hidden;
}

.program-image img,
.life-image img,
.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.program-card:hover .program-image img,
.life-card:hover .life-image img,
.news-card:hover .news-image img {
  transform: scale(1.1);
}

.program-content,
.life-content,
.news-content {
  padding: 25px;
}

.program-content h3,
.life-content h3,
.news-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 15px;
}

.program-content p,
.life-content p,
.news-content p {
  color: #64748b;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Faculty Cards */
.faculty-card {
  text-align: center;
  padding: 30px 20px;
}

.faculty-photo {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #2563eb;
}

.faculty-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.faculty-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 10px;
}

.faculty-card p {
  color: #64748b;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Section Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.section-header .section-title {
  text-align: left;
  margin-bottom: 0;
}

.section-content {
  max-width: 600px;
}

.section-content p {
  font-size: 1.1rem;
  color: #475569;
  line-height: 1.8;
}

/* === Новый современный футер === */
.footer {
  background: linear-gradient(135deg, #0a1643 0%, #1e3a8a 100%);
  color: #fff;
  font-family: "Inter", sans-serif;
  padding: 60px 0 20px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
}

.footer .container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Основной контент футера */
.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

/* Логотип и контакты */
.footer-logo {
  margin-bottom: 18px;
}

.footer-logo .logo-img {
  width: 280px;
  height: auto;

  filter: brightness(0) invert(1);
}

.footer-logo h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.4;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-item i {
  color: #3b82f6;
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-item div {
  font-size: 0.9rem;
  line-height: 1.5;
}

.contact-item strong {
  color: #f1f5f9;
}

/* Секции футера */
.footer-section h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #f1f5f9;
  position: relative;
  padding-bottom: 8px;
  margin-top: 38px;
}

.footer-section h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: #3b82f6;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links li a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  padding: 4px 0;
}

.footer-links li a:hover {
  color: #3b82f6;
  transform: translateX(5px);
}

.footer-links li a i {
  font-size: 0.7rem;
  color: #3b82f6;
}

/* Антикоррупция */
.anti-corruption {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.anti-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.anti-corruption .anti-logo {
  width: 120px;
  height: auto;
  flex-shrink: 0;
}

.anti-header .anti-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.corruption-hotline {
  text-align: center;
  margin: 20px 0;
  padding: 15px;
  background: rgba(12, 26, 74, 0.1);
  border-radius: 8px;
  border: 1px solid rgb(255 247 247 / 20%);
}

.hotline-number {
  font-size: 2rem;
  font-weight: 700;
  color: #dc2626;
  margin-bottom: -10px;
}

.corruption-hotline p {
  font-size: 0.85rem;
  margin-bottom: 5px;
  color: #f1f5f9;
}

.corruption-hotline small {
  font-size: 0.75rem;
  color: #ffffff;
}

.anti-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.anti-links li {
  margin-bottom: 10px;
}

.anti-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  padding: 4px 0;
}

.anti-links a:hover {
  color: #3b82f6;
  transform: translateX(3px);
}

.anti-links a i {
  color: #3b82f6;
  font-size: 0.8rem;
}

/* Социальные сети */
.footer-social {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px 0;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
  background: #3b82f6;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.social-link i {
  font-size: 1.2rem;
}

/* Нижняя линия */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: #3b82f6;
}

.footer-bottom-links .separator {
  color: #64748b;
  font-size: 0.8rem;
}

/* Адаптивность */
@media (max-width: 1200px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 40px 0 20px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .contact-item {
    justify-content: center;
  }

  .footer-section h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .anti-corruption {
    text-align: center;
  }

  .anti-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .anti-corruption .anti-logo {
    width: 100px;
  }

  .anti-header .anti-links {
    align-items: center;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }

  .social-links {
    gap: 15px;
  }

  .social-link {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .footer .container {
    padding: 0 15px;
  }

  .footer-main {
    gap: 25px;
  }

  .footer-logo h3 {
    font-size: 1rem;
  }

  .hotline-number {
    font-size: 1.5rem;
  }

  .social-link {
    width: 35px;
    height: 35px;
  }

  .social-link i {
    font-size: 1rem;
  }

  .anti-corruption .anti-logo {
    width: 80px;
  }

  .anti-header .anti-links a {
    font-size: 0.8rem;
  }
}

.anti-logo {
  margin-bottom: 10px;
}

/* Quote Section Styles */
.quote-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.quote-section::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"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.quote-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.quote-header {
  margin-bottom: 40px;
}

.quote-header .section-title {
  color: #fff;
  margin-bottom: 20px;
}

.quote-icon {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

.quote-text {
  margin-bottom: 30px;
}

.quote-text blockquote {
  font-size: 2rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.4;
  margin-bottom: 15px;
  position: relative;
}

.quote-text cite {
  font-size: 1.1rem;
  font-weight: 500;
  opacity: 0.9;
}

.quote-description {
  margin-bottom: 40px;
}

.quote-description p {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.quote-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.quote-actions .btn {
  min-width: 150px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .nav-menu {
    gap: 0;
  }

  .nav-link {
    padding: 12px 15px;
  }

  .dropdown-menu {
    min-width: 220px;
  }
}

@media (max-width: 768px) {
  .header-top {
    flex-wrap: wrap;
    gap: 20px;
  }

  .logo-images {
    gap: 10px;
    margin-bottom: 6px;
  }

  .logo-img {
    height: 40px;
  }

  .rab-img {
    height: 40px;
  }

  .logo-text {
    font-size: 2.2rem;
    letter-spacing: 1px;
  }

  .mobile-menu-toggle {
    display: flex;
    order: 3;
  }

  .nav {
    order: 4;
    width: 100%;
    display: none;
  }

  .nav.active {
    display: block;
  }

  .nav-menu {
    flex-direction: column;
    width: 100%;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    margin-top: 20px;
    overflow: hidden;
  }

  .nav-item {
    border-bottom: 1px solid #f1f5f9;
  }

  .nav-item:last-child {
    border-bottom: none;
  }

  .nav-link {
    padding: 15px 20px;
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: #f8fafc;
    border-radius: 0;
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .has-dropdown.active .dropdown-menu {
    display: block;
    max-height: 500px;
  }

  .dropdown-menu a {
    padding: 12px 30px;
  }

  .header-right {
    order: 2;
    gap: 15px;
  }

  .search-box input {
    width: 200px;
  }

  .quote-text blockquote {
    font-size: 1.5rem;
  }

  .quote-actions {
    flex-direction: column;
    align-items: center;
  }

  .quote-actions .btn {
    width: 100%;
    max-width: 250px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero,
  .cta-section,
  .programs-section,
  .student-life-section,
  .news-section,
  .faculty-section {
    padding: 40px 0;
  }

  .hero-title,
  .cta-text h2,
  .section-title {
    font-size: 1.8rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .newsletter-buttons {
    flex-direction: column;
    align-items: center;
  }

  .logo-text {
    font-size: 1.8rem;
    letter-spacing: 0.5px;
  }

  .logo-subtitle {
    font-size: 0.7rem;
    max-width: 150px;
  }

  .search-box input {
    width: 150px;
  }

  .quote-text blockquote {
    font-size: 1.3rem;
  }

  .quote-description p {
    font-size: 1rem;
  }

  .logo-images {
    gap: 8px;
    margin-bottom: 5px;
  }

  .logo-img {
    height: 35px;
  }

  .rab-img {
    height: 35px;
  }
}

/* Corporate Governance Styles */
.corporate-governance {
  background-color: #f5f5f5;
  padding: 40px 0;
  min-height: calc(100vh - 200px);
}

.governance-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Left Sidebar */
.governance-sidebar {
  background: #fff;
  border-radius: 8px;
  padding: 30px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  height: fit-content;
}

.sidebar-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 30px 25px 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e2e8f0;
}

.governance-nav {
  padding: 0;
}

.governance-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.governance-item {
  margin: 0;
}

.governance-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 30px;
  color: #475569;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.governance-link:hover {
  background-color: #f8fafc;
  color: #2563eb;
}

.governance-item.active .governance-link {
  background-color: #2563eb;
  color: #fff;
  border-left-color: #1d4ed8;
}

.governance-link i {
  font-size: 0.8rem;
  opacity: 0.7;
}

.governance-item.active .governance-link i {
  opacity: 1;
}

/* Main Content */
.governance-content {
  background: #fff;
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 1000px;
  width: 100%;
}

.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e2e8f0;
}

.home-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.home-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.home-btn i {
  font-size: 0.9rem;
}

.content-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
  flex: 1;
}

/* Director Content Layout */
.director-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.director-text {
  line-height: 1.8;
}

.director-text p {
  color: #374151;
  margin-bottom: 28px;
  font-size: 1rem;
  text-align: justify;
  font-weight: 400;
}

.director-text p:last-child {
  margin-bottom: 0;
}

.director-photo {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.director-image {
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 3px solid #f1f5f9;
}

/* Legacy content-text styles for backward compatibility */
.content-text {
  line-height: 1.7;
}

.content-text p {
  color: #475569;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.content-text p:last-child {
  margin-bottom: 0;
}

/* Responsive Design for Corporate Governance */
@media (max-width: 1024px) {
  .governance-layout {
    grid-template-columns: 250px 1fr;
    gap: 20px;
  }

  .governance-content {
    padding: 30px;
  }

  .governance-sidebar {
    padding: 25px 0;
  }

  .sidebar-title {
    margin: 0 25px 20px 25px;
    font-size: 1rem;
  }

  .governance-link {
    padding: 10px 25px;
    font-size: 0.85rem;
  }

  .director-content {
    gap: 25px;
  }

  .director-image {
    width: 220px;
    height: 270px;
  }

  .director-text p {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .governance-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .governance-sidebar {
    order: 2;
  }

  .governance-content {
    order: 1;
    padding: 25px;
  }

  .content-header {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    margin-bottom: 25px;
  }

  .home-btn {
    align-self: flex-end;
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .content-title {
    font-size: 1.2rem;
    margin: 0;
  }

  .director-content {
    gap: 20px;
    text-align: center;
  }

  .director-image {
    width: 200px;
    height: 240px;
  }

  .director-text {
    text-align: left;
  }

  .director-text p {
    font-size: 1.05rem;
    margin-bottom: 22px;
  }

  .content-text p {
    font-size: 0.9rem;
    margin-bottom: 18px;
  }
}

@media (max-width: 480px) {
  .corporate-governance {
    padding: 20px 0;
  }

  .governance-content {
    padding: 20px;
  }

  .governance-sidebar {
    padding: 20px 0;
  }

  .sidebar-title {
    margin: 0 20px 15px 20px;
    font-size: 0.95rem;
  }

  .governance-link {
    padding: 8px 20px;
    font-size: 0.8rem;
  }

  .content-header {
    gap: 12px;
    margin-bottom: 20px;
  }

  .home-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .content-title {
    font-size: 1.1rem;
    margin: 0;
  }

  .director-content {
    gap: 18px;
  }

  .director-image {
    width: 180px;
    height: 220px;
  }

  .director-text p {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .content-text p {
    font-size: 0.85rem;
    margin-bottom: 15px;
  }
}

/* Feedback Section Styles */
.feedback-section {
  background-color: #f8fafc;
  padding: 60px 0;
}

.feedback-container {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.feedback-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 20px;
}

.feedback-description {
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 30px;
  line-height: 1.6;
}

.feedback-actions {
  display: flex;
  justify-content: center;
}

.feedback-actions .btn {
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feedback-actions .btn i {
  font-size: 1.1rem;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  opacity: 1;
}

.modal-content {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.modal.show .modal-content {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px 20px 30px;
  border-bottom: 1px solid #e2e8f0;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #64748b;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background-color: #f1f5f9;
  color: #374151;
}

.modal-body {
  padding: 30px;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 5px;
}

.form-input,
.form-textarea {
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background-color: #fff;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.form-actions .btn {
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  min-width: 140px;
}

.form-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background: #6b7280;
  color: white;
  border: 2px solid #6b7280;
}

.btn-secondary:hover {
  background: #4b5563;
  border-color: #4b5563;
  box-shadow: 0 8px 25px rgba(107, 114, 128, 0.3);
}

/* Responsive Design for Feedback Form */
@media (max-width: 768px) {
  .feedback-section {
    padding: 40px 0;
  }

  .feedback-container {
    padding: 30px 20px;
    margin: 0 20px;
  }

  .feedback-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .feedback-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .modal-content {
    width: 95%;
    margin: 20px;
  }

  .modal-header {
    padding: 20px 25px 15px 25px;
  }

  .modal-title {
    font-size: 1.3rem;
  }

  .modal-body {
    padding: 25px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .feedback-form {
    gap: 20px;
  }

  .form-input,
  .form-textarea {
    padding: 10px 14px;
    font-size: 0.95rem;
  }

  .form-actions {
    flex-direction: column;
    gap: 12px;
  }

  .form-actions .btn {
    padding: 12px 28px;
    font-size: 0.95rem;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .feedback-container {
    padding: 25px 15px;
    margin: 0 15px;
  }

  .feedback-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
  }

  .feedback-description {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .modal-content {
    width: 98%;
    margin: 10px;
  }

  .modal-header {
    padding: 15px 20px 10px 20px;
  }

  .modal-title {
    font-size: 1.2rem;
  }

  .modal-body {
    padding: 20px;
  }

  .feedback-form {
    gap: 18px;
  }

  .form-input,
  .form-textarea {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .form-actions .btn {
    padding: 10px 24px;
    font-size: 0.9rem;
  }
}

/* Additional responsive refinements (non-header) */
@media (max-width: 1024px) {
  .hero-content,
  .cta-content {
    gap: 40px;
  }

  .section-title {
    font-size: 2.1rem;
  }
}

@media (max-width: 900px) {
  .hero-content,
  .cta-content {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .section-header .btn {
    align-self: stretch;
  }
}

@media (max-width: 768px) {
  .programs-grid,
  .life-grid,
  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .faculty-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
  }

  .program-image,
  .life-image,
  .news-image {
    height: 220px;
  }

  .footer-content {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .anti-block {
    align-items: center;
  }
}

@media (max-width: 560px) {
  .program-image,
  .life-image,
  .news-image {
    height: 200px;
  }

  .newsletter-buttons {
    flex-wrap: wrap;
  }

  .newsletter-buttons .btn {
    width: 100%;
  }
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 1000;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(37, 99, 235, 0.4);
}

.scroll-to-top:active {
  transform: translateY(-1px);
}

/* Custom Scrollbar */
/* WebKit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-radius: 4px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: #2563eb #f1f5f9;
}

/* Mobile responsive for scroll to top button */
@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .scroll-to-top {
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
}

/* Administration Page Styles */
.administration-section {
  margin-bottom: 40px;
}

.section-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
}

.admin-card {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.admin-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.admin-photo {
  flex-shrink: 0;
}

.admin-image {
  width: 120px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid #f1f5f9;
}

.admin-info {
  flex: 1;
}

.admin-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
}

.admin-position {
  font-size: 1rem;
  font-weight: 500;
  color: #2563eb;
  margin-bottom: 15px;
}

.admin-description {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.contact-info {
  background: #f8fafc;
  border-radius: 12px;
  padding: 25px;
  border: 1px solid #e2e8f0;
}

.contact-info .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  padding: 15px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.contact-info .contact-item:last-child {
  margin-bottom: 0;
}

.contact-info .contact-item i {
  color: #2563eb;
  font-size: 1.2rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-info .contact-item div {
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-info .contact-item strong {
  color: #1e293b;
  font-weight: 600;
}

/* Responsive Design for Administration */
@media (max-width: 768px) {
  .admin-card {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .admin-image {
    width: 100px;
    height: 120px;
    margin: 0 auto;
  }

  .admin-info {
    text-align: left;
  }

  .section-subtitle {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }

  .contact-info {
    padding: 20px;
  }

  .contact-info .contact-item {
    padding: 12px;
    margin-bottom: 15px;
  }
}

@media (max-width: 480px) {
  .administration-section {
    margin-bottom: 30px;
  }

  .admin-card {
    padding: 20px;
    gap: 15px;
  }

  .admin-image {
    width: 80px;
    height: 100px;
  }

  .admin-name {
    font-size: 1.1rem;
  }

  .admin-position {
    font-size: 0.9rem;
  }

  .admin-description {
    font-size: 0.85rem;
  }

  .section-subtitle {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }

  .contact-info {
    padding: 15px;
  }

  .contact-info .contact-item {
    padding: 10px;
    margin-bottom: 12px;
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .contact-info .contact-item i {
    margin-top: 0;
  }
}

/* Google Translate Styles */
#google_translate_element {
  display: inline-block;
  vertical-align: middle;
}

.goog-te-gadget {
  font-family: "Inter", sans-serif !important;
  font-size: 14px !important;
}

.goog-te-gadget-simple {
  background: #f8f9fa !important;
  border: 1px solid #dee2e6 !important;
  border-radius: 6px !important;
  padding: 8px 12px !important;
  color: #495057 !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
}

.goog-te-gadget-simple:hover {
  background: #e9ecef !important;
  border-color: #adb5bd !important;
  color: #212529 !important;
}

.goog-te-gadget-simple:focus {
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25) !important;
}

.goog-te-gadget-simple .goog-te-menu-value {
  color: #495057 !important;
  font-size: 14px !important;
}

.goog-te-gadget-simple .goog-te-menu-value span:first-child {
  color: #495057 !important;
}

.goog-te-gadget-simple .goog-te-menu-value span:last-child {
  color: #6c757d !important;
  font-size: 12px !important;
}

/* Hide Google Translate branding */
.goog-te-banner-frame {
  display: none !important;
}

body {
  top: 0 !important;
}

/* Language switcher container */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Mobile styles for Google Translate */
@media (max-width: 768px) {
  .goog-te-gadget-simple {
    padding: 6px 10px !important;
    font-size: 12px !important;
  }
  
  .goog-te-gadget-simple .goog-te-menu-value {
    font-size: 12px !important;
  }
}

@media (max-width: 480px) {
  .goog-te-gadget-simple {
    padding: 4px 8px !important;
    font-size: 11px !important;
  }
  
  .goog-te-gadget-simple .goog-te-menu-value {
    font-size: 11px !important;
  }
}

/* Yandex Translator Alternative Styles */
.yandex-translate-widget {
  display: inline-block;
}

.yandex-translate-select {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 8px 12px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: #495057;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.yandex-translate-select:hover {
  background: #e9ecef;
  border-color: #adb5bd;
  color: #212529;
}

.yandex-translate-select:focus {
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
  border-color: #007bff;
}

/* Translation notification */
.translation-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #28a745;
  color: white;
  padding: 12px 16px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  animation: slideIn 0.3s ease;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notification-content i {
  font-size: 16px;
}

.reset-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
}

.reset-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Translation states */
.translating {
  opacity: 0.7;
  pointer-events: none;
}

.translated {
  position: relative;
}

/* Mobile styles for Yandex translator */
@media (max-width: 768px) {
  .yandex-translate-select {
    padding: 6px 10px;
    font-size: 12px;
  }
  
  .translation-notification {
    top: 10px;
    right: 10px;
    left: 10px;
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .yandex-translate-select {
    padding: 4px 8px;
    font-size: 11px;
  }
}
