* {
  margin: 0;
  padding: 0;
  outline: none;
  border: none;
  text-decoration: none;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

:root {
  --uci-blue: #0064a4;
  --uci-gold: #ffd200;
  --light-blue: #e6f2f8;
  --dark-gray: #333;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
}

body {
  background-color: #ffffff;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header Styles */

.top-bar {
  background-color: var(--dark-gray);
  color: white;
  padding: 8px 0;
  font-size: 0.9rem;
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.top-bar-links a {
  color: white;
  text-decoration: none;
  margin-right: 15px;
  font-size: 0.85rem;
}

.top-bar-links a:hover {
  text-decoration: underline;
}

.top-bar-social a {
  color: white;
  text-decoration: none;
  margin-left: 15px;
  font-size: 0.9rem;
}

.header-main {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
}

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

.logo-icon {
  background-color: var(--uci-blue);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon span {
  color: white;
  font-weight: bold;
  font-size: 1.8rem;
}

.logo-text {
  margin-left: 15px;
  font-weight: bold;
  color: var(--uci-blue);
  font-size: 1.8rem;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin: 0 10px;
  position: relative;
}

.nav-menu > li > a {
  text-decoration: none;
  color: var(--dark-gray);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 5px 10px;
  transition: color 0.3s;
  display: flex;
  align-items: center;
}

.nav-menu > li > a:hover {
  color: var(--uci-blue);
}

.nav-menu > li > a .dropdown-icon {
  margin-left: 5px;
  font-size: 0.8rem;
  transition: transform 0.3s;
}

.nav-menu li:hover .dropdown-icon {
  transform: rotate(180deg);
}

/* Dropdown Menu */

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 220px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  padding: 10px 0;
  z-index: 100;
  display: none;
}

.nav-menu li:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  color: var(--dark-gray);
  padding: 10px 20px;
  text-decoration: none;
  display: block;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.dropdown-menu a:hover {
  background-color: var(--light-blue);
  color: var(--uci-blue);
  padding-left: 25px;
}

.dropdown-menu .divider {
  height: 1px;
  background-color: var(--medium-gray);
  margin: 8px 0;
}

/* User Account Dropdown */

.user-account {
  position: relative;
}

.user-button {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.user-button:hover {
  background-color: var(--light-blue);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--uci-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  font-weight: bold;
}

.user-name {
  font-weight: 600;
  color: var(--dark-gray);
  font-size: 0.95rem;
}

.user-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  background-color: white;
  min-width: 250px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  padding: 10px 0;
  z-index: 100;
  display: none;
}

.user-account:hover .user-dropdown {
  display: block;
}

.user-dropdown-header {
  padding: 10px 15px;
  border-bottom: 1px solid var(--medium-gray);
  display: flex;
  align-items: center;
}

.user-dropdown-header .user-avatar {
  margin-right: 10px;
}

.user-dropdown-header .user-info {
  line-height: 1.4;
}

.user-dropdown-header .user-info .name {
  font-weight: 600;
  color: var(--dark-gray);
}

.user-dropdown-header .user-info .email {
  font-size: 0.85rem;
  color: #666;
}

.user-dropdown-links {
  padding: 10px 0;
}

.user-dropdown-links a {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  color: var(--dark-gray);
  text-decoration: none;
  transition: all 0.3s;
}

.user-dropdown-links a:hover {
  background-color: var(--light-blue);
  color: var(--uci-blue);
}

.user-dropdown-links a i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
  color: #666;
}

.user-dropdown-footer {
  padding: 10px 15px;
  border-top: 1px solid var(--medium-gray);
  text-align: center;
}

.user-dropdown-footer a {
  color: var(--uci-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.user-dropdown-footer a:hover {
  text-decoration: underline;
}

/* Nav Buttons */

.nav-buttons {
  display: flex;
  align-items: center;
}

.nav-button {
  background-color: var(--uci-blue);
  color: white;
  border: none;
  padding: 10px 20px;
  margin-left: 10px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 0.95rem;
}

.nav-button:hover {
  background-color: #004d80;
}

.nav-button.secondary {
  background-color: transparent;
  border: 1px solid var(--uci-blue);
  color: var(--uci-blue);
}

.nav-button.secondary:hover {
  background-color: var(--light-blue);
}

/* Hero section */
.donation-hero,
.alumni-hero,
.research-hero,
.admissions-hero,
.academics-hero,
.about-hero,
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("../img/gate.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 100px 20px;
  text-align: center;
}
.about-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("https://images.unsplash.com/photo-1498243691581-b145c3f54a5a?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1770&q=80");
}
.academics-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("../img/graduate.jpg");
}
.admissions-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("../img/img-4.jpg");
}
.research-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("https://images.unsplash.com/photo-1532094349884-543bc11b234d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1770&q=80");
}
.alumni-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1770&q=80");
}
.donation-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1770&q=80");
}

.donation-hero-content,
.alumni-hero-content,
.research-hero-content,
.admissions-hero-content,
.academics-hero-content,
.about-hero-content,
.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.donation-hero h1,
.alumni-hero h1,
.research-hero h1,
.admissions-hero h1,
.academics-hero h1,
.about-hero h1,
.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.donation-hero p,
.alumni-hero p,
.research-hero p,
.admissions-hero p,
.academics-hero p,
.about-hero p,
.hero p {
  font-size: 1.5rem;
  margin-bottom: 30px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-buttons,
.admissions-buttons,
.academics-buttons,
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.hero-button,
.admissions-button,
.academics-button,
.hero-button {
  background-color: var(--uci-gold);
  color: var(--dark-gray);
  border: none;
  padding: 15px 30px;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.hero-button:hover,
.admissions-button:hover,
.academics-button:hover,
.hero-button:hover {
  background-color: #e6bd00;
}

.hero-button.secondary,
.admissions-button.secondary,
.academics-button.secondary,
.hero-button.secondary {
  background-color: transparent;
  border: 2px solid white;
  color: white;
}

.hero-button.secondary:hover,
.admissions-button.secondary:hover,
.academics-button.secondary:hover,
.hero-button.secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* News Section */

.section-title {
  text-align: center;
  margin: 60px 0 30px;
  color: var(--uci-blue);
  font-size: 2.5rem;
}

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

.news-grid {
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    gap: 30px; */
}

.news-card {
  position: relative;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  width: 1000px;
  margin: 0 auto;
  margin-bottom: 150px;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.news-image {
  height: 800px;
  /*width: 1200px;*/
  max-width: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
  background-size: cover;
  background-position: center;
  color: var(--light-blue) !important;
}

.news-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: max-content;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
  color: var(--light-blue);
  padding: 20px;
}

.news-category {
  color: var(--uci-blue);
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.news-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--light-blue);
}

.news-date {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.news-excerpt {
  margin-bottom: 15px;
  color: #555;
  color: white;
}

.news-link {
  color: var(--uci-blue);
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
}

.news-link:hover {
  text-decoration: underline;
}

/* Quick Links */

.quick-links {
  background-color: var(--light-blue);
  padding: 60px 20px;
  margin-top: 60px;
}

.links-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.link-card {
  background-color: white;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s;
}

.link-card:hover {
  transform: translateY(-5px);
}

.link-icon {
  font-size: 2.5rem;
  color: var(--uci-blue);
  margin-bottom: 20px;
}

.link-title {
  font-size: 1.4rem;
  color: var(--dark-gray);
  margin-bottom: 15px;
}

.link-description {
  color: #666;
  margin-bottom: 20px;
}

.link-button {
  background-color: var(--uci-blue);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.link-button:hover {
  background-color: #004d80;
}

/* Stats Section */

.stats-section {
  background-color: var(--uci-blue);
  color: white !important;
  padding: 60px 20px;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-item {
  padding: 20px;
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: white !important;
}

.stat-label {
  font-size: 1.2rem;
  opacity: 0.9;
  color: white !important;
}

/* Footer Styles */

.footer {
  background-color: var(--dark-gray);
  color: white;
  padding: 60px 20px 30px;
  /* margin-top: 50px; */
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--uci-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--uci-gold);
  text-decoration: underline;
}

.footer-links .footer-link-heading {
  color: white;
  font-weight: 600;
  margin-bottom: 15px;
  display: block;
  font-size: 1rem;
}

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

.social-links a {
  display: inline-block;
  width: 36px;
  height: 36px;
  background-color: #444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.social-links a:hover {
  background-color: var(--uci-blue);
}

.footer-contact {
  margin-top: 20px;
}

.footer-contact p {
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #ddd;
  line-height: 1.6;
}

.footer-contact a {
  color: var(--uci-gold);
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.copyright {
  text-align: center;
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid #444;
  color: #999;
  font-size: 0.85rem;
  max-width: 1200px;
  margin: 40px auto 0;
}

/* Responsive Design */

@media (max-width: 900px) {
  .header-container {
    flex-direction: column;
    padding: 10px 20px;
  }
  .logo {
    margin-bottom: 15px;
  }
  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 15px;
  }
  .news-content{
      width: 100%;
      max-width: 500px !important;
  }
  .nav-buttons {
    margin-top: 15px;
  }
  .news-card{
  max-width: 500px !important;
  width: 100% !important;
}
  .footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 600px) {
  .top-bar-container {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .top-bar-links,
  .top-bar-social {
    text-align: center;
  }
  .top-bar-links a,
  .top-bar-social a {
    margin: 0 8px;
  }
  .nav-menu {
    flex-direction: column;
    align-items: center;
    display: none;
  }
  .mobile-menu-button {
    display: block;
  }
  .user-account .user-name {
    display: none;
  }
  .news-card{
  max-width: 500px !important;
  width: 100% !important;
}
  .footer-links {
    margin-bottom: 25px;
  }
}
