@font-face {
  font-family: 'bold';
  src: url('./fonts/GranthaSangamMN-Bold.ttf') format('truetype');
}

@font-face {
  font-family: 'regular';
  src: url('./fonts/grantha-sangam-mn-regular.ttf') format('truetype');
}

body {
  margin: 0px;
}

/* Navigation Bar */
.navbar {
  box-shadow: 0 4px 4px 0 rgba(0,0,0,.05);
  margin-right: -10px;
}

.navbar-nav .nav-link {
  padding: 0px 35px;
  transition: background-color 0.3s, color 0.3s;
  color: #2f2e41;
  margin-right: 10px;
  font-size: 19px;
  font-weight: normal;
  margin-left: 3px;
}

.navbar-nav .nav-link:focus,
.navbar-nav .nav-link:hover {
  color: #045bc3;
  outline: none;
}

.navbar-nav .nav-link.active {
  color: #045bc3;
}

.navbar-toggler {
  border-color: rgba(0,0,0,.1);
}

.navbar-toggler-icon {
  background-image: url('images/navigation.png');
}

.navbar-brand img {
  height: 60px;
  margin-right: 0px;
}

/* Section Headings */
.section-heading {
  text-align: center;
  line-height: 1em;
  padding-left: 5%;
  padding-right: 5%;
  padding-top: 70px;
  font-size: 2.5em;
  color: #313539;
  font-family: 'bold';
  margin-bottom: -20px;
}

/* Grid for displaying guides, coursework, and notes */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  grid-gap: 30px;
  max-width: 1200px;
  margin: 60px auto;       /* centers the container itself */
  justify-content: center; /* centers the columns within the container */
  justify-items: center;   /* centers each grid item horizontally */
  align-items: start;      
  text-align: center;
}



.guide-box {
  border: 1.2px solid #ccc;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.1s ease-in-out;
}

.guide-box:hover {
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3);
}

.guide-box img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.guide-name {
  font-family: 'bold';
  font-size: 27.5px;
  height: 60px;
  line-height: 40px;
  display: inline;
  padding-top: 15px;
}

.guide-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 18px;
}

.guide-buttons a,
.guide-buttons button {
  display: inline-block;
  width: 150px;
  padding-top: 14px;
  padding-bottom: 5px;
  background-color: #045BC3;
  color: #ffffff;
  text-decoration: none;
  margin-right: 0px;
  border-radius: .4em;
  text-align: center;
  cursor: pointer;
  font-size: 1em;
  font-family: 'regular';
  white-space: nowrap;
  box-shadow: 0 5px 10px 0 rgba(57, 50, 50, .2);
  border: none;
  outline: none;
  
}

.guide-buttons a:hover,
.guide-buttons button:hover {
  color: #f8fcff;
  box-shadow: none;
  background-color: #026aea;
}


.guide-buttons a:active,
.guide-buttons button:active {
  background-color: #045BC3;
  box-shadow: none;
}

.guide-buttons a:first-child {
  margin-right: 10px;
  font-family: 'regular';
  font-weight: 500;
}

/* Styling for guides overview */
.guides-overview {
  margin-top: 20px;
  width: 100%;
}

.guides-overview .file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px;
  border-bottom: 1px solid #ccc;
  font-size: 1em;
}

.guides-overview .file-item span {
  font-family: 'regular';
  font-size: 1em;
  font-weight: normal;
  text-align: left;
  padding-bottom: 0px;
  padding-top: 8px;
}


.guides-overview .file-item .guide-buttons a {
  width: auto;
  font-family: 'regular';
  font-size: 0.8em;
  padding-left: 7px;
  padding-right: 7px;
  margin-right: 5px;
}

.guides-overview .file-item .guide-buttons {
  padding-bottom: .25em;
  margin-top: 0.25em;
}

/* Footer Section */
*, :after, :before {
  box-sizing: border-box;
}

p {
  font-family: Lato, sans-serif;
  position: relative;
  line-height: 2em;
  font-size: 15px;
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 1rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Lato, sans-serif;
  font-weight: 700;
  position: relative;
  line-height: 1.6em;
}

h4 {
  font-size: 1.5rem;
  margin-bottom: .5rem;
}

.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container, .container-sm {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container, .container-md, .container-sm {
    max-width: 720px;
  }
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.col, .col-1, .col-2, .col-3, .col-4, .col-5,
.col-6, .col-7, .col-8, .col-9, .col-10,
.col-11, .col-12, .col-auto, .col-lg, .col-lg-1,
.col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5,
.col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9,
.col-lg-10, .col-lg-11, .col-lg-12, .col-lg-auto,
.col-md, .col-md-1, .col-md-2, .col-md-3,
.col-md-4, .col-md-5, .col-md-6, .col-md-7,
.col-md-8, .col-md-9, .col-md-10, .col-md-11,
.col-md-12, .col-md-auto, .col-sm, .col-sm-1,
.col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5,
.col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9,
.col-sm-10, .col-sm-11, .col-sm-12, .col-sm-auto,
.col-xl, .col-xl-1, .col-xl-2, .col-xl-3,
.col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7,
.col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11,
.col-xl-12, .col-xl-auto {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

@media (min-width: 768px) {
  .col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

@media (max-width: 991.98px) {
  .rmt-4, .rmy-4 {
    margin-top: 1.5rem !important;
  }
}

.bg-color-light-black {
  background-color: #2f2e41;
}

.bg-color-black {
  background-color: #262432;
}

.sm-padding {
  padding: 5em 0;
  margin-top: 30px;
}

.footer-bottom {
  padding: 2em;
}

.footer-bottom p{
  font-size: 15px;
}

.footer-content {
  font-size: 1em;
  line-height: 2em;
}

.left-text-footer{
  font-size: 0.9em;
  line-height: 2em;
  color: #fff;
  margin-top: 0;
  margin-bottom: 1rem;
}

.color-white {
  color: #fff;
  font-weight: 500;
  position: relative;
  line-height: 1.6em;
  font-size: 1.7em;
}

.btn:not(:disabled):not(.disabled) {
  cursor: pointer;
}

.btn.btn-default {
  background-color: #045bc3;
  color: #fff;
  font-size: 1em;
  font-weight: 600;
  padding: .8em 2em;
  border-radius: .4em;
  box-shadow: 0 5px 10px 0 rgba(57, 50, 50, .2);
}

.p-0 {
  padding: 0 !important;
}

.list-inline,
.list-unstyled {
  padding-left: 0;
  list-style: none;
}

dl, ol, ul {
  margin-top: 0;
  margin-bottom: 1rem;
}

ul, menu, dir {
  display: block;
  list-style-type: disc;
  margin-block-start: 1em;
  margin-block-end: 1em;
  padding-inline-start: 40px;
}

.form-control {
  display: block;
  width: 100%;
  height: calc(1.5em + .75rem + 25px);
  padding: 1em 1.5em;
  font-size: .9rem;
  font-weight: 400;
  line-height: 1.5;
  color: grey;
  background-color: #fff;
  background-clip: padding-box;
  border: 0;
  transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.form-group {
  margin-bottom: 1rem;
}

.footer-link {
  margin-top: 30px;
  font-size: 1em;
  font-weight: 500;
  font-family: Lato,sans-serif;
}

.footer-item, .footer-link {
  margin-top: 1em;
}

li {
  display: list-item;
  text-align: match-parent;
}

li a {
  text-decoration: none;
}

a {
  font-weight: 700;
  font-size: 1.1em;
  box-shadow: none;
  cursor: pointer;
}

a:hover {
  color: #045bc3;
  text-decoration: none;
}

/* Social Media Logos */
.image-container {
  display: flex;
  justify-content: left;
  margin-left: -10px;
  align-items: left;
}
.image-container a {
  margin: 10px;
}
.image-container img {
  max-width: 50px;
  height: auto;
}

/* Styles for Contact Us icon and functionality */
#chat-form h1 {
  font-family: 'bold';
  font-size: 2.2em;
  font-weight: 500;
  text-align: center;
  color: #313539;
  border-bottom: 4px solid #045bc3;
  width: 208px;
  margin-bottom: 30px;
  margin-left: 20%;
  margin-top: -55px;
}

.section-heading {
  font-family: 'bold';
}

#close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2.5em;
  cursor: pointer;
}

#chat-form p {
  font-family: 'regular';
  font-size: 1.1em;
  line-height: 1.5em;
  text-align: center;
  color: #212529;
  margin-bottom: 1.6em;
}

#chat-form {
  display: none;
}

#chat-icon:hover #chat-form {
  display: block;
}

#chat-icon {
  position: fixed;
  bottom: 15px;
  left: 15px;
  cursor: pointer;
  width: 70px;
  height: auto;
}

#chat-form {
  position: fixed;
  bottom: 90px;
  left: 15px;
  background-color: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0px 0px 10px #b0b0b0;
  width: 400px;
  font-family: 'regular';
}

#chat-form input,
#chat-form textarea {
  font-family: 'regular';
  font-size: 1em;
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
  box-shadow: 0px 0px 5px #ccc;
}

#chat-form textarea {
  height: 70px;
}

#chat-form button {
  background-color: #045bc3;
  text-align: center;
  vertical-align: center;
  width: 100%;
  color: white;
  padding: 5px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1em;
  box-shadow: 0 5px 10px 0 rgba(57, 50, 50, .2);
  margin-top: 10px;
  padding-top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'regular';
}

#chat-form button:hover {
  background-color: #004099;
}

#chat-form select {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
  box-shadow: 0px 0px 5px #ccc;
  font-size: 1em;
  line-height: normal;
  font-family: 'regular';
}

/* Modal background */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  padding-top: 20px;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Modal content */
.modal-content {
  background-color: #ffffff;
  margin: auto;
  padding: 30px;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 1001;
  text-align: center;
  border: 2px solid black;
}

.modal-content:hover {
  box-shadow: 0 15px 40px rgba(75, 75, 75, 0.4);
}

/* Image Styling */
.modal-content img {
  max-width: 230px;
}

/* Form Title */
.modal-content h2 {
  font-size: 1.4em;
  margin-bottom: 20px;
  margin-top: 10px;
  color: #333333;
  font-weight: bold;
}

/* Labels */
.modal-content label {
  color: #333333;
  display: block;
  margin-bottom: 10px;
  text-align: left;
}

/* Input fields */
.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content input[type="tel"],
.modal-content select {
  width: 100%;
  padding: 12px;
  margin: 8px 0 20px 0;
  display: inline-block;
  border: 1px solid #cccccc;
  border-radius: 5px;
  box-sizing: border-box;
  font-size: 1em;
  background-color: #f9f9f9;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Radio buttons */
.radio-group {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.student-tutor-text label {
  font-weight: bold;
  margin-bottom: -5px;
}

.radio-group label {
  font-size: 1.1em;
  color: #333333;
  margin-right: 10px;
}

.modal-content input[type="radio"] {
  margin-right: 5px;
  transform: scale(1.4);
}

/* Disclaimer Text */
.modal-content .disclaimer {
  font-size: 0.9em;
  color: #777777;
  margin-bottom: 10px;
}

/* Dropdown */
.modal-content select {
  appearance: none;
  background-color: #f9f9f9;
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="#333" d="M2 0L0 2h4zM2 5L0 3h4z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  cursor: pointer;
}

/* Checkbox and Label */
.modal-content input[type="checkbox"] {
  margin-right: 10px;
  transform: scale(1.4);
}

.radio-group label:hover {
  color: #000000;
}

.modal-content label {
  font-size: 1.15em;
  color: #333333;
  margin-bottom: 5px;
}

/* Submit Button */
.modal-content button[type="submit"] {
  background-color: #007BFF;
  color: white;
  padding: 14px 20px;
  margin-top: 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  font-size: 1em;
}

.modal-content button[type="submit"]:hover {
  background-color: #0056b3;
}

/* Loading Spinner when submit button on sign up form is pressed */
#loading-spinner {
  position: relative;
  text-align: center;
  margin-bottom: 20px; /* Space below the spinner */
}

#loading-spinner img {
  width: 50px;
  height: 50px;
}

#loading-spinner p {
  margin-top: 10px;
  font-size: 18px;
  color: #333;
}

/* Responsive Design */
@media screen and (max-width: 600px) {
  .modal-content {
    width: 90%;
    padding: 20px;
  }
  .modal-content img {
    max-width: 120px;
  }
  .modal-content h2 {
    font-size: 1.2em;
  }
  .modal-content button[type="submit"] {
    padding: 12px 15px;
  }
}

/* Match the "Open" link styling for the "Expand" button */
.guides-overview .file-item .guide-buttons button.expand-btn {
  width: auto;             /* Let it size to content, same as .guide-buttons a */
  font-size: 0.8em;        /* Match your .guide-buttons a's font size */
  padding-left: 7px;       /* Same left padding as "Open" */
  padding-right: 7px;      /* Same right padding as "Open" */
  margin-right: 5px;
  margin-left: 5px;
}

.file-count {
  font-size: 0.8em;
  color: #045bc3; 
  font-family: 'bold';
  margin-left: 8px;
}