/* Materials Pages Specific Styles */

.materialy-page {
    background: var(--primary-color);
}

/* Header Solid Background */
.header-solid {
    position: fixed;
    background: rgba(10, 10, 10, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-solid .nav-list a.active {
    color: rgb(255, 125, 0);
}

.header-solid .nav-list a.active::after {
    width: 100%;
    background: rgb(255, 125, 0);
}

/* Main Materials Layout */
.materials-main {
    min-height: 100vh;
    padding-top: 82px;
    background: var(--primary-color);
}

/* Materials Header */
.materials-header {
    padding: 4rem 0 3rem;
    background: linear-gradient(135deg, rgba(255, 125, 0, 0.05) 0%, transparent 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.materials-header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    text-align: center;
}

.materials-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.materials-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    font-weight: 300;
}

/* Materials Search */
.materials-search {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    color: var(--text-gray);
    pointer-events: none;
}

.materials-search-input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3.5rem;
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.materials-search-input:focus {
    outline: none;
    border-color: rgb(255, 125, 0);
    background: rgba(40, 40, 40, 0.9);
    box-shadow: 0 0 0 3px rgba(255, 125, 0, 0.1);
}

.materials-search-input::placeholder {
    color: var(--text-gray);
}

/* Materials Container */
.materials-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 3rem 6rem;
}

/* Category Filter */
.materials-categories {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.materials-category-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.materials-category-btn:hover {
    background: rgba(255, 125, 0, 0.1);
    border-color: rgb(255, 125, 0);
    color: rgb(255, 125, 0);
}

.materials-category-btn.active {
    background: rgb(255, 125, 0);
    border-color: rgb(255, 125, 0);
    color: #ffffff;
}

/* Materials List */
.materials-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Material Card */
.material-card {
    background: rgba(30, 30, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: all 0.3s ease;
}

.material-card:hover {
    background: rgba(40, 40, 40, 0.7);
    border-color: rgba(255, 125, 0, 0.3);
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.material-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 125, 0, 0.1);
    border-radius: 8px;
    color: rgb(255, 125, 0);
}

.material-info {
    flex: 1;
}

.material-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.material-card:hover .material-title {
    color: rgb(255, 125, 0);
}

.material-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.material-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.material-meta span {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.material-author {
    font-weight: 500;
    color: rgb(255, 125, 0) !important;
}

.btn-material-download {
    flex-shrink: 0;
    padding: 1rem 2rem;
    background: rgb(255, 125, 0);
    border: none;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-material-download:hover {
    background: rgb(230, 110, 0);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 125, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 968px) {
    .materials-main {
        padding-top: 80px;
    }

    .materials-header {
        padding: 3rem 0 2rem;
    }

    .materials-header-content {
        padding: 0 2rem;
    }

    .materials-title {
        font-size: 2.2rem;
    }

    .materials-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .materials-container {
        padding: 3rem 2rem 4rem;
    }

    .material-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .material-icon {
        width: 50px;
        height: 50px;
    }

    .btn-material-download {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .materials-main {
        padding-top: 66px;
    }

    .materials-header {
        padding: 2rem 0 1.5rem;
    }

    .materials-header-content {
        padding: 0 1rem;
    }

    .materials-title {
        font-size: 1.8rem;
    }

    .materials-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .materials-search-input {
        padding: 0.875rem 1.25rem 0.875rem 3rem;
        font-size: 0.9rem;
    }

    .search-icon {
        left: 1.25rem;
    }

    .materials-container {
        padding: 2rem 1rem 3rem;
    }

    .materials-categories {
        gap: 0.75rem;
    }

    .materials-category-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }

    .material-card {
        padding: 1.25rem;
        gap: 1.25rem;
    }

    .material-icon {
        width: 45px;
        height: 45px;
    }

    .material-title {
        font-size: 1.1rem;
    }

    .material-description {
        font-size: 0.9rem;
    }

    .material-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn-material-download {
        padding: 0.875rem 1.5rem;
        font-size: 0.85rem;
    }
}

