/* Font Declarations */
@font-face {
    font-family: 'Circular Std';
    src: url('../fonts/CircularStd-Book.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Circular Std';
    src: url('../fonts/CircularStd-BookItalic.woff') format('woff');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Circular Std';
    src: url('../fonts/CircularStd-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Circular Std';
    src: url('../fonts/CircularStd-MediumItalic.woff') format('woff');
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: 'Circular Std';
    src: url('../fonts/CircularStd-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Circular Std';
    src: url('../fonts/CircularStd-BoldItalic.woff') format('woff');
    font-weight: 700;
    font-style: italic;
}

@font-face {
    font-family: 'Circular Std';
    src: url('../fonts/CircularStd-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Circular Std';
    src: url('../fonts/CircularStd-BlackItalic.woff') format('woff');
    font-weight: 900;
    font-style: italic;
}

/* Base Styles */
body {
    font-family: 'Circular Std', sans-serif;
    font-weight: 400;
    color: #5d5b5c;
    background: #f6fafd;
    margin: 0;
}

/* Header Styles */
header {
    padding: 0 32px 16px 32px;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}

.logo-title {
    display: flex;
    align-items: center;
}

header button {
    background: #2d6cdf;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 10px 28px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 8px #0002;
    transition: background 0.2s;
}

header button:hover {
    background: #1b4e8a;
}

/* Student Info Styles */
.student-info {
    background: #fff;
    padding: 20px 20px 0px 20px;
    gap: 32px;
}

.student-info .student-photo {
    border: 4px solid #b8e0f7;
}

.student-info label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.98em;
}

.student-info input[type="text"],
.student-info input[type="date"] {
    border: 1px solid #b8e0f7;
    border-radius: 8px;
    padding: 4px 10px;
    margin-left: 6px;
    font-size: 1em;
    background: #f6fafd;
}

/* Score Gauge Styles */
.score-gauge {
    background: #fff;
    box-shadow: 0 2px 8px #0001;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.score-gauge svg {
    display: block;
    margin: 0 auto;
}

.score-gauge button {
    background: #e0e0e0;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    margin: 0 4px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s;
}

.score-gauge button:hover {
    background: #b8e0f7;
}

/* Rubric Cards Styles */
.rubric-cards {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 24px 0;
}

.rubric-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px #0001;
    min-width: 260px;
    max-width: 280px;
    padding: 20px 18px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow 0.2s;
}

.rubric-card:hover {
    box-shadow: 0 4px 16px #0002;
}

.rubric-card span {
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.98em;
}

.rubric-card span[style*="#b7e4c7"] { background: #b7e4c7; color: #1b4e8a; }
.rubric-card span[style*="#ffe066"] { background: #ffe066; color: #8a6d1b; }
.rubric-card span[style*="#ffa07a"] { background: #ffa07a; color: #8a3c1b; }

/* Rubric Key Styles */
.rubric-key {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 8px #0001;
    padding: 0 24px 32px;
}

.rubric-key h3 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 1.2em;
    color: #000;
}

/* Media query for medium screens where rubric text goes out of box */
@media (min-width: 990px) and (max-width: 1377px) {
    .rubric-key .position-absolute {
        font-size: 0.85em !important;
        line-height: 1.3 !important;
        padding: 8px !important;
        width: 95% !important;
    }
    
    .rubric-key .col-lg-3 {
        min-height: 280px;
    }
    
    .rubric-key .position-relative {
        height: 100%;
        min-height: 280px;
    }
}

@media (min-width: 992px) and (max-width: 1410px) {
    .profile-tier-container{
        justify-content: center !important;
    }
    .logo-chart .col-lg-5:nth-child(1){
        width: 100% !important;
        margin-top: 20px !important;
        margin-bottom: 10px !important;
    }
    .logo-chart .col-lg-5{
        width: 62% !important;
        margin-top: 20px !important;
        margin-bottom: 10px !important;
    }
    .logo-chart .col-lg-2{
        width: 25% !important;
        margin-top: 30px !important;
    }
}

/* Media query for screens below 1391px to change navigation button sizes */
@media (max-width: 1391px) {
    .d-flex.justify-content-center.gap-3 img[alt="Previous"],
    .d-flex.justify-content-center.gap-3 img[alt="Next"] {
        height: 30px !important;
        width: auto !important;
    }
}

@media (max-width: 992px) {
  .guage-chart-container{
    margin-top: 20px;
  }
  .profile-tier-container{
    justify-content: center;
  }

  .behavior-header{
    text-align: center;
  }

  .score-card{
    font-size: 1.3rem !important;
    }
}

/* Video Carousel Styles */
.video-carousel {
    padding: 0 0;
    padding-bottom: 20px;
    background-color: #fdece3;
}

.sub-video-carousel{
    background-color: #fff;
    margin-left: 20px;
    margin-right: 20px;
    padding-top: 20px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.video-carousel h3 {
    font-weight: 700;
    font-size: 1.5em;
    margin-bottom: 20px;
}

.video-carousel .carousel {
    position: relative;
    overflow: hidden;
    padding: 0 40px;
    margin: 20px 0;
}

.video-carousel .carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
    margin: 0 -10px;
}

.video-carousel .carousel-item {
    flex: 0 0 auto;
    width: 320px;
    margin: 0 10px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
}

.video-carousel .carousel-item.active {
    opacity: 1;
}

.video-carousel .video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: 6px;
    background: #000;
}

.video-carousel .video-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-carousel .play-button {
    position: absolute;
    top: 10px;
    right: 10px;
    transform: none;
    cursor: pointer;
    z-index: 2;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 8px;
    transition: background-color 0.3s ease;
}

.video-carousel .play-button:hover {
    background: rgba(0, 0, 0, 0.7);
}

.video-carousel .play-button svg {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.video-carousel .carousel-caption {
    position: relative;
    right: 0;
    bottom: 0;
    padding: 15px;
    background: #fdece3;
    color: #5d5b5c;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 160px;
    border-radius: 6px;
}

.video-carousel .carousel-caption > div:first-child {
    font-size: 1.2em;
    font-weight: 700;
    color: #5d5b5c;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.video-carousel .carousel-caption p {
    margin-bottom: 8px;
    font-size: 0.9em;
    line-height: 1.4;
    color: #5d5b5c;
    font-weight: 400;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.video-carousel .carousel-caption .status-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    flex-shrink: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 6px;
}

.video-carousel .carousel-caption .status-container img {
    height: 40px;
    width: auto;
}

.video-carousel .carousel-control-prev,
.video-carousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    z-index: 2;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.video-carousel .carousel-control-prev {
    left: 0;
}

.video-carousel .carousel-control-next {
    right: 0;
}

.video-carousel .carousel-control-prev img,
.video-carousel .carousel-control-next img {
    width: 20px;
    height: 20px;
    filter: brightness(0);
}

.video-carousel .carousel-control-prev:hover,
.video-carousel .carousel-control-next:hover {
    background: rgba(255, 255, 255, 1);
}

.video-carousel .carousel-indicators {
    position: relative;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.video-carousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.video-carousel .carousel-indicators button.active {
    background-color: #2d6cdf;
}

/* Swiper custom styles for video carousel */
.swiper-wrapper{
    padding: 20px 0 20px 0;
}

.swiper-slide {
    background: linear-gradient(135deg, #081420 0%, #030a10 100%);
    box-shadow: 0 4px 12px rgb(4 124 244 / 80%);
    opacity: 0.9;
    transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0.85) !important;
    font-size: 14px !important;
}

.swiper-slide-prev {
    transform: scale(0.92) !important;
}

.swiper-slide-next {
    transform: scale(0.92) !important;
}

.swiper-slide::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7); /* black overlay */
    transition: opacity 0.3s ease;
    z-index: 1;
    border-radius: 10px;
}

.swiper-slide-active {
    opacity: 1;
    transform: scale(1.1) !important;
    /* box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important; */
    box-shadow: 0 4px 12px rgb(4 124 244 / 80%) !important;
    z-index: 2 !important;
    font-size: 16px !important;
}

.swiper-slide-active::after {
    opacity: 0; /* hide overlay on active */
}

.video-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px #0001;
    overflow: hidden;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.video-thumb img {
    width: 100%;
    border-radius: 12px 12px 0 0;
    display: block;
}

.play-btn {
    color: #333;
    box-shadow: 0 2px 8px #0002;
    cursor: pointer;
    font-size: 2em;
    border: none;
    outline: none;
    padding-left: 4px;
}

.video-info {
    background-color: #fdece3;
    border-radius: 0 0 10px 10px;
}

.swiper-button-next, .swiper-button-prev {
    color: #fff !important;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    top: 45%;
}

.swiper-pagination-bullet {
    background: #bbb;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: #333;
}

.swiper-pagination {
    position: relative !important;
    margin-top: 32px !important;
    bottom: 0 !important;
    z-index: 10 !important;
    text-align: center !important;
}

.swiper-backface-hidden .swiper-slide{
    border-radius: 10px;
}

.top-section{
    background: #6390c6;
    padding: 20px 20px 0 20px;
}

.blank_div{
    padding: 3px;
}

/* Student Info Label Styles */
.student-info .school-name {
    border: 1px solid #b8e0f7;
    padding: 4px 10px;
    margin-left: 6px;
    font-size: 1em;
    background: #f6fafd;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    display: flex;
    align-items: center;
}

.student-info .counselor-name {
    border: 1px solid #b8e0f7;
    padding: 4px 10px;
    margin-left: 6px;
    font-size: 1em;
    background: #f6fafd;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    display: flex;
    align-items: center;
}

.student-info .date-label {
    border: 1px solid #b8e0f7;
    padding: 4px 10px;
    margin-left: 6px;
    font-size: 1em;
    background: #f6fafd;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    display: flex;
    align-items: center;
}

.student-info .grade {
    border: 1px solid #b8e0f7;
    padding: 4px 10px;
    margin-left: 6px;
    font-size: 1em;
    background: #f6fafd;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    display: flex;
    align-items: center;
}

.student-info .name {
    border: 1px solid #b8e0f7 !important;
    padding: 7px 10px !important;
    margin-left: 6px !important;
    font-size: 1em !important;
    border-top-left-radius: 20px !important;
    border-bottom-left-radius: 20px !important;
    border-top-right-radius: 5px !important;
    border-bottom-right-radius: 5px !important;
    color: #5d5b5c !important;
    display: flex;
    align-items: center;
    line-height: 1.15 !important;
}

/* Score Card Styles */
.score-card {
    padding: 0;
    text-align: center;
}

.score-card h3 {
    font-size: 1.7em;
    font-weight: 600;
    letter-spacing: 1px;
    color: #2b282b;
    margin: 0;
}

.score-card .score {
    font-size: 10em;
    font-weight: bold;
    color: #8fc2a3;
    margin: 0;
    line-height: 1;
}

.score-card .out-of {
    font-size: 2em;
    color: #2b282b;
}

.tier_image {
    cursor: pointer;
}

.rubric-key-link {
    transition: color 0.2s ease;
}

.rubric-key-link:hover {
    color: #000 !important;
    text-decoration: underline !important;
}

.student-info-labels {
    display: flex;
    align-items: center;
}

.student-info-labels label {
    height: 60%;
}

.student-info-labels label:nth-child(1), .student-info-labels label:nth-child(2) {
    width: 200px;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .score-card .score {
        font-size: 8em;
    }
    
    .score-card h3 {
        font-size: 1.5em;
    }
    
    .score-card .out-of {
        font-size: 1.8em;
    }
}

@media (max-width: 992px) {
    .top-section {
        padding: 15px 15px 0 15px;
    }
    
    .student-info {
        padding: 15px 15px 0 15px;
    }
    
    .student-info h4 {
        font-size: 2em !important;
        margin-left: 5px !important;
    }
    
    .score-card .score {
        font-size: 6em;
    }
    
    .score-card h3 {
        font-size: 1.3rem;
    }
    
    .score-card .out-of {
        font-size: 1.5rem;
    }
    
    .student-info .name {
        width: 100% !important;
        margin-left: 0 !important;
    }
    
    .student-info .grade {
        margin-left: 0 !important;
        text-align: center;
    }
    
    .student-info-labels {
        justify-content: center;
        margin-top: 15px;
    }
    
    .student-info-labels label {
        width: auto !important;
        min-width: 120px;
        text-align: center;
    }

    .mirror-img{
      display: none;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0 15px 10px 15px;
    }
    
    .top-section {
        padding: 10px 10px 0 10px;
    }
    
    .student-info {
        padding: 10px 10px 0 10px;
    }
    
    .student-info h4 {
        font-size: 1.8em !important;
        margin-left: 0 !important;
        text-align: center;
    }
    
    .score-card .score {
        font-size: 4em;
    }
    
    .score-card h3 {
        font-size: 1.3rem;
    }
    
    .score-card .out-of {
        font-size: 1.3rem;
    }
    
    .student-info img[style*="width:200px"] {
        width: 150px !important;
        height: 150px !important;
    }
    
    .tier_image {
        height: 150px !important;
    }
    
    .sub-video-carousel {
        margin-left: 10px;
        margin-right: 10px;
    }
    
    .rubric-key {
        padding: 0 15px 20px 15px;
    }
    
    .rubric-key h3 {
        font-size: 1.1em;
        text-align: center;
    }
    
    .swiper-slide {
        width: 100vw !important;
    }
    
    .video-card {
        width: 95vw;
        min-height: 300px;
    }
    
    .swiper-button-next, .swiper-button-prev {
        width: 35px;
        height: 35px;
    }
    
    /* Improve video carousel on mobile */
    .video-carousel .carousel {
        padding: 0 20px;
    }
    
    .video-carousel .carousel-item {
        width: 280px;
    }
    
    /* Better spacing for rubric key on mobile */
    .rubric-key .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .rubric-key .col-12, .rubric-key .col-md-6, .rubric-key .col-lg-3 {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Larger touch targets for mobile */
    .swiper-button-next, .swiper-button-prev {
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Better button spacing */
    .d-flex.gap-3 img {
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Improve form elements */
    .form-select {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    select.name{
        min-height: 34px !important;
    }
    
    /* Better text readability */
    .student-info h4 {
        line-height: 1.2;
    }
    
    .score-card .score {
        line-height: 0.9;
    }

    #dashedLine {
        bottom: 94px !important;
        height: 164px !important;
    }

    .rubric-key-link{
        font-size: 1.2em !important;
    }
}

@media (min-width: 768px){
    .logo-chart .col-md-12 {
        margin-top: 20px !important;
    }
}

@media (max-width: 460px){
    #dashedLine {
        bottom: 90px !important;
        height: 128px !important;
    }
    #markerImg{
        bottom: 200px !important;
    }
    #markerScore{
        bottom: 182px !important;
    }
}

@media (max-width: 576px){
    .profile-tier-container{
        margin-bottom: 170px !important;
    }
}

@media (min-width: 576px){
    .logo-chart .col-md-12 {
        margin-top: 20px !important;
    }
    .profile-tier-container{
        flex-direction: row !important;
        margin-bottom: 10px !important;
    }
}

@media (max-width: 576px) {
    .student-info h4 {
        font-size: 1.5em !important;
    }
    
    .score-card .score {
        font-size: 3em;
    }
    
    .score-card h3 {
        font-size: 1.3rem;
    }
    
    .score-card .out-of {
        font-size: 1.3rem;
    }
    
    .student-info img[style*="width:200px"] {
        width: 120px !important;
        height: 120px !important;
    }
    
    .tier_image {
        height: 120px !important;
    }
    
    .student-info-labels {
        flex-direction: column;
        gap: 5px;
    }
    
    .student-info-labels label {
        width: 100% !important;
        text-align: center;
        margin-left: 0 !important;
    }
    
    .rubric-key > div > div {
        padding: 12px 10px;
        font-size: 0.9em;
    }
    
    .swiper-slide {
        width: 95vw !important;
    }
    
    .video-card {
        width: 98vw;
        min-height: 280px;
    }
    
    .swiper-button-next, .swiper-button-prev {
        width: 30px;
        height: 30px;
    }
    
    .swiper-button-next img, .swiper-button-prev img {
        width: 15px;
        height: 15px;
    }
    
    /* Improve video carousel on very small screens */
    .video-carousel .carousel {
        padding: 0 10px;
    }
    
    .video-carousel .carousel-item {
        width: 250px;
    }
    
    /* Better modal sizing on mobile */
    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .modal-body iframe {
        height: 60vh !important;
    }
    
    /* Improve accessibility and touch targets */
    .swiper-button-next, .swiper-button-prev {
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Better button spacing */
    .d-flex.gap-3 img {
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Improve form elements */
    .form-select {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Better text readability */
    .student-info h4 {
        line-height: 1.2;
    }
    
    .score-card .score {
        line-height: 0.9;
    }
}

/* Bootstrap Modal Overrides */
.modal-content {
    border: none !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
    border-radius: 10px 10px 0 0;
}

.btn-close {
    background-size: 1.2em;
}

/* Form Select Overrides */
.form-select {
    border-color: #b8e0f7 !important;
    background-color: #f6fafd !important;
    color: #5d5b5c !important;
}

.form-select:focus {
    border-color: #2d6cdf !important;
    box-shadow: 0 0 0 0.2rem rgba(45, 108, 223, 0.25) !important;
}

/* Image Responsive Overrides */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Ensure proper spacing on mobile */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .row {
        margin-left: -5px;
        margin-right: -5px;
    }
    
    .col-12, .col-md-6, .col-lg-3, .col-lg-6, .col-lg-8, .col-lg-4 {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    /* Improve video carousel on mobile */
    .video-carousel .carousel {
        padding: 0 20px;
    }
    
    .video-carousel .carousel-item {
        width: 280px;
    }
    
    /* Better spacing for rubric key on mobile */
    .rubric-key .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .rubric-key .col-12, .rubric-key .col-md-6, .rubric-key .col-lg-3 {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Larger touch targets for mobile */
    .swiper-button-next, .swiper-button-prev {
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Better button spacing */
    .d-flex.gap-3 img {
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Improve form elements */
    .form-select {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Better text readability */
    .student-info h4 {
        line-height: 1.2;
    }
    
    .score-card .score {
        line-height: 0.9;
    }
}

/* Additional mobile optimizations */
@media (max-width: 576px) {
    /* Reduce padding further on very small screens */
    .container-fluid {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .row {
        margin-left: -2px;
        margin-right: -2px;
    }
    
    .col-12, .col-md-6, .col-lg-3, .col-lg-6, .col-lg-8, .col-lg-4 {
        padding-left: 2px;
        padding-right: 2px;
    }
    
    /* Improve video carousel on very small screens */
    .video-carousel .carousel {
        padding: 0 10px;
    }
    
    .video-carousel .carousel-item {
        width: 250px;
    }
    
    /* Better modal sizing on mobile */
    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .modal-body iframe {
        height: 60vh !important;
    }
}

@media (min-width: 650px) and (max-width: 1130px){
    .rubric-key .col-lg-3{
        width: 50%;
    }
}

/* High DPI display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .img-fluid {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .video-carousel,
    .swiper-button-next,
    .swiper-button-prev,
    .swiper-pagination {
        display: none !important;
    }
    
    .student-info,
    .score-card {
        break-inside: avoid;
    }
    
    .top-section {
        background: white !important;
    }
}

.rubric-key .card {
    width: 320px;
    border: 1px solid;
    border-radius: 34px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.rubric-key .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 10px;
    border-radius: 40px;
}

.rubric-key .card-logo {
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    padding: 20px;
}

.rubric-key .card-logo img {
    width: 25px;
    height: 25px;
}

.rubric-key .competent .card-logo img {
    width: 30px;
    height: 30px;
}

.rubric-key .card-title {
    font-size: 16px;
    font-weight: bold;
    color: #000;
    flex-grow: 1;
    margin: 0 !important;
    cursor: pointer;
}

.rubric-key .card-title:hover{
    text-decoration: underline;
}

.rubric-key .card-chevron img{
    width: 30px;
}

.rubric-key .card-body {
    padding: 24px;
    min-height: 180px; /* Adjust height as needed */
    font-style: italic;
}

/* Theme Colors */
.rubric-key .foundational {
    border-color: #f28c53;
}

.rubric-key .foundational .card-header {
    background: linear-gradient(to right, #fdb286, #f28c53);
}

.rubric-key .foundational .card-logo{
    background-color: #fbcbb0;
}

.rubric-key .advanced {
    border-color: #68a2d7;
}

.rubric-key .advanced .card-header {
    background: linear-gradient(to right, #83b2de, #4d88cb);
}

.rubric-key .advanced .card-logo{
    background-color: #b7d4eb;
}

.rubric-key .competent {
    border-color: #94d0ae;
}

.rubric-key .competent .card-header {
    background: linear-gradient(to right, #b8e6ca, #7ecf9f);
}

.rubric-key .competent .card-logo{
    background-color: #d9f3e4;
}

.rubric-key .developing {
    border-color: #f9c347;
}

.rubric-key .developing .card-header {
    background: linear-gradient(to right, #fdd56e, #f9b830);
}

.rubric-key .developing .card-logo{
    background-color: #fff0ba;
}

#videoCarousel{
    padding-top: 10px !important;
}

.tier-image-common{
    cursor: pointer;
}

@media (max-width: 1416px) {
  .student-info .student-photo {
    width: 200px !important;
    height: 200px !important;
    max-width: 200px !important;
    max-height: 200px !important;
    min-width: 200px !important;
    min-height: 200px !important;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}