/* Learning Center Specific Styles */

/* Header Styles */
.learning-header {
    background: linear-gradient(135deg, #0a192f 0%, #0d47a1 100%);
    color: white;
    padding: 120px 0 60px;
    margin-bottom: 30px;
}

.learning-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.learning-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Learning Hub Layout */
.learning-hub {
    padding-bottom: 60px;
}

/* Search Bar */
.search-container {
    max-width: 800px;
    margin: 0 auto 30px;
}

/* Filter Sidebar */
.filter-sidebar {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 80px;
}

.filter-sidebar h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #0a192f;
    font-weight: 600;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #495057;
}

/* Section Headings */
.section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #0a192f;
}

/* Section spacing adjustment */
.section {
    margin-bottom: 2rem; /* Reduced from default value to close vertical gaps */
}

.video-tutorials, .blog-articles, .interactive-guides {
    margin-bottom: 2.5rem; /* Reduced vertical spacing between content sections */
}

/* View All Links and Buttons Fixes */
.view-all {
    font-size: 0.9rem;
    color: #0d6efd;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
    white-space: nowrap; /* Prevent wrapping */
}

.view-all:hover {
    color: #0a58ca;
    text-decoration: none; /* Ensure no underline appears on hover */
}

.text-center .btn-outline-primary {
    padding: 8px 24px;
    font-weight: 500;
    margin: 0 auto; /* Center the button properly */
    display: inline-block; /* Ensure proper button display */
}

/* Fix for duplicate icon issue */
.view-all i {
    margin-left: 4px; /* Add some spacing before the icon */
    font-size: 0.8em; /* Make the icon slightly smaller */
}

.view-all:hover i {
    transform: translateX(3px);
}

/* Video Cards */
.video-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    height: 100%;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
}

.video-thumbnail img {
    transition: transform 0.4s;
    width: 100%;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: rgba(13, 110, 253, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
    cursor: pointer;
}

.play-button i {
    font-size: 20px;
}

.video-card:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: #0d6efd;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.video-info {
    padding: 15px;
}

.video-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #0a192f;
}

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

.tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 5px;
}

.tag.eu-ai {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.tag.gdpr {
    background-color: rgba(102, 16, 242, 0.1);
    color: #6610f2;
}

.tag.nist {
    background-color: rgba(253, 126, 20, 0.1);
    color: #fd7e14;
}

.tag.iso {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.tag.beginner {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.tag.intermediate {
    background-color: rgba(253, 126, 20, 0.1);
    color: #fd7e14;
}

.tag.advanced {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.tag.platform {
    background-color: rgba(75, 85, 99, 0.1);
    color: #4b5563;
}

.video-info p {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* Blog Cards */
.blog-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.blog-image {
    overflow: hidden;
}

.blog-image img {
    transition: transform 0.4s;
    width: 100%;
}

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

.blog-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.date {
    font-size: 0.85rem;
    color: #6c757d;
}

.blog-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #0a192f;
}

.blog-content p {
    font-size: 0.95rem;
    color: #495057;
    margin-bottom: 15px;
    flex-grow: 1;
}

.read-more {
    color: #0d6efd;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
    margin-top: auto;
}

.read-more:hover {
    color: #0a58ca;
}

.read-more i {
    transition: transform 0.2s;
    font-size: 0.85rem;
}

.read-more:hover i {
    transform: translateX(3px);
}

.blog-card .read-more[href^="/#"] {
    font-weight: 600;
    color: #0a58ca;
}

.blog-card .read-more[href^="/#"]:hover {
    color: #084298;
}

.blog-card:has(.tag.platform) {
    border-left: 3px solid #0d6efd;
    animation: pulse-new 2s infinite;
}

/* Add a pulsing effect to new content */
@keyframes pulse-new {
    0% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(13, 110, 253, 0); }
    100% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0); }
}

/* Interactive Guides */
.guide-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    height: 100%;
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.guide-preview {
    position: relative;
}

.guide-preview img {
    width: 100%;
}

.interactive-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(13, 110, 253, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.guide-content {
    padding: 20px;
}

.guide-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #0a192f;
}

.guide-content p {
    font-size: 0.95rem;
    color: #495057;
    margin-bottom: 15px;
}

.compliance-tool-preview {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    margin-top: 40px;
}

.compliance-tool-preview h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    color: #0a192f;
}

.tool-visualization {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Case Study Cards */
.case-study-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.case-image {
    position: relative;
    overflow: hidden;
}

.case-image img {
    transition: transform 0.4s;
    width: 100%;
}

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

.industry-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(13, 110, 253, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 500;
}

.case-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.case-meta {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

.case-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #0a192f;
}

.case-content p {
    font-size: 0.95rem;
    color: #495057;
    margin-bottom: 15px;
}

.case-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    margin-top: auto;
}

.stat-item {
    background-color: #f8f9fa;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
}

.stat-label {
    color: #6c757d;
    font-weight: 500;
    margin-right: 5px;
}

.stat-value {
    color: #0a192f;
    font-weight: 600;
}

/* Tag for MDR, HIPAA, FCA, CCPA */
.tag:not(.eu-ai):not(.gdpr):not(.nist):not(.iso):not(.beginner):not(.intermediate):not(.advanced):not(.platform) {
    background-color: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 5px;
}

/* Section anchor link adjustments for smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Adjust based on your fixed navbar height */
}

#case-studies:target {
    animation: highlight 2s;
}

@keyframes highlight {
    0% { background-color: rgba(13, 110, 253, 0.1); }
    100% { background-color: transparent; }
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #0a192f 0%, #0d47a1 100%);
    color: white;
    padding: 60px 0;
}

.newsletter-section h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.newsletter-section p {
    font-size: 1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.newsletter-input {
    max-width: 500px;
    margin: 0 auto 15px;
}

/* Ready to Start Section */
.ready-to-start-section {
    background-color: #f1f5f9;
    border-top: 1px solid #e5e7eb;
    padding: 60px 0;
    margin-top: 40px;
}

.ready-to-start-section h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #0a192f;
}

.ready-to-start-section p {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 20px;
}

/* Center the "View All" button */
.text-center .btn-outline-primary {
    padding: 8px 24px;
    font-weight: 500;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .filter-sidebar {
        position: static;
        margin-bottom: 30px;
    }
    
    .learning-header {
        padding: 100px 0 50px;
    }
    
    .learning-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 767px) {
    .learning-header {
        padding: 80px 0 40px;
    }
    
    .learning-header h1 {
        font-size: 2rem;
    }
    
    .blog-card {
        margin-bottom: 20px;
    }
}

/* Accessibility Enhancements */
.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    border-color: #86b7fe;
}

.btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.video-card:focus-within,
.blog-card:focus-within,
.guide-card:focus-within {
    outline: 2px solid #0d6efd;
}

.play-button:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
    outline: 1px solid white;
}

/* Skip navigation link for screen readers */
.skip-to-content {
    position: absolute;
    left: -9999px;
    top: 1em;
    z-index: 999;
    background: #0d6efd;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
}

.skip-to-content:focus {
    left: 1em;
}
