﻿/*
font-family: Montserrat;
color: #B40A0A;
border-style:none;
border-color:White;
}
*/

.checker {
  margin: 0 0 0 50px;
  padding: 10px;
}

@import url(http://fonts.googleapis.com/css?family=Old+Standard+TT:400,400italic,700);
@import url(http://fonts.googleapis.com/css?family=Raleway:400,100,200,300,500,600,700,800,900);
@import url(http://code.ionicframework.com/ionicons/1.5.2/css/ionicons.min.css);
@import url(http://fonts.googleapis.com/css?family=Montserrat:400,700);

/*$maincolor: #8e1a1a;
$secondarycolor: #B40A0A;
*/
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #333;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/*Header and Navigation Bar*/
header {
  background-color: #1a2a4f;
  color: white;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;

}

h1 {
  font-weight: bold;
  color: #fff;
  font-size: 25px;
  position: relative;
}

header .logo {
  display: flex;
  align-items: center;

}

header .logo img {
  height: 50px;
  margin-right: 10px;
}

nav {
  position: relative;
  margin-top: 1%;
  margin-right: 2.5%;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  z-index: 9999;
  font-size: 18px;
}

nav ul li {
  position: relative;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: bold;
}

nav ul li:hover ul {
  display: block;
}

nav ul li ul .astext:hover {
  text-decoration: underline;
}

nav ul li ul .astext {
  background: none;
  border: none;
  margin: 0;
  padding: 0;
  cursor: pointer;
  font-family: sans-serif;
  font-size: large;
}

nav ul ul {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  background-color: #fff;
  color: #333;
  list-style: none;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


nav ul li:hover>a {
  color: #e2d2d3;
  /*background-color: #990000;*/
}

nav ul li:hover~h1 {
  color: #e2d2d3;
  /*background-color: #990000;*/
}

/*
nav ul ul ul{
  display: none;
  position: absolute;
  top: 83.33%;
  left: 100%;
  background-color: #fff;
  color: #333;
  list-style: none;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


nav ul ul li a {
  color: #333;
}

nav ul li ul li ul li{
  position: relative;
}



nav ul li ul li ul:hover li {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  z-index: 9999;
}*/


/*Main Home page Style for layout*/
.hero {
  background: url('Images/EEECS_School_Front.jpg') no-repeat bottom center;
  background-size: cover;
  color: black;
  text-align: center;
  padding: auto 20px;
  position: relative;
  min-height: 90vh;
  background-position: center;
}

.hero .content {
  position: relative;
  z-index: 2;
  margin: 0%;
}

/*.hero .content .leftOfShield {

  z-index: 10;
  margin-left: 30%;
  margin-bottom: -20%;
  position:absolute
}

.hero .content .rightOfShield {

  z-index: 10;
  margin-left: 1300px;
  
  position: fixed;
}*/

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 0.7;
}

.hero .content img {
  margin-top: 2%;
}

.hero .buttons a {
  display: inline-block;
  margin: 10px;
  margin-right: 100px;
  margin-left: 100px;
  padding: 30px 30px;
  background: #cc0000;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin-top: 15%;
  font-size: xx-large;
}

.hero .buttons a:hover {
  background: #990000;
}

.hero .infoText {
  margin-top: 2%;
  color: white;
  font-weight: bold;
  font-size: large;
  background-color: #cc0000;
  padding: 10px;
  width: fit-content;
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%)
}

/*Contact Us Plain Cards Page - Might be used elsewhere*/
.subTitle {
  text-align: center;
  font-size: 200%;
}

.main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
  background: #f9f9f9;
}

.main .card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.main .card img {
  text-align: center;
}

.main .card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.main .card p {
  font-size: 0.9rem;
  color: #666;
}

.main .card a {
  display: block;
  margin-top: 10px;
  color: #990000;
  text-decoration: none;
  font-weight: bold;
}

.main .card a:hover {
  text-decoration: underline;
}

mark {
  background-color: white;
  color: #cc0000;
  border-radius: 25px;
}

/*Advice Home Page Cards*/
.advice-subTitle {
  text-align: center;
  font-size: 200%;
  margin-bottom: 0%;
  margin-top: 0.75%;
  font-weight: bold;
}

.advice-main {
  background: #f9f9f9;
}

.advice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  grid-auto-rows: 1fr; 
  padding: 20px;
  margin: 0 5%;
  background: #f9f9f9;
  align-items: start;
}

.advice-card {
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  background-color: #1a2a4f;
  color: white;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s, background-color 0.3s;
  text-decoration: none;
  text-align: center;
  height: 350px;
}
.advice-overcard{
  position:absolute;
  z-index: 2;
  height: 350px;
  background: transparent;
  border: none !important;
  width: 100%;
  overflow: hidden !important;
  cursor: pointer;
}

.advice-image-container {
  position: relative;
  max-width: 100%;
  max-width: 100%;
  overflow: hidden;
  object-fit: cover;
  margin-top: auto;
  justify-content: flex-end;
}


.advice-card-footer {
  margin-top: auto; 
  padding: 8px 12px;
  color: #fff;
  font-size: 14px;
  text-align: right;
  box-sizing: border-box;
}

.advice-card h3 {
  margin: 10px 0 6px;
  font-size: 20px;
}

.advice-card p {
  margin: 0 0 12px;
  font-size: 14px;
}

.advice-image-container img  {
  width: 90%;
  height: 90%;
  flex-grow: 1;
}

.advice-card:hover {
  background-color: #308ea57c;
  color: black;
  transform: scale(1.05);
  cursor: pointer;
  .advice-card-footer {
    color: black;
    font-weight: bold;
  }
}


/*Employer Home Page Cards*/
.employer-subTitle {
  text-align: center;
  font-size: 200%;
  margin-bottom: 0%;
  margin-top: 0.75%;
  font-weight: bold;
}

.employer-main {
  background: #f9f9f9;
}

.employer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  grid-auto-rows: 1fr; 
  padding: 20px;
  margin: 0 5%;
  background: #f9f9f9;
  align-items: start;
}

.employer-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  background-color: #00694c;
  color: white;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s, background-color 0.3s;
  text-decoration: none;
  text-align: center;
  height: 350px;
}

.employer-image-container {
  position: relative;
  max-width: 100%;
  max-width: 100%;
  overflow: hidden;
  object-fit: cover;
  margin-top: auto;
  justify-content: flex-end;
}


.employer-card-footer {
  margin-top: auto; 
  padding: 8px 12px;
  color: #fff;
  font-size: 14px;
  text-align: right;
  box-sizing: border-box;
}

.employer-card h3 {
  margin: 10px 0 6px;
  font-size: 20px;
}

.employer-card p {
  margin: 0 0 12px;
  font-size: 14px;
}

.employer-image-container img  {
  width: 90%;
  height: 90%;
  flex-grow: 1;
}

.employer-card:hover {
  background-color: #79daa1;
  color: black;
  transform: scale(1.05);
  cursor: pointer;
  .employer-card-footer {
    color: black;
    font-weight: bold;
    transform: scale(1.05);
  }
}


/*vacancy Home Page Cards*/
.vacancy-subTitle {
  text-align: center;
  font-size: 200%;
  margin-bottom: 0%;
  margin-top: 0.75%;
  font-weight: bold;
}

.vacancy-main {
  background: #f9f9f9;
}

.vacancy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  grid-auto-rows: 1fr; 
  padding: 20px;
  margin: 0 5%;
  background: #f9f9f9;
  align-items: start;
}

.vacancy-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  background-color: #00694c;
  color: white;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s, background-color 0.3s;
  text-decoration: none;
  text-align: center;
  height: 350px;
}

.vacancy-image-container {
  position: relative;
  max-width: 100%;
  max-width: 100%;
  overflow: hidden;
  object-fit: cover;
  margin-top: auto;
  justify-content: flex-end;
}


.vacancy-card-footer {
  margin-top: auto; 
  padding: 8px 12px;
  color: #fff;
  font-size: 14px;
  text-align: right;
  box-sizing: border-box;
}

.vacancy-card h3 {
  margin: 10px 0 6px;
  font-size: 20px;
}

.vacancy-card p {
  margin: 0 0 12px;
  font-size: 14px;
}

.vacancy-image-container img  {
  width: 90%;
  height: 90%;
  flex-grow: 1;
}

.vacancy-card:hover {
  background-color: #79daa1;
  color: black;
  transform: scale(1.05);
  cursor: pointer;
  .vacancy-card-footer {
    color: black;
    font-weight: bold;
    transform: scale(1.05);
  }
}


/*onplacement Home Page Cards*/
.onplacement-subTitle {
  text-align: center;
  font-size: 200%;
  margin-bottom: 0%;
  margin-top: 0.75%;
  font-weight: bold;
}

.onplacement-main {
  background: #f9f9f9;
}

.onplacement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  grid-auto-rows: 1fr; 
  padding: 20px;
  margin: 0 5%;
  background: #f9f9f9;
  align-items: start;
}

.onplacement-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  background-color: #00694c;
  color: white;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s, background-color 0.3s;
  text-decoration: none;
  text-align: center;
  height: 350px;
}

.onplacement-image-container {
  position: relative;
  max-width: 100%;
  max-width: 100%;
  overflow: hidden;
  object-fit: cover;
  margin-top: auto;
  justify-content: flex-end;
}


.onplacement-card-footer {
  margin-top: auto; 
  padding: 8px 12px;
  color: #fff;
  font-size: 14px;
  text-align: right;
  box-sizing: border-box;
}

.onplacement-card h3 {
  margin: 10px 0 6px;
  font-size: 20px;
}

.onplacement-card p {
  margin: 0 0 12px;
  font-size: 14px;
}

.onplacement-image-container img  {
  width: 90%;
  height: 90%;
  flex-grow: 1;
}

.onplacement-card:hover {
  background-color: #79daa1;
  color: black;
  transform: scale(1.05);
  cursor: pointer;
  .onplacement-card-footer {
    color: black;
    font-weight: bold;
    transform: scale(1.05);
  }
}

/*GeneralCardImages*/
@media (max-width: 768px) {
  .advice-grid {
    grid-template-columns: 1fr 1fr;
  }
  .employer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .vacancy-grid {
    grid-template-columns: 1fr 1fr;
  }
  .onplacement-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .advice-grid {
    grid-template-columns: 1fr;
  }
  .employer-grid {
    grid-template-columns: 1fr;
  }
  .vacancy-grid {
    grid-template-columns: 1fr;
  }
  .onplacement-grid {
    grid-template-columns: 1fr;
  }
}

/*Footer - Contact Us etc*/
footer {
  background: #333;
  color: #333;
  padding: 20px;
  text-align: center;
  font-size: 0.9rem;
  margin-top: auto;
  bottom: 0;
  position: relative;
  width: auto;
}

footer a {
  color: #990000;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}