:root {
  --primary-blue: #1a3a6e;
  --primary-light: #2c5aa0;
  --accent-gold: #c9a227;
  --accent-gold-light: #e6c55a;
  --text-dark: #2d2d2d;
  --text-light: #666666;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
  --border-radius: 8px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--bg-white);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-blue);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

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

header {
  background: var(--bg-white);
  box-shadow: var(--shadow);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.header-top {
  background: var(--primary-blue);
  padding: 8px 0;
}

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

.contact-info {
  display: flex;
  gap: 20px;
  color: #fff;
  font-size: 0.85rem;
}

.contact-info a {
  color: #fff;
}

.contact-info a:hover {
  color: var(--accent-gold);
}

.lang-switch {
  display: flex;
  gap: 10px;
}

.lang-switch a {
  color: #fff;
  padding: 4px 12px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}

.lang-switch a:hover,
.lang-switch a.active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
}

.header-main {
  padding: 15px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo img {
  height: 60px;
  width: auto;
}

.logo-text h1 {
  font-size: 1.4rem;
  margin: 0;
  color: var(--primary-blue);
}

.logo-text span {
  font-size: 0.75rem;
  color: var(--text-light);
}

nav ul {
  display: flex;
  gap: 5px;
}

nav ul li a {
  padding: 10px 18px;
  color: var(--text-dark);
  font-weight: 500;
  border-radius: var(--border-radius);
}

nav ul li a:hover,
nav ul li a.active {
  background: var(--primary-blue);
  color: #fff;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-blue);
  border-radius: 2px;
  transition: var(--transition);
}

.hero {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 180px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/campus-life.jpg') center/cover;
  opacity: 0.15;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: #fff;
  font-size: 3rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero .subtitle {
  font-size: 1.2rem;
  color: var(--accent-gold-light);
  margin-bottom: 15px;
  font-weight: 500;
}

.hero .motto {
  font-size: 1.1rem;
  font-style: italic;
  opacity: 0.9;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent-gold);
  color: var(--primary-blue);
}

.btn-primary:hover {
  background: var(--accent-gold-light);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

.btn-secondary:hover {
  background: #fff;
  color: var(--primary-blue);
}

.btn-outline {
  background: transparent;
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.btn-outline:hover {
  background: var(--primary-blue);
  color: #fff;
}

section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent-gold);
}

.section-header p {
  max-width: 600px;
  margin: 20px auto 0;
}

.bg-light {
  background: var(--bg-light);
}

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

.card {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.card-img {
  height: 200px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover .card-img img {
  transform: scale(1.05);
}

.card-content {
  padding: 25px;
}

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

.card-content p {
  font-size: 0.95rem;
}

.stats {
  background: var(--primary-blue);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item h3 {
  color: var(--accent-gold);
  font-size: 3rem;
  margin-bottom: 5px;
}

.stat-item p {
  color: #fff;
  font-size: 1rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-img {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-content h2 {
  margin-bottom: 20px;
}

.about-content .highlight {
  background: var(--bg-light);
  padding: 20px;
  border-left: 4px solid var(--accent-gold);
  margin: 20px 0;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.faculty-card {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.faculty-card h3 {
  color: var(--primary-blue);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-gold);
}

.department {
  margin-bottom: 20px;
}

.department h4 {
  color: var(--primary-light);
  margin-bottom: 10px;
}

.department ul {
  padding-left: 20px;
}

.department li {
  position: relative;
  padding: 5px 0 5px 20px;
  color: var(--text-light);
}

.department li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-gold);
}

.requirements-list {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.requirements-list h3 {
  margin-bottom: 25px;
}

.requirements-list ul {
  display: grid;
  gap: 15px;
}

.requirements-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px;
  background: var(--bg-light);
  border-radius: var(--border-radius);
}

.requirements-list li .icon {
  width: 30px;
  height: 30px;
  background: var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: var(--primary-blue);
}

.timeline-item {
  padding: 20px 0;
  position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: 55%;
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 55%;
}

.timeline-content {
  background: var(--bg-white);
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  position: relative;
}

.timeline-content h4 {
  color: var(--accent-gold);
  margin-bottom: 10px;
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 30px;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--accent-gold);
  border: 3px solid var(--primary-blue);
  border-radius: 50%;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info-box {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.contact-item {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  align-items: flex-start;
}

.contact-item .icon {
  width: 50px;
  height: 50px;
  background: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item h4 {
  margin-bottom: 5px;
}

.contact-item p, .contact-item a {
  color: var(--text-light);
  font-size: 0.95rem;
}

.contact-item a:hover {
  color: var(--primary-blue);
}

.contact-form {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
}

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

.rector-section {
  display: flex;
  gap: 40px;
  align-items: center;
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.rector-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 4px solid var(--accent-gold);
}

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

.rector-info h3 {
  margin-bottom: 5px;
}

.rector-info .title {
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 15px;
}

footer {
  background: var(--primary-blue);
  color: #fff;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--accent-gold);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-col p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}

.footer-col ul li a:hover {
  color: var(--accent-gold);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent-gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

.page-header {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-light) 100%);
  padding: 150px 0 60px;
  text-align: center;
  color: #fff;
}

.page-header h1 {
  color: #fff;
  margin-bottom: 10px;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 0.95rem;
}

.breadcrumb a {
  color: rgba(255,255,255,0.8);
}

.breadcrumb a:hover {
  color: var(--accent-gold);
}

.breadcrumb span {
  color: var(--accent-gold);
}

@media (max-width: 992px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .stat-item h3 {
    font-size: 2rem;
  }

  .stat-item p {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .header-top .contact-info {
    display: none;
  }

  .menu-toggle {
    display: flex;
    z-index: 1001;
    cursor: pointer;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow);
    display: none;
    z-index: 1000;
  }

  nav.active {
    display: block !important;
  }

  nav ul {
    flex-direction: column;
    padding: 20px;
  }

  nav ul li {
    width: 100%;
  }

  nav ul li a {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
  }

  nav ul li:last-child a {
    border-bottom: none;
  }

  .hero {
    padding: 140px 0 70px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  section {
    padding: 50px 0;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 50px;
    margin-right: 0;
    text-align: left;
  }

  .timeline-item::after {
    left: 20px;
  }

  .rector-section {
    flex-direction: column;
    text-align: center;
  }
}

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

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

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .stat-item h3 {
    font-size: 1.6rem;
  }

  .stat-item p {
    font-size: 0.8rem;
    white-space: normal;
  }
}
