html{
  scroll-behavior: smooth;
}
.select2-container .select2-selection--multiple .select2-selection__rendered{
    white-space:normal !important;
    font-size: .875rem;
}

.select2-container .select2-selection--single{
    min-height: 40px !important;
    align-content: center !important;
    text-align: left !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow{
  top: 6px !important;
}

.select2-container--default .select2-selection--single{
  border-radius: 0 !important;
}

.htmx-request
  {
    display: block !important;
  }
  

  @keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.alert.fade-out {
    animation: fadeOut 1s forwards;
}

.user_card {
  height: 400px;
  width: 350px;
  background: #f39c12;
  position: relative;
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 10px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  -webkit-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  -moz-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  border-radius: 5px;

}
.brand_logo_container {
  position: absolute;
  height: 170px;
  width: 170px;
  top: -75px;
  border-radius: 50%;
  background-color:azure;
  padding: 10px;
  text-align: center;
}
.brand_logo {
  height: 150px;
  width: 150px;
  border-radius: 50%;
  border: 2px solid goldenrod;
  padding: 5px;
}
.form_container {
  margin-top: 100px;
}
.login_btn {
  width: 100%;
  background: #c0392b !important;
  color: white !important;
}
.login_btn:focus {
  box-shadow: none !important;
  outline: 0px !important;
}
.login_container {
  padding: 0 2rem;
}
.input-group-text {
  background: #c0392b !important;
  color: white !important;
  border: 0 !important;
  border-radius: 0.25rem 0 0 0.25rem !important;
  padding: .75rem !important;
}
.input_user,
.input_pass:focus {
  box-shadow: none !important;
  outline: 0px !important;
}
.custom-checkbox .custom-control-input:checked~.custom-control-label::before {
  background-color: #c0392b !important;
}

.card-registration .select-input.form-control[readonly]:not([disabled]) {
  font-size: 1rem;
  line-height: 2.15;
  padding-left: .75em;
  padding-right: .75em;
  }
  .card-registration .select-arrow {
  top: 13px;
  }




  .profile {
    margin-bottom: 20px;
    margin-top: -12px;
    text-align: center;
}

.profile img {
    border-radius: 50%;
    box-shadow: 0px 0px 5px 1px grey;
}

.name {
    font-size: 20px;
    font-weight: bold;
    padding-top: 20px;
}

.job {
    font-size: 16px;
    font-weight: bold;
}

.url, hr {
    text-align: center;
}

.url hr {
    margin-left: 20%;
    width: 60%;
}

.url a {
    color: #818181;
    display: block;
    font-size: 20px;
    margin: 10px 0;
    padding: 6px 8px;
    text-decoration: none;
}

.url a:hover, .url .active {
    background-color: #e8f5ff;
    border-radius: 28px;
    color: #000;
    width: 100%;
}

/* End */

.card-profile .card-header {
    border-bottom: 0 !important;
    height: 150px;
}

.card-profile .profile-picture {
    bottom: -65px;
}
.avatar-xl {
    width: 10rem;
    height: 10rem;
}


.main h2 {
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 24px;
    margin-bottom: 10px;
}

.main .card {
    background-color: #fff;
    border-radius: 18px;
    box-shadow: 1px 1px 8px 0 grey;
    height: auto;
    margin-bottom: 20px;
    padding: 20px 0 20px 50px;
}

.main .card table {
    border: none;
    font-size: 16px;
    height: 270px;
    width: 80%;
}

.edit {
    position: absolute;
    color: #e7e7e8;
    right: 14%;
}

.edit:hover{
    color:#000;
    cursor:pointer;
}

.social-media {
    text-align: center;
    width: 90%;
}

.social-media span {
    margin: 0 10px;
}

.fa-facebook:hover {
    color: #4267b3 !important;
}

.fa-twitter:hover {
    color: #1da1f2 !important;
}

.fa-instagram:hover {
    color: #ce2b94 !important;
}

.fa-invision:hover {
    color: #f83263 !important;
}

.fa-github:hover {
    color: #161414 !important;
}

.fa-whatsapp:hover {
    color: #25d366 !important;
}

.fa-snapchat:hover {
    color: #fffb01 !important;
}


.blog-image{
	position:relative;
	padding:20px;
}
.user-image{
	position:absolute;
	height:50px;
	width:50px;
	border-radius:50%;
	top:-5px;
	left:40%;
	border:1px solid gray;
	background:linear-gradient(45deg,white,transparent);
}
input[type="file"]{
	padding:8px;
	cursor:pointer;
}
.img-container{
	display: grid;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}
.profile-image{
	width:150px;
	height:150px;
	object-fit:cover;
	border-radius:50%;
	margin:auto;
}
.ellipsis{
	overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* End */

/* FOR 403 PAGE */
.forbidden{
    background-color: #233142;
}

.whistle{
    width: 20%;
    fill: #f95959;
    margin: 100px 40%;
    text-align: left;
    transform: translate(-50%, -50%);
    transform: rotate(0);
    transform-origin: 80% 30%;
    animation: wiggle .2s infinite;
  }
  
  .forbidden h1{
    margin-top: -100px;
    margin-bottom: 20px;
    color: #facf5a;
    text-align: center;
    font-family: 'Raleway';
    font-size: 90px;
    font-weight: 800;
  }
  .forbidden h2{
    color: #818181;
    text-align: center;
    font-family: 'Raleway';
    font-size: 40px;
    font-weight: bold;
    text-transform: uppercase;
  }

  @keyframes wiggle {
    0%{
      transform: rotate(3deg);
    }
    50%{
      transform: rotate(0deg);
    }
    100%{
      transform: rotate(3deg);
    }
  }

  /* END RESTRICT PAGE */



  /* for profile page */
  .profile-header {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}
.profile-header img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: fill;
    border: 2px solid gray;
}
.profile-header .pencil-icon {
    position: absolute;
    bottom: 0;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
}
.profile-header .pencil-icon input[type="file"] {
    display: none;
}
.profile-section {
    padding-top: 30px;
}
.btn-custom {
    background-color: #007bff;
    color: white;
}
.btn-custom:hover {
    background-color: #0056b3;
}
.form-control-plaintext {
    font-size: 1.1rem;
}
.editable-field {
    display: none;
}
.view-mode .editable-field {
    display: none;
}
.edit-mode .editable-field {
    display: inline-block;
}
.edit-mode .view-field {
    display: none;
}
.image-preview {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-top: 10px;
}
  /* end of profile page */




/* user layout style */
.btn-toggle-nav a {
  padding: .1875rem .5rem;
  margin-top: .125rem;
  margin-left: .5rem;
}
.btn-toggle-nav a:hover,
.btn-toggle-nav a:focus {
  background-color: #CBF3F0;
  border-radius: 5px;
}
#navbar{
  background-color: transparent !important;
  padding: .1875rem .5rem;
  margin-top: .125rem;
}
#navbar:hover{
  background-color: #CBF3F0 !important;
  border-radius: 5px;
}
.sb-active{
  background-color: #CBF3F0 !important;
  border-radius: 5px;
}

  @media (min-width: 768px) {
    .navbar-expand-md .offcanvas {
        width: 100% !important;
    }
}

/* end of user layout style */





/* FOR HOME PAGE */

.hero-section {
  background: linear-gradient(135deg, #264653, #2a9d8f);
  color: #fff;
  padding: 80px 20px;
  text-align: center;
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 700;
}

.hero-section p {
  font-size: 1.2rem;
  margin-top: 15px;
}

.search-bar {
  margin-top: 30px;
  padding: 20px;
  background: #f4f4f4;
  border-radius: 10px;
}

/* Section Headings */
.section-heading {
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

/* Cards */
.subject-card, .tutor-card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.subject-card:hover, .tutor-card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
}

.subject-card img, .tutor-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.carousel-item {
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(10%);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.btn-view-more {
  background: linear-gradient(135deg, #2a9d8f, #e63946);
  color: #fff;
  font-weight: bold;
  border: none;
  transition: background 0.3s;
}

.btn-view-more:hover {
  background: linear-gradient(135deg, #e63946, #2a9d8f);
}

.custom-carousel-controls {
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* Registration Cards */
.register-card {
  background: #e9f7f5;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin-bottom: 30px;
  transition: transform 0.3s;
}

.register-card:hover {
  transform: translateY(-10px);
}

/* Buttons */
.btn-register {
  background-color: #264653;
  color: white;
  font-weight: bold;
  border: none;
  padding: 15px 30px;
  font-size: 1rem;
  margin-top: 20px;
  transition: background-color 0.3s;
}

.btn-register:hover {
  background-color: #2a9d8f;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-section h1 {
      font-size: 2.5rem;
  }
  .hero-section p {
      font-size: 1rem;
  }
}
/* END OF FORM HOME PAGE */
