/* Rural-IT-Hub Learning Platform Styles */

/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f4f8; /* Light blue-gray background */
}

/* Hero Section */
.hero-section {
    background-image: url('images/training_banner.jpg'); /* Placeholder image for hero */
    background-size: cover;
    background-position: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Card Styles */
.card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

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

/* Button Styles */
.btn-primary {
    background-color: #3b82f6; /* Blue-600 */
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease-in-out;
}

.btn-primary:hover {
    background-color: #2563eb; /* Blue-700 */
}

.btn-secondary {
    background-color: #e2e8f0; /* Gray-200 */
    color: #334155; /* Slate-700 */
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease-in-out;
}

.btn-secondary:hover {
    background-color: #cbd5e1; /* Gray-300 */
}

/* Shopping Cart Sidebar Styles */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 600px;
    height: 100%;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 100;
}

.cart-sidebar.open {
    transform: translateX(0);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 99;
    display: none;
}

.overlay.open {
    display: block;
}

/* Category Filter Button Active State */
.category-btn.active {
    background-color: #2563eb; /* Darker blue for active state */
    color: white;
}

/* Modal Styles */
.modal {
    backdrop-filter: blur(4px);
}