/* ===========================
  Base Styles
=========================== */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #fff;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 40px auto;
}

/* ===========================
  Header
=========================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  background-color: #f8f9fa;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  flex-wrap: wrap;
}

.logo {
  max-width: 150px; /* Reduced from 300px to 150px */
  flex: 1 1 auto;
}

.logo img {
  width: 100%;
  height: auto;
}


.header-nav {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  color: #052374;
  font-weight: bold;
  font-size: 1rem;
}

.nav-link:hover {
  text-decoration: underline;
}

.apply-btn {
  background-color: #052374;
  color: white;
  padding: 8px 16px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  text-decoration: none;
}

.apply-btn:hover {
  background-color: #031c5d;
}

.nav-toggle {
  display: none;
}

.nav-icon {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
}

.nav-icon span {
  display: block;
  height: 3px;
  background-color: #052374;
  border-radius: 2px;
}

/* Responsive Nav */
@media (max-width: 768px) {
  .header-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: #f8f9fa;
    padding: 20px;
    display: none;
  }

  .nav-toggle:checked + .nav-icon + .header-nav {
    display: flex;
  }

  .nav-icon {
    display: flex;
  }
}

/* ===========================
  Banner
=========================== */
/* Banner Overlay */
.banner {
  position: relative;
  height: 300px;
  width: 100%;
  background: url('images/banner.jpg') no-repeat center center;
  background-size: cover;
  overflow: hidden;
}

.banner-overlay {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 40%;
  background: linear-gradient(to left, rgba(5, 35, 116, 0.8) 0%, rgba(5, 35, 116, 0.8) 40%, rgba(5, 35, 116, 0) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.overlay-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.overlay-btn {
  display: block;
  padding: 12px 20px;
  color: white;
  text-decoration: none;
  border: 2px solid white;
  border-radius: 5px;
  background-color: transparent;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
}

.overlay-btn:hover {
  background-color: white;
  color: #052374;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .banner-overlay {
    width: 100%;
    background: linear-gradient(to bottom, rgba(5, 35, 116, 0.8), rgba(5, 35, 116, 0));
    padding: 30px 20px;
  }

  .overlay-buttons {
    gap: 10px;
  }

  .overlay-btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
}

.banner-course {
    position: relative;
    background-image: url('images/explore-courses.png');
    background-size: cover;
    background-position: center;
    height: 400px;
    overflow: hidden;
}

.banner-college {
    position: relative;
    background-image: url('images/banner-college.png');
    background-size: cover;
    background-position: center;
    height: 300px;
    overflow: hidden;
}

/* Add black overlay layer */
.banner-college::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent black */
    z-index: 1;
}

/* Adjust banner content to sit above overlay */
.banner-content-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 90%;
    max-width: 500px;
}

.banner-content-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    width: 90%;
    max-width: 500px;
}

.banner-logo-box {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.banner-logo-box img {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin: 0 auto;
}

.banner-name-box {
    margin-top: 15px;
    background-color: #052374; /* Dark blue */
    color: white;
    padding: 12px 20px;
    font-weight: bold;
    font-size: 1.2rem;
    border-radius: 6px;
    border: 2px solid white; /* ✅ Add white border */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ===========================
  Footer
=========================== */
footer {
  background-color: #f8f9fa;
  text-align: center;
  padding: 15px;
  margin-top: 30px;
  font-size: 0.9rem;
  color: #6c757d;
}

.error {
  color: red;
  margin-top: 5px;
  font-size: 0.9rem;
}

/* ===========================
  Main Content Layout
=========================== */
.main-content {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.left-section {
  flex: 3;
  min-width: 250px;
}

.left-section h2 {
  color: #052374;
  margin-bottom: 20px;
}

.left-section h3 {
  color: #052374;
  margin-top: 20px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s;
}

.left-section h3 svg {
  transition: fill 0.3s;
  fill: currentColor;
}

.left-section h3:hover {
  color: #007BFF;
}

.left-section h3:hover svg {
  fill: currentColor;
}

.right-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 200px;
}

.info-box {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.info-box img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 10px;
}

.info-box h4 {
  margin: 10px 0;
  color: #052374;
}

.info-box p {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

/* ===========================
  Buttons (Unified)
=========================== */
.box-btn,
.study-visa-updates .content .box-btn {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background-color: transparent;
  color: #052374;
  text-decoration: none;
  border: 2px solid #052374;
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.9rem;
  text-align: center;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.box-btn::after,
.study-visa-updates .content .box-btn::after {
  content: '→';
  position: absolute;
  right: 16px;
  color: inherit;
  transition: transform 0.3s ease;
}

.box-btn:hover,
.study-visa-updates .content .box-btn:hover {
  background-color: #052374;
  color: white;
  border-color: #052374;
  transform: translateY(-2px);
}

.box-btn:hover::after,
.study-visa-updates .content .box-btn:hover::after {
  transform: translateX(4px);
  color: white;
}

/* ===========================
  Study Visa Updates Section
=========================== */
.study-visa-updates {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 60px 20px;
  flex-wrap: wrap;
  background-color: #f9f9f9;
  margin-top: 60px;
  border-radius: 10px;
  background-image: url('images/cubes.png');
  background-size: contain;
  background-repeat: repeat;
}

.study-visa-updates .image-container {
  flex: 1;
  min-width: 300px;
}

.study-visa-updates .image-container img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.study-visa-updates .content {
  flex: 1;
  min-width: 300px;
}

.study-visa-updates .content h2 {
  font-size: 26px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #052374;
}

.study-visa-updates .content p {
  margin-bottom: 20px;
  line-height: 1.6;
  color: #333;
}

.study-visa-updates .content p,
.left-section p,
.info-box p {
  text-align: justify;
  line-height: 1.8; /* Better line spacing for readability */
  word-break: break-word; /* Prevent words from overflowing */
  hyphens: auto; /* Add hyphens if needed for cleaner justification */
  margin-bottom: 15px; /* Nice spacing between paragraphs */
}


/* Responsive tweaks */
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
  }

  .left-section,
  .right-section {
    width: 100%;
  }

  .study-visa-updates {
    flex-direction: column;
    text-align: center;
  }

  .study-visa-updates .content h2 {
    justify-content: center;
  }

  .info-box {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .study-visa-updates .content p,
  .left-section p,
  .info-box p {
    line-height: 2;
  }
}

.recent-updates {
  background-color: #f9f9f9;
  padding: 60px 20px;
  margin-top: 40px;
}

.section-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 40px;
  color: #052374;
}

.updates-wrapper {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.update-box {
  background-color: #fff;
  border-radius: 8px;
  padding: 25px;
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.update-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.update-box h3 {
  color: #052374;
  margin-bottom: 15px;
}

.update-box p {
  color: #333;
  margin-bottom: 20px;
  line-height: 1.6;
  text-align: justify;
}

.update-box .box-btn {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background-color: transparent;
  color: #052374;
  text-decoration: none;
  border: 2px solid #052374;
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.9rem;
  text-align: center;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.update-box .box-btn::after {
  content: '→';
  position: absolute;
  right: 16px;
  color: inherit;
  transition: transform 0.3s ease;
}

.update-box .box-btn:hover {
  background-color: #052374;
  color: white;
  border-color: #052374;
  transform: translateY(-2px);
}

.update-box .box-btn:hover::after {
  transform: translateX(4px);
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .updates-wrapper {
    flex-direction: column;
    gap: 20px;
  }
}

/* Breadcrumb Styles */
.breadcrumb-container {
    background-color: #f9f9f9;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.breadcrumb {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    font-size: 0.95rem;
    color: #333;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li + li::before {
    content: '>';
    margin: 0 10px;
    color: #052374;
    font-weight: bold;
}

.breadcrumb a {
    text-decoration: none;
    color: #052374;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #970a26;
}

/* Responsive tweak */
@media (max-width: 768px) {
    .breadcrumb {
        font-size: 0.85rem;
    }
}

/* Subtle background gradient for recruiters page */
.recruiter-bg {
    background: linear-gradient(45deg, #f9f9f9 30%, #eef3fc 100%);
    padding: 40px 20px;
    border-radius: 8px;
}

/* Animate hover effect on boxes */
.update-box {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.update-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    background-color: #f4f9ff;
}

/* Button icon spacing */
.box-btn span {
    margin-right: 8px;
}

/* Optional: Smooth button hover animation */
.box-btn {
    position: relative;
    transition: all 0.3s ease;
}

.box-btn::after {
    transition: transform 0.3s ease, color 0.3s ease;
}

.box-btn:hover {
    transform: translateY(-2px);
}

.box-btn:hover::after {
    transform: translateX(4px);
    color: white;
}
