﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
  color: white;
}
.nav-link:hover {
    color: #1b6ec2 !important;
}

.btn-primary {
    color: white;
    background-color: #1b6ec2 !important;
    border-color: #1861ac !important;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #1b6ec2 !important;
    background-color: white;
    border-color: #1b6ec2;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  font-size: 14px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}

body {
  /* Margin bottom by footer height */
  margin-bottom: 60px;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px; /* Vertically center the text there */
}
.courses_section {
    /*background-color: #DFCFBE;*/
    background-color: #dfe3e4;
    padding: 10px;
    margin: 10px;
    border-radius: 4px;
    box-shadow: 0 3px 1px -2px rgba(0,0,0,.2), 0 2px 2px 0 rgba(0,0,0,.14), 0 1px 5px 0 rgba(0,0,0,.12), 0 0 1px 0 #e4e4e4;
    color: black;
}

.course_button {
    border-radius: 4px;
    border: none;
    background-color: cornflowerblue;
    font-size: 24px;
    font-family: auto;
    color: white;
    box-shadow: 0 1px grey;
}

.courses_section.test {
    height: 520px;
    overflow-y: hidden;
}

.test {
    /*height: 500px;*/
    overflow-y: hidden;
}

@media (max-width: 767px) {
    .test {
        height: auto;
    }
    .modal-content {
        width: 100%!important; /* Could be more or less, depending on screen size */
    }
}
.block-with-text {
    overflow: hidden;
    min-height:96px;
    position: relative;
    line-height: 1.2em;
    max-height: 6em;
    text-align: justify;
    margin-right: -1em;
    padding-right: 1em;
}

    .block-with-text:before {
        content: '...';
        position: absolute;
        right: 0;
        bottom: 0;
    }

    .block-with-text:after {
        content: '';
        position: absolute;
        right: 0;
        width: 1em;
        height: 1em;
        margin-top: 0.2em;
        background: white;
    }
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

input[type=number] {
    -moz-appearance: textfield; /* Firefox */
}

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 28%; /* Could be more or less, depending on screen size */
}


/* The Close Button */
.close {
    text-align: right;
    font-size: 28px;
    font-weight: bold;
}

    .close:hover,
    .close:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }

.text-make-it-look
{
    padding: 20px;
    margin-top: 20px;
    background-color: #dfe3e4!important;
    border-radius: 4px;
    box-shadow: 0 3px 1px -2px rgba(0,0,0,.2), 0 2px 2px 0 rgba(0,0,0,.14), 0 1px 5px 0 rgba(0,0,0,.12), 0 0 1px 0 #e4e4e4;
    margin-left: 10px!important;
}
@media (max-width: 576px) {
    .theory-view h1{
        text-align:center!important;
    }
    .theory-view .nav.nav-pills a{
        font-size: 18px!important;
    }
    .theory-view .nav.nav-pills a{
        //border-top:1px solid black!important;
    }
    .theory-view #result-tab {
        text-align:center!important;
        font-weight:bold;
    }

    .theory-view #test-result-tab{
        text-align:center!important;
        font-weight:bold;
    }
    .theory-view .nav.nav-pills{
        border-bottom:1px solid black!important;
    }
    .theory-view .tab-content .tab-pane>p:nth-child(2) span,
    .theory-view .tab-content .tab-pane>p:nth-child(2) strong,
    .theory-view .tab-content .tab-pane>p:nth-child(1) span,
        .theory-view .tab-content .tab-pane>p:nth-child(1) strong{
        font-size:22px!important;
    }
    .theory-view .tab-content .tab-pane>p:not(:nth-child(2)) span,
    .theory-view .tab-content .tab-pane ul span{
        font-size:18px!important;
    }
    .theory-view img,
    .theory-view input[type="image"],
    .theory-view iframe{
        max-width:fit-content!important;
        max-height:fit-content!important;
    }
    .theory-view iframe{
        max-width:95vw!important;
    }
    .theory-view table{
        max-width:fit-content;
    }
    .theory-view{
        overflow-x:hidden;
    }
}

.post .post-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post .card-body {
    display: flex;
    flex-direction: column;
}

.post .card-body .btn {
    margin-top: auto;
    align-self: flex-end;
    width: auto;
}
.post a:not(.btn)
{
    color: black;
}

.pagination li:not(.active) a
{
    color: #428bca;
}
.post img{
    max-width:80%;
}

.post-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.section-title {
    text-align: center;
    font-size: 26px;
    font-weight: bold;
    color: #1b6ec2;
    margin: 10px 0 20px;
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    padding: 0 10px 40px;
    margin: 0 auto;
}

.service-card {
    display: flex;
    align-items: center;
    background-color: #f0f4fa;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    padding: 16px 20px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.service-card:hover {
    background-color: #1b6ec2;
    transform: translateY(-3px);
    text-decoration: none;
    box-shadow: 0 6px 15px rgba(27, 110, 194, 0.15);
}

.service-icon {
    font-size: 26px;
    color: #1b6ec2;
    margin-right: 16px;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.service-card:hover .service-icon {
    color: white;
}

.service-label {
    font-size: 16px;
    font-weight: 600;
    white-space: normal;
    line-height: 1.4;
    color: #333333;
    transition: color 0.3s ease;
}

.service-card:hover .service-label {
    color: white;
}

.course-category-filtered {
    width: 100%;
    display: flex;
    flex-direction: column-reverse;
}

.course-category-filtered hr {
    width: 100%;
}

@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
}


.language-switcher {
    padding: 0.375rem 1rem;
    color: #495057;
    background-color: #fff;
    outline: 0;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    height: calc(1.5em + 0.75rem + 2px);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    padding-right: 2.25rem;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="none" stroke="%23495057" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M6 9l6 6 6-6"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem 1.25rem;
}