/********** Template CSS **********/
:root {
    --primary: #F3BD00;
    --secondary: #757575;
    --light: #F3F6F8;
    --dark: #0C2B4B;
}

.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.my-6 {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand,
.navbar a.btn {
    height: 80px
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: var(--dark);
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0, 0, 0, .25);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    border: 10px solid var(--primary);
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .75), rgba(0, 0, 0, .75)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: #999999;
}


/*** Facts ***/
@media (min-width: 991.98px) {
    .facts {
        position: relative;
        margin-top: -75px;
        z-index: 1;
    }
}


/*** Courses ***/
.courses {
    min-height: 100vh;
    background: linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, .9)), url(../img/carousel-1.jpg) center center no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

.courses-item .courses-overlay {
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    overflow: hidden;
    opacity: 0;
    transition: .5s;
}

.courses-item:hover .courses-overlay {
    height: 100%;
    opacity: 1;
}


/*** Team ***/
.team-items {
    margin: -.75rem;
}

.team-item {
    padding: .75rem;
}

.team-item::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    background: #FFFFFF;
    transition: .5s;
    z-index: -1;
}

.team-item:hover::after {
    height: 100%;
    background: var(--primary);
}

.team-item .team-social {
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .75);
    overflow: hidden;
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-social {
    height: 100%;
    opacity: 1;
}


/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    height: 40px;
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 20px;
    height: 20px;
    background: transparent;
    border: 2px solid var(--primary);
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 40px;
    height: 40px;
    background: var(--primary);
}

.testimonial-carousel .owl-item img {
    width: 150px;
    height: 150px;
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--light);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    background: #092139;
}

.copyright a {
    color: var(--primary);
}

.copyright a:hover {
    color: var(--light);
}


body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f6f9;
}

/* Header */
header {
  background: #2c3e50;
  color: #fff;
  padding: 1rem;
  text-align: center;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

/* Toggle Button */
.toggle-btn {
  position: fixed;
  left: 15px;
  top: 15px;
  background: #1abc9c;
  border: none;
  padding: 8px 12px;
  color: white;
  font-size: 18px;
  cursor: pointer;
  border-radius: 5px;
  z-index: 1100;
}

/* Layout */
.container {
  display: flex;
  margin-top: 80px;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: #34495e;
  height: calc(100vh - 80px);
  position: fixed;
  left: -260px;
  top: 80px;
  transition: transform 0.3s ease;
  transform: translateX(0);
  z-index: 1001;

  /* SCROLL ENABLED */
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on mobile */
}

/* Custom Scrollbar */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: #2c3e50;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #1abc9c;
  border-radius: 10px;
}


.sidebar.active {
  left: 0;
}

.sidebar a {
  display: block;
  padding: 14px 20px;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
}

.sidebar a:hover {
  background: #1abc9c;
}

/* Content */
.content {
  flex: 1;
  padding: 2rem;
  margin-left: 0;
  transition: margin-left 0.3s ease;
}

.content.shift {
  margin-left: 250px;
}

/* PDF Preview */
iframe {
  width: 100%;
  height: 700px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

/* Overlay (for mobile feel) */
.overlay {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  display: none;
  z-index: 500;
}

.overlay.active {
  display: block;
}




/* ================= LOCKED CONTENT ================= */
/* BLOCK INTERACTION ONLY FOR PROTECTED CONTENT */
body:not(.unlocked) #protectedContent {
  pointer-events: none;
  user-select: none;


}

/* ALLOW LOGIN INPUTS ALWAYS */
#authOverlay input,
#authOverlay button {
  pointer-events: auto;
  user-select: auto;
}

#protectedContent {

  pointer-events: none;
  user-select: none;
  transition: filter 0.4s ease;
  
}
#protectedContent {
  filter: blur(0px);
}

body.unlocked #protectedContent {
  filter: none;
  pointer-events: auto;
  user-select: auto;
}

/* ================= AUTH OVERLAY ================= */
#authOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.1);
  backdrop-filter: blur(0px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
background-color: #000000;
background-image: url("https://www.transparenttextures.com/patterns/cartographer.png");
/* This is mostly intended for prototyping; please download the pattern and re-host for production environments. Thank you! */
}

body.unlocked #authOverlay {
  display: none;
}

.login-box {
  background: rgb(83, 79, 79);
  padding: 30px;
  width: 320px;
  border-radius: 15px;
  text-align: center;
  color: #fff;
}

.login-box h2 {
  margin-bottom: 15px;
}
.login-box h2 {
  font-size: 26px;
}
.login-box h2 {
  color: #fff;
}


.login-box input {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border-radius: 6px;
  border: none;
}

.login-box button {
  width: 100%;
  padding: 10px;
  background: #ff9800;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

#error {
  color: #ff4d4d;
  margin-top: 8px;
}
/* ================= MOBILE LOADER ================= */
#loader {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.loader-card {
  width: 140px;
  height: 150px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  box-shadow: 0 0 30px rgba(255, 152, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* ICON CONTAINER */
.loader-icon {
  position: relative;
  width: 54px;
  height: 54px;
}

/* SPINNER */
.spinner-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.25);
  border-top-color: #ff9800;
  animation: spin 0.9s linear infinite;
}

/* CHECKMARK (hidden by default) */
.checkmark {
  position: absolute;
  inset: 0;
  display: none;
}

.checkmark::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 24px;
  border: solid #4caf50;
  border-width: 0 4px 4px 0;
  transform: rotate(45deg);
  left: 18px;
  top: 10px;
}

/* TEXT */
.loading-text {
  font-size: 13px;
  letter-spacing: 0.5px;
  color: #fff;
  animation: pulse 1.4s ease-in-out infinite;
}

/* SUCCESS STATE */
#loader.success .spinner-ring {
  display: none;
}

#loader.success .checkmark {
  display: block;
  animation: pop 0.4s ease forwards;
}

#loader.success .loader-card {
  box-shadow: 0 0 35px rgba(76, 175, 80, 0.6);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

@keyframes pop {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* MOBILE SAFETY */
@media (max-width: 480px) {
  .loader-card {
    transform: scale(0.92);
  }
}



/* ================= SHAKE ================= */
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-6px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.4s;
}
