
/* ===== GLOBAL ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  background: #f2f2f2;
}

/* ===== HEADER ===== */
.top-header {
  background: #fff;
  display: flex;
  justify-content: center; /* center logo */
  align-items: center;
  left: 0;
  right: 0;
  width: 100%;
  padding: 15px 0;
  border-bottom: 1px solid #ddd;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo img {
  height: 45px;
}


/* ===== NAV BAR ===== */
.nav-bar {
  background: #481763;
  position: relative;
  z-index: 1000;
}

.nav-bar.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 20px 24px; /* ⬅ increased height */
  display: flex;
  align-items: center;
  justify-content: space-between;
   justify-content: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  width: 30px;
  height: 22px;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: all 0.4s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px,5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px,-6px);
}


/* ===== WHY UNISA ===== */
.why-unisa-wrapper {
  padding: 80px 20px;
}

.why-unisa-card {
  background: #fff;
  max-width: 1200px;
  margin: -140px auto 0;
  padding: 50px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.stats {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

.stat h3 {
  color: #1b2a57;
  font-size: 32px;
}

/* ===== FIND A QUALIFICATION ===== */
.qualification-section {
  max-width: 1200px;
  margin: 80px auto;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
}

.qualification-search {
  display: flex;
  width: 55%;
}

.qualification-search input {
  flex: 1;
  padding: 18px;
  border: none;
}

.qualification-search button {
  padding: 18px 35px;
  background: #1b2a57;
  color: #fff;
  border: none;
  cursor: pointer;
}

/* ===== ANNOUNCEMENTS ===== */
.announcements {
  background: #f2f2f2;
  padding: 80px 20px;
}

.announcements-header {
  max-width: 1200px;
  margin: 0 auto 40px;
  display: flex;
  justify-content: space-between;
}

.view-all {
  background: #481763;
  color: #fff;
  padding: 14px 24px;
  text-decoration: none;
}

/* GRID */
.announcement-cards {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

/* CARDS */
.card {
  background: #fff;
  padding: 22px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
}

.card-title {
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: bold;
  color: #481763;
  text-align: center;
}

.card-image {
  height: 160px;
  overflow: hidden;
  margin-bottom: 15px;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-text {
  font-size: 14px;
  margin-bottom: 20px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.date {
  color: #481763;
  font-weight: bold;
}

.circle-btn {
  width: 42px;
  height: 42px;
  background: #1b2a57;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.site-footer {
  position: relative;
  color: #fff;
  font-family: Arial, sans-serif;
  background: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1470&q=80') no-repeat center/cover;

}

.footer-overlay {
  background-color:  rgba(72, 23, 99, 0.85); /* semi-transparent dark blue overlay */
  padding: 40px 20px 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto 30px;
}

.footer-col {
  flex: 1 1 180px;
  margin: 10px 20px;
  min-width: 160px;
}

.footer-logo img {
  width: 150px;
  margin-bottom: 10px;
}

.footer-logo p {
  font-style: italic;
  font-size: 1rem;
}

.footer-col h4 {
  margin-bottom: 15px;
  font-weight: 600;
  font-size: 1.1rem;
  color: #d6d6d6;
}

.footer-col ul {
  list-style: disc;
  padding-left: 20px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: #b894d1; /* soft purple hover */
}

.social-media p {
  font-size: 0.95rem;
  margin-bottom: 10px;
  max-width: 220px;
}

.social-icons a {
  display: inline-block;
  margin-right: 12px;
  color: #fff;
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #b894d1;
}

.footer-bottom {
  border-top: 1px solid #555;
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto 20px;
  padding-top: 15px;
  font-size: 0.85rem;
}

.footer-bottom p a {
  color: #fff;
  text-decoration: none;
  margin: 0 6px;
  transition: color 0.3s ease;
}

.footer-bottom p a:hover {
  color: #b894d1;
}

@media (max-width: 900px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
  }
  .footer-col {
    margin: 20px 0;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}


/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .announcement-cards {
    grid-template-columns: repeat(2,1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #481763;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
  }

  .nav-links.open {
    max-height: 500px;
  }

  .hamburger {
    display: flex;
  }

  .stats {
    flex-direction: column;
    gap: 20px;
  }

  .qualification-section {
    flex-direction: column;
  }

  .qualification-search {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .announcement-cards {
    grid-template-columns: 1fr;
  }
}

/* ===== GLOBAL ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  background: #f2f2f2;
}

/* ===== HEADER ===== */
.top-header {
  background: #fff;
  display: flex;
  justify-content: center; /* center logo */
  align-items: center;
  left: 0;
  right: 0;
  width: 100%;
  padding: 15px 0;
  border-bottom: 1px solid #ddd;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo img {
  height: 45px;
}


/* ===== NAV BAR ===== */
.nav-bar {
  background: #481763;
  position: relative;
  z-index: 1000;
}

.nav-bar.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 20px 24px; /* ⬅ increased height */
  display: flex;
  align-items: center;
  justify-content: space-between;
   justify-content: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  width: 30px;
  height: 22px;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: all 0.4s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px,5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px,-6px);
}

/* ===== HERO ===== */

.hero {
  min-height: 70vh;
  background: linear-gradient(
    to top, /* gradient direction: bottom → top */
    rgba(72, 23, 99, 0.85), /* stronger at bottom */
    rgba(72, 23, 99, 0.3)   /* lighter at top */
  ),
  url("RSAUNI.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 80px;
  display: flex;
  align-items: center;
}

.hero p {
  font-size: 32px;
  line-height: 1.3;
  opacity: 0.7;
}

.hero strong {
  opacity: 1;
}

/* ===== WHY UNISA ===== */
.why-unisa-wrapper {
  padding: 80px 20px;
}

.why-unisa-card {
  background: #fff;
  max-width: 1200px;
  margin: -140px auto 0;
  padding: 50px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.stats {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

.stat h3 {
  color: #1b2a57;
  font-size: 32px;
}

/* ===== FIND A QUALIFICATION ===== */
.qualification-section {
  max-width: 1200px;
  margin: 80px auto;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
}

.qualification-search {
  display: flex;
  width: 55%;
}

.qualification-search input {
  flex: 1;
  padding: 18px;
  border: none;
}

.qualification-search button {
  padding: 18px 35px;
  background: #1b2a57;
  color: #fff;
  border: none;
  cursor: pointer;
}

/* ===== ANNOUNCEMENTS ===== */
.announcements {
  background: #f2f2f2;
  padding: 80px 20px;
}

.announcements-header {
  max-width: 1200px;
  margin: 0 auto 40px;
  display: flex;
  justify-content: space-between;
}

.view-all {
  background: #481763;
  color: #fff;
  padding: 14px 24px;
  text-decoration: none;
}

/* GRID */
.announcement-cards {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

/* CARDS */
.card {
  background: #fff;
  padding: 22px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
}

.card-title {
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: bold;
  color: #481763;
  text-align: center;
}

.card-image {
  height: 160px;
  overflow: hidden;
  margin-bottom: 15px;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-text {
  font-size: 14px;
  margin-bottom: 20px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.date {
  color: #481763;
  font-weight: bold;
}

.circle-btn {
  width: 42px;
  height: 42px;
  background: #1b2a57;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.site-footer {
  position: relative;
  color: #fff;
  font-family: Arial, sans-serif;
  background: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1470&q=80') no-repeat center/cover;

}

.footer-overlay {
  background-color:  rgba(72, 23, 99, 0.85); /* semi-transparent dark blue overlay */
  padding: 40px 20px 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto 30px;
}

.footer-col {
  flex: 1 1 180px;
  margin: 10px 20px;
  min-width: 160px;
}

.footer-logo img {
  width: 150px;
  margin-bottom: 10px;
}

.footer-logo p {
  font-style: italic;
  font-size: 1rem;
}

.footer-col h4 {
  margin-bottom: 15px;
  font-weight: 600;
  font-size: 1.1rem;
  color: #d6d6d6;
}

.footer-col ul {
  list-style: disc;
  padding-left: 20px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: #b894d1; /* soft purple hover */
}

.social-media p {
  font-size: 0.95rem;
  margin-bottom: 10px;
  max-width: 220px;
}

.social-icons a {
  display: inline-block;
  margin-right: 12px;
  color: #fff;
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #b894d1;
}

.footer-bottom {
  border-top: 1px solid #555;
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto 20px;
  padding-top: 15px;
  font-size: 0.85rem;
}

.footer-bottom p a {
  color: #fff;
  text-decoration: none;
  margin: 0 6px;
  transition: color 0.3s ease;
}

.footer-bottom p a:hover {
  color: #b894d1;
}

@media (max-width: 900px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
  }
  .footer-col {
    margin: 20px 0;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}


/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .announcement-cards {
    grid-template-columns: repeat(2,1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #481763;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
  }

  .nav-links.open {
    max-height: 500px;
  }

  .hamburger {
    display: flex;
  }

  .stats {
    flex-direction: column;
    gap: 20px;
  }

  .qualification-section {
    flex-direction: column;
  }

  .qualification-search {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .announcement-cards {
    grid-template-columns: 1fr;
  }
}
