@charset "utf-8";

/* CSS Document – FINAL VERSION WITH ALL ORIGINAL STYLES + FULL RESPONSIVENESS */



/* === RESET & BASE === */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}



html {

    scroll-behavior: smooth;

    overscroll-behavior: auto;

}



body {

    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    overflow-x: hidden;

    position: relative;

    min-height: 100vh;

    background: url("/static/assets/img/background/12.jpg") no-repeat center center fixed;

    background-size: cover;

    margin: 0;

    padding: 0;

}



#home, .coverflow-wrapper, .coverflow-container {

    overflow: hidden;

}



/* === SECTIONS === */

.section {

    min-height: 100vh;

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    content-visibility: auto;

    contain: layout style paint;

}



#home {

    background: radial-gradient(ellipse at center, #1a1a2e 0%, #0f0f0f 100%);

}



#about {

    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 100%);

}



#contact {

    background: radial-gradient(ellipse at center, #1a1a2e 0%, #0f0f0f 100%);

}



/* === HEADER === */

.header {

    position: fixed;

    top: 0;

    left: 0;

    right: 0;

    height: 80px;

    background: rgba(255, 255, 255, 0.8);

    backdrop-filter: blur(10px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

    z-index: 1000;

    display: flex;

    align-items: center;

    justify-content: flex-start;

    padding: 0 40px;

    transition: all 0.3s ease;

}



.header.scrolled {

    background: rgba(0, 0, 0, 0.95);

    height: 65px !important;

}



.logo-container {

    flex: 0 0 auto;

}



.logo-container:hover {

    transform: translateY(-2px);

}



.logo {

    width: 100px;

    height: 300px;

    display: flex;

    align-items: center;

    justify-content: center;

}



.logo svg {

    width: 100%;

    height: 100%;

}



.logo-text {

    color: white;

    font-size: 24px;

    font-weight: 600;

    letter-spacing: -0.5px;

}



.main-menu {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 40px;

    flex: 1;

}



.menu-item {

    color: rgb(4, 4, 158) !important;

    text-decoration: none;

    font-size: 16px;

    font-weight: 500;

    transition: all 0.3s ease;

    position: relative;

    padding: 8px 0;

}



.menu-item:hover {

    color: orange !important;

    transform: translateY(-2px);

}



.menu-item::after {

    content: '';

    position: absolute;

    bottom: 0;

    left: 0;

    width: 0;

    height: 2px;

    background: linear-gradient(90deg, #667eea, #764ba2);

    transition: width 0.3s ease;

}



.menu-item:hover::after {

    width: 100%;

}



.menu-item.active {

    color: lime!important

}



.menu-item.active::after {

    width: 100%;

}



.menu-item.external::before {

    content: '↗';

    margin-right: 5px;

    font-size: 12px;

    opacity: 0.7;

}



.menu-toggle {

    flex: 0 0 auto;

    margin-left: auto;

    display: none;

    flex-direction: column;

    cursor: pointer;

    padding: 4px;

}



.menu-toggle span {

    width: 25px;

    height: 3px;

    background: rgb(245, 132, 2);

    margin: 3px 0;

    transition: 0.3s;

    border-radius: 2px;

}



/* Responsive Header */

@media (max-width: 1299px) {

    .header {

        padding: 0 10px;

        height: 70px;

        justify-content: space-between;

    }

    .main-menu {

        display: none;

    }

    .menu-toggle {

        display: flex;

        order: 1;

        margin-right: auto;

        margin-left: 0;

        padding-left: 0;

    }

    .logo-container {

        position: absolute;

        left: 50%;

        transform: translateX(-50%);

        margin: 0;

        padding: 0;

        z-index: 1;

        pointer-events: none;

    }

    .logo-container:hover {

        transform: translateX(-50%) !important;

        transition: none;

    }

    .user-profile {

        order: 3;

        margin-left: 0;

    }

    .main-menu.active {

        top: 70px;

    }

    .main-menu {

        position: absolute;

        top: 120% !important;

        left: 0;

        right: 0;

        background: rgba(159, 159, 159, 0.95);

        backdrop-filter: blur(15px);

        flex-direction: column;

        padding: 20px;

        gap: 20px;

        border-bottom: 1px solid rgb(255, 146, 3);

         border-radius: 50px !important;

    }

    .main-menu.active {

        display: flex;

    }

    .menu-toggle.active span:nth-child(1) {

        transform: rotate(-45deg) translate(-5px, 6px);

    }

    .menu-toggle.active span:nth-child(2) {

        opacity: 0;

    }

    .menu-toggle.active span:nth-child(3) {

        transform: rotate(45deg) translate(-5px, -6px);

    }

    .logo {

        width: 80px;

        height: 200px;

    }

}



@media (max-width: 480px) {

    .header {

        height: 70px;

        padding: 0 15px;

    }

    .header.scrolled {

        height: 60px;

    }

    .logo {

        width: 60px;

        height: 150px;

    }

    .logo-text {

        font-size: 18px;

    }

}




/* === COVERFLOW === */

.coverflow-wrapper {

    width: 100%;

    height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding-top: 30px;

}



.coverflow-container {

    width: 100%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    perspective: 1200px;

    position: relative;

}



.coverflow {

    display: flex;

    align-items: center;

    justify-content: center;

    transform-style: preserve-3d;

    position: relative;

    width: 100%;

    height: 400px;

    margin-top: 300px;

}



.coverflow-item {

    position: absolute;

    width: 300px;

    height: 300px;

    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    cursor: pointer;

    user-select: none;

    will-change: transform;

}



.coverflow-item .cover {

    width: 100%;

    height: 100%;

    border-radius: 10px;

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);

    position: relative;

    overflow: hidden;

    transform-style: preserve-3d;

    background: #333;

}



.coverflow-item .cover img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    border-radius: 10px;

}



.coverflow-item .reflection {

    position: absolute;

    top: 100%;

    left: 0;

    width: 100%;

    height: 100%;

    border-radius: 10px;

    transform: scaleY(-1);

    opacity: 0.2;

    filter: blur(2px);

    background: linear-gradient(to bottom,

        rgba(0, 0, 0, 0) 0%,

        rgba(0, 0, 0, 0.8) 50%,

        rgba(0, 0, 0, 1) 100%);

    overflow: hidden;

}



.coverflow-item.active {

    z-index: 100;

    transform: translateX(0) translateZ(0) rotateY(0deg);

}



.coverflow-item.active .cover {

    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9);

}



.nav-button {

    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    background: rgba(255, 255, 255, 0.1);

    border: 2px solid rgba(255, 255, 255, 0.2);

    color: white;

    width: 60px;

    height: 60px;

    border-radius: 50%;

    cursor: pointer;

    font-size: 24px;

    display: flex;

    align-items: center;

    justify-content: center;

    transition: all 0.3s ease;

    backdrop-filter: blur(10px);

    z-index: 200;

    will-change: transform;

}



.nav-button:hover {

    background: rgba(255, 255, 255, 0.2);

    transform: translateY(-50%) scale(1.1);

}



.nav-button.prev {

    left: 50px;

}



.nav-button.next {

    right: 50px;

}



.dots-container {

    position: absolute;

    bottom: 60px;

    left: 50%;

    transform: translateX(-50%);

    display: flex;

    gap: 10px;

    z-index: 200;

}



.dot {

    width: 10px;

    height: 10px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.3);

    cursor: pointer;

    transition: all 0.3s ease;

}



.dot.active {

    background: rgba(255, 255, 255, 0.8);

    transform: scale(1.3);

}



.info {

    position: absolute;

    top: 120px;

    left: 50%;

    transform: translateX(-50%);

    color: white;

    text-align: center;

    z-index: 200;

}



.info h2 {

    font-size: 32px;

    margin-bottom: 10px;

    opacity: 0;

    animation: fadeIn 0.6s forwards;

}



.info p {

    font-size: 16px;

    opacity: 0.7;

}



.play-pause-button {

    position: absolute;

    bottom: 120px;

    left: 50%;

    transform: translateX(-50%);

    background: rgba(255, 255, 255, 0.1);

    border: 2px solid rgba(255, 255, 255, 0.2);

    color: white;

    width: 50px;

    height: 50px;

    border-radius: 50%;

    cursor: pointer;

    font-size: 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    transition: all 0.3s ease;

    backdrop-filter: blur(10px);

    z-index: 200;

}



.play-pause-button:hover {

    background: rgba(255, 255, 255, 0.2);

    transform: translateX(-50%) scale(1.1);

}



.play-pause-button .pause-icon {

    font-size: 16px;

    letter-spacing: 2px;

}



@keyframes fadeIn {

    to { opacity: 1; }

}



/* === ABOUT SECTION === */

.about-content {

    max-width: 1400px;

    margin: 0 auto;

    padding: 40px;

    color: white;

}



/* Responsive container padding */

@media (max-width: 600px) {

    .about-content {

        padding-left: 20px;

        padding-right: 20px;

    }

}

@media (max-width: 400px) {

    .about-content {

        padding-left: 15px;

        padding-right: 15px;

    }

}

@media (max-width: 360px) {

    .about-content {

        padding-left: 10px;

        padding-right: 10px;

    }

}



.about-header {

    text-align: center;

    margin-bottom: 80px;

}



.about-header h2 {

    font-size: 48px;

    margin-top: 60px;

    margin-bottom: 20px;

    background: orange !important;

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    background-clip: text;

}



.about-header p {

    font-size: 20px;

    color: rgba(255, 255, 255)!important;

    max-width: 600px;

    margin: 0 auto;

    line-height: 1.8;

}



.about-main {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;

    align-items: center;

    margin-bottom: 80px;

}



@media (max-width: 1024px) {

    .about-main {

        grid-template-columns: 1fr;

        gap: 60px;

    }

}



.about-visual {

    position: relative;

    height: 600px;

    display: flex;

    align-items: center;

    justify-content: center;

}



.showcase-display {

    position: relative;

    width: 100%;

    max-width: 500px;

    height: 500px;

    display: flex;

    align-items: center;

    justify-content: center;

}



.showcase-main {

    position: relative;

    width: 350px;

    height: 400px;

    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);

    border-radius: 30px;

    border: 2px solid rgba(255, 255, 255, 0.1);

    padding: 40px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    backdrop-filter: blur(10px);

    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);

}



.showcase-logo {

    width: 120px;

    height: 120px;

    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    border-radius: 30px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 30px;

    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);

}



.showcase-logo svg {

    width: 70%;

    height: 70%;

}



.showcase-title {

    font-size: 32px;

    font-weight: 700;

    color: white;

    margin-bottom: 15px;

    text-align: center;

}



.showcase-subtitle {

    font-size: 16px;

    color: rgba(255, 255, 255, 0.7);

    text-align: center;

    margin-bottom: 40px;

    line-height: 1.6;

}



.showcase-badges {

    display: flex;

    gap: 15px;

    flex-wrap: wrap;

    justify-content: center;

}



.badge {

    background: rgba(255, 255, 255, 0.05);

    border: 1px solid rgba(255, 255, 255, 0.2);

    border-radius: 20px;

    padding: 8px 16px;

    font-size: 14px;

    color: rgba(255, 255, 255, 0.8);

    backdrop-filter: blur(10px);

    transition: all 0.3s ease;

    cursor: pointer;

    text-decoration: none;

    display: inline-block;

    will-change: transform;

}



.badge:hover {

    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    border-color: transparent;

    color: white;

    transform: translateY(-2px);

    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);

}



.badge:active {

    transform: translateY(0);

}



.corner-decoration {

    position: absolute;

    width: 80px;

    height: 80px;

    border: 2px solid rgba(102, 126, 234, 0.3);

}



.corner-decoration.top-left {

    top: -20px;

    left: -20px;

    border-right: none;

    border-bottom: none;

    border-radius: 20px 0 0 0;

}



.corner-decoration.bottom-right {

    bottom: -20px;

    right: -20px;

    border-left: none;

    border-top: none;

    border-radius: 0 0 20px 0;

}



.about-info {

    padding-left: 40px;

}



.about-info h3 {

    font-size: 36px;

    margin-bottom: 30px;

    line-height: 1.3;

}



.about-info p {

    font-size: 18px;

    color: rgba(255, 255, 255, 0.8);

    line-height: 1.8;

    margin-bottom: 30px;

}



.feature-list {

    list-style: none;

    margin-bottom: 40px;

}



.feature-list li {

    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 20px;

    font-size: 16px;

    color: rgba(255, 255, 255, 0.9);

}



.feature-list li::before {

    content: '✓';

    display: flex;

    align-items: center;

    justify-content: center;

    width: 30px;

    height: 30px;

    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    border-radius: 50%;

    flex-shrink: 0;

}



.cta-button {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    color: white;

    text-decoration: none;

    padding: 15px 30px;

    border-radius: 30px;

    font-weight: 600;

    transition: all 0.3s ease;

}



.cta-button:hover {

    transform: translateY(-2px);

    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);

}



.cta-button svg {

    width: 20px;

    height: 20px;

    transition: transform 0.3s ease;

}



.cta-button:hover svg {

    transform: translateX(5px);

}

/* === SUBJECTS SECTION === */

.subjects-section {

    margin-top: 4rem;

    padding: 2rem;

    width: 100%;

}



.section-header {

    text-align: center;

    margin-bottom: 3rem;

}



.section-header h2 {

    font-size: 2.5rem;

    font-weight: 700;

    background: white;

    color: orange !important;

    -webkit-background-clip: text;

    background-clip: text;

    -webkit-text-fill-color: transparent;

    margin-bottom: 1rem;

}



.section-header p {

    font-size: 1.1rem;

    color: rgb(255, 255, 255) !important;

    max-width: 600px;

    margin: 0 auto;

    line-height: 1.6;

}



/* Responsive adjustments */

@media (max-width: 768px) {

    .section-header h2 {

        font-size: 2rem;

    }

    .section-header p {

        font-size: 1rem;

        padding: 0 1rem;

    }

}

@media (max-width: 480px) {

    .section-header h2 {

        font-size: 1.75rem;

    }

    .section-header p {

        font-size: 0.95rem;

    }

}

@media (max-width: 360px) {

    .section-header h2 {

        font-size: 1.5rem;

    }

}

/* Override for Subjects section header – make it orange */
.subjects-section .section-header h2 {
    color: orange !important;
    background: none !important;
    -webkit-text-fill-color: orange !important;
}

/* === IMPROVED SUBJECT CARDS – spacious and never squeezed === */

.card-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

    gap: 30px;

    padding: 30px;

    max-width: 1800px;

    margin: 0 auto;

    list-style: none;

}



.glass-card {

    background: rgba(255, 255, 255, 0.3)!important;

    backdrop-filter: blur(12px);

    border-radius: 28px;

    overflow: hidden;

    display: flex;

    flex-direction: column;

    transition: all 0.3s ease;

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);

    border: 1px solid rgba(255, 255, 255, 0.1);

    position: relative;

    width: 100%;

    height: 100%;

    will-change: transform;

}



.glass-card::before {

    content: '';

    position: absolute;

    inset: 0;

    border-radius: 28px;

    padding: 2px;

    background: linear-gradient(135deg, #667eea, #764ba2, #f5a623);

    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);

    -webkit-mask-composite: xor;

    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);

    mask-composite: exclude;

    opacity: 0;

    transition: opacity 0.4s ease;

}



.glass-card:hover::before {

    opacity: 1;

}



.glass-card:hover {

    transform: translateY(-10px) scale(1.02);

    box-shadow: 0 30px 60px rgba(102, 126, 234, 0.4);

    background: rgba(255, 255, 255, 0.12);

}



.glass-card .card-image {

    width: 100%;

    height: 220px;

    overflow: hidden;

    background: #1a1a2e;

}



.glass-card .card-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);

}



.glass-card:hover .card-image img {

    transform: scale(1.1);

}



.glass-card .card-overlay {

    padding: 24px 20px 20px;

    flex: 1;

    display: flex;

    flex-direction: column;

    gap: 10px;

    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);

}



.glass-card .card-overlay h3 {

    font-size: 1.6rem;

    font-weight: 700;

    color: white;

    margin: 0;

    line-height: 1.3;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    text-shadow: 0 2px 4px rgba(0,0,0,0.3);

}



.glass-card .card-overlay p {

    font-size: 1rem;

    color: rgba(255, 255, 255, 0.9);

    margin: 0;

    line-height: 1.6;

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    line-clamp: 2;

    overflow: hidden;

}



.glass-card .badge {

    display: inline-block;

    padding: 8px 18px;

    background: linear-gradient(135deg, #ff9900, #764ba2);

    color: white !important;

    border-radius: 40px;

    text-decoration: none;

    font-size: 0.9rem;

    font-weight: 600;

    align-self: flex-start;

    margin-top: 12px;

    transition: all 0.3s ease;

    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);

    border: none;

}



.glass-card .badge:hover {

    background: linear-gradient(135deg, #764ba2, #667eea);

    transform: translateY(-2px);

    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);

}



/* Responsive card grid */

@media (max-width: 1200px) {

    .card-grid {

        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

        gap: 25px;

        padding: 25px;

    }

    .glass-card .card-image {

        height: 200px;

    }

}



@media (max-width: 800px) {

    .card-grid {

        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));

        gap: 20px;

        padding: 20px;

    }

    .glass-card .card-overlay h3 {

        font-size: 1.4rem;

    }

    .glass-card .card-image {

        height: 180px;

    }

}



@media (max-width: 500px) {

    .card-grid {

        grid-template-columns: 1fr;

        padding: 15px;

    }

    .glass-card {

        max-width: 400px;

        margin: 0 auto;

    }

    .glass-card .card-image {

        height: 200px;

    }

}



/* === STATS SECTION === */

.stats-section {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 40px;

    padding: 60px;

    background: rgba(255, 255, 255, 0.03);

    backdrop-filter: blur(10px);

    border-radius: 30px;

    border: 1px solid rgba(255, 255, 255, 0.1);

}



.stat-item {

    text-align: center;

}



.stat-number {

    font-size: 48px;

    font-weight: 700;

    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    background-clip: text;

    margin-bottom: 10px;

}



.stat-label {

    font-size: 16px;

    color: rgba(255, 255, 255, 0.7);

}



/* ===== Contact Section ===== */

.contact-content {

    max-width: 1200px;

    margin: 0 auto;

    padding: 40px;

    color: white;

}



.contact-header {

    text-align: center;

    margin-top: 60px;

    margin-bottom: 60px;

}



.contact-header h2 {

    font-size: 48px;

    margin-bottom: 20px;

    background: orange;

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    background-clip: text;

}



.contact-header p {

    font-size: 20px;

    color: rgba(255, 255, 255);

    max-width: 600px;

    margin: 0 auto;

}



.contact-container {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 60px;

    align-items: start;

}



.contact-info-section {

    padding-right: 40px;

}



.contact-info-section h3 {

    font-size: 28px;

    margin-bottom: 20px;

    color: orange;

}



.contact-info-section p {

    font-size: 16px;

    color: rgba(255, 255, 255, 0.7);

    line-height: 1.8;

    margin-bottom: 40px;

}



.contact-details {

    display: flex;

    flex-direction: column;

    gap: 25px;

}



.contact-item {

    display: flex;

    align-items: center;

    gap: 20px;

    padding: 20px;

    background: rgba(255, 255, 255, 0.5)!important;

    backdrop-filter: blur(10px);

    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 30px;

    transition: all 0.3s ease;

}



.contact-item:hover {

    background: rgba(255, 255, 255, 0.08);

    transform: translateX(5px);

    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);

}



.contact-icon {

    width: 50px;

    height: 50px;

    background: linear-gradient(135deg, orange);

    border-radius: 12px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

}



.contact-icon svg {

    width: 24px;

    height: 24px;

    fill: white;

}



.contact-text {

    flex: 1;

}



.contact-text h4 {

    font-size: 16px;

    color: orange;

    margin-bottom: 5px;

}



.contact-text p {

    font-size: 14px;

    color: rgba(255, 255, 255, 0.7);

    margin: 0;

}



.social-links {

    margin-top: 40px;

}



.social-links h4 {

    font-size: 18px;

    margin-bottom: 20px;

    color: white;

}



.social-buttons {

    display: flex;

    gap: 15px;

}



.social-btn {

    width: 45px;

    height: 45px;

    background: rgba(255, 255, 255, 0.05);

    border: 1px solid rgba(255, 255, 255, 0.2);

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    transition: all 0.3s ease;

    cursor: pointer;

    color: white !important;

    text-decoration: none !important;

}



.social-btn:hover {

    background:orange;

    border-color: transparent;

    transform: translateY(-3px);

    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);

    text-decoration: none !important;

}



.social-btn svg {

    width: 20px;

    height: 20px;

    fill: white !important;

}



.contact-form-section {

    padding-left: 40px;
    

}



.contact-form {

    background: rgba(255, 255, 255, 0.5)!important;

    backdrop-filter: blur(10px);

    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 50px;

    padding: 40px;

}



.form-group {

    margin-bottom: 25px;

}



.form-group label {

    display: block;

    margin-bottom: 10px;

    color: orange;

    font-weight: 500;

}



.form-group input,

.form-group textarea {

    width: 100%;

    padding: 15px;

    background: rgba(255, 255, 255);

    border: 1px solid rgba(255, 255, 255, 0.2);

    border-radius: 50px;

    color: rgb(0, 0, 0);

    font-size: 16px;

    font-family: inherit;

    transition: all 0.3s ease;

}



.form-group input:focus,

.form-group textarea:focus {

    outline: none;

    border-color: #667eea;

    background: rgb(255, 255, 255);

}



.form-group textarea {

    resize: vertical;

    min-height: 150px;

    line-height: 1.5;

}



.submit-btn {

    background: orange;

    color: white;

    border: none;

    padding: 15px 40px;

    font-size: 18px;

    font-weight: 600;

    border-radius: 30px;

    cursor: pointer;

    transition: all 0.3s ease;

    width: 100%;

}



.submit-btn:hover {

    transform: translateY(-2px);

    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);

}



/* ===== Responsive Media Queries affecting Contact ===== */

@media (max-width: 1024px) {

    .contact-container {

        grid-template-columns: 1fr;

        gap: 50px;

    }

    .contact-info-section {

        padding-right: 0;

    }

    .contact-form-section {

        padding-left: 0;

    }

}



@media (max-width: 768px) {

    .contact-content h2 {

        font-size: 36px;

    }

}



@media (max-width: 480px) {

    .contact-content {

        padding: 20px;

    }

    .contact-container {

        gap: 30px;

    }

    .contact-header {

        margin-bottom: 40px;

    }

    .contact-header h2 {

        font-size: 32px;

        margin-bottom: 15px;

    }

    .contact-header p {

        font-size: 16px;

        padding: 0 10px;

    }

    .contact-info-section {

        margin-bottom: 20px;

    }

    .contact-info-section h3 {

        font-size: 22px;

        margin-bottom: 15px;

    }

    .contact-info-section > p {

        font-size: 14px;

        padding: 0 10px;

        margin-bottom: 30px;

    }

    .contact-details {

        gap: 15px;

    }

    .contact-item {

        padding: 15px;

        gap: 12px;

    }

    .contact-icon {

        width: 40px;

        height: 40px;

    }

    .contact-icon svg {

        width: 20px;

        height: 20px;

    }

    .contact-text h4 {

        font-size: 14px;

    }

    .contact-text p {

        font-size: 12px;

        word-break: break-word;

    }

    .social-links {

        margin-top: 30px;

    }

    .social-links h4 {

        font-size: 16px;

        margin-bottom: 15px;

    }

    .social-buttons {

        gap: 10px;

    }

    .social-btn {

        width: 40px;

        height: 40px;

    }

    .social-btn svg {

        width: 18px;

        height: 18px;

    }

    .contact-form {

        padding: 20px 15px;

        border-radius: 40px;

    }

    .form-group {

        margin-bottom: 20px;

    }

    .form-group label {

        font-size: 14px;

        margin-bottom: 8px;

    }

    .form-group input,

    .form-group textarea {

        padding: 12px;

        font-size: 14px;

        border-radius: 30px;

    }

    .form-group textarea {

        min-height: 120px;

    }

    .submit-btn {

        padding: 12px 30px;

        font-size: 16px;

        border-radius: 25px;

    }

}



/* === FOOTER – base (desktop) === */
.footer {
    width: calc(100% - 300px) !important;
    max-width: 1200px; /* optional */
    background: rgba(255, 255, 255, 0.5) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 30px;
    margin: 80px auto 10px auto;
    border-radius: 50px;
    backdrop-filter: blur(12px) !important;
    box-sizing: border-box; /* ensure padding is included in width */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-copyright {
    color: white;
    font-size: 16px;
    word-break: break-word; /* allows long text to wrap */
}

.footer-copyright a {
    color: orange;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-copyright a:hover {
    color: #764ba2;
}

.footer-links {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: orange;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    white-space: nowrap; /* optional – keeps links on one line */
}

.footer-links a:hover {
    color: white;
}

/* === RESPONSIVE FOOTER === */
@media (max-width: 1299px) {
    .footer {
        width: calc(100% - 80px) !important;
        padding: 30px 25px !important;
    }
}

@media (max-width: 768px) {
    .footer {
        width: calc(100% - 40px) !important;
        padding: 25px 20px !important;
        border-radius: 30px !important;
        /* height: auto; – it will auto-adjust since we removed fixed height */
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .footer-links {
        justify-content: center;
        gap: 20px;
    }
    /* ensure links wrap if needed */
    .footer-links a {
        white-space: normal; /* allow "Terms of Service" to wrap if needed */
        word-break: break-word;
    }
}

@media (max-width: 480px) {
    .footer {
        width: calc(100% - 30px) !important;
        padding: 20px 15px !important;
        border-radius: 30px !important;
        margin-bottom: 15px;
    }
    .footer-copyright {
        font-size: 12px;
    }
    .footer-links a {
        font-size: 12px;
        white-space: normal;
    }
    .footer-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

.scroll-to-top {

    position: fixed;

    bottom: 10px;

    left: 10px;

    width: 50px;

    height: 50px;

    background: linear-gradient(135deg, #c26904 0%, #220dda 100%) !important;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    color: orange;

    font-size: 25px;

    cursor: pointer;

    opacity: 0;

    transform: translateY(100px);

    transition: all 0.3s ease;

    z-index: 999;

    will-change: transform;

}



.scroll-to-top.visible {

    opacity: 1;

    transform: translateY(0);

}



.scroll-to-top:hover {

    transform: translateY(-5px);

    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);

}



/* === POPUP === */

.popup-overlay {

    position: fixed;

    top: 0; left: 0;

    width: 100%; height: 100%;

    background: rgba(0,0,0,0.6);

    display: none;

    justify-content: center;

    align-items: center;

    z-index: 9999;

}



.popup-content {

    background: rgba(255, 255, 255, 0.5);

    backdrop-filter: blur(10px);

    border: 1px solid rgba(255, 255, 255, 0.2);

    border-radius: 50px;

    padding: 30px;

    max-width: 600px;

    width: 90%;

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);

    text-align: left;

    overflow-y: auto;

    max-height: 90vh;

    scrollbar-width: none;

    -ms-overflow-style: none;

    --popup-text-color: rgb(255, 255, 255);

    color: var(--popup-text-color);

    animation: fadeIn 0.3s ease, slideUp 0.3s ease;

}



.popup-content::-webkit-scrollbar {

    display: none;

}



.popup-content h2,

.popup-content p,

.popup-content ul,

.popup-content ul li {

    color: var(--popup-text-color);

}



.popup-content a {

    color: #a8c7ff;

    text-decoration: underline;

}



.popup-content button {

    margin-top: 10px;

    background: orange;

    color: #fff;

    border: none;

    border-radius: 30px;

    padding: 8px 16px;

    cursor: pointer;

    transition: background 0.3s ease;

}



.popup-content button:hover {

    background: hsl(141, 80%, 40%);

}



@keyframes fadeIn {

    from { opacity: 0; }

    to { opacity: 1; }

}



@keyframes slideUp {

    from { transform: translateY(30px); opacity: 0; }

    to { transform: translateY(0); opacity: 1; }

}

/* Custom list styling inside popup */
.popup-content ul {
    list-style: none;
    padding-left: 0;
}

.popup-content li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    transition: transform 0.2s ease;
}

.popup-content li:hover {
    transform: translateX(5px);
}

.popup-content li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #ff8c00;          /* orange tick – matches your theme */
    font-weight: bold;
    font-size: 1.2rem;
    background: rgba(255, 140, 0, 0.2);
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.popup-content li:hover::before {
    background: #ff8c00;
    color: white;
    transform: scale(1.1);
}

footer a {

    color: #007bff;

    text-decoration: none;

    margin: 0 8px;

}

footer a:hover {

    text-decoration: underline;

}



/* === TRANSPARENT OVERLAY FIXES === */

.section,

#home,

#about,

#contact {

    background: transparent !important;

}



.header {

    background: rgba(0, 0, 0, 0.4) !important;

    backdrop-filter: blur(8px);

}



.header.scrolled {

    background: rgba(0, 0, 0, 0.6) !important;

}


.carousel > article {

    background: rgba(255, 255, 255, 0.05) !important;

    backdrop-filter: blur(6px);

    border: 1px solid rgba(255, 255, 255, 0.2);

    color: white;

}



.contact-form,

.showcase-main,

.contact-item,

.stats-section {

    background: rgba(255, 255, 255, 0.05) !important;

    backdrop-filter: blur(8px);

    border: 1px solid rgba(255, 255, 255, 0.2);

}



.contact-info-section p,

.contact-text p,

.about-info p,

.feature-list li {

    color: rgba(255, 255, 255, 0.85) !important;

}



.scroll-to-top,

.nav-button,

.play-pause-button,

.badge,

.social-btn {

    background: rgba(255, 255, 255, 0.1) !important;

    backdrop-filter: blur(6px);

    border: 1px solid rgba(255, 255, 255, 0.2);

}



/* === PUBLIC MESSAGE SECTION (restored) === */

.public-message {

    max-width: 1200px;

    margin: 0 auto;

    padding: 80px 20px;

    text-align: center;

    color: #ffffff;

}



.public-message h2 {

    font-size: 3rem;

    font-weight: 700;

    margin-bottom: 24px;

    background: orange;

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    background-clip: text;

}



.public-message > p {

    font-size: 1.25rem;

    line-height: 1.8;

    margin-bottom: 48px;

    color: rgba(255, 255, 255);

    max-width: 800px;

    margin-left: auto;

    margin-right: auto;

}



.feature-highlights {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

    gap: 32px;

    margin-bottom: 48px;

}



.highlight-card {

    background: rgba(255, 255, 255, 0.5);

    backdrop-filter: blur(10px);

    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 50px;

    padding: 40px 32px;

    transition: all 0.3s ease;

}



.highlight-card:hover {

    transform: translateY(-8px);

    background: rgba(255, 255, 255, 0.08);

    border-color: rgba(255, 255, 255, 0.2);

    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);

}



.highlight-icon {

    width: 80px;

    height: 80px;

    margin-bottom: 24px;

    object-fit: contain;

    filter: brightness(0) invert(1);

}



.highlight-card h3 {

    font-size: 1.5rem;

    font-weight: 600;

    margin-bottom: 16px;

    color: #ffffff;

}



.highlight-card p {

    font-size: 1rem;

    line-height: 1.6;

    color: rgba(255, 255, 255, 0.8);

}



.cta-buttons {

    display: flex;

    gap: 20px;

    justify-content: center;

    flex-wrap: wrap;

}



.cta-buttons .btn {

    padding: 16px 40px;

    font-size: 1.125rem;

    font-weight: 600;

    border-radius: 50px;

    transition: all 0.3s ease;

    text-decoration: none;

    display: inline-block;

}



.cta-buttons .btn:not(.btn-primary) {

    background: rgba(1, 114, 20, 0.678);

    color: #ffffff;

    border: 2px solid rgba(255, 255, 255, 0.2);

}



.cta-buttons .btn:not(.btn-primary):hover {

    background: rgba(255, 255, 255, 0.2);

    border-color: rgba(255, 255, 255, 0.3);

    transform: translateY(-2px);

}



.cta-buttons .btn-primary {

    background: orange;

    color: #ffffff;

    border: none;

    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);

}



.cta-buttons .btn-primary:hover {

    transform: translateY(-2px);

    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.6);

}



/* === NEW DASHBOARD – FULLY RESPONSIVE (clock & weather) === */

.new-dashboard-container {

    display: grid;

    grid-template-columns: 1fr 2fr;

    gap: 1.5rem;

    margin-bottom: 3rem;

    max-width: 1400px;

    margin-left: auto;

    margin-right: auto;

    padding: 0 1rem;

}



.new-dashboard-panel {

    background: rgba(255, 255, 255, 0.4) !important;

    backdrop-filter: blur(25px);

    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 50px;

    padding: 1.5rem;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);

    position: relative;

    overflow: hidden;

    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

}



.new-dashboard-panel::before {

    content: '';

    position: absolute;

    top: -2px;

    left: -2px;

    right: -2px;

    bottom: -2px;

    background: linear-gradient(135deg, rgba(255, 153, 0, 0.6), rgba(252, 251, 253, 0.3), rgba(245, 132, 2, 0.2));

    border-radius: 24px;

    z-index: -1;

    opacity: 0;

    transition: opacity 0.4s ease;

}



.new-dashboard-panel:hover::before {

    opacity: 1;

}



.new-dashboard-panel:hover {

    transform: translateY(-5px);

    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);

    border-color: rgba(255, 255, 255, 0.2);

}



.new-panel-header {

    display: flex;

    align-items: center;

    gap: 1rem;

    margin-bottom: 1.5rem;

    position: relative;

    z-index: 1;

}



.icon-wrapper {

    width: 60px;

    height: 60px;

    border-radius: 16px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: orange;

    border: 1px solid rgba(102, 126, 234, 0.3);

    transition: all 0.3s ease;

}



.new-dashboard-panel:hover .icon-wrapper {

    transform: scale(1.1);

    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));

}



.new-panel-header i {

    font-size: 1.8rem;

    background: white;

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    background-clip: text;

}



.new-panel-header h3 {

    margin: 0;

    color: white;

    font-size: 1.3rem;

    font-weight: 600;

    letter-spacing: -0.5px;

}



/* Clock Panel */

.clock-panel {

    background: orange;

    border-color: rgba(102, 126, 234, 0.4);

}



.clock-widget {

    text-align: center;

    position: relative;

    z-index: 1;

}



#clock {

    font-size: 3.5rem;

    font-weight: 800;

    background: orange;

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    background-clip: text;

    text-shadow: 0 0 90px rgba(47, 3, 243, 0.534);

    margin-bottom: 0.5rem;

    letter-spacing: 2px;

}



#date {

    font-size: 1.1rem;

    color:orange;

    margin: 0;

    font-weight: 500;

}



/* Weather Panel */

.weather-panel {

    background: orange;

    border-color: rgba(118, 75, 162, 0.4);

}



.weather-widget {

    text-align: center;

    position: relative;

    z-index: 1;

    width: 80%;

    margin: 0 auto;

}



#weather-location {

    font-size: 1.4rem;

    color: white;

    margin-bottom: 1.5rem;

    font-weight: 600;

    letter-spacing: 0.5px;

}



#forecast {

    display: grid;

    grid-template-columns: repeat(7, 1fr);

    gap: 15px;

    width: 90%;

}



.forecast-day {

    background:orange;

    border-radius: 8px;

    padding: 10px 5px;

    text-align: center;

    font-size: 0.9rem;

}



.forecast-day img {

    width: 40px;

    height: 40px;

    margin: 5px auto;

}



/* Responsive Dashboard */

@media (max-width: 1024px) {

    .new-dashboard-container {

        grid-template-columns: 1fr;

        gap: 1.5rem;

    }

    #forecast {

        grid-template-columns: repeat(5, 1fr);

    }

}



@media (max-width: 768px) {

    .new-dashboard-container {

        padding: 0 1rem;

    }

    #forecast {

        grid-template-columns: repeat(3, 1fr);

        gap: 10px;

    }

    .forecast-day {

        font-size: 0.85rem;

        padding: 8px 3px;

    }

    .forecast-day img {

        width: 35px;

        height: 35px;

    }

    #clock {

        font-size: 2.8rem;

    }

    #weather-location {

        font-size: 1.2rem;

    }

}



@media (max-width: 480px) {

    .new-dashboard-panel {

        padding: 1.2rem;

    }

    #clock {

        font-size: 2.2rem;

    }

    #date {

        font-size: 0.9rem;

    }

    #weather-location {

        font-size: 1rem;

        margin-bottom: 1rem;

    }

    #forecast {

        grid-template-columns: repeat(2, 1fr);

    }

    .forecast-day {

        font-size: 0.8rem;

    }

    .forecast-day img {

        width: 30px;

        height: 30px;

    }

}



@media (max-width: 360px) {

    #forecast {

        grid-template-columns: 1fr;

    }

}



/* === PROFILE DROPDOWN (with hidden checkbox) === */

.user-profile {

    position: relative;

    display: inline-block;

}



.profile-label {

    cursor: pointer;

    display: flex;

    align-items: center;

    gap: 6px;

}



.profile-pic {

    width: 48px;

    height: 48px;

    border-radius: 50%;

    border: 2px solid orange;

    transition: transform 0.3s ease, box-shadow 0.3s ease;

}



.profile-label::after {

    content: "▾";

    font-size: 0.9rem;

    color: rgba(255,255,255,0.7);

    transition: transform 0.3s ease;

}



.profile-checkbox:checked + .profile-label::after {

    transform: rotate(180deg);

}



/* Ensure checkbox is completely hidden */

.profile-checkbox {

    display: none !important;

}



.profile-details {

    position: absolute;

    right: 0;

    top: 70px;

    background: rgba(197, 196, 196, 0.95);

    backdrop-filter: blur(35px);

    -webkit-backdrop-filter: blur(15px);

    border-radius: 30px;

    padding: 20px;

    min-width: 260px;

    box-shadow: 0 12px 30px rgba(0,0,0,0.4);

    opacity: 0;

    transform: translateY(-10px);

    pointer-events: none;

    transition: all 0.3s ease;

    z-index: 1000;

}



.profile-checkbox:checked ~ .profile-details {

    opacity: 1;

    transform: translateY(0);

    pointer-events: auto;

}



.profile-details p {

    color: rgb(54, 1, 106);
    font-style:oblique;

    font-size: 0.95rem;

    margin-bottom: 12px;

    line-height: 1.4;
    text-shadow: #000;

}



/* Sponsorship badge styling */

.sponsorship-status .badge {

    display: inline-block;

    padding: 6px 12px;

    border-radius: 20px;

    font-size: 0.85rem;

    font-style: bold;

    font-weight: 600;

    margin-right: 8px;

    color:maroon;

    box-shadow: #000 !important;

    text-shadow: #000 !important;

}



/* Renew/Get Access link */

.renew-link {

    display: inline-block;

    padding: 6px 12px;

    border-radius: 12px;

    background: linear-gradient(135deg, #f44336 0%, #e53935 100%);

    color: #fff;

    font-size: 0.85rem;

    font-weight: 600;

    text-decoration: none;

    transition: all 0.3s ease;

}



.renew-link:hover {

    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);

    box-shadow: 0 4px 12px rgba(244,67,54,0.4);

    transform: translateY(-2px);

}



/* Dropdown menu items */

.profile-details .menu-item {

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 8px 0;

    color: rgba(255,255,255,0.9);

    font-size: 0.95rem;

    text-decoration: none;

    transition: color 0.2s ease;

}



.profile-details .menu-item:hover {

    color: #4ade80;

}



/* === ICON MENU === */

:root {

    --menu-icon-size: 35px;

}



.menu-item {

    display: flex;

    align-items: center;

    gap: 6px;

    text-decoration: none;

    color: inherit;

    padding: 4px 6px;

}



.menu-item.active {

    background: rgba(235, 106, 20, 0.04);

    border-radius: 6px;

}



.menu-icon {

    width: var(--menu-icon-size);

    height: var(--menu-icon-size);

    object-fit: contain;

    display: block;

}



.menu-label {

    font-size: 12px;

    line-height: 1;

    white-space: nowrap;

}



/* === MISC === */

.hero-image {

    text-align: center;

    margin-top: 10px;

    margin-bottom: 5px;

}



.file-pic {

    width: 150px;

    height: 150px;

    object-fit: cover;

    border: none;

}



#home {

    padding-top: 0;

}



#info {

    padding-top: 0;

}



.info {

    position: absolute;

    top: 80px;

}



#subject-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

    gap: 2rem;

    padding: 2rem;

    list-style: none;

    justify-items: center;

}



/* === CHAPTER STYLES (preserved) === */

.chapter-buttons a {

    display: inline-block;

    margin: 8px;

    padding: 12px 20px;

    background: linear-gradient(135deg, #667eea, #764ba2);

    color: white;

    font-size: 16px;

    font-weight: 600;

    border-radius: 8px;

    text-decoration: none;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);

    transition: all 0.3s ease;

}



.chapter-buttons a:hover {

    background: linear-gradient(135deg, #764ba2, #667eea);

    transform: translateY(-2px);

    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);

}



.chapter-buttons {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    justify-content: center;

    padding: 20px;

}



.chapter-images {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

    gap: 24px;

    margin: 40px 0;

    justify-items: center;

}



.chapter-images img {

    width: 100%;

    max-width: 320px;

    height: 200px;

    object-fit: contain;

    border-radius: 12px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);

    background: rgba(255, 255, 255, 0.05);

    padding: 10px;

}



.chapter-container {

    max-width: 900px;

    margin: 100px auto 60px;

    padding: 40px;

    background: rgba(255, 255, 255, 0.05);

    backdrop-filter: blur(12px);

    border-radius: 20px;

    border: 1px solid rgba(255, 255, 255, 0.15);

    color: white;

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);

}



.chapter-container h1,

.chapter-container h2,

.chapter-container p,

.chapter-container li,

.chapter-container th,

.chapter-container td {

    color: white;

}



.chapter-container table {

    width: 100%;

    border-collapse: collapse;

    margin: 20px 0;

    background: rgba(255, 255, 255, 0.03);

}



.chapter-container th,

.chapter-container td {

    padding: 10px;

    border: 1px solid rgba(255, 255, 255, 0.1);

}



.chapter-container a {

    color: #66d9ef;

    text-decoration: underline;

}



.chapter-container a:hover {

    color: #a991ff;

}



.chapter-container {

    margin-top: 120px;

    padding: 40px;

}



:target {

    scroll-margin-top: 120px;

}



.chapter-header {

    font-size: 32px;

    font-weight: 700;

    text-align: center;

    margin-bottom: 10px;

    color: white;

}



.back-to-popup-btn {

    display: inline-block;

    margin: 40px auto;

    padding: 12px 24px;

    background: linear-gradient(135deg, #667eea, #764ba2);

    color: white;

    font-size: 16px;

    font-weight: 600;

    border-radius: 8px;

    text-decoration: none;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);

    transition: all 0.3s ease;

}



.back-to-popup-btn:hover {

    background: linear-gradient(135deg, #764ba2, #667eea);

    transform: translateY(-2px);

    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);

}



/* === NOTIFICATIONS (preserved) === */

.notification-overlay {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    backdrop-filter: blur(12px) saturate(120%);

    background: rgba(255, 255, 255, 0.15);

    border-radius: 12px;

    padding: 1rem;

    display: flex;

    flex-direction: column;

    justify-content: flex-start;

    overflow-y: auto;

    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.2);

}



.notification-overlay .card-header {

    font-weight: 600;

    font-size: 1.1rem;

    margin-bottom: 0.75rem;

    color: #fff;

    text-shadow: 0 1px 2px rgba(0,0,0,0.4);

}



.notification-list {

    list-style: none;

    margin: 0;

    padding: 0;

}



.notification-list li {

    display: flex;

    align-items: flex-start;

    gap: 0.5rem;

    margin-bottom: 0.75rem;

    color: #f0f0f0;

    font-size: 0.9rem;

    line-height: 1.3;

}



.notification-list li .icon {

    font-size: 1.2rem;

    flex-shrink: 0;

}



.notification-list small {

    display: block;

    font-size: 0.75rem;

    color: rgba(255,255,255,0.7);

    margin-top: 0.25rem;

}



/* === SPONSORED CARD (fully responsive) === */

.sponsored-card {

    display: flex;

    align-items: center;

    gap: 20px;

    background: rgba(255, 255, 255, 0.56) !important;

    backdrop-filter: blur(12px);

    border-radius: 50px;

    padding: 20px 25px;

    box-shadow: 0 12px 30px rgba(0,0,0,0.25);

    border: 1px solid rgba(255,255,255,0.2);

    transition: transform 0.3s ease, box-shadow 0.3s ease;

    width: 100%;

    max-width: 100%;

    min-width: 0;               /* allow flex children to shrink */

    box-sizing: border-box;

}



.sponsored-card:hover {

    transform: translateY(-4px);

    box-shadow: 0 16px 36px rgba(0,0,0,0.35);

}



.sponsored-icon {

    flex-shrink: 0;

    font-size: 2.2rem;

    color: purple;

    background: rgba(0,188,212,0.15);

    border-radius: 50%;

    padding: 12px;

    display: flex;

    align-items: center;

    justify-content: center;

}



.sponsored-content {

    flex: 1;

    min-width: 0;               /* critical for text wrapping */

    word-wrap: break-word;

}



.sponsored-title {

    font-size: 1.4rem;

    font-weight: 700;

    margin: 0 0 8px;

    color: #000000;

    background: linear-gradient(135deg,navy 0%, purple 100%);

    background-clip: text;

    -webkit-background-clip: text;

    color: transparent;

    -webkit-text-fill-color: transparent;

    word-break: break-word;

}



.sponsored-description {

    font-size: 1rem;

    font-style: bold !important;


    color: purple;

    line-height: 1.6;

    word-break: break-word;

}



@media (max-width: 768px) {

    .sponsored-card {

        flex-direction: column;

        text-align: center;

        padding: 18px;

    }

    .sponsored-icon {

        font-size: 2rem;

        margin-bottom: 12px;

    }

    .sponsored-title {

        font-size: 1.2rem;

    }

    .sponsored-description {

        font-size: 0.95rem;

    }

}



@media (max-width: 480px) {

    .sponsored-card {

        padding: 15px;

        gap: 12px;

    }

    .sponsored-icon {

        font-size: 1.8rem;

        padding: 10px;

    }

    .sponsored-title {

        font-size: 1.1rem;

    }

    .sponsored-description {

        font-size: 0.9rem;

        line-height: 1.4;

    }

}



/* === ABOUT PAGE (preserved) === */

.about-page {

    padding: 2rem;

    max-width: 900px;

    margin: auto;

    font-family: "Segoe UI", Roboto, sans-serif;

    line-height: 1.8;

    color: #333;

    font-size: 1rem;

}



.about-page p {

    margin-bottom: 1rem;

    font-size: 1.05rem;

    color: #444;

}



.about-page ul {

    list-style: disc inside;

    margin: 1rem 0;

    padding-left: 1rem;

}



.about-page ul li {

    margin-bottom: 0.5rem;

    font-size: 1.05rem;

    color: #555;

}



.about-page h1 {

    font-size: 2.5rem;

    text-align: center;

    margin-bottom: 1rem;

    color: #007BFF;

    font-weight: 700;

}



.about-page h2 {

    margin-top: 2rem;

    font-size: 1.8rem;

    color: #222;

    font-weight: 600;

    border-left: 5px solid #007BFF;

    padding-left: 0.5rem;

}



.about-page a {

    color: #007BFF;

    text-decoration: none;

    font-weight: 500;

}



.about-page a:hover {

    text-decoration: underline;

}



.about-page hr {

    border: none;

    border-top: 2px solid #eee;

    margin: 2rem 0;

}



/* === COVER BANNER (preserved) === */

.cover-banner {

    width: 100%;

    height: 250px;

    background: url("../img/theme/cover.jpg") center/cover no-repeat;

    position: relative;

}



.banner-overlay {

    position: absolute;

    top: 20px;

    left: 40px;

    display: flex;

    align-items: center;

    gap: 15px;

}



.banner-logo {

    height: 60px;

    width: auto;

}



.banner-title {

    font-size: 1.8em;

    color: #fff;

    text-shadow: 0 2px 6px rgba(0,0,0,0.4);

}



/* === HIGHLIGHT ICON (preserved) === */

.highlight-icon {

    width: 60px;

    height: 60px;

    display: block;

    margin: 0 auto 15px;

    filter: none;

    background: none;

}



.ponder-card-icon {

    display: inline-block;

    width: 60px;

    height: 60px;

    background: transparent;

    filter: none;

}



.ponder-card-icon img {

    display: block;

    width: 60px;

    height: 60px;

    margin: 0 auto;

    background: transparent;

    filter: none !important;

}



.ponder-card-icon {

    color: inherit !important;

    background: transparent !important;

}



/* === RESPONSIVE BREAKPOINTS (preserved) === */

@media (max-width: 1024px) {

    .clock-widget h2 { font-size: 1.8rem; }

    .weather-widget h4 { font-size: 1rem; }

}



@media (max-width: 768px) {

    .new-dashboard-container {

        grid-template-columns: 1fr;

    }

    .card-grid {

        grid-template-columns: 1fr;

        justify-items: center;

    }

    .feature-highlights {

        grid-template-columns: 1fr;

    }

    .cta-buttons {

        flex-direction: column;

    }

}



@media (max-width: 480px) {

    .new-dashboard-panel { padding: 15px; }

    .clock-widget h2 { font-size: 1.4rem; }

    .clock-widget p,

    .weather-widget h4 { font-size: 0.85rem; }

    #forecast { flex-direction: column; }

}



/* === REDESIGNED PONDER MAGAZINE SECTION – HIGHLIGHT-CARD BASE + RICH HOVER === */

.ponder-section {

    max-width: 1200px;

    margin: 0 auto;

    padding: 6rem 2rem;

    text-align: center;

}



.ponder-header {

    margin-bottom: 4rem;

}



.ponder-icon {

    font-size: 4rem;

    margin-bottom: 1.5rem;

    animation: float 3s ease-in-out infinite;

}



@keyframes float {

    0%, 100% { transform: translateY(0px); }

    50% { transform: translateY(-10px); }

}



.ponder-title {

    font-size: 3rem;

    font-weight: 700;

    background: orange;

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    background-clip: text;

    margin-bottom: 1rem;

    letter-spacing: -1px;

}



.ponder-subtitle {

    font-size: 1.25rem;

    color: #ffffff;

    max-width: 600px;

    margin: 0 auto;

    line-height: 1.6;

}



.ponder-features {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

    gap: 2rem;

    margin-bottom: 4rem;

}



.ponder-card {

    background: rgba(255, 255, 255, 0.45) !important;

    border-radius: 50px;

    padding: 2.5rem;

    backdrop-filter: blur(10px);

    border: 1px solid rgba(255, 255, 255, 0.1);

    transition: all 0.3s ease;

}



.ponder-card:hover {

    transform: translateY(-10px);

    background: rgba(255, 255, 255, 0.12);

    border-color: rgba(102, 126, 234, 0.5);

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);

}



.ponder-card-icon {

    width: 80px;

    height: 80px;

    margin: 0 auto 1.5rem;

    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    border-radius: 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    transition: all 0.3s ease;

}



.ponder-card:hover .ponder-card-icon {

    transform: scale(1.1) rotate(5deg);

}



.ponder-card-icon .highlight-icon {

    width: 40px;

    height: 40px;

}



.ponder-card-title {

    font-size: 1.5rem;

    font-weight: 600;

    color: #fff;

    margin-bottom: 1rem;

}



.ponder-card-description {

    font-size: 1rem;

    color: #ccc;

    line-height: 1.6;

}



.ponder-cta {

    margin-top: 3rem;

}



.ponder-button {

    display: inline-flex;

    align-items: center;

    gap: 1rem;

    padding: 1.25rem 3rem;

    background: Orange;

    color: #fff;

    text-decoration: none;

    border-radius: 50px;

    font-size: 1.1rem;

    font-weight: 600;

    transition: all 0.3s ease;

    box-shadow: 0 10px 30px rgba(2, 29, 152, 0.3);

    position: relative;

    overflow: hidden;

}



.ponder-button::before {

    content: '';

    position: absolute;

    top: 0;

    left: -100%;

    width: 100%;

    height: 100%;

    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);

    transition: left 0.5s ease;

}



.ponder-button:hover::before {

    left: 100%;

}



.ponder-button:hover {

    transform: translateY(-3px);

    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);

}



.button-text {

    position: relative;

    z-index: 1;

}



.button-arrow {

    font-size: 1.5rem;

    font-weight: 300;

    transition: transform 0.3s ease;

    position: relative;

    z-index: 1;

}



.ponder-button:hover .button-arrow {

    transform: translateX(5px);

}



/* Responsive Design for Ponder */

@media (max-width: 768px) {

    .ponder-section {

        padding: 4rem 1.5rem;

    }

    .ponder-title {

        font-size: 2.5rem;

    }

    .ponder-subtitle {

        font-size: 1.1rem;

    }

    .ponder-features {

        grid-template-columns: 1fr;

        gap: 1.5rem;

    }

    .ponder-card {

        padding: 2rem;

    }

    .ponder-button {

        padding: 1rem 2rem;

        font-size: 1rem;

    }

}



@media (max-width: 480px) {

    .ponder-section {

        padding: 3rem 1rem;

    }

    .ponder-icon {

        font-size: 3rem;

    }

    .ponder-title {

        font-size: 2rem;

    }

    .ponder-subtitle {

        font-size: 1rem;

    }

    .ponder-card {

        padding: 1.5rem;

    }

    .ponder-card-icon {

        width: 60px;

        height: 60px;

    }

    .ponder-card-icon .highlight-icon {

        width: 30px;

        height: 30px;

    }

    .ponder-card-title {

        font-size: 1.25rem;

    }

    .ponder-button {

        padding: 0.875rem 1.75rem;

        font-size: 0.9rem;

    }

}

/* === Modern LOADER === */

      .modern-loader {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(135deg, #0b2b44, #00121d, #000000);
      backdrop-filter: blur(8px);
      z-index: 9999;
      display: flex;
      justify-content: center;
      align-items: center;
      transition: opacity 0.5s ease;
      opacity: 1;
      visibility: visible;
    }
    .modern-loader.hide {
      opacity: 0;
      visibility: hidden;
    }
    .loader-card {
      background: rgba(255, 255, 255, 0.15);
      border: 1px solid rgba(255, 255, 255, 0.3);
      border-radius: 4rem;
      padding: 2rem;
      text-align: center;
      max-width: 400px;
      width: 80%;
      backdrop-filter: blur(12px);
      box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    }
    .gradient-spinner {
      width: 80px;
      height: 80px;
      margin: 1rem auto;
      position: relative;
    }
    .spinner-circle {
      width: 100%;
      height: 100%;
      border-radius: 50%;
      background: conic-gradient(from 0deg, #8b5cf6, #3b0764, #8b5cf6);
      mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 8px));
      -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 8px));
      animation: spin 1s linear infinite;
    }
    @keyframes spin {
      to { transform: rotate(360deg); }
    }
    .gradient-spinner::after {
      content: '';
      position: absolute;
      top: -5px;
      left: -5px;
      right: -5px;
      bottom: -5px;
      border-radius: 50%;
      background: inherit;
      opacity: 0.3;
      filter: blur(8px);
      z-index: -1;
      animation: pulse 1.5s infinite;
    }
    @keyframes pulse {
      0% { transform: scale(1); opacity: 0.3; }
      50% { transform: scale(1.1); opacity: 0.5; }
      100% { transform: scale(1); opacity: 0.3; }
    }
    .loader-progress-container {
      width: 100%;
      height: 8px;
      background: rgba(255, 255, 255, 0.3);
      border-radius: 4px;
      overflow: hidden;
      margin: 1rem 0;
    }
    .loader-progress-bar {
      width: 0%;
      height: 100%;
      background: #ff8c00;
      border-radius: 4px;
      transition: width 0.2s linear;
    }
    .loader-text {
      color: #fff;
      font-size: 0.9rem;
      margin-top: 0.5rem;
    }
    .slow-message {
      color: #ffaa66;
      font-size: 0.8rem;
      margin-top: 0.5rem;
      display: none;
    }


/* === SUBJECTS SECTION === */

.subjects-section {

    margin-top: 4rem;

    padding: 2rem;

    width: 100%;

}



.section-header {

    text-align: center;

    margin-bottom: 3rem;

}



.section-header h2 {

    font-size: 2.5rem;

    font-weight: 700;

    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    -webkit-background-clip: text;

    background-clip: text;

    -webkit-text-fill-color: transparent;

    margin-bottom: 1rem;

}



.section-header p {

    font-size: 1.1rem;

    color: rgba(255, 255, 255, 0.7);

    max-width: 600px;

    margin: 0 auto;

    line-height: 1.6;

}



/* Responsive adjustments */

@media (max-width: 768px) {

    .section-header h2 {

        font-size: 2rem;

    }

    .section-header p {

        font-size: 1rem;

        padding: 0 1rem;

    }

}



/* === IMPROVED SUBJECT CARDS – spacious and never squeezed === */

.card-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

    gap: 30px;

    padding: 30px;

    max-width: 1800px;

    margin: 0 auto;

    list-style: none;

}



.glass-card {

    background: rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(12px);

    border-radius: 28px;

    overflow: hidden;

    display: flex;

    flex-direction: column;

    transition: all 0.3s ease;

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);

    border: 1px solid rgba(255, 255, 255, 0.1);

    position: relative;

    width: 100%;

    height: 100%;

    will-change: transform;

}



.glass-card::before {

    content: '';

    position: absolute;

    inset: 0;

    border-radius: 28px;

    padding: 2px;

    background: linear-gradient(135deg, #667eea, #764ba2, #f5a623);

    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);

    -webkit-mask-composite: xor;

    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);

    mask-composite: exclude;

    opacity: 0;

    transition: opacity 0.4s ease;

}



.glass-card:hover::before {

    opacity: 1;

}



.glass-card:hover {

    transform: translateY(-10px) scale(1.02);

    box-shadow: 0 30px 60px rgba(102, 126, 234, 0.4);

    background: rgba(255, 255, 255, 0.12);

}



.glass-card .card-image {

    width: 100%;

    height: 220px;

    overflow: hidden;

    background: #1a1a2e;

}



.glass-card .card-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);

}



.glass-card:hover .card-image img {

    transform: scale(1.1);

}



.glass-card .card-overlay {

    padding: 24px 20px 20px;

    flex: 1;

    display: flex;

    flex-direction: column;

    gap: 10px;

    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);

}



.glass-card .card-overlay h3 {

    font-size: 1.6rem;

    font-weight: 700;

    color: white;

    margin: 0;

    line-height: 1.3;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    text-shadow: 0 2px 4px rgba(0,0,0,0.3);

}



.glass-card .card-overlay p {

    font-size: 1rem;

    color: rgba(255, 255, 255, 0.9);

    margin: 0;

    line-height: 1.6;

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    line-clamp: 2;

    overflow: hidden;

}



.glass-card .badge {

    display: inline-block;

    padding: 8px 18px;

    background: linear-gradient(135deg, #667eea, #764ba2);

    color: white;

    border-radius: 40px;

    text-decoration: none;

    font-size: 0.9rem;

    font-weight: 600;

    align-self: flex-start;

    margin-top: 12px;

    transition: all 0.3s ease;

    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);

    border: none;

}



.glass-card .badge:hover {

    background: linear-gradient(135deg, #764ba2, #667eea);

    transform: translateY(-2px);

    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);

}



/* Responsive card grid */

@media (max-width: 1200px) {

    .card-grid {

        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

        gap: 25px;

        padding: 25px;

    }

    .glass-card .card-image {

        height: 200px;

    }

}



@media (max-width: 800px) {

    .card-grid {

        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));

        gap: 20px;

        padding: 20px;

    }

    .glass-card .card-overlay h3 {

        font-size: 1.4rem;

    }

    .glass-card .card-image {

        height: 180px;

    }

}



@media (max-width: 500px) {

    .card-grid {

        grid-template-columns: 1fr;

        padding: 15px;

    }

    .glass-card {

        max-width: 400px;

        margin: 0 auto;

    }

    .glass-card .card-image {

        height: 200px;

    }

}



/* === FUTURISTIC CARDS – matching the improved card style === */

.futuristic-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

    gap: 30px;

    padding: 30px;

    max-width: 1800px;

    margin: 0 auto;

}



.futuristic-card {

    background: rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(20px);

    border: 1px solid rgba(102, 126, 234, 0.3);

    border-radius: 28px;

    padding: 1.8rem;

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);

    transition: all 0.3s ease;

    width: 100%;

    display: flex;

    flex-direction: column;

    height: 100%;

    position: relative;

}



.futuristic-card::before {

    content: '';

    position: absolute;

    inset: 0;

    border-radius: 28px;

    padding: 2px;

    background: linear-gradient(135deg, #667eea, #764ba2, #f5a623);

    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);

    -webkit-mask-composite: xor;

    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);

    mask-composite: exclude;

    opacity: 0;

    transition: opacity 0.4s ease;

}



.futuristic-card:hover::before {

    opacity: 1;

}



.futuristic-card:hover {

    transform: translateY(-10px) scale(1.02);

    box-shadow: 0 30px 60px rgba(102, 126, 234, 0.4);

    background: rgba(255, 255, 255, 0.12);

}



.futuristic-card .card-image {

    width: 100%;

    height: 200px;

    overflow: hidden;

    border-radius: 20px;

    margin-bottom: 1.2rem;

}



.futuristic-card .card-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);

}



.futuristic-card:hover .card-image img {

    transform: scale(1.1);

}



.futuristic-card .card-overlay h3 {

    font-size: 1.5rem;

    font-weight: 700;

    color: white;

    margin-bottom: 0.5rem;

    text-shadow: 0 2px 4px rgba(0,0,0,0.3);

}



.futuristic-card .card-overlay p {

    color: rgba(255,255,255,0.9);

    line-height: 1.6;

    margin-bottom: 1rem;

    font-size: 0.95rem;

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    line-clamp: 2;

    overflow: hidden;

}



.futuristic-card .badge {

    display: inline-block;

    padding: 8px 18px;

    background: linear-gradient(135deg, #667eea, #764ba2);

    color: white;

    border-radius: 40px;

    text-decoration: none;

    font-size: 0.9rem;

    font-weight: 600;

    align-self: flex-start;

    transition: all 0.3s ease;

    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);

}



.futuristic-card .badge:hover {

    background: linear-gradient(135deg, #764ba2, #667eea);

    transform: translateY(-2px);

    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);

}



/* Responsive futuristic grid */

@media (max-width: 1200px) {

    .futuristic-grid {

        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

        gap: 25px;

        padding: 25px;

    }

    .futuristic-card .card-image {

        height: 180px;

    }

}



@media (max-width: 800px) {

    .futuristic-grid {

        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));

        gap: 20px;

        padding: 20px;

    }

    .futuristic-card {

        padding: 1.5rem;

    }

}



@media (max-width: 500px) {

    .futuristic-grid {

        grid-template-columns: 1fr;

        padding: 15px;

    }

    .futuristic-card {

        max-width: 400px;

        margin: 0 auto;

    }

    .futuristic-card .card-image {

        height: 200px;

    }

}



/* ===== REDESIGNED SUBJECT CARDS – HERO STYLE ===== */



/* Grid layout – cards side by side */

.futuristic-grid {

  display: flex;

  flex-wrap: wrap;

  justify-content: center;

  gap: 30px;

  padding: 20px;

  list-style: none;

  margin: 0 auto;

  max-width: 1400px;

}



/* Individual card */

.glass-card.futuristic-card {

  position: relative;

  width: 400px;

  height: 400px;

  border-radius: 30px;

  overflow: hidden;

  box-shadow: 5px 5px 30px rgba(0, 0, 0, 0.3);

  background: transparent; /* let the image show through */

  transition: transform 0.3s ease;

}



.glass-card.futuristic-card:hover {

  transform: scale(1.02);

}



/* Image – takes 70% of card height */

.glass-card.futuristic-card .card-image {

  width: 100%;

  height: 70%;

  overflow: hidden;

  background: #0122fa60;

}



.glass-card.futuristic-card .card-image img {

  width: 100%;

  height: 100%;

  object-fit: cover;

  display: block;

}



/* Skewed gradient panel */

.glass-card.futuristic-card .card-overlay::before {

  content: '';

  position: absolute;

  top: 55%;

  left: -5px;

  height: 65%;

  width: 108%;

  background: linear-gradient(0deg, #2a2a2b, #d16004);

  transform: skew(19deg, -9deg);

  z-index: 1;

  border-radius: 30px;

  pointer-events: none;

}



/* Logo box – positioned absolutely over the panel */

.glass-card.futuristic-card .card-overlay {

  position: absolute;

  top: 0;

  left: 0;

  width: 100%;

  height: 100%;

  z-index: 2;

  padding: 0;

}



.glass-card.futuristic-card .logo-box {

  position: absolute;

  bottom: 30%;

  left: 30px;

  width: 80px;

  height: 80px;

  border-radius: 20px;

  background: #fff;

  overflow: hidden;

  box-shadow: 5px 5px 30px rgba(0, 0, 0, 0.7);

  z-index: 3;

}



.glass-card.futuristic-card .logo-box img {

  width: 100%;

  height: 100%;

  object-fit: cover;

}



/* Main text (subject name) */

.glass-card.futuristic-card .main-text {

  position: absolute;

  left: 150px;

  bottom: 26%;

  color: #fff;

  font-weight: 900;

  font-size: 1.2rem;

  text-shadow: 0 2px 4px rgba(0,0,0,0.5);

  z-index: 3;

  margin: 0;

}



/* Description */

.glass-card.futuristic-card .description {

  position: absolute;

  left: 150px;

  bottom: 18%;

  color: rgba(255,255,255,0.9);

  font-size: 0.9rem;

  text-shadow: 0 1px 3px rgba(0,0,0,0.5);

  z-index: 3;

  margin: 0;

  max-width: 200px;

}



/* Date */

.glass-card.futuristic-card .date {

  position: absolute;

  left: 30px;

  bottom: 10%;

  color: #fff;

  font-weight: 600;

  font-size: 0.9rem;

  z-index: 3;

}



/* Button (replaces .badge) */

.glass-card.futuristic-card .hero-btn {

  position: absolute;

  right: 30px;

  bottom: 10%;

  padding: 10px 20px;

  border: 1px solid #fff;

  border-radius: 30px;

  animation: button-anim 2s ease 0s infinite normal forwards;

  z-index: 3;

  background: transparent;

  cursor: pointer;

  transition: all 0.3s ease;

}



.glass-card.futuristic-card .hero-btn:hover {

  animation: none;

  background: rgba(255,255,255,0.2);

}



.glass-card.futuristic-card .hero-btn a {

  color: #fff;

  text-decoration: none;

  font-weight: 600;

}



@keyframes button-anim {

  0% { transform: translate(0); }

  20% { transform: translate(-2px, 2px); }

  40% { transform: translate(-2px, -2px); }

  60% { transform: translate(2px, 2px); }

  80% { transform: translate(2px, -2px); }

  100% { transform: translate(0); }

}



/* Hide old badge class if still present */

.glass-card.futuristic-card .badge {

  display: none;

}



/* Responsive adjustments */

@media (max-width: 500px) {

  .glass-card.futuristic-card {

    width: 340px;

    height: 340px;

  }

  .glass-card.futuristic-card .logo-box {

    width: 60px;

    height: 60px;

    left: 20px;

  }

  .glass-card.futuristic-card .main-text {

    left: 120px;

    font-size: 1rem;

  }

  .glass-card.futuristic-card .description {

    left: 120px;

    font-size: 0.8rem;

  }

}



/* === CONFLICTING FIXED‑WIDTH GRID DEFINITIONS (at the very end) === */

.futuristic-grid {

    display: grid;

    grid-template-columns: repeat(5, 400px);

    gap: 30px;

    justify-content: center;

    padding: 20px;

    list-style: none;

    max-width: 100%;

    margin: 0 auto;

}



@media (max-width: 2200px) {

    .futuristic-grid {

        grid-template-columns: repeat(4, 400px);

    }

}

@media (max-width: 1800px) {

    .futuristic-grid {

        grid-template-columns: repeat(3, 400px);

    }

}

@media (max-width: 1350px) {

    .futuristic-grid {

        grid-template-columns: repeat(2, 400px);

    }

}

@media (max-width: 900px) {

    .futuristic-grid {

        grid-template-columns: repeat(1, 400px);

    }

}

/* ===== NOTIFICATIONS CARD INTERACTIONS ===== */

.notification-item {

    display: flex;

    align-items: flex-start;

    gap: 10px;

    margin-bottom: 15px;

    padding: 10px;

    border-radius: 8px;

    background: rgba(255,255,255,0.1);

    transition: background 0.3s, opacity 0.3s;

    position: relative;

}



.notification-item.read {

    opacity: 0.6;

    background: rgba(255,255,255,0.05) !important;

    border-left: none !important;

}

.notification-item .icon {

    font-size: 1.5rem;

    flex-shrink: 0;

}



.notification-content {

    flex: 1;

    font-size: 0.9rem;

    line-height: 1.3;

    min-width: 0;

}



.notification-content strong {

    display: block;

    font-size: 1rem;

    margin-bottom: 2px;

}



.notification-content .message-preview {

    display: block;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

    max-width: 150px;

}



.notification-content small {

    display: block;

    opacity: 0.7;

    margin-top: 4px;

}



.notification-actions {

    display: flex;

    gap: 8px;

    flex-shrink: 0;

}



.notification-actions button {

    background: transparent;

    border: none;

    color: white;

    cursor: pointer;

    font-size: 1.2rem;

    padding: 4px;

    transition: transform 0.2s, opacity 0.2s;

    opacity: 0.7;

}



.notification-actions button:hover {

    opacity: 1;

    transform: scale(1.1);

}



/* Modal for expanded notification */

.modal-overlay {

    position: fixed;

    top: 0; left: 0;

    width: 100%; height: 100%;

    background: rgba(0,0,0,0.8);

    display: flex;

    justify-content: center;

    align-items: center;

    z-index: 10000;

}

.modal-content {

    background: rgba(255,255,255,0.1);

    backdrop-filter: blur(15px);

    border: 1px solid rgba(255,255,255,0.2);

    border-radius: 20px;

    padding: 2rem;

    max-width: 500px;

    width: 90%;

    color: white;

}

.modal-content h3 {

    margin-top: 0;

}

.modal-content button {

    margin-top: 1rem;

    padding: 8px 16px;

    background: linear-gradient(135deg, #667eea, #764ba2);

    border: none;

    border-radius: 8px;

    color: white;

    cursor: pointer;

}



.coverflow-item.notification-expanded {

    position: fixed !important;

    top: 50% !important;

    left: 50% !important;

    transform: translate(-50%, -50%) !important;

    width: 450px !important;

    height: 550px !important;

    z-index: 10000 !important;

    box-shadow: 0 30px 60px rgba(0,0,0,0.5);

    transition: all 0.3s ease;

    will-change: transform;

}



@media (max-width: 768px) {

    .coverflow-item.notification-expanded {

        width: 340px !important;

        height: 500px !important;

    }

}

/* Ensure overlay content scrolls if needed */

.notification-overlay {

    overflow-y: auto;

    max-height: 100%;

    padding: 1rem;

    scrollbar-width: thin;

    scrollbar-color: rgba(255,255,255,0.3) transparent;

}



.notification-overlay::-webkit-scrollbar {

    width: 6px;

}

.notification-overlay::-webkit-scrollbar-thumb {

    background: rgba(255,255,255,0.3);

    border-radius: 10px;

}



/* Make the notification list items stack nicely */

.notification-item {

    flex-wrap: wrap;

    word-break: break-word;

}



/* Unread notification style */

.notification-item:not(.read) {

    background: rgba(102, 126, 234, 0.15);

    border-left: 3px solid #667eea;

}



/* Optional: add a subtle pulse animation for unread? */

.notification-item:not(.read) .icon {

    animation: subtle-pulse 2s infinite;

}



@keyframes subtle-pulse {

    0% { opacity: 1; }

    50% { opacity: 0.7; }

    100% { opacity: 1; }

}

.notification-floating-btn {

    position: fixed;

    bottom: 10px;

    left: 10px;

    width: 50px;

    height: 50px;

    border-radius: 50%;

    background: linear-gradient(135deg, #667eea, #764ba2);

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    box-shadow: 0 10px 25px rgba(102,126,234,0.4);

    z-index: 1000;

    transition: transform 0.3s ease;

}



.notification-floating-btn:hover {

    transform: scale(1.1);

}



.notification-floating-btn i {

    color: white;

    font-size: 24px;

}



.notification-badge {

    position: absolute;

    top: -5px;

    right: -5px;

    background: #f5a623;

    color: white;

    border-radius: 50%;

    width: 24px;

    height: 24px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 14px;

    font-weight: bold;

    box-shadow: 0 2px 5px rgba(0,0,0,0.3);

}

/* Redesigned Mark All as Read Button – Pill version */

.mark-all-read-btn {

    background: linear-gradient(135deg, #667eea, #764ba2);

    border: none;

    border-radius: 30px;

    padding: 8px 16px 8px 12px;

    color: white;

    font-size: 14px;

    font-weight: 500;

    display: inline-flex;

    align-items: center;

    gap: 8px;

    cursor: pointer;

    transition: all 0.3s ease;

    box-shadow: 0 4px 12px rgba(0,0,0,0.25);

    border: 1px solid rgba(255,255,255,0.3);

    letter-spacing: 0.3px;

}



.mark-all-read-btn i {

    font-size: 16px;

}



.mark-all-read-btn:hover {

    transform: translateY(-2px);

    box-shadow: 0 8px 20px rgba(102,126,234,0.6);

    background: linear-gradient(135deg, #764ba2, #667eea);

}



.mark-all-read-btn:active {

    transform: translateY(0);

}

/* Force popup to show when class is added */

.popup-overlay.popup-visible {

    display: flex !important;

    position: fixed !important;

    top: 0 !important;

    left: 0 !important;

    width: 100% !important;

    height: 100% !important;

    background: rgba(0,0,0,0.6) !important;

    justify-content: center !important;

    align-items: center !important;

    z-index: 10000 !important;

}



/* ===== MOBILE ENHANCEMENTS – LARGER TAP TARGETS ===== */

@media (max-width: 768px) {

    /* Larger menu labels in header */

    .menu-item .menu-label {

        font-size: 16px;

    }

    /* Increase icon size slightly */

    .menu-icon {

        width: 20px;

        height: 20px;

    }

    /* Profile dropdown – larger text and padding */

    .profile-details p {

        font-size: 1rem;

    }

    .profile-details .menu-item {

        font-size: 1.1rem;

        padding: 12px 0;

    }

    /* Renew link larger */

    .renew-link {

        font-size: 1rem;

        padding: 8px 14px;

    }

    /* Badge in profile */

    .sponsorship-status .badge {

        font-size: 0.95rem;

        padding: 8px 14px;

    }

}



@media (max-width: 480px) {

    .menu-item .menu-label {

        font-size: 18px; /* even larger on very small screens */

    }

    .menu-icon {

        width: 24px;

        height: 24px;

    }

    .profile-details {

        min-width: 240px; /* slightly smaller on very small screens */

        padding: 15px;

    }

    .profile-details .menu-item {

        font-size: 1.2rem;

        padding: 14px 0;

    }

}

/* Ensure all sections are responsive */

.section {

    width: 100%;

    overflow-x: hidden;

}



/* About section container */

.about-content {

    max-width: 1400px;

    margin: 0 auto;

    padding: 40px;

    width: 100%;

    box-sizing: border-box;

}



/* Responsive padding for about-content */

@media (max-width: 600px) {

    .about-content {

        padding-left: 20px;

        padding-right: 20px;

    }

}

@media (max-width: 400px) {

    .about-content {

        padding-left: 15px;

        padding-right: 15px;

    }

}

@media (max-width: 360px) {

    .about-content {

        padding-left: 10px;

        padding-right: 10px;

    }

}



/* Similarly for contact, ponder sections if they use different containers */

.contact-content, .ponder-section {

    max-width: 1200px;

    margin: 0 auto;

    padding: 40px 20px;

    width: 100%;

    box-sizing: border-box;

}



/* Dashboard container (already responsive but ensure no overflow) */

.new-dashboard-container {

    width: 100%;

    max-width: 1400px;

    margin-left: auto;

    margin-right: auto;

    padding: 0 20px;

    box-sizing: border-box;

}

/* ===== RESPONSIVE SECTIONS – FORCE CONTAINERS TO RESIZE ===== */



/* Base section styling – full width, no horizontal overflow */

.section {

    width: 100%;

    overflow-x: hidden;

}



/* About section container – fluid with max-width and responsive padding */

.about-content {

    max-width: 1400px;

    margin: 0 auto;

    padding: 40px;

    width: 100%;

    box-sizing: border-box;

}



/* Contact section container */

.contact-content {

    max-width: 1200px;

    margin: 0 auto;

    padding: 40px 20px;

    width: 100%;

    box-sizing: border-box;

}



/* Ponder section container */

.ponder-section {

    max-width: 1200px;

    margin: 0 auto;

    padding: 6rem 2rem;

    width: 100%;

    box-sizing: border-box;

}



/* Dashboard container (already responsive, but ensure full width) */

.new-dashboard-container {

    width: 100%;

    max-width: 1400px;

    margin-left: auto;

    margin-right: auto;

    padding: 0 20px;

    box-sizing: border-box;

}



/* Responsive padding adjustments for small screens */

@media (max-width: 768px) {

    .about-content,

    .contact-content,

    .ponder-section {

        padding-left: 20px;

        padding-right: 20px;

    }

    .ponder-section {

        padding-top: 4rem;

        padding-bottom: 4rem;

    }

}



@media (max-width: 480px) {

    .about-content,

    .contact-content,

    .ponder-section {

        padding-left: 15px;

        padding-right: 15px;

    }

    .ponder-section {

        padding-top: 3rem;

        padding-bottom: 3rem;

    }

}



@media (max-width: 360px) {

    .about-content,

    .contact-content,

    .ponder-section {

        padding-left: 10px;

        padding-right: 10px;

    }

}

@media (max-width: 768px) {

    /* Make the grid single column and center items */

    .futuristic-grid {

        display: grid !important;

        grid-template-columns: 1fr !important;

        justify-items: center !important;

        align-items: center !important;

        justify-content: center !important;

        padding-left: 15px !important;

        padding-right: 15px !important;

    }



    /* Ensure each card is centered within its cell */

    .glass-card.futuristic-card {

        margin-left: auto !important;

        margin-right: auto !important;

        width: 100% !important;

        max-width: 350px !important; /* adjust as needed */

    }

}
/* ========== ACCESS REQUIRED CARD (Frosted Glass) ========== */
.access-required-card {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 2rem;
  padding: 2rem;
  text-align: center;
  max-width: 500px;
  margin: 2rem auto;
  transition: all 0.2s ease;
  position: relative;           /* ensure stacking context */
  pointer-events: auto;         /* ensure card doesn't block clicks */
  overflow: visible;            /* allow any button overflow to be clickable */
}

/* Ensure pseudo-elements (if any) don't block clicks */
.access-required-card::before,
.access-required-card::after {
  pointer-events: none;
}

.access-required-card:hover {
  border-color: #ff8c00;
  background: rgba(255, 255, 255, 0.3);
}

.access-icon {
  font-size: 5.5rem;
  color: #ff8c00;
  margin-bottom: 1.5rem;
  display: inline-block;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.access-icon:hover {
  transform: scale(1.05);
}

.access-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}

.access-description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.renew-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;   /* centers text and icon horizontally */
  gap: 0.5rem;
  background: #ff8c00;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 10;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); /* subtle shadow */
}

.renew-btn:hover {
  background: #ff7a00;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.renew-btn:active {
  transform: translateY(1px);
  background: #ff7a00;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.renew-btn i {
  font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .access-required-card {
    padding: 1.5rem;
    margin: 1rem;
  }
  .access-title {
    font-size: 1.25rem;
  }
  .access-description {
    font-size: 0.9rem;
  }
}
/* Make the header centered, 50px from top, with 50px spacing from edges, and rounded corners */
.header {
  top: 5px !important;                     /* 50px from top edge */
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: calc(100% - 300px) !important;      /* 150px on each side (adjust as needed) */
  max-width: none !important;
  border-radius: 30px !important;
  border-bottom: none !important;
  padding: 0 30px !important;
  /* The frosted glass effect is already defined elsewhere in your CSS:
     background: rgba(0, 0, 0, 0.4) !important;
     backdrop-filter: blur(8px) !important; 
     This matches your login page style. */
}

/* Keep the original scrolled effect – override if needed */
.header.scrolled {
  border-radius: 30px !important;
  background: rgba(255, 255, 255, 0.6) !important; 
  height: 65px !important;
}

/* Ensure the mobile menu toggle still works on small screens */
@media (max-width: 768px) {
  .header {
    top: 5px !important;                   /* smaller margin on mobile */
    width: calc(100% - 30px) !important;
    border-radius: 40px !important;
    padding: 0 20px !important;
  }
  .header.scrolled {
    border-radius: 30px !important;
    height: 65px !important;
  }
}
/* Override the dark background with a whiter frosted glass */
.header {
  background: rgba(255, 255, 255, 0.6) !important;   /* lighter, semi‑transparent white */
  backdrop-filter: blur(10px) !important;            /* stronger blur for frost */
}
/* Use Arial Rounded Bold for header text */
.header, .menu-item, .menu-label, .logo-text, .profile-details {
  font-family: 'Arial Rounded MT Bold', 'Arial Rounded', 'Arial', sans-serif !important;
  font-weight: bold !important;
  letter-spacing: 0.3px;
}

/* Adjust menu item size for better readability */
.menu-item {
  font-size: 15px;
}
.menu-label {
  font-size: 14px;
  font-weight: bold;
}


/* Keep the group selector, but override with a more specific rule */
.contact-form-section .contact-form {
    background: rgba(255, 255, 255, 0.5) !important;
}

.contact-item {
    background: rgba(255, 255, 255, 0.5)!important;
}

*:focus {
    outline: none;
}
/* ─── PENCIL LOADER ─── */
.modern-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(0px);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.modern-loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-glass-panel {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border-radius: 3rem;
  padding: 2.5rem 2.5rem 2rem 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
              0 0 0 1px rgba(255, 255, 255, 0.25) inset;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 90vw;
  transition: background 0.3s ease;
}

.pencil {
  display: block;
  width: 10em;
  height: 10em;
  filter: drop-shadow(0 0.5em 1.5em rgba(200, 80, 20, 0.5));
}

.pencil__body1,
.pencil__body2,
.pencil__body3,
.pencil__eraser,
.pencil__eraser-skew,
.pencil__point,
.pencil__rotate,
.pencil__stroke {
  animation-duration: 3s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.pencil__body1,
.pencil__body2,
.pencil__body3 {
  transform: rotate(-90deg);
}
.pencil__body1 {
  animation-name: pencilBody1;
}
.pencil__body2 {
  animation-name: pencilBody2;
}
.pencil__body3 {
  animation-name: pencilBody3;
}
.pencil__eraser {
  animation-name: pencilEraser;
  transform: rotate(-90deg) translate(49px, 0);
}
.pencil__eraser-skew {
  animation-name: pencilEraserSkew;
  animation-timing-function: ease-in-out;
}
.pencil__point {
  animation-name: pencilPoint;
  transform: rotate(-90deg) translate(49px, -30px);
}
.pencil__rotate {
  animation-name: pencilRotate;
}
.pencil__stroke {
  animation-name: pencilStroke;
  transform: translate(100px, 100px) rotate(-113deg);
}

@keyframes pencilBody1 {
  from, to { stroke-dashoffset: 351.86; transform: rotate(-90deg); }
  50% { stroke-dashoffset: 150.8; transform: rotate(-225deg); }
}
@keyframes pencilBody2 {
  from, to { stroke-dashoffset: 406.84; transform: rotate(-90deg); }
  50% { stroke-dashoffset: 174.36; transform: rotate(-225deg); }
}
@keyframes pencilBody3 {
  from, to { stroke-dashoffset: 296.88; transform: rotate(-90deg); }
  50% { stroke-dashoffset: 127.23; transform: rotate(-225deg); }
}
@keyframes pencilEraser {
  from, to { transform: rotate(-45deg) translate(49px, 0); }
  50% { transform: rotate(0deg) translate(49px, 0); }
}
@keyframes pencilEraserSkew {
  from, 32.5%, 67.5%, to { transform: skewX(0); }
  35%, 65% { transform: skewX(-4deg); }
  37.5%, 62.5% { transform: skewX(8deg); }
  40%, 45%, 50%, 55%, 60% { transform: skewX(-15deg); }
  42.5%, 47.5%, 52.5%, 57.5% { transform: skewX(15deg); }
}
@keyframes pencilPoint {
  from, to { transform: rotate(-90deg) translate(49px, -30px); }
  50% { transform: rotate(-225deg) translate(49px, -30px); }
}
@keyframes pencilRotate {
  from { transform: translate(100px, 100px) rotate(0); }
  to { transform: translate(100px, 100px) rotate(720deg); }
}
@keyframes pencilStroke {
  from { stroke-dashoffset: 439.82; transform: translate(100px, 100px) rotate(-113deg); }
  50% { stroke-dashoffset: 164.93; transform: translate(100px, 100px) rotate(-113deg); }
  75%, to { stroke-dashoffset: 439.82; transform: translate(100px, 100px) rotate(112deg); }
}

.slow-message {
  display: none;
  color: #ffe6d0;
  font-family: sans-serif;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  font-weight: 500;
  text-align: center;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
  padding: 0.8rem 1.8rem;
  border-radius: 40px;
  border: 1px solid rgba(255, 180, 80, 0.3);
  max-width: 90%;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

@media (max-width: 480px) {
  .loader-glass-panel {
    padding: 1.5rem;
  }
  .pencil {
    width: 8em;
    height: 8em;
  }
  .slow-message {
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
  }
}

/* ─── NOTIFICATION DROPDOWN (Header Bell) – Glassmorphism ─── */
.notification-dropdown {
  position: relative;
  display: inline-block;
  margin-right: 10px;
}
.notification-checkbox {
  display: none !important;
}
.notification-label {
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  padding: 5px 8px;
}
.notification-label i {
  font-size: 1.6rem;
  color: #ff8c00;
  transition: transform 0.3s ease;
}
.notification-label i:hover {
  transform: scale(1.1);
}
.badge-notification {
  position: absolute;
  top: -4px;
  right: -2px;
  background: #e74c3c;
  color: white;
  border-radius: 50%;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: bold;
  min-width: 20px;
  text-align: center;
  border: 2px solid rgba(0,0,0,0.5);
}

.notification-dropdown-content {
  position: absolute;
  top: 55px;
  width: 450px;
  max-width: 90vw;
  max-height: 420px;
  overflow-y: auto;
  background: rgba(197, 196, 196, 0.95);
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 30px;
  padding: 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(-10px) scale(0.95);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  left: 50%;
  transform: translateX(-50%) translateY(-10px) scale(0.95);
}
.notification-checkbox:checked ~ .notification-dropdown-content {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
}

.dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  color: #222;
  font-weight: bold;
  font-size: 1.1rem;
}
.mark-all-read {
  background: rgba(255, 140, 0, 0.2);
  border: none;
  color: #ff8c00;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.3s;
}
.mark-all-read:hover {
  background: rgba(255, 140, 0, 0.4);
}

.notification-dropdown-content .notification-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}
.notification-dropdown-content .notification-item {
  display: flex;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 8px;
  transition: background 0.2s;
  color: #222;
  align-items: flex-start;
  cursor: pointer;
}
.notification-dropdown-content .notification-item:hover {
  background: rgba(255, 255, 255, 0.25);
}
.notification-dropdown-content .notification-item.read {
  opacity: 0.6;
}
.notification-dropdown-content .notification-item .icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}
.notification-dropdown-content .notification-text {
  flex: 1;
}
.notification-dropdown-content .notification-text strong {
  display: block;
  color: #111;
  font-size: 0.95rem;
}
.notification-dropdown-content .notification-text p {
  margin: 4px 0;
  font-size: 0.9rem;
  color: #333;
}
.notification-dropdown-content .notification-text small {
  font-size: 0.75rem;
  color: #666;
}
.no-notifications {
  text-align: center;
  color: #555;
  padding: 20px 0;
}

/* ─── MOBILE HEADER – Menu left, Logo center, Bell + Profile right ─── */
@media (max-width: 1299px) {
  .header {
    display: flex;
    align-items: center;
    justify-content: flex-start !important;
    padding: 0 12px !important;
    position: relative !important;
    min-height: 70px !important;
  }

  .menu-toggle {
    order: -1 !important;
    margin-right: auto !important;
    margin-left: 0 !important;
    flex: 0 0 auto !important;
    z-index: 10 !important;
  }
  .menu-toggle span {
    width: 22px !important;
    height: 2.5px !important;
    margin: 3px 0 !important;
  }

  .logo-container {
    flex: 0 0 auto !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    pointer-events: auto !important;
    margin: 0 !important;
  }
  .logo {
    width: auto !important;
    height: auto !important;
    display: inline-block !important;
  }
  .logo img {
    width: 80px !important;
    height: auto !important;
    max-height: 55px !important;
    object-fit: contain !important;
  }

  .notification-dropdown {
    order: 2 !important;
    margin-left: auto !important;
    margin-right: 2px !important;
    flex: 0 0 auto !important;
  }
  .user-profile {
    order: 3 !important;
    margin-left: 0 !important;
    flex: 0 0 auto !important;
  }

  .profile-pic {
    width: 32px !important;
    height: 32px !important;
  }
  .profile-label::after {
    font-size: 0.7rem;
  }

  .notification-label i {
    font-size: 1.3rem !important;
  }
  .notification-label {
    padding: 4px 4px !important;
  }

  .main-menu {
    display: none;
  }
  .main-menu.active {
    display: flex;
  }
}

/* ─── MOBILE DROPDOWN ─── */
@media (max-width: 768px) {
  .notification-dropdown-content {
    position: fixed !important;
    top: 70px !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    max-width: none !important;
    border-radius: 20px !important;
    max-height: 70vh !important;
    transform: none !important;
    margin: 0 !important;
  }
  
  .notification-checkbox:checked ~ .notification-dropdown-content {
    transform: none !important;
  }

  .notification-label i {
    font-size: 1.2rem !important;
  }
  .profile-pic {
    width: 28px !important;
    height: 28px !important;
  }
  .notification-dropdown {
    margin-right: 2px !important;
  }
  .logo img {
    width: 70px !important;
    height: auto !important;
    max-height: 45px !important;
  }
  .menu-toggle span {
    width: 20px !important;
    height: 2px !important;
    margin: 3px 0 !important;
  }
}

/* ─── TEACHER DRAWER ─── */
.teacher-drawer {
  position: fixed;
  right: 0;
  top: 70%;
  transform: translateY(-50%);
  z-index: 2000;
  display: flex;
  align-items: stretch;
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  transform: translateX(calc(100% - 48px));
}
.teacher-drawer.open {
  transform: translateX(0);
}
.drawer-handle {
  width: 48px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-right: none;
  border-radius: 30px 0 0 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: -2px 4px 12px rgba(0, 0, 0, 0.2);
}
.drawer-handle i {
  font-size: 28px;
  color: #ff8c00;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.handle-text {
  font-size: 12px;
  font-weight: bold;
  color: white;
  text-align: center;
  line-height: 1.2;
}
.drawer-handle:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scaleX(1.05);
}
.drawer-content {
  width: 260px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-right: none;
  border-radius: 30px 0 0 30px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
}
.drawer-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 18px;
  font-weight: bold;
  color: #ff8c00;
}
.drawer-header i {
  font-size: 24px;
}
.drawer-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 40px;
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.drawer-item i {
  width: 28px;
  font-size: 20px;
  text-align: center;
  color: #ff8c00;
}
.drawer-item:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 140, 0, 0.5);
  transform: translateX(-5px);
}
@media (max-width: 768px) {
  .teacher-drawer {
    transform: translateX(calc(100% - 44px));
  }
  .drawer-handle {
    width: 44px;
  }
  .drawer-content {
    width: 220px;
    padding: 16px 12px;
  }
  .drawer-item {
    padding: 10px 14px;
    font-size: 14px;
  }
}
/* ─── NOTIFICATION DROPDOWN (Header Bell) – Glassmorphism ─── */
.notification-dropdown {
  position: relative;
  display: inline-block;
  margin-right: 10px;
}
.notification-checkbox {
  display: none !important;
}
.notification-label {
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  padding: 5px 8px;
}
.notification-label i {
  font-size: 1.6rem;
  color: #ff8c00;
  transition: transform 0.3s ease;
}
.notification-label i:hover {
  transform: scale(1.1);
}
.badge-notification {
  position: absolute;
  top: -4px;
  right: -2px;
  background: #e74c3c;
  color: white;
  border-radius: 50%;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: bold;
  min-width: 20px;
  text-align: center;
  border: 2px solid rgba(0,0,0,0.5);
}

.notification-dropdown-content {
  position: absolute;
  top: 60px;
  width: 450px;
  max-width: 90vw;
  max-height: 420px;
  overflow-y: auto;
  background: rgba(197, 196, 196, 0.95);
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 30px;
  padding: 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(-10px) scale(0.95);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  left: 50%;
  transform: translateX(-50%) translateY(-10px) scale(0.95);
}
.notification-checkbox:checked ~ .notification-dropdown-content {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
}

.dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  color: #222;
  font-weight: bold;
  font-size: 1.1rem;
}
.mark-all-read {
  background: rgba(255, 140, 0, 0.2);
  border: none;
  color: #ff8c00;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.3s;
}
.mark-all-read:hover {
  background: rgba(255, 140, 0, 0.4);
}

.notification-dropdown-content .notification-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}
.notification-dropdown-content .notification-item {
  display: flex;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 8px;
  transition: background 0.2s;
  color: #222;
  align-items: flex-start;
  cursor: pointer;
}
.notification-dropdown-content .notification-item:hover {
  background: rgba(255, 255, 255, 0.25);
}
.notification-dropdown-content .notification-item.read {
  opacity: 0.6;
}
.notification-dropdown-content .notification-item .icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}
.notification-dropdown-content .notification-text {
  flex: 1;
}
.notification-dropdown-content .notification-text strong {
  display: block;
  color: #111;
  font-size: 0.95rem;
}
.notification-dropdown-content .notification-text p {
  margin: 4px 0;
  font-size: 0.9rem;
  color: #333;
}
.notification-dropdown-content .notification-text small {
  font-size: 0.75rem;
  color: #666;
}
.no-notifications {
  text-align: center;
  color: #555;
  padding: 20px 0;
}

/* ─── MOBILE HEADER FIXES ─── */
@media (max-width: 1299px) {
  .header {
    display: flex;
    align-items: center;
    justify-content: flex-start !important;
    padding: 0 12px !important;
    position: relative !important;
    min-height: 70px !important;
  }

  .menu-toggle {
    order: -1 !important;
    margin-right: auto !important;
    margin-left: 0 !important;
    flex: 0 0 auto !important;
    z-index: 10 !important;
  }
  .menu-toggle span {
    width: 22px !important;
    height: 2.5px !important;
    margin: 3px 0 !important;
  }

  .logo-container {
    flex: 0 0 auto !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    pointer-events: auto !important;
    margin: 0 !important;
  }
  .logo {
    width: auto !important;
    height: auto !important;
    display: inline-block !important;
  }
  .logo img {
    width: 80px !important;
    height: auto !important;
    max-height: 55px !important;
    object-fit: contain !important;
  }

  .notification-dropdown {
    order: 2 !important;
    margin-left: auto !important;
    margin-right: 2px !important;
    flex: 0 0 auto !important;
  }
  .user-profile {
    order: 3 !important;
    margin-left: 0 !important;
    flex: 0 0 auto !important;
  }

  .profile-pic {
    width: 32px !important;
    height: 32px !important;
  }
  .profile-label::after {
    font-size: 0.7rem;
  }

  .notification-label i {
    font-size: 1.3rem !important;
  }
  .notification-label {
    padding: 4px 4px !important;
  }

  .main-menu {
    display: none;
  }
  .main-menu.active {
    display: flex;
  }
}

/* ─── MOBILE DROPDOWN ─── */
@media (max-width: 768px) {
  .notification-dropdown-content {
    position: fixed !important;
    top: 70px !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    max-width: none !important;
    border-radius: 20px !important;
    max-height: 70vh !important;
    transform: none !important;
    margin: 0 !important;
  }
  
  .notification-checkbox:checked ~ .notification-dropdown-content {
    transform: none !important;
  }

  .notification-label i {
    font-size: 1.2rem !important;
  }
  .profile-pic {
    width: 28px !important;
    height: 28px !important;
  }
  .notification-dropdown {
    margin-right: 2px !important;
  }
  .logo img {
    width: 70px !important;
    height: auto !important;
    max-height: 45px !important;
  }
  .menu-toggle span {
    width: 20px !important;
    height: 2px !important;
    margin: 3px 0 !important;
  }
}
/* ===== RESPONSIVE COVERFLOW – LARGER CARDS (2x) + TIGHTER TOP MARGIN ===== */

@media (max-width: 1024px) {
  .coverflow-container {
    perspective: 1000px !important;
  }
  .coverflow {
    height: 400px !important;
    margin-top: 160px !important;  /* was 240px */
  }
  .coverflow-item {
    width: 360px !important;
    height: 360px !important;
  }
  .info {
    top: 100px !important;         /* was 140px */
  }
  .info h2 {
    font-size: 32px !important;
  }
  .info p {
    font-size: 17px !important;
  }
  .nav-button {
    width: 50px !important;
    height: 50px !important;
    font-size: 22px !important;
  }
  .nav-button.prev { left: 15px !important; }
  .nav-button.next { right: 15px !important; }
}

@media (max-width: 768px) {
  .coverflow-container {
    perspective: 750px !important;
  }
  .coverflow {
    height: 320px !important;
    margin-top: 120px !important;  /* was 180px */
  }
  .coverflow-item {
    width: 240px !important;
    height: 240px !important;
  }
  .info {
    top: 80px !important;          /* was 110px */
  }
  .info h2 {
    font-size: 26px !important;
  }
  .info p {
    font-size: 15px !important;
  }
  .nav-button {
    width: 42px !important;
    height: 42px !important;
    font-size: 18px !important;
  }
  .nav-button.prev { left: 10px !important; }
  .nav-button.next { right: 10px !important; }
  .dots-container {
    bottom: 30px !important;
    gap: 8px !important;
  }
  .dot {
    width: 8px !important;
    height: 8px !important;
  }
  .play-pause-button {
    width: 38px !important;
    height: 38px !important;
    font-size: 15px !important;
    bottom: 65px !important;
  }
}

@media (max-width: 480px) {
  .coverflow-container {
    perspective: 550px !important;
  }
  .coverflow {
    height: 240px !important;
    margin-top: 80px !important;   /* was 130px */
  }
  .coverflow-item {
    width: 160px !important;
    height: 160px !important;
  }
  .info {
    top: 60px !important;          /* was 80px */
  }
  .info h2 {
    font-size: 20px !important;
  }
  .info p {
    font-size: 12px !important;
  }
  .nav-button {
    width: 32px !important;
    height: 32px !important;
    font-size: 14px !important;
  }
  .nav-button.prev { left: 6px !important; }
  .nav-button.next { right: 6px !important; }
  .dots-container {
    bottom: 18px !important;
    gap: 6px !important;
  }
  .dot {
    width: 6px !important;
    height: 6px !important;
  }
  .play-pause-button {
    width: 28px !important;
    height: 28px !important;
    font-size: 12px !important;
    bottom: 50px !important;
  }
}

@media (max-width: 360px) {
  .coverflow-container {
    perspective: 450px !important;
  }
  .coverflow {
    height: 180px !important;
    margin-top: 60px !important;   /* was 100px */
  }
  .coverflow-item {
    width: 120px !important;
    height: 120px !important;
  }
  .info {
    top: 40px !important;          /* was 60px */
  }
  .info h2 {
    font-size: 18px !important;
  }
  .info p {
    font-size: 11px !important;
  }
  .nav-button {
    width: 28px !important;
    height: 28px !important;
    font-size: 12px !important;
  }
}
/* ===== ANALYTICS SNAPSHOT – Glassmorphism ===== */
.analytics-snapshot {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 1.5rem;
  padding: 1rem 1.2rem;
  margin: 1.5rem 0 1.5rem;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  position: relative;
}
.snapshot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.snapshot-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.snapshot-title i { color: #f97316; }
.snapshot-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f97316;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.2s;
}
.snapshot-link:hover { color: #d45a0a; }

/* Scrollable container with arrows */
.snapshot-scroll-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.snapshot-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.3rem;
  scroll-behavior: smooth;
  flex: 1;
}
.snapshot-scroll::-webkit-scrollbar { display: none; }
.snapshot-items {
  display: flex;
  gap: 1.5rem;
  min-width: max-content;
}
.snapshot-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(255, 255, 255, 0.5);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
}
.snapshot-icon {
  font-size: 1.2rem;
  color: #f97316;
  width: 32px;
  text-align: center;
}
.snapshot-stat {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.snapshot-number {
  font-weight: 800;
  font-size: 1.2rem;
  color: #0f172a;
}
.snapshot-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Scroll arrow buttons */
.snapshot-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #f97316;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}
.snapshot-arrow:hover {
  background: #f97316;
  color: white;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}
.snapshot-arrow-left { left: -6px; }
.snapshot-arrow-right { right: -6px; }

/* Show arrows on hover of the snapshot */
.analytics-snapshot:hover .snapshot-arrow {
  opacity: 1;
  pointer-events: auto;
}

/* On mobile, always show arrows (but smaller) */
@media (max-width: 576px) {
  .snapshot-arrow {
    opacity: 1 !important;
    pointer-events: auto !important;
    width: 26px;
    height: 26px;
    font-size: 0.8rem;
  }
  .snapshot-arrow-left { left: -2px; }
  .snapshot-arrow-right { right: -2px; }
  .analytics-snapshot { padding: 0.7rem; margin: 1rem 0; }
  .snapshot-title { font-size: 0.95rem; }
  .snapshot-link { font-size: 0.75rem; }
  .snapshot-item { padding: 0.3rem 0.6rem; gap: 0.4rem; }
  .snapshot-number { font-size: 0.95rem; }
  .snapshot-label { font-size: 0.55rem; }
  .snapshot-icon { font-size: 1rem; width: 26px; }
}
@media (max-width: 375px) {
  .snapshot-item { padding: 0.2rem 0.4rem; }
  .snapshot-number { font-size: 0.85rem; }
  .snapshot-label { font-size: 0.5rem; }
  .snapshot-arrow { width: 22px; height: 22px; font-size: 0.7rem; }
}