/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
}

/* Lightning effects */
.lightning-container {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.lightning {
    position: absolute;
    width: 2px;
    height: 0%;
    opacity: 0;
    filter: blur(1px);
    animation: lightningFlash 2s linear infinite;
}

.lightning:before,
.lightning:after {
    content: '';
    position: absolute;
    height: 20px;
    width: 100%;
    transform-origin: top;
}

.lightning:before {
    transform: rotate(-45deg);
}

.lightning:after {
    transform: rotate(45deg);
}

/* Các tia sét với màu sắc và vị trí khác nhau */
.lightning:nth-child(1) {
    left: 20%;
    height: 65%;
    top: 15%;
    animation-delay: 0.2s;
    background: #00ffff;
    box-shadow: 
        0 0 10px #fff,
        0 0 20px #fff,
        0 0 30px #00ffff,
        0 0 40px #00ffff,
        0 0 70px #00ffff;
}

.lightning:nth-child(2) {
    left: 35%;
    height: 55%;
    top: 25%;
    animation-delay: 0.8s;
    background: #ff00ff;
    box-shadow: 
        0 0 10px #fff,
        0 0 20px #fff,
        0 0 30px #ff00ff,
        0 0 40px #ff00ff,
        0 0 70px #ff00ff;
}

.lightning:nth-child(3) {
    left: 50%;
    height: 70%;
    top: 10%;
    animation-delay: 1.3s;
    background: #ffff00;
    box-shadow: 
        0 0 10px #fff,
        0 0 20px #fff,
        0 0 30px #ffff00,
        0 0 40px #ffff00,
        0 0 70px #ffff00;
}

.lightning:nth-child(4) {
    left: 65%;
    height: 60%;
    top: 20%;
    animation-delay: 0.5s;
    background: #00ff00;
    box-shadow: 
        0 0 10px #fff,
        0 0 20px #fff,
        0 0 30px #00ff00,
        0 0 40px #00ff00,
        0 0 70px #00ff00;
}

.lightning:nth-child(5) {
    left: 80%;
    height: 50%;
    top: 30%;
    animation-delay: 1.7s;
    background: #ff0000;
    box-shadow: 
        0 0 10px #fff,
        0 0 20px #fff,
        0 0 30px #ff0000,
        0 0 40px #ff0000,
        0 0 70px #ff0000;
}

.lightning:nth-child(6) {
    left: 25%;
    height: 45%;
    top: 35%;
    animation-delay: 1.1s;
    background: #0000ff;
    box-shadow: 
        0 0 10px #fff,
        0 0 20px #fff,
        0 0 30px #0000ff,
        0 0 40px #0000ff,
        0 0 70px #0000ff;
}

.lightning:nth-child(7) {
    left: 45%;
    height: 58%;
    top: 22%;
    animation-delay: 0.3s;
    background: #ff8800;
    box-shadow: 
        0 0 10px #fff,
        0 0 20px #fff,
        0 0 30px #ff8800,
        0 0 40px #ff8800,
        0 0 70px #ff8800;
}

.lightning:nth-child(8) {
    left: 70%;
    height: 63%;
    top: 17%;
    animation-delay: 1.5s;
    background: #00ff88;
    box-shadow: 
        0 0 10px #fff,
        0 0 20px #fff,
        0 0 30px #00ff88,
        0 0 40px #00ff88,
        0 0 70px #00ff88;
}

.lightning:nth-child(9) {
    left: 15%;
    height: 52%;
    top: 28%;
    animation-delay: 0.9s;
    background: #8800ff;
    box-shadow: 
        0 0 10px #fff,
        0 0 20px #fff,
        0 0 30px #8800ff,
        0 0 40px #8800ff,
        0 0 70px #8800ff;
}

.lightning:nth-child(10) {
    left: 85%;
    height: 48%;
    top: 32%;
    animation-delay: 0.6s;
    background: #ff0088;
    box-shadow: 
        0 0 10px #fff,
        0 0 20px #fff,
        0 0 30px #ff0088,
        0 0 40px #ff0088,
        0 0 70px #ff0088;
}

@keyframes lightningFlash {
    0%, 100% {
        opacity: 0;
        transform: scaleY(0);
    }
    10% {
        opacity: 0;
    }
    10.1% {
        opacity: 1;
        transform: scaleY(1);
    }
    10.2% {
        opacity: 0.3;
    }
    10.3% {
        opacity: 1;
    }
    10.4% {
        opacity: 0.2;
    }
    10.5% {
        opacity: 1;
    }
    10.6%, 100% {
        opacity: 0;
    }
}

/* Electric borders */
.electric-border {
    position: absolute;
    border: 2px solid;
    border-image: linear-gradient(45deg, #00ffff, #ff00ff, #ffff00, #ff0080) 1;
    animation: electricBorder 1s linear infinite;
    opacity: 0.7;
}

.electric-border.top {
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
}

.electric-border.bottom {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
}

.electric-border.left {
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
}

.electric-border.right {
    right: 0;
    top: 0;
    width: 2px;
    height: 100%;
}

@keyframes electricBorder {
    0% { border-color: #00ffff; }
    25% { border-color: #ff00ff; }
    50% { border-color: #ffff00; }
    75% { border-color: #ff0080; }
    100% { border-color: #00ffff; }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    color: #fff;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 
        -2px -2px 0 #000,  
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000,
        0 0 20px rgba(192, 192, 192, 0.8),
        0 0 30px rgba(192, 192, 192, 0.6),
        0 0 40px rgba(192, 192, 192, 0.4);
    animation: silverGlow 2s ease-in-out infinite alternate;
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 
        -1px -1px 0 #000,  
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        0 0 15px rgba(192, 192, 192, 0.7),
        0 0 25px rgba(192, 192, 192, 0.5);
    animation: silverGlow 2s ease-in-out infinite alternate;
    animation-delay: 0.5s;
}

@keyframes silverGlow {
    from {
        filter: drop-shadow(0 0 5px rgba(192, 192, 192, 0.8));
    }
    to {
        filter: drop-shadow(0 0 15px rgba(192, 192, 192, 1));
    }
}

/* Thunder Flash Effect */
.flash-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, transparent 100%);
    opacity: 0;
    z-index: 1;
    animation: thunderFlash 2s linear infinite;
}

@keyframes thunderFlash {
    0%, 100% {
        opacity: 0;
    }
    10% {
        opacity: 0;
    }
    10.1% {
        opacity: 0.9;
    }
    10.2% {
        opacity: 0.2;
    }
    10.3% {
        opacity: 0.8;
    }
    10.4% {
        opacity: 0.3;
    }
    10.5% {
        opacity: 0.9;
    }
    10.6%, 100% {
        opacity: 0;
    }
}

/* Running SVIP Animation */
.running-svip {
    position: absolute;
    width: 100%;
    height: 300px;
    background: url('../img/level/svip-10.gif') no-repeat center center;
    background-size: cover;
    z-index: 1;
    top: 0;
    animation: runSvip 24s linear infinite;
    opacity: 0.8;
}

@keyframes runSvip {
    0% {
        left: -100%;
        transform: scaleX(-1);
    }
    40% {
        left: 100%;
        transform: scaleX(-1);
    }
    40.1% {
        left: 100%;
        transform: scaleX(1);
    }
    45% {
        left: 100%;
        transform: scaleX(1);
    }
    85% {
        left: -100%;
        transform: scaleX(1);
    }
    85.1% {
        left: -100%;
        transform: scaleX(-1);
    }
    90% {
        left: -100%;
        transform: scaleX(-1);
    }
    100% {
        left: -100%;
        transform: scaleX(-1);
    }
}

/* Content Layout */
.content-layout {
    margin: 20px 0;
}

/* Search and Filters */
.search-and-filters {
    max-width: 600px;
    margin: 0 auto 30px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.search-box {
    width: 400px;
    display: flex;
    gap: 10px;
    margin: 0 auto;
    justify-content: center;
}

.search-box input {
    width: 300px;
    padding: 10px 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 0.95rem;
    color: #fff;
    outline: none;
    background: rgba(0, 0, 0, 0.3);
    text-shadow: 
        -1px -1px 0 #000,  
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 
        -1px -1px 0 #000,  
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000;
}

.search-box button {
    background: linear-gradient(45deg, #0091ff, #0066cc);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-box button:hover {
    background: linear-gradient(45deg, #0080ff, #0052cc);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 145, 255, 0.3);
}

.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}

.filter-group {
    min-width: 180px;
}

.filter-group label {
    display: block;
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 5px;
    font-weight: 500;
    text-shadow: 
        -1px -1px 0 #000,  
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000,
        0 0 8px rgba(255, 255, 255, 0.6);
}

.filter-select {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
    text-shadow: 
        -1px -1px 0 #000,  
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000;
}

.filter-select option {
    background: #333;
    color: #fff;
}

.filter-select:focus {
    border-color: #0091ff;
    box-shadow: 0 0 0 2px rgba(0, 145, 255, 0.1);
}

/* Main Content */
.main-content {
    flex: 1;
    min-width: 0;
}

/* Documents Section */
.documents {
    padding: 20px;
}

/* Documents Grid */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.document-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.document-card:hover {
    transform: translateY(-5px);
}

.document-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.document-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.document-card:hover .document-image img {
    transform: scale(1.1);
}

.document-content {
    padding: 15px;
}

.document-category {
    color: #0091ff;
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: inline-block;
    text-shadow: 
        -1px -1px 0 #000,  
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000,
        0 0 15px #0091ff;
}

.document-title {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.4;
    text-shadow: 
        -1px -1px 0 #000,  
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000,
        0 0 10px rgba(255, 255, 255, 0.7);
}

.document-info {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    text-shadow: 
        -1px -1px 0 #000,  
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000;
}

.document-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.document-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    text-shadow: 
        -1px -1px 0 #000,  
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000;
}

.document-meta i {
    color: #0091ff;
    text-shadow: 
        -1px -1px 0 #000,  
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000,
        0 0 15px #0091ff;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    color: #fff;
    text-shadow: 
        -1px -1px 0 #000,  
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000,
        0 0 8px rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-btn:hover:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.2);
}

.page-btn.active {
    background: #0091ff;
    color: #fff;
    text-shadow: 
        -1px -1px 0 #000,  
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000,
        0 0 15px #0091ff;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-dots {
    color: #fff;
    text-shadow: 
        -1px -1px 0 #000,  
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000,
        0 0 8px rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .documents-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 992px) {
    .documents-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .search-box {
        width: 100%;
        max-width: 400px;
    }

    .search-box input {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 300px;
    }
    
    .hero-content h1 {
        font-size: 2.1rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .search-and-filters {
        flex-direction: column;
        gap: 15px;
    }

    .search-box {
        width: 100%;
    }

    .filter-group {
        width: 100%;
    }

    .running-svip {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .documents-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .hero {
        padding: 20px 0;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .document-card {
        margin: 0 auto;
        max-width: 320px;
    }
}

/* Subjects Section */
.subjects-section {
    padding: 5px 0;
    min-height: 80vh;
}

.subjects-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.subjects-section .search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    justify-content: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.subjects-section .search-box input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #333;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.subjects-section .search-box input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.subjects-section .search-box input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.subjects-section .search-box button {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.subjects-section .search-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

subjects-grid a {
    padding: 0;
}

.subject-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 10px 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.subject-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, #ff6b6b, #4ecdc4, #45b7d1);
    background-size: 200% 100%;
    /*animation: shimmer 3s ease-in-out infinite;*/
}

@keyframes shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

.subject-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.3);
}

.subject-info {
    /*margin-bottom: 20px;*/
}

.subject-meta {
    margin-bottom: 10px;
}

.subject-code {
    display: inline-block;
    background: linear-gradient(45deg, #666, #888);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.subject-title {
    margin: 2px 0 2px 0;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
}

.subject-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.subject-title a:hover {
    color: #00d4ff;
}

.subject-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.view-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
    color: white;
}

/* Responsive for subjects */
@media (max-width: 768px) {
    .subjects-grid {
        grid-template-columns: 1fr;
        gap: 0px;
    }
    
    .subject-item {
        padding: 10px 20px;
    }
    
    .subjects-section .search-box {
        flex-direction: column;
        gap: 15px;
    }
    
    .subjects-section .search-box button {
        padding: 12px 20px;
    }
} 