/* Base Colors */
:root {
    --primary-color: #22274E;
    --secondary-color: #8C7284;
    --light-grey: #E5E5E5;
    --white: #FFFFFF;
    --soft-pinkish-grey: #C4B6BE;
    --slate-blue: #5A5A8E;
}

/* Background Colors */

body {
    background-color: var(--light-grey); /* Light Grey background */
    background-image: url('/static/images/aeroplane.png'); /* Replace with your image path */
    background-repeat: no-repeat; /* Ensure the image doesn't repeat */
    background-position: center center; /* Center the image */
    background-size: auto calc(50%); /* Adjust the height to 30% of the viewport height */
    background-attachment: fixed; /* Fix the image so it stays in place during scroll */
    color: var(--primary-color);
}


/* Optional: To ensure the image always stays in the center of the viewport regardless of content */
html, body {
    height: 100%;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.bg-light-grey {
    background-color: var(--light-grey) !important;
}

.bg-white {
    background-color: var(--white) !important;
}

.bg-soft-pinkish-grey {
    background-color: var(--soft-pinkish-grey) !important;
}

.bg-slate-blue {
    background-color: var(--slate-blue) !important;
}

.bg-success2 {
    background-color: rgba(163,197,161,1) !important;
}

.bg-danger2 {
    background-color: #D2979A !important;
}

.bg-info2 {
    background-color: #8BBBF9 !important;
}

.btn-outline-primary {
    color: #22274E !important;
    border-color: #22274E !important;
}

.btn-outline-primary:hover {
    background-color: #22274E !important;
    color: var(--light-grey) !important;
}

/* Text Colors */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.text-light-grey {
    color: var(--light-grey) !important;
}

.text-white {
    color: var(--white) !important;
}

.text-soft-pinkish-grey {
    color: var(--soft-pinkish-grey) !important;
}

.text-slate-blue {
    color: var(--slate-blue) !important;
}

/* Border Colors */
.border-primary {
    border-color: var(--primary-color) !important;
}

.border-secondary {
    border-color: var(--secondary-color) !important;
}

.border-light-grey {
    border-color: var(--light-grey) !important;
}

.border-white {
    border-color: var(--white) !important;
}

.border-soft-pinkish-grey {
    border-color: var(--soft-pinkish-grey) !important;
}

.border-slate-blue {
    border-color: var(--slate-blue) !important;
}

/* Utility Classes */
.p-1 {
    padding: 0.25rem !important;
}

.p-2 {
    padding: 0.5rem !important;
}

.p-3 {
    padding: 1rem !important;
}

.m-1 {
    margin: 0.25rem !important;
}

.m-2 {
    margin: 0.5rem !important;
}

.m-3 {
    margin: 1rem !important;
}

.fs-7 {
    font-size: 0.75rem !important;
}

.font-italic {
    font-style: italic !important;
}
/* Main Structure */

.main-wrapper {
    min-height: 100vh; /* Ensures it covers the entire viewport height */
}

.login-container {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.card {
    background-color: var(--white); /* Set background to white */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle box shadow */
    padding: 1rem; /* Additional padding if needed */
}

.card h3 {
    font-size: 1.2rem; /* Reduce font size */
}

.table {
    margin-bottom: 0; /* Ensure no extra space below the table */
    color: var(--primary-color) !important;
}

.table th, .table td {
    font-size: 0.8rem; /* Reduce table font size */
    padding: 0.5rem; /* Reduce padding */
}

.dropdown-toggle {
    font-size: 0.8rem; /* Smaller dropdown trigger */
}

.dropdown-menu {
    font-size: 0.8rem; /* Smaller dropdown items */
}

.tooltip-inner {
    font-size: 0.8rem; /* Smaller tooltip text */
    padding: 0.5rem; /* Reduce padding */
}

.table-responsive {
    min-height: 400px; /* Set a minimum height */
}

.col-md-6.mb-4 {
    flex-grow: 1; /* Allow the student section to take more vertical space */
    display: flex;
    flex-direction: column;
}

.table-responsive {
    min-height: 400px;
}

.card.bg-white.p-3 .btn {
    padding: 0.25rem 0.5rem; /* Reduce padding to make buttons more compact */
    font-size: 0.8rem; /* Ensure button text is consistent with other elements */
}

/* Tooltip overlay covering the whole screen */
#changeClassTooltip {
    position: fixed; /* Ensure it covers the entire viewport */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1050; /* Ensure it stays above other elements */
    background-color: var(--white); /* Background color for the tooltip */
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add some shadow for depth */
    display: none; /* Hidden by default */
    width: 90%;
    max-width: 400px; /* Control the width of the tooltip */
}

#dashboard-sections .row {
    display: flex;
    flex-wrap: wrap;
}

#dashboard-sections .col-md-6 {
    display: flex;
    flex-direction: column;
}

#dashboard-sections .cohorts-section {
    flex-shrink: 0; /* Prevent shrinking */
}

#dashboard-sections .papers-section {
    flex-grow: 1; /* Takes the remaining space */
    display: flex;
    flex-direction: column;
}

#dashboard-sections .papers-section .card {
    height: 100%; /* Ensure the card fills the remaining space */
}

/* Ensure pagination is centered and full-width */
.dataTables_wrapper .dataTables_paginate {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
}

/* Ensure the dropdown for length ('l') and the info summary ('i') are aligned side by side */
.dataTables_filter {
    float: left !important;
    text-align: left !important;
    width: 100% !important;
}

.dataTables_filter input {
    width: 100% !important;
    margin-bottom: 10px;
}

.dataTables_wrapper label {
    width: 100%;
    padding: 5px;
}
/* Features */

.hero-section {
    position: relative;
    width: 100%;
    height: auto;
    max-height: 500px; /* Set a maximum height for the hero section */
    overflow: hidden; /* Ensures any overflow is hidden */
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}
.hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    text-align: center;
    padding: 1rem 2rem;
    background-color: rgba(34, 39, 78, 0.7); /* Semi-transparent background using your primary color */
    border-radius: 10px;
}

.hero-text-overlay h1,
.hero-text-overlay p {
    margin: 0.5rem 0;
}

.image-credit {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 0.8rem;
    color: var(--white);
    text-decoration: none;
}
.hero-text {
    max-width: 50%;
}

.hero-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.features {
    padding: 2rem 0; /* Add padding to the top and bottom of the section */
}

.features .feature-item {
    display: flex;
    align-items: center; /* Vertically center the content */
    padding: 2rem 0; /* Space between each row */
    border-bottom: 1px solid var(--light-grey); /* Optional: Separate each row with a border */
}

.features .feature-item img {
    width: 66%; /* Set a fixed width */
    height: 66%; /* Set a fixed height */
    object-fit: cover; /* Scale the image while maintaining aspect ratio */
    margin-right: 2rem; /* Space between the image and the text */
}

.features .feature-item h3 {
    margin-bottom: 1rem; /* Space below the heading */
}

.features .feature-item p {
    margin-bottom: 0; /* Remove default margin below paragraph */
    flex-grow: 1; /* Allow the text to fill the remaining space */
}

.features .row {
    flex-wrap: nowrap; /* Prevent the items from wrapping */
    align-items: center; /* Align items in the center vertically */
}

.testimonials .carousel-item {
    text-align: center;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.benefits .row {
    align-items: center;
    margin-bottom: 2rem;
}

.cta {
    background-color: var(--secondary-color); /* Use secondary color for the background */
    padding: 4rem 2rem;
    color: var(--white);
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-subtext {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--white); /* Keeping the subtext simple and clean */
}

.cta-btn {
    background-color: var(--white); /* White button with secondary color text */
    color: var(--secondary-color);
    padding: 1rem 2rem;
    font-size: 1.25rem;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--secondary-color); /* Add a border to the button */
}

.cta-btn:hover {
    background-color: var(--secondary-color); /* Swap colors on hover */
    color: var(--white);
    transform: translateY(-3px);
}

.cta::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    bottom: -10px;
    left: -10px;
    border: 2px solid var(--secondary-color);
    border-radius: 15px;
    opacity: 0.5;
    z-index: -1;
}


.footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1rem 0;
    flex-wrap: nowrap; /* Prevents wrapping of items to the next line */
}

.footer a {
    text-decoration: none;
    color: var(--primary-color);
}

.footer img {
    max-width: 20%; /* Adjust to make sure they fit */
    height: auto;
    display: block;
    margin: 0 auto;
}

.col-auto {
    flex: 0 1 auto; /* Allows the columns to shrink to fit the content */
    display: flex;
    justify-content: center;
    align-items: center;
}


/* Slider Carosel */

.features .container{
    width:100vw;
    height:80vh;
    display:flex;
    justify-content:center;
    align-items:center;
  }
.features .slider {
    height: 750px;
    width:100vw;
    display: flex;
    perspective: 1000px;
    position: relative;
    align-items:center;
    overflow-x: hidden;
  }
.features .box1{
    background:url('/static/images/homepage.png');
    background-size:cover;
    background-position:center center;}
.features .box2{
  background:url('/static/images/analysis-upload.png');
    background-size:cover;
    background-position:center center;}
.features .box3{
  background:url('/static/images/analysis-page.png');
    background-size:cover;
    background-position:center center;}
.features .box4{
    background:url('/static/images/student-hub.png');
    background-size:cover;
    background-position:center center;}
.features .box5{
    background:url('/static/images/paper-in-detail.png');
    background-size:cover;
    background-position:center center;}
.features .box6{
    background:url('/static/images/student-prog-report.png');
    background-size:cover;
    background-position:center center;}
.features .box7{
    background:url('/static/images/cohort-man.png');
    background-size:cover;
    background-position:center center;}
  
  .slider [class*="box"] {
  /*   float: left; */
    overflow: hidden;
    border-radius:20px;
    transition: all 1s cubic-bezier(0.68, -0.6, 0.32, 1.6);
      position:absolute;
  }
  .slider [class*="box"]:nth-child(7),
  .slider [class*="box"]:nth-child(1) {
    width: 100vh;
    height: 60vh;
    transform: scale(0.2) translate(-50%,-50%);
    top: 10%;
    z-index:1;
  }
  .slider [class*="box"]:nth-child(2),
  .slider [class*="box"]:nth-child(6) {
    width: 100vh;
    height: 60vh;
    transform: scale(0.4) translate(-50%,-50%);
    top: 20%;
    z-index:2;
  }
  .slider [class*="box"]:nth-child(3),
  .slider [class*="box"]:nth-child(5) {
    width: 100vh;
    height: 60vh;
    transform: scale(0.6) translate(-50%,-50%);
    top: 30%;
    z-index:3;
  }
  .slider [class*="box"]:nth-child(4) {
    width: 60vw;
    height: 60vh;
    border-color: #c92026;
    color: #fff;
    transform: scale(1) translate(-50%,-50%);
    top: 50%;
    z-index:4;
  }
  .slider [class*="box"]:nth-child(1){
    left:-13%;}
  .slider [class*="box"]:nth-child(2){
    left:-5%;}
  .slider [class*="box"]:nth-child(3){
    left:10%;}
  .slider [class*="box"]:nth-child(4){
    left:50%;}
  .slider [class*="box"]:nth-child(5){
    left:71%;}
  .slider [class*="box"]:nth-child(6){
    left:85%;}
  .slider [class*="box"]:nth-child(7){
    left:100%;}
  .slider .firstSlide {
      -webkit-animation:  firstChild 1s;
      animation:  firstChild 1s;
  }
  /*Animation for buyers landing page slider*/
  @-webkit-keyframes firstChild {
      0% {left:100%; transform: scale(0.2) translate(-50%,-50%);}
      100% {left: -13%; transform: scale(0.2) translate(-50%,-50%);}
  }
  @keyframes firstChild {
     0% {left:100%; transform: scale(0.2) translate(-50%,-50%);}
      100% {left: -13%; transform: scale(0.2) translate(-50%,-50%);}
  }

/* Form Controls */
.form-control {
    border: 1px solid var(--soft-pinkish-grey);
    border-radius: 5px;
}

/* Buttons */

.btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    padding: 0.75rem;
    border-radius: 5px;
    transition: background-color 0.3s;
    width: 100%;
}
.btn-primary {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    border: none !important;
    }

.btn-primary:hover {
    background-color: var(--slate-blue) !important;
}

.btn-secondary {
    background-color: var(--secondary-color) !important;
    color: var(--white) !important;
    border: none !important;
    }

.btn-secondary:hover {
    background-color: var(--soft-pinkish-grey) !important;
}

.btn-light-grey {
    background-color: var(--light-grey) !important;
    color: var(--primary-color) !important;
    border: none !important;
}

.btn-soft-pinkish-grey {
    background-color: var(--soft-pinkish-grey) !important;
    color: var(--primary-color) !important;
    border: none !important;
}

.btn-slate-blue {
    background-color: var(--slate-blue) !important;
    color: var(--white) !important;
    border: none !important;
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-color);
    border: none;
}

.btn-white:hover {
    background-color: var(--light-grey);
}

/* Links */
a.text-primary:hover {
    color: var(--primary-color) !important;
}

a.text-secondary:hover {
    color: var(--secondary-color) !important;
}

a.text-light-grey:hover {
    color: var(--light-grey) !important;
}

a.text-soft-pinkish-grey:hover {
    color: var(--soft-pinkish-grey) !important;
}

a.text-slate-blue:hover {
    color: var(--slate-blue) !important;
}

/* Headers */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
}

/* Nav Bar */
/* Styles for the logo to stand out */
/* Navbar Styles */
.sticky-header {
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #22274E;
    color: #FFFFFF;
    padding: 0.5rem 1rem;
    box-shadow: 0 4px 6px -6px #222; /* Optional: Add some shadow for better separation */
}

.navbar-brand img {
    height: 50px;
    background-color: #FFFFFF; /* Contrasting background */
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optional: subtle shadow */
}

.navbar-nav {
    flex: 1;
    display: flex;
    justify-content: space-around; /* Adjust spacing to include gaps at start and end */
    align-items: center;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-link {
    color: #FFFFFF !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    transition: color 0.3s, background-color 0.3s;
    text-align: center;
}

.nav-link:hover {
    color: #E5E5E5 !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.dropdown-menu {
    background-color: #22274E;
    color: #FFFFFF;
    border: none;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    color: #FFFFFF !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: #E5E5E5;
    color: #22274E !important;
}

/* Media Queries */

@media (max-width: 768px) {
    .hero-section {
        max-height: 300px; /* Adjust height for smaller screens */
    }

    .hero-section h1, .hero-section .h1 {
        font-size: calc(1rem + 1.5vw);
    }
    
    .hero-section a {
        font-size: 0.75rem;
    }

    .sm-hidden {
        display:none;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .hero-section {
        max-height: 400px; /* Adjust height for medium screens */
    }
}

