/* ===================================
   Digital Resources Page - Modern Design
   =================================== */

/* Hero Section */
.digital-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.digital-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/it-room.jpg') center/cover;
    opacity: 0.50;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(19, 19, 20, 0.88) 0%, 
        rgba(20, 20, 20, 0.78) 100%);
    z-index: 1;
}

.digital-hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: left;
    max-width: 700px;
    margin: 3 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
    transition: all var(--transition-base);
}

.breadcrumb a:hover {
    color: var(--accent-light);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--text-white);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

/* Introduction Section */
.intro-section {
    padding: var(--spacing-lg) 0;
    background: var(--bg-white);
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.intro-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.intro-content p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-body);
}

/* Resources Section */
.resources-section {
    padding: var(--spacing-xl) 0;
    background: #2f2f33;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.section-header h2 i {
    color: var(--accent);
    margin-right: 0.75rem;
}

.section-header p {
    font-size: 1.15rem;
    color: #ffffff;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.resource-card {
    background: var(--bg-white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.resource-header {
    margin-bottom: 1.5rem;
}

.resource-icon {
    width: 70px;
    height: 70px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

.resource-header h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.resource-category {
    display: inline-block;
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent-dark);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
}

.resource-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-body);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.resource-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--accent);
    color: var(--text-dark);
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.resource-link:hover {
    background: var(--accent-light);
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

/* Journals Section */
.journals-section {
    padding: var(--spacing-xl) 0;
    background: #707073;
}

.journals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.journal-card {
    background: var(--bg-light);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.journal-card:hover {
    background: var(--bg-white);
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.journal-icon {
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 1.5rem;
    margin: 0 auto 1.25rem;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.journal-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.journal-category {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: block;
}

.journal-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-dark);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
}

.journal-link:hover {
    gap: 0.75rem;
    color: var(--accent);
}

/* E-Books Section */
.ebooks-section {
    padding: var(--spacing-xl) 0;
    background: #2f2f33;
}

.ebooks-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.ebook-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    gap: 2rem;
    align-items: start;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
}

.ebook-card:hover {
    border-color: var(--accent);
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.ebook-icon {
    width: 80px;
    height: 80px;
    background: var(--accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

.ebook-content h4 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.ebook-category {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: block;
}

.ebook-category i {
    color: var(--accent);
}

.ebook-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-body);
    margin-bottom: 1.5rem;
}

.ebook-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: var(--accent);
    color: var(--text-dark);
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
}

.ebook-link:hover {
    background: var(--accent-light);
    gap: 0.75rem;
}

/* Help Section */
.help-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-white);
}

.help-card {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    padding: 3rem;
    border-radius: var(--radius-lg);
    display: flex;
    gap: 2.5rem;
    align-items: center;
    border: 2px solid var(--accent);
}

.help-icon {
    width: 100px;
    height: 100px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 2.5rem;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}

.help-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.help-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-body);
    margin-bottom: 2rem;
}

.help-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Library Page - Clickable Resource Card */
.resource-card-clickable {
    position: relative;
    cursor: pointer;
}

.resource-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.resource-card-clickable:hover .resource-icon {
    transform: scale(1.1);
}

.explore-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-dark);
    font-weight: 600;
    margin-top: 1rem;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .resources-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .journals-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .digital-hero {
        min-height: 35vh;
        padding: 6rem 0 3rem;
    }

    .intro-content h2 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }

    .journals-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ebook-card {
        flex-direction: column;
        text-align: center;
    }

    .ebook-icon {
        margin: 0 auto;
    }

    .help-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .help-icon {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .journals-grid {
        grid-template-columns: 1fr;
    }

    .help-actions {
        flex-direction: column;
        width: 100%;
    }

    .help-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .resource-card,
    .journal-card,
    .ebook-card {
        transition: none;
    }
}
