/* Global body styles */
body {
    color: #ffffff;
    background-color: #1a202c;
    margin: 0;
    padding: 0;
}

.banner {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url("https://res.cloudinary.com/dk2fdiuvb/image/upload/v1743104659/projects/qe59oycxuz6mlv1xlcbg.png") no-repeat center;
    background-size: cover;
    width: 100%;
    min-height: 500px;
    padding: 2rem;
}



.banner h1 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    letter-spacing: 1px;
}

.banner p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    letter-spacing: 1px;
}

.banner h1,
.banner p {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner h1 {
    animation: fadeInDown 1s ease-out;
}

.banner p {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}








.sidebar {
    min-width: 30vh;
    height: 100vh;
    padding: 20px;
    overflow-y: auto;
    background-color: #2d3748;
    color: white;
    border: 1px solid #4a5568;
    position: sticky;
    top: 0;
}

.page-container {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
}

.sidebar-left {
    left: 0;
    border-right: 1px solid #4a5568;
}

.sidebar-right {
    right: 0;
    border-left: 1px solid #4a5568;
}

/* Sidebar headings */
.sidebar h3 {
    color: #f7fafc;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: bold;
}

/* Sidebar list */
.sidebar ul {
    list-style-type: none;
    padding-left: 0;
}

/* Sidebar list items */
.sidebar li {
    margin-bottom: 10px;
}

.sidebar a {
    color: #e2e8f0;
    text-decoration: none;
    display: block;
    padding: 8px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Category cards */
.category-card {
    display: none;
    opacity: 0;
}

.category-card:nth-child(-n+25) {
    display: block;
}

/* Hover background */
.hover-bg-orange:hover {
    background-color: #ed8936 !important;
}

/* Modal content styles */
.modal-content {
    background-color: #2d3748;
    color: #f7fafc;
}

.modal-header {
    border-bottom: 1px solid #4a5568;
}


/* Close button styles */
.btn-close {
    color: #f7fafc;
}

/* Form control styles */
.form-control {
    background-color: #4a5568;
    color: #f7fafc;
    border: 1px solid #718096;
}

.form-control:focus {
    background-color: #4a5568;
    color: #f7fafc;
    border-color: #ed8936;
    box-shadow: 0 0 0 0.2rem rgba(237, 137, 54, 0.25);
}

/* Primary button styles */
.btn-primary {
    background-color: #ed8936;
    border-color: #ed8936;
}

.btn-primary:hover {
    background-color: #dd6b20;
    border-color: #dd6b20;
}

/* Hover effects on links */
a:hover {
    text-decoration: none;
    color: white;
}

/* Toggle button styles */
#toggle-button {
    background-color: rgb(24, 26, 27);
    display: flex;
    margin: 2% auto auto;
}

card {
    height: 100%;
    min-width: 200px;
    display: flex;
    flex-direction: column;
}

.card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Mobile categories dropdown */
.categories-mobile {
    margin-bottom: 20px;
    background-color: #1a2636;
    border-radius: 5px;
    overflow: hidden;
}

.categories-mobile h3 {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 12px 15px;
    margin: 0;
    font-size: 1.2em;
}

#category-tree-mobile {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#category-tree-mobile li {
    border-bottom: 1px solid #34495e;
}

#category-tree-mobile li:last-child {
    border-bottom: none;
}

.category-item {
    display: block;
    padding: 12px 15px;
    color: #bdc3c7;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.category-item:hover, .category-item:focus {
    background-color: #2c3e50;
    color: #ecf0f1;
}

.category-item.active {
    background-color: #3498db;
    color: #ffffff;
}

/* Subcategory styles */
.subcategory {
    display: none;
    list-style-type: none;
    background-color: #243447;
}

/* Category toggle */
.category-toggle {
    float: right;
    transition: transform 0.3s ease;
    color: #7f8c8d;
}

@keyframes swipeRight {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}


.category-card.animate {
    animation: swipeRight 0.5s ease-out forwards;
}

.category-item-wrapper {
    display: flex;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.category-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    color: #e2e8f0;
}
