/* Practice Page Styles */

:root {
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-hover: rgba(255, 255, 255, 0.08);
}

.practice-container {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100vh;
    padding: 80px 20px;
    box-sizing: border-box;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Back Button */
.back-btn {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 100;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--sand-gold);
    color: var(--sand-gold);
    text-decoration: none;
    font-family: 'Share Tech Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.back-btn:hover {
    background: var(--sand-gold);
    color: #000;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 1s ease-out;
}

.page-title {
    font-size: 3.5rem;
    font-family: 'Noto Serif SC', serif;
    color: #fff;
    margin: 0;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    letter-spacing: 5px;
}

.page-subtitle {
    font-family: 'Share Tech Mono', monospace;
    color: var(--sand-gold);
    font-size: 1.2rem;
    margin-top: 10px;
    opacity: 0.8;
    letter-spacing: 3px;
}

/* Glass Cards Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    width: 100%;
    max-width: 1400px;
    margin-bottom: 50px;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.glass-card:nth-child(1) {
    animation-delay: 0.2s;
}

.glass-card:nth-child(2) {
    animation-delay: 0.4s;
}

.glass-card:nth-child(3) {
    animation-delay: 0.6s;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    background: var(--card-hover);
    border-color: var(--sand-gold);
}

.card-image {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.glass-card:hover .card-image img {
    transform: scale(1.05);
}

.card-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 15px;
    border-left: 3px solid var(--sand-gold);
    padding-left: 15px;
}

.card-text {
    font-family: 'Noto Serif SC', serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--sand-gold);
}

/* =========================================
   Mobile Responsiveness (Practice Page)
   ========================================= */
@media (max-width: 768px) {
    .practice-container {
        padding: 60px 15px;
        /* Less padding */
    }

    .page-title {
        font-size: 2rem;
        /* Smaller title */
    }

    .content-grid {
        grid-template-columns: 1fr;
        /* Single column */
        gap: 30px;
    }

    .back-btn {
        top: 15px;
        left: 15px;
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .glass-card {
        padding: 20px;
    }

    .card-title {
        font-size: 1.5rem;
    }
}