/********** Template CSS **********/
:root {
    --primary: #06BBCC;
    --light: #F0FBFC;
    --dark: #181d38;
}

.fw-medium {
    font-weight: 600 !important;
}

.fw-semi-bold {
    font-weight: 700 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    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-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .5s;
    border-radius: 5px;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
    border-radius: 8px;
    padding: 12px 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn.btn-primary:hover,
.btn.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.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;
    border-radius: 0px;
}


/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    text-transform: uppercase;
    outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

/* Active nav underline indicator */
.navbar-light .navbar-nav .nav-link.active {
    position: relative;
}
.navbar-light .navbar-nav .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 75px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

.navbar-light.sticky-top {
    top: -100px;
    transition: .5s;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .dropdown-menu.fade-down {
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

/*** Progress Button ***/
.progress-btn {
    background: var(--primary);
    color: #FFFFFF !important;
    border-radius: 5px;
    padding: 8px 20px !important;
    margin: 5px 0;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.progress-btn:hover {
    background: #05a3b1;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.progress-btn i {
    font-size: 1.1rem;
    margin-right: 8px;
}

.user-initials {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.progress-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}

@media (max-width: 991.98px) {
    .progress-btn {
        margin: 10px 0;
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .progress-btn i {
        font-size: 1rem;
    }
    
    .user-initials {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
        margin-right: 6px;
    }
    
    .progress-text {
        font-size: 0.95rem;
    }
}


/*** Header carousel ***/
@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }
    
    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header {
    background: linear-gradient(rgba(24, 29, 56, .7), rgba(24, 29, 56, .7)), url(../img/carousel-1.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-header-inner {
    background: rgba(15, 23, 43, .7);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 4px;
    left: -40px;
    background: var(--primary);
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 5px;
    left: -60px;
    background: var(--primary);
    z-index: -1;
}

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}


/*** Service ***/
.service-item {
    background: var(--light);
    transition: .5s;
}

.service-item:hover {
    margin-top: -10px;
    background: var(--primary);
}

.service-item * {
    transition: .5s;
}

.service-item:hover * {
    color: var(--light) !important;
}


/*** Categories & Courses ***/
.category img,
.course-item img {
    transition: .5s;
}

.category a:hover img,
.course-item:hover img {
    transform: scale(1.1);
}


/*** Team ***/
.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.1);
}


/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-item .testimonial-text,
.testimonial-carousel .owl-item.center .testimonial-text * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 1px solid #CCCCCC;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}


/*** Footer ***/
.footer {
    background: linear-gradient(to right, #181d38, #1a1f3d);
    position: relative;
    overflow: hidden;
    margin-top: 0 !important;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/pattern.png');
    opacity: 0.05;
    pointer-events: none;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer .btn.btn-social {
    margin-right: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-weight: normal;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.footer .btn.btn-social:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 12px;
    padding: 0;
    text-align: left;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: all 0.3s ease;
    position: relative;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    transform: translateX(5px);
    text-decoration: none;
}

.footer .btn.btn-link:hover::before {
    transform: translateX(3px);
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.footer .copyright::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.footer .copyright a {
    color: var(--primary);
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer .copyright a:hover {
    color: #fff;
    text-decoration: none;
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    font-size: 14px;
}

.footer .footer-menu a:hover {
    color: var(--primary);
    text-decoration: none;
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

.footer h4 {
    position: relative;
    margin-bottom: 25px;
    padding-bottom: 12px;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
}

.footer h4:hover::after {
    width: 100px;
}

.footer .contact-info p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.footer .contact-info p:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer .contact-info i {
    color: var(--primary);
    margin-right: 10px;
    width: 20px;
    text-align: center;
    font-size: 16px;
}

/* Responsive Footer Styles */
@media (max-width: 991.98px) {
    .footer {
        text-align: center;
    }

    .footer h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer h4:hover::after {
        width: 100px;
    }

    .footer .btn.btn-link {
        text-align: center;
    }

    .footer .btn.btn-link::before {
        display: none;
    }

    .footer .contact-info p {
        justify-content: center;
    }

    .footer .copyright {
        text-align: center;
    }

    .footer .footer-menu {
        justify-content: center;
        margin-top: 15px;
    }

    .footer .btn.btn-social {
        margin: 0 4px;
    }
}

@media (max-width: 767.98px) {
    .footer {
        padding-top: 50px !important;
    }

    .footer .col-md-6 {
        margin-bottom: 30px;
    }

    .footer h4 {
        margin-top: 20px;
    }

    .footer .btn.btn-social {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

@media (max-width: 575.98px) {
    .footer .copyright .row {
        flex-direction: column;
    }

    .footer .copyright .text-md-end {
        text-align: center !important;
        margin-top: 15px;
    }

    .footer .footer-menu a {
        margin: 0 8px;
        padding: 0 8px;
    }
}

/* Terms and Privacy Policy Modal Styles */
.modal-content {
    border-radius: 1rem;
    border: none;
  }
  
  .modal-header {
    background-color: var(--primary);
    color: white;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
  }
  
  .modal-header .btn-close {
    color: white;
    filter: brightness(0) invert(1);
  }
  
  .modal-body {
    padding: 2rem;
  }
  
  .modal-body h4 {
    color: var(--primary);
    margin-bottom: 1rem;
  }
  
  .modal-body ul {
    padding-left: 1.5rem;
  }
  
  .modal-body li {
    margin-bottom: 0.5rem;
    color: #666;
  }
  
  .modal-footer {
    border-top: 1px solid #eee;
    padding: 1rem 2rem;
  }
  
  .modal-footer .btn-secondary {
    background-color: var(--primary);
    border-color: var(--primary);
  }
  
  .modal-footer .btn-secondary:hover {
    background-color: #05a3b1;
    border-color: #05a3b1;
  }

/* My Organizations - Professional Modern Design */
/* ============================================ */

body.my-organizations-page {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 30%, #f1f5f9 100%);
    color: #1a1f3d;
    font-family: 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.my-organizations-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(120vw at -15% -20%, rgba(6, 187, 204, 0.08) 0%, rgba(6, 187, 204, 0) 55%),
        radial-gradient(95vw at 115% 0%, rgba(255, 193, 7, 0.08) 0%, rgba(255, 193, 7, 0) 52%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, transparent 100%);
    pointer-events: none;
    z-index: -1;
}

body.my-organizations-page::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.01) 2px, rgba(0, 0, 0, 0.01) 4px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.3;
}

/* Container */
.my-organizations-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 2.5rem);
    min-height: calc(100vh - 200px);
    position: relative;
    z-index: 1;
    animation: fadeIn 0.6s ease-out;
}

/* Header Section */
.my-organizations-header {
    margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.header-content {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: clamp(2rem, 5vw, 3rem);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%);
    border-radius: 1.25rem;
    box-shadow: 
        0 10px 40px rgba(15, 23, 42, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.header-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, #05a3b1 50%, var(--primary) 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.header-content::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 187, 204, 0.06) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.header-icon-wrapper {
    flex-shrink: 0;
    width: clamp(3.5rem, 7vw, 4.5rem);
    height: clamp(3.5rem, 7vw, 4.5rem);
    background: linear-gradient(135deg, var(--primary) 0%, #05a3b1 50%, #048a96 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    box-shadow: 
        0 8px 20px rgba(6, 187, 204, 0.3),
        0 4px 8px rgba(6, 187, 204, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.header-content:hover .header-icon-wrapper {
    transform: scale(1.05) rotate(2deg);
}

.header-text {
    flex: 1;
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: clamp(1.75rem, 4.5vw, 2.5rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 0.625rem 0;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.page-subtitle {
    font-size: clamp(0.875rem, 2vw, 1.1rem);
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* Empty State */
.empty-organizations-state {
    text-align: center;
    padding: clamp(4rem, 10vw, 6rem) 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 1.5rem;
    box-shadow: 
        0 10px 40px rgba(15, 23, 42, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 2px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.empty-organizations-state::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(6, 187, 204, 0.05) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.empty-state-icon {
    width: clamp(12rem, 30vw, 18rem);
    height: clamp(12rem, 30vw, 18rem);
    margin: 0 auto 2rem;
    position: relative;
    z-index: 1;
    opacity: 1;
    animation: float 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 50%;
    padding: 1rem;
    box-shadow: 
        0 15px 40px rgba(6, 187, 204, 0.3),
        0 8px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.empty-state-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.empty-state-title {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.75rem 0;
    position: relative;
    z-index: 1;
}

.empty-state-text {
    font-size: clamp(0.875rem, 2vw, 1rem);
    color: #64748b;
    margin: 0;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Organizations Grid */
.organizations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: clamp(1.5rem, 4vw, 2rem);
    margin-top: 1rem;
}

/* Organization Card */
.organization-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 1.25rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 20px rgba(15, 23, 42, 0.08),
        0 2px 6px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    backdrop-filter: saturate(120%) blur(0px);
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.organization-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, #05a3b1 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.organization-card::after {
    content: "";
    position: absolute;
    inset: 1.25rem 1.25rem auto auto;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at top right, rgba(6, 187, 204, 0.18), rgba(6, 187, 204, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.organization-card:hover,
.organization-card:focus {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 
        0 20px 50px rgba(6, 187, 204, 0.2),
        0 8px 20px rgba(15, 23, 42, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    outline: none;
}

.organization-card:hover::before,
.organization-card:focus::before {
    transform: scaleX(1);
}

.organization-card:hover::after,
.organization-card:focus::after {
    opacity: 1;
}

.organization-card:active {
    transform: translateY(-4px) scale(1.01);
}

.organization-card-body {
    padding: clamp(1.75rem, 4vw, 2.25rem);
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
}

.organization-icon {
    width: clamp(4rem, 8vw, 5rem);
    height: clamp(4rem, 8vw, 5rem);
    background: linear-gradient(135deg, var(--primary) 0%, #05a3b1 50%, #048a96 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    margin-bottom: 0.25rem;
    box-shadow: 
        0 8px 20px rgba(6, 187, 204, 0.3),
        0 4px 8px rgba(6, 187, 204, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    position: relative;
    transition: transform 0.3s ease;
}

.organization-card:hover .organization-icon {
    transform: scale(1.1) rotate(5deg);
}

.organization-title {
    font-size: clamp(1.25rem, 2.75vw, 1.5rem);
    font-weight: 700;
    color: #1a1f3d;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.organization-description {
    font-size: clamp(0.875rem, 2vw, 0.9375rem);
    color: #64748b;
    margin: 0;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.organization-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f3f5;
}

.organization-quiz-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    padding: 0.625rem 1.25rem;
    border-radius: 2rem;
    font-size: clamp(0.8125rem, 1.8vw, 0.875rem);
    font-weight: 700;
    line-height: 1;
    box-shadow: 
        0 2px 8px rgba(30, 64, 175, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(30, 64, 175, 0.1);
    transition: all 0.3s ease;
}

.organization-card:hover .organization-quiz-badge {
    background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
    transform: scale(1.05);
    box-shadow: 
        0 4px 12px rgba(30, 64, 175, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.organization-quiz-badge i {
    font-size: 0.875rem;
}

.organization-arrow {
    color: #94a3b8;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 187, 204, 0.08);
    border-radius: 50%;
}

.organization-card:hover .organization-arrow,
.organization-card:focus .organization-arrow {
    color: #ffffff;
    background: var(--primary);
    transform: translateX(6px) scale(1.1);
    box-shadow: 0 4px 12px rgba(6, 187, 204, 0.3);
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .header-content {
        flex-direction: column;
        gap: 1.25rem;
    }

    .header-icon-wrapper {
        align-self: flex-start;
    }

    .organizations-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .my-organizations-container {
        padding: 1.5rem 1rem;
    }

    .header-content {
        padding: 1.5rem;
    }

    .organizations-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .organization-card {
        min-height: 260px;
    }
}

@media (max-width: 575.98px) {
    .header-content {
        padding: 1.25rem;
    }

    .organization-card-body {
        padding: 1.5rem;
    }
}

/* Accessibility - Focus States */
.organization-card:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Legacy Support - Keep old class names for backward compatibility */
  .org-card {
    border-radius: 1.25rem;
    box-shadow: 
        0 4px 20px rgba(15, 23, 42, 0.08),
        0 2px 6px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid #e2e8f0;
}

.org-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 50px rgba(6, 187, 204, 0.2),
        0 8px 20px rgba(15, 23, 42, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: var(--primary);
}

.org-card .card-body {
    padding: clamp(1.75rem, 4vw, 2.25rem);
}

.org-icon {
    width: clamp(4rem, 8vw, 5rem);
    height: clamp(4rem, 8vw, 5rem);
    background: linear-gradient(135deg, var(--primary) 0%, #05a3b1 50%, #048a96 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    margin-bottom: 1rem;
    box-shadow: 
        0 8px 20px rgba(6, 187, 204, 0.3),
        0 4px 8px rgba(6, 187, 204, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.quiz-badge {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    padding: 0.625rem 1.25rem;
    border-radius: 2rem;
    font-size: clamp(0.8125rem, 1.8vw, 0.875rem);
    font-weight: 700;
    box-shadow: 
        0 2px 8px rgba(30, 64, 175, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(30, 64, 175, 0.1);
}


.announcement-card {
            border-radius: 14px;
            box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
            transition: all 0.3s ease;
            border: 2px solid transparent;
        }
        .announcement-card.pinned {
            border-left: 4px solid #ffc107;
            background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
        }
        .announcement-card:hover {
            box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
            transform: translateY(-2px);
        }
        .pinned-badge {
            background: #ffc107;
            color: #000;
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 0.75rem;
            font-weight: 600;
        }
        .new-announcement-badge {
            background: #dc3545;
            color: #fff;
            padding: 4px 8px;
            border-radius: 50%;
            font-size: 0.7rem;
            animation: pulse 2s infinite;
        }
        @keyframes pulse {
            0%, 100% {
                opacity: 1;
            }
            50% {
                opacity: 0.7;
            }
        }
        .announcement-content {
            line-height: 1.8;
            color: #495057;
        }


/* Org_Announcements */
/* Org_Announcements */
/* Org_Announcements */

        /* Header Section */
        .announcements-header {
            background: linear-gradient(135deg, #06BBCC 0%, #05a3b1 100%);
            padding: 3rem 0;
            margin-bottom: 3rem;
            position: relative;
            overflow: hidden;
        }
        .announcements-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
            opacity: 0.3;
        }
        .announcements-header-content {
            position: relative;
            z-index: 1;
        }
        .back-btn {
            display: inline-flex;
            align-items: center;
            color: rgba(255, 255, 255, 0.9);
            text-decoration: none;
            font-size: 0.95rem;
            font-weight: 500;
            margin-bottom: 1.5rem;
            padding: 0.5rem 1rem;
            border-radius: 8px;
            transition: all 0.3s ease;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
        }
        .back-btn:hover {
            background: rgba(255, 255, 255, 0.2);
            color: #fff;
            transform: translateX(-4px);
        }
        .header-title-section {
            display: flex;
            align-items: flex-start;
            gap: 1.5rem;
        }
        .title-icon-wrapper {
            width: 70px;
            height: 70px;
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            border: 2px solid rgba(255, 255, 255, 0.3);
        }
        .title-icon-wrapper i {
            font-size: 2rem;
            color: #fff;
        }
        .title-content {
            flex: 1;
        }
        .page-title {
            color: #fff;
            font-size: 2.5rem;
            font-weight: 700;
            margin: 0 0 0.5rem 0;
            text-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
        }
        .page-subtitle {
            color: rgba(255, 255, 255, 0.9);
            font-size: 1.1rem;
            margin: 0 0 1rem 0;
            line-height: 1.6;
        }
        .announcements-count {
            display: inline-flex;
            align-items: center;
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
            padding: 0.5rem 1rem;
            border-radius: 20px;
            color: #fff;
            font-size: 0.9rem;
            font-weight: 500;
            margin-top: 0.5rem;
        }

        /* Container */
        .announcements-container {
            padding-bottom: 4rem;
        }

        /* Empty State */
        .empty-state {
            text-align: center;
            padding: 5rem 2rem;
            background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
            border-radius: 20px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
        }
        .empty-state-icon {
            width: 180px;
            height: 180px;
            margin: 0 auto 2rem;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #ffffff;
            border-radius: 50%;
            padding: 1rem;
            box-shadow: 
                0 15px 40px rgba(6, 187, 204, 0.3),
                0 8px 20px rgba(0, 0, 0, 0.1);
        }
        .empty-state-icon img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            border-radius: 50%;
            filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
        }
        .empty-state-title {
            font-size: 1.75rem;
            font-weight: 700;
            color: #2d3748;
            margin-bottom: 1rem;
        }
        .empty-state-text {
            font-size: 1.1rem;
            color: #718096;
            max-width: 500px;
            margin: 0 auto;
            line-height: 1.6;
        }

        /* Announcements Grid */
        .announcements-grid {
            display: grid;
            gap: 1.5rem;
        }
        .announcement-item {
            animation: fadeInUp 0.5s ease forwards;
            opacity: 0;
        }
        .announcement-item:nth-child(1) { animation-delay: 0.1s; }
        .announcement-item:nth-child(2) { animation-delay: 0.2s; }
        .announcement-item:nth-child(3) { animation-delay: 0.3s; }
        .announcement-item:nth-child(4) { animation-delay: 0.4s; }
        .announcement-item:nth-child(n+5) { animation-delay: 0.5s; }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Announcement Card */
        .announcement-card {
            background: #fff;
            border-radius: 16px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: 1px solid rgba(0, 0, 0, 0.05);
            overflow: hidden;
            position: relative;
        }
        .announcement-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: linear-gradient(180deg, #06BBCC 0%, #05a3b1 100%);
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        .announcement-item:hover .announcement-card {
            transform: translateY(-4px);
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
        }
        .announcement-item:hover .announcement-card::before {
            opacity: 1;
        }
        .announcement-item.pinned .announcement-card {
            border-left: 4px solid #ffc107;
            background: linear-gradient(135deg, #fffbf0 0%, #ffffff 100%);
        }
        .announcement-item.pinned .announcement-card::before {
            background: #ffc107;
            opacity: 1;
            width: 4px;
        }
        .announcement-item.new .announcement-card {
            border-left: 4px solid #10b981;
        }
        .announcement-item.new .announcement-card::before {
            background: #10b981;
            opacity: 1;
            width: 4px;
        }
        .announcement-item.pinned.new .announcement-card {
            border-left: 4px solid #ffc107;
        }

        /* Card Header */
        .announcement-header {
            padding: 1.5rem 1.5rem 1rem;
            border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        }
        .announcement-badges {
            display: flex;
            gap: 0.75rem;
            margin-bottom: 1rem;
            flex-wrap: wrap;
        }
        .pinned-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
            color: #000;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
        }
        .pinned-badge i {
            font-size: 0.75rem;
        }
        .new-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            color: #fff;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
            animation: pulse 2s infinite;
        }
        .new-badge i {
            font-size: 0.5rem;
        }
        @keyframes pulse {
            0%, 100% {
                opacity: 1;
                transform: scale(1);
            }
            50% {
                opacity: 0.8;
                transform: scale(0.98);
            }
        }
        .announcement-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: #1a202c;
            margin: 0;
            line-height: 1.4;
        }

        /* Card Body */
        .announcement-body {
            padding: 1.5rem;
        }
        .announcement-content {
            line-height: 1.8;
            color: #4a5568;
            font-size: 1rem;
            white-space: pre-wrap;
            word-wrap: break-word;
        }

        /* Card Footer */
        .announcement-footer {
            padding: 1rem 1.5rem;
            background: #f7fafc;
            border-top: 1px solid rgba(0, 0, 0, 0.06);
        }
        .announcement-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 1.5rem;
        }
        .meta-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: #718096;
            font-size: 0.9rem;
        }
        .meta-item i {
            color: #a0aec0;
            font-size: 0.85rem;
        }
        .meta-label {
            font-weight: 500;
        }
        .meta-value {
            color: #4a5568;
            font-weight: 600;
        }
        .meta-time {
            color: #a0aec0;
            font-size: 0.85rem;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .announcements-header {
                padding: 2rem 0;
            }
            .header-title-section {
                flex-direction: column;
                gap: 1rem;
            }
            .title-icon-wrapper {
                width: 60px;
                height: 60px;
            }
            .title-icon-wrapper i {
                font-size: 1.5rem;
            }
            .page-title {
                font-size: 1.75rem;
            }
            .page-subtitle {
                font-size: 1rem;
            }
            .announcement-header {
                padding: 1.25rem 1.25rem 0.75rem;
            }
            .announcement-title {
                font-size: 1.25rem;
            }
            .announcement-body {
                padding: 1.25rem;
            }
            .announcement-footer {
                padding: 0.75rem 1.25rem;
            }
            .announcement-meta {
                flex-direction: column;
                gap: 0.75rem;
            }
            .empty-state {
                padding: 3rem 1.5rem;
            }
            .empty-state-icon {
                width: 150px;
                height: 150px;
                padding: 0.75rem;
            }
            .empty-state-icon img {
                width: 100%;
                height: 100%;
                object-fit: contain;
                border-radius: 50%;
            }
        }

        

/* Org_Quizzes - Professional Modern Design */
/* ============================================ */

body.org-quizzes-page {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 30%, #f1f5f9 100%);
    color: #1a1f3d;
    font-family: 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.org-quizzes-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(120vw at -15% -20%, rgba(6, 187, 204, 0.08) 0%, rgba(6, 187, 204, 0) 55%),
        radial-gradient(95vw at 115% 0%, rgba(255, 193, 7, 0.08) 0%, rgba(255, 193, 7, 0) 52%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, transparent 100%);
    pointer-events: none;
    z-index: -1;
}

body.org-quizzes-page::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.01) 2px, rgba(0, 0, 0, 0.01) 4px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.3;
}

/* Container */
.org-quizzes-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 2.5rem);
    min-height: calc(100vh - 200px);
    position: relative;
    z-index: 1;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Section */
.org-quizzes-header {
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.5rem;
    margin-bottom: 2rem;
    background: #ffffff;
    color: #495057;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.875rem, 2vw, 1rem);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.back-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(6, 187, 204, 0.1), transparent);
    transition: left 0.5s ease;
}

.back-button:hover::before {
    left: 100%;
}

.back-button:hover,
.back-button:focus {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateX(-4px);
    box-shadow: 0 4px 12px rgba(6, 187, 204, 0.15), 0 2px 4px rgba(0, 0, 0, 0.08);
    text-decoration: none;
}

.back-button i {
    font-size: 0.875rem;
}

/* Organization Header Content */
.org-header-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.75rem;
    padding: clamp(2rem, 5vw, 3rem);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%);
    border-radius: 1.25rem;
    box-shadow: 
        0 10px 40px rgba(15, 23, 42, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.org-header-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, #05a3b1 50%, var(--primary) 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.org-header-content::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 187, 204, 0.06) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.org-header-content > * {
    position: relative;
    z-index: 1;
}

.org-title-section {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    flex: 1;
    min-width: min(100%, 300px);
}

.org-icon-wrapper {
    flex-shrink: 0;
    width: clamp(5.5rem, 12vw, 7rem);
    height: clamp(5.5rem, 12vw, 7rem);
    background: #ffffff;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    box-shadow: 
        0 8px 20px rgba(6, 187, 204, 0.3),
        0 4px 8px rgba(6, 187, 204, 0.2);
    position: relative;
    transition: transform 0.3s ease;
    padding: 0.5rem;
    overflow: hidden;
}

.org-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
}

.org-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--primary), #05a3b1);
    border-radius: 1rem;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.org-title-section:hover .org-icon-wrapper {
    transform: scale(1.05) rotate(2deg);
}

.org-title-section:hover .org-icon-wrapper::before {
    opacity: 0.3;
    filter: blur(8px);
}

.org-title-group {
    flex: 1;
}

.org-title {
    font-size: clamp(1.75rem, 4.5vw, 2.5rem);
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.625rem 0;
    line-height: 1.2;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.org-description {
    font-size: clamp(0.875rem, 2vw, 1rem);
    color: #6c757d;
    margin: 0;
    line-height: 1.6;
    max-width: 600px;
}

/* Announcements Button */
.announcements-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: clamp(0.875rem, 2.5vw, 1.125rem) clamp(1.5rem, 4vw, 2rem);
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 50%, #ffa000 100%);
    color: #1a1f3d;
    border: none;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 700;
    font-size: clamp(0.875rem, 2vw, 1rem);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 6px 20px rgba(255, 193, 7, 0.35),
        0 2px 6px rgba(255, 193, 7, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    position: relative;
    white-space: nowrap;
    overflow: hidden;
}

.announcements-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.announcements-button:hover::before {
    left: 100%;
}

.announcements-button:hover,
.announcements-button:focus {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 10px 30px rgba(255, 193, 7, 0.45),
        0 4px 10px rgba(255, 193, 7, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    text-decoration: none;
    color: #1a1f3d;
    background: linear-gradient(135deg, #ffd54f 0%, #ffc107 50%, #ffb300 100%);
}

.announcements-button i {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.announcements-button > span:not(.announcement-badge) {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.announcement-badge {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background: #dc3545;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 50%;
    min-width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
    animation: pulse 2s infinite;
}

/* Certificate Banner */
.certificate-banner {
    margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 50%, #6ee7b7 100%);
    border: 2px solid #10b981;
    border-radius: 1.25rem;
    padding: clamp(2rem, 5vw, 3rem);
    box-shadow: 
        0 12px 40px rgba(16, 185, 129, 0.2),
        0 4px 12px rgba(16, 185, 129, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.certificate-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.certificate-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.certificate-info {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    flex: 1;
    min-width: min(100%, 400px);
}

.certificate-icon-wrapper {
    flex-shrink: 0;
    width: clamp(3.5rem, 7vw, 4.5rem);
    height: clamp(3.5rem, 7vw, 4.5rem);
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    box-shadow: 
        0 8px 24px rgba(16, 185, 129, 0.4),
        0 4px 8px rgba(16, 185, 129, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 8px 24px rgba(16, 185, 129, 0.4),
            0 4px 8px rgba(16, 185, 129, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 
            0 12px 32px rgba(16, 185, 129, 0.5),
            0 6px 12px rgba(16, 185, 129, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
}

.certificate-text {
    flex: 1;
}

.certificate-title {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    color: #155724;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.certificate-description {
    font-size: clamp(0.875rem, 2vw, 1rem);
    color: #155724;
    margin: 0;
    line-height: 1.6;
}

.certificate-id {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.certificate-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: clamp(1rem, 2.5vw, 1.25rem) clamp(1.75rem, 4vw, 2.25rem);
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    color: #ffffff;
    border: none;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: clamp(0.875rem, 2vw, 1rem);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 6px 20px rgba(16, 185, 129, 0.35),
        0 2px 6px rgba(16, 185, 129, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.certificate-download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.certificate-download-btn:hover::before {
    left: 100%;
}

.certificate-download-btn:hover,
.certificate-download-btn:focus {
    background: linear-gradient(135deg, #059669 0%, #047857 50%, #065f46 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 10px 30px rgba(16, 185, 129, 0.45),
        0 4px 10px rgba(16, 185, 129, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.certificate-download-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.certificate-status-message {
    margin-top: 1.25rem;
    padding: 0.875rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.6);
    color: #495057;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.certificate-status-message:empty {
    display: none;
}

.certificate-status-message.is-loading {
    background: rgba(6, 187, 204, 0.08);
    color: #0f6771;
    border-color: rgba(6, 187, 204, 0.2);
}

.certificate-status-message.is-success {
    background: rgba(40, 167, 69, 0.1);
    color: #155724;
    border-color: rgba(40, 167, 69, 0.3);
}

.certificate-status-message.is-error {
    background: rgba(220, 53, 69, 0.1);
    color: #721c24;
    border-color: rgba(220, 53, 69, 0.25);
}

/* Quizzes Section */
.quizzes-section {
    margin-top: clamp(2rem, 5vw, 3rem);
}

.quizzes-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
}

.quizzes-heading-text {
    max-width: 720px;
}

.quizzes-title {
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 700;
    color: #1a1f3d;
    margin: 0 0 0.35rem 0;
    letter-spacing: -0.01em;
}

.quizzes-subtitle {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: #5c6770;
    margin: 0;
    line-height: 1.6;
}

.quizzes-metric {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    background: rgba(6, 187, 204, 0.12);
    border: 1px solid rgba(6, 187, 204, 0.2);
    color: #0f6771;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    white-space: nowrap;
}

.quizzes-metric i {
    font-size: 0.95rem;
}

.quizzes-metric strong {
    font-size: 1rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: clamp(4rem, 10vw, 6rem) 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 1.5rem;
    box-shadow: 
        0 10px 40px rgba(15, 23, 42, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 2px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.empty-state::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(6, 187, 204, 0.05) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.empty-state-icon {
    font-size: clamp(5rem, 12vw, 7rem);
    color: #cbd5e1;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    opacity: 0.6;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.empty-state-title {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
    color: #495057;
    margin: 0 0 0.75rem 0;
}

.empty-state-text {
    font-size: clamp(0.875rem, 2vw, 1rem);
    color: #6c757d;
    margin: 0;
    line-height: 1.6;
}

/* Quizzes Grid */
.quizzes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: clamp(1.25rem, 3vw, 1.75rem);
    margin-top: 1rem;
}

/* Quiz Card */
.quiz-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 1.25rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 20px rgba(15, 23, 42, 0.08),
        0 2px 6px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 260px;
    backdrop-filter: saturate(120%) blur(0px);
    animation: fadeInUp 0.6s ease-out backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quiz-card:nth-child(1) { animation-delay: 0.1s; }
.quiz-card:nth-child(2) { animation-delay: 0.2s; }
.quiz-card:nth-child(3) { animation-delay: 0.3s; }
.quiz-card:nth-child(4) { animation-delay: 0.4s; }
.quiz-card:nth-child(n+5) { animation-delay: 0.5s; }

.quiz-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, #05a3b1 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-card::after {
    content: "";
    position: absolute;
    inset: 1.25rem 1.25rem auto auto;
    width: 70px;
    height: 70px;
    background: radial-gradient(circle at top right, rgba(6, 187, 204, 0.18), rgba(6, 187, 204, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quiz-card:hover,
.quiz-card:focus {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 
        0 20px 50px rgba(6, 187, 204, 0.2),
        0 8px 20px rgba(15, 23, 42, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    outline: none;
}

.quiz-card:hover::before,
.quiz-card:focus::before {
    transform: scaleX(1);
}

.quiz-card:hover::after,
.quiz-card:focus::after {
    opacity: 1;
}

.quiz-card:active {
    transform: translateY(-2px);
}

.quiz-card-body {
    padding: clamp(1.5rem, 4vw, 2rem);
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 1rem;
}

.quiz-icon {
    width: clamp(4rem, 8vw, 5rem);
    height: clamp(4rem, 8vw, 5rem);
    background: linear-gradient(135deg, var(--primary) 0%, #05a3b1 50%, #048a96 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    margin-bottom: 0.75rem;
    box-shadow: 
        0 8px 20px rgba(6, 187, 204, 0.3),
        0 4px 8px rgba(6, 187, 204, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    position: relative;
    transition: transform 0.3s ease;
}

.quiz-card:hover .quiz-icon {
    transform: scale(1.1) rotate(5deg);
}

.quiz-title {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    font-weight: 700;
    color: #1a1f3d;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.quiz-description {
    font-size: clamp(0.875rem, 2vw, 0.9375rem);
    color: #6c757d;
    margin: 0;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.quiz-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f1f3f5;
}

.question-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    padding: 0.625rem 1.25rem;
    border-radius: 2rem;
    font-size: clamp(0.8125rem, 1.8vw, 0.875rem);
    font-weight: 700;
    line-height: 1;
    box-shadow: 
        0 2px 8px rgba(30, 64, 175, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(30, 64, 175, 0.1);
    transition: all 0.3s ease;
}

.quiz-card:hover .question-badge {
    background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
    transform: scale(1.05);
    box-shadow: 
        0 4px 12px rgba(30, 64, 175, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.question-badge i {
    font-size: 0.875rem;
}

.quiz-arrow {
    color: #94a3b8;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 187, 204, 0.08);
    border-radius: 50%;
}

.quiz-card:hover .quiz-arrow,
.quiz-card:focus .quiz-arrow {
    color: #ffffff;
    background: var(--primary);
    transform: translateX(6px) scale(1.1);
    box-shadow: 0 4px 12px rgba(6, 187, 204, 0.3);
}

/* Responsive Breakpoints */
/* Tablet */
@media (max-width: 991.98px) {
    .org-header-content {
        flex-direction: column;
        align-items: stretch;
    }

    .announcements-button {
        width: 100%;
        justify-content: center;
    }

    .certificate-content {
        flex-direction: column;
        align-items: stretch;
    }

    .certificate-download-btn {
        width: 100%;
        justify-content: center;
    }

    .quizzes-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .quizzes-metric {
        align-self: flex-start;
    }

    .quizzes-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
        gap: 1.25rem;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .org-quizzes-container {
        padding: 1.25rem 1rem;
    }

    .org-title-section {
        flex-direction: column;
        gap: 1rem;
    }

    .org-icon-wrapper {
        align-self: flex-start;
    }

    .certificate-info {
        flex-direction: column;
        gap: 1rem;
    }

    .certificate-icon-wrapper {
        align-self: flex-start;
    }

    .quizzes-heading {
        align-items: flex-start;
    }

    .quizzes-metric {
        width: 100%;
        justify-content: center;
    }

    .quizzes-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .quiz-card {
        min-height: 220px;
    }
}

/* Small Mobile */
@media (max-width: 575.98px) {
    .back-button {
        width: 100%;
        justify-content: center;
    }

    .org-header-content {
        padding: 1.25rem;
    }

    .certificate-banner {
        padding: 1.5rem;
    }

    .announcements-button {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .announcements-button i {
        width: 2rem;
        height: 2rem;
    }

    .quizzes-metric {
        font-size: 0.85rem;
    }
}

/* Accessibility - Focus States */
.quiz-card:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.back-button:focus-visible,
.announcements-button:focus-visible,
.certificate-download-btn:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .org-quizzes-container {
        padding: 0;
    }

    .back-button,
    .announcements-button,
    .certificate-download-btn {
        display: none;
    }

    .quiz-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Hero Section Styles */
.hero-image {
    height: 100vh;
    object-fit: cover;
}

.hero-overlay {
    background: rgba(24, 29, 56, 0.7);
}

/* Development Banner Styles */
.development-banner {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 8px 0;
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    animation: slideDown 0.5s ease-out;
}

.development-banner a {
    color: white !important;
    text-decoration: underline;
}

.development-banner a:hover {
    color: #f8f9fa !important;
}

.development-banner p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

.development-banner strong {
    font-size: 0.9rem;
}

.development-banner .btn-light {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #333;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 4px 12px;
    transition: all 0.3s ease;
}

.development-banner .btn-light:hover {
    background: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.development-banner.hidden {
    display: none;
}

@media (max-width: 768px) {
    .development-banner {
        padding: 5px 0;
    }
    
    .development-banner .d-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .development-banner .me-3 {
        margin-right: 0 !important;
        margin-bottom: 5px;
    }
    
    .development-banner .ms-2 {
        margin-left: 0 !important;
    }
    
    .development-banner p {
        font-size: 0.8rem;
    }
    
    .development-banner strong {
        font-size: 0.85rem;
    }
}

/* Organization Floating Box Styles */
.organization-box {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 1000;
    max-width: 320px;
    background: transparent;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    overflow: hidden;
}

.organization-box.collapsed {
    max-width: 60px;
}

.organization-box-header {
    background: linear-gradient(135deg, var(--primary), #05a3b1);
    color: white;
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.organization-box.collapsed .organization-box-header {
    justify-content: center;
}

.organization-box-header:hover {
    background: linear-gradient(135deg, #05a3b1, var(--primary));
}

.organization-box-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.95rem;
}

.organization-box.collapsed .organization-box-title {
    display: none;
}

.organization-box-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.organization-box-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

.organization-box.collapsed .organization-box-toggle {
    transform: rotate(180deg);
}

.organization-box-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
}

.organization-box.collapsed .organization-box-content {
    display: none;
}

.help-improve-box {
    position: fixed;
    top: 520px;
    right: 20px;
    z-index: 999;
    max-width: 320px;
}

.help-improve-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    transition: width 0.6s ease-in-out, 
                border-radius 0.6s ease-in-out,
                padding 0.6s ease-in-out,
                transform 0.3s ease,
                box-shadow 0.3s ease;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.help-improve-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    color: white;
    width: 200px;
    padding: 12px 20px;
    border-radius: 25px;
    gap: 10px;
}

.help-improve-btn i {
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.help-improve-btn:hover i {
    transform: scale(1.1);
}

.help-improve-text {
    white-space: nowrap;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transition: opacity 0.4s ease 0.3s, max-width 0.6s ease-in-out 0.2s;
    font-size: 0.95rem;
}

.help-improve-btn:hover .help-improve-text {
    opacity: 1;
    max-width: 170px;
}

@media (max-width: 768px) {
    .help-improve-box {
        top: auto;
        bottom: 20px;
        right: 20px;
    }
}

.organization-item {
    padding: 12px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.organization-item:hover {
    background: #e9ecef;
    transform: translateX(3px);
}

.organization-item a.organization-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    text-decoration: none;
}

.organization-item .btn,
.organization-item .organization-role {
    position: relative;
    z-index: 2;
}

.organization-item:last-child {
    margin-bottom: 0;
}

.organization-name {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.organization-description {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 5px;
}

.organization-role {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.organization-count-badge {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 8px;
}

.organization-box.collapsed .organization-count-badge {
    display: none;
}

.organization-box-icon {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .organization-box {
        top: 80px;
        right: 10px;
        max-width: 280px;
    }
    
    .organization-box.collapsed {
        max-width: 50px;
    }
}

/* Additional Index Page Styles */
.spinner-large {
    width: 3rem;
    height: 3rem;
}

.logo-navbar {
    height: 36px;
    width: auto;
    display: inline-block;
}

.organization-chevron-icon {
    font-size: 0.8rem;
    opacity: 0.6;
}

.announcement-btn-small {
    font-size: 0.75rem;
    padding: 2px 8px;
}

.about-section-image {
    min-height: 400px;
}

.about-image-cover {
    object-fit: cover;
}

.dictionary-image-cover {
    object-fit: cover;
}

.dictionary-min-height {
    min-height: 350px;
}

.dictionary-label-margin {
    margin: 1px;
}

.dictionary-card {
    border: 4px solid #3dc9ce;
    border-radius: 16px;
}