/*
Theme Name: Divi Child Theme
Description: Child Theme for Divi
Author:  Hand to Sky
Template: Divi
Version:  1.0.2
*/

/*
---------------------------
	CSS DIRECTORY
---------------------------
	=Font Setup
	=Global
	=Header
	=Footer
	=Media Queries
*/

/* ====Font Setup /////////////////////////////////////////////////*/

/* ====Global /////////////////////////////////////////////////*/
:root {
  --primary-color: #0e4481;
  --secondary-color: #3da4dc;
  --light: #ffffff;
  --dark: #022c5c;
}

body.et_pb_button_helper_class .et_pb_button,
body.et_pb_button_helper_class .et_pb_module.et_pb_button,
.btn {
  font-family: "Poppins", sans-serif;
  font-weight: bold;
  padding: 7px !important;
}

body.et_pb_button_helper_class .et_pb_button:hover,
body.et_pb_button_helper_class .et_pb_module.et_pb_button:hover {
  padding: 7px !important;
}

a.btn {
  display: inline-block;
  padding: 7px 20px !important;
  color: var(--primary-color) !important;
  border: 1px solid var(--primary-color);
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: var(--secondary-color);
  color: var(--light) !important;
  border: 1px solid var(--secondary-color);
}

body.et-db #et-boc .et_pb_module.et_pb_code.body-font .course-category-title {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 38px;
}

body.et-db #et-boc .et_pb_module.et_pb_code.light-text {
  margin-bottom: 0px !important;
}

body.et-db #et-boc .et_pb_module.et_pb_code.light-text h2 {
  color: var(--secondary-color) !important;
  font-size: 44px;
  text-transform: uppercase;
}

.youtube-embed .fluid-width-video-wrapper {
  padding-top: 0 !important;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.youtube-embed .fluid-width-video-wrapper iframe {
  width: 100%;
  height: 100%;
  position: relative;
}

/* ====Header /////////////////////////////////////////////////*/
.menu-item.menu-btn a {
  padding: 11px 20px !important;
  border: 1px solid var(--primary-color);
}

.menu-item.menu-btn a:hover {
  background-color: var(--secondary-color);
  color: var(--light) !important;
  border: 1px solid var(--secondary-color);
}

.menu-item.menu-icon span {
  color: var(--secondary-color);
}

.menu-item.menu-icon span:before {
  content: "";
  width: 22px;
  height: 22px;
  position: relative;
  margin-right: 14px;
  top: 5px;
  display: inline-block;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="Group_19" data-name="Group 19" width="21.771" height="22.37" viewBox="0 0 21.771 22.37"><defs><clipPath id="clip-path"><rect id="Rectangle_11" data-name="Rectangle 11" width="21.771" height="22.37" fill="%233da4dc"/></clipPath></defs><g id="Group_18" data-name="Group 18" clip-path="url(%23clip-path)"><path id="Path_7" data-name="Path 7" d="M17.272,38.909c.992.666,1.908,1.349,2.826,2.08a3.318,3.318,0,0,1,.741.794c.72,1.106-.064,2.55-.929,3.458a4.791,4.791,0,0,1-3.253,1.6,6.853,6.853,0,0,1-1.743-.577A27.547,27.547,0,0,1,3.2,36.621,28.905,28.905,0,0,1,.5,31.628a5.772,5.772,0,0,1-.483-1.741,4.009,4.009,0,0,1,3.174-4.2,2.062,2.062,0,0,1,1.589.136,3.875,3.875,0,0,1,.882.736A15.4,15.4,0,0,1,8.11,29.911a3.484,3.484,0,0,1,.4,1.042,1.763,1.763,0,0,1-.666,1.7l-.763.595a1.374,1.374,0,0,0-.418,1.585A8.557,8.557,0,0,0,9.2,38.436a10.344,10.344,0,0,0,2.624,1.612,1.186,1.186,0,0,0,1.551-.431,3.86,3.86,0,0,1,.68-.794,2.508,2.508,0,0,1,3.22.086" transform="translate(0 -24.469)" fill="%233da4dc"/><path id="Path_8" data-name="Path 8" d="M257.565,10.622a12.934,12.934,0,0,0-.922-4.164c-1.413-3.309-4.277-4.308-7.618-4.738a.742.742,0,0,1-.643-.826.914.914,0,0,1,1-.893,9.379,9.379,0,0,1,4.555,1.122A10.044,10.044,0,0,1,259.3,9.913l-.012.69a.873.873,0,0,1-1.721.019" transform="translate(-237.529 0)" fill="%233da4dc"/><path id="Path_9" data-name="Path 9" d="M262.579,73.229a.909.909,0,0,1-.321-.667,8.613,8.613,0,0,0-.57-2.479c-.787-1.965-2.679-2.492-4.623-2.843a.826.826,0,0,1-.681-1,.859.859,0,0,1,.836-.782,5.14,5.14,0,0,1,.762.076,7.035,7.035,0,0,1,5.141,3.327A6.131,6.131,0,0,1,264,72.385a.888.888,0,0,1-1.426.844" transform="translate(-245.17 -62.599)" fill="%233da4dc"/><path id="Path_10" data-name="Path 10" d="M266.565,136.957l-.152-.742a1.728,1.728,0,0,0-1.277-1.344l-.8-.2a.748.748,0,0,1-.537-.942.9.9,0,0,1,.7-.708c1.492-.3,2.988.947,3.57,2.322.363.859.368,2.178-.585,2.27a.838.838,0,0,1-.92-.652" transform="translate(-252.254 -127.164)" fill="%233da4dc"/></g></svg>');
}

/* ====Footer /////////////////////////////////////////////////*/
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s,
    background 0.2s;
  z-index: 9999;
}

#back-to-top svg {
  width: 20px;
  height: 20px;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  background: var(--secondary-color);
}

/* ====Home /////////////////////////////////////////////////*/
.coloured-heading span {
  color: var(--secondary-color);
}

/* ====Courses /////////////////////////////////////////////////*/
.courses-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  align-items: start;
  justify-items: center;
}

.course-category {
  display: block;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.course-header {
  padding: 20px 20px;
  background-color: var(--secondary-color);
}

.course-header h5 {
  color: var(--light);
  font-size: 1.5rem;
  line-height: 1.4em;
  margin: 0;
  padding: 0;
  text-wrap: balance;
}

.course-category-list,
.course-category-list li {
  list-style-type: none;
  padding: 0 !important;
  margin: 0 !important;
  text-align: left;
}

.course-category-list a {
  display: block;
  padding: 10px 20px;
  color: var(--dark);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  border-bottom: 1px solid #eee;
}

.course-category-list li:last-child a {
  border-bottom: none;
}

.course-category-list a:hover {
  background-color: #efefef;
}

/* Course Roll */
.course-posts article {
  padding: 40px;
  border: 1px solid #d0d0d0;
  border-collapse: collapse;
  margin-top: -1px;
}

.course-sidebar {
  border-radius: 8px;
  border: 1px solid #d0d0d0;
  overflow: hidden;
  margin-top: 60px;
  display: block;
}

.sidebar-header {
  background-color: var(--secondary-color);
  padding: 25px 20px;
}

body.et-db #et-boc .et-l .sidebar-header h4 {
  margin: 0;
  padding: 0;
  color: var(--light);
  font-size: 1.25rem;
  font-family: "Roboto", sans-serif;
}

.course-sidebar a {
  display: block;
  padding: 10px 20px;
  color: var(--dark) !important;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid #eee;
}

.course-sidebar a:hover {
  background-color: #efefef;
}

body.et-db #et-boc .et-l .course-posts h3 {
  font-family: "Roboto", sans-serif;
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1.5em;
  padding-bottom: 15px;
}

.course-category-courses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  padding-block: 40px;
}

.course-category-courses .cc-course {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cc-course .course-inner {
  padding: 20px 20px 30px;
  flex: 1;
}

.cc-course .buttons,
.head-start-section .buttons {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.cc-course .buttons a,
.head-start-section .buttons a {
  color: #ffffff !important;
  background-color: var(--secondary-color);
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 0px;
  font-weight: bold;
  font-style: normal;
  text-transform: none;
  text-decoration: none;
  width: 100%;
  display: block;
  text-align: center;
  border: 1px solid var(--secondary-color);
  transition: all 0.3s ease;
}

.cc-course .buttons a:hover,
.head-start-section .buttons a:hover {
  background-color: var(--light);
  border-color: var(--secondary-color);
  color: var(--secondary-color) !important;
}

.head-start-section {
  padding-block: 40px;
}

.head-start-section .buttons {
  padding-top: 40px;
  max-width: 400px;
}

/* ====Media Queries /////////////////////////////////////////////////*/
@media (max-width: 767px) {
}
@media (min-width: 768px) {
  .flex-align-center {
    display: flex;
    align-items: center;
  }

  .align-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .align-buttons .et_pb_button_module_wrapper {
    width: calc(50% - 1rem);
  }

  .align-buttons .et_pb_button_module_wrapper > a {
    width: 100%;
    text-align: center;
  }
}
@media (min-width: 992px) {
}
@media (min-width: 1200px) {
}
