@import url('/cbt/css/root-3e507b4799b69634f24b146cc3cac5c0.css');
@import url('/cbt/css/general-user-dashboard/topic-catalogue-9dfead9086a1a3d8bd33042efbea7117.css');

/* Hero Section */
.subject-topics-hero-section {
    padding: 100px 0 60px;
    position: relative;
    margin-top: 80px;
    overflow: hidden;
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.7;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.subject-topics-hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    color: var(--white, #ffffff);
}

.hero-icon {
    font-size: 4rem;
    color: var(--white, #ffffff);
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white, #ffffff);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

/* Dark mode hero section */
[data-theme="dark"] .hero-overlay {
    background: rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .hero-title {
    color: var(--white) !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.5);
    font-weight: 700 !important;
}

[data-theme="dark"] .hero-subtitle {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .hero-icon {
    color: var(--white) !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Controls Section */
.subject-topics-controls-section {
    padding: 40px 0;
    background-color: var(--section-gray, #f5f5f5);
}

.controls-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.control-card {
    background-color: var(--white, #ffffff);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

/* Dark mode control card elevation */
[data-theme="dark"] .control-card {
    background-color: var(--card-bg) !important;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.1), 0 2px 8px rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .control-card:hover {
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15), 0 4px 12px rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-5px);
}

.control-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.control-icon {
    font-size: 1.5rem;
    color: var(--primary-green, #28a745);
}

.control-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark, #333);
    margin: 0;
}

/* Search Form */
.search-form {
    margin-top: 0.5rem;
}

.search-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-light, #666);
    z-index: 2;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid var(--border-gray, #e0e0e0);
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--white, #ffffff);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-green, #28a745);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.search-clear {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--text-light, #666);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: color 0.3s ease;
}

.search-clear:hover {
    color: var(--text-dark, #333);
}

.search-submit-btn {
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.search-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

/* Bootstrap Select Overrides */
.bootstrap-select .dropdown-toggle {
    border: 2px solid var(--border-gray, #e0e0e0);
    border-radius: 50px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.bootstrap-select .dropdown-toggle:focus {
    border-color: var(--primary-green, #28a745);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.bootstrap-select .dropdown-menu {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: none;
    margin-top: 0.5rem;
}

.bootstrap-select .dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
}

.bootstrap-select .dropdown-item:hover {
    background-color: var(--light-gray, #f8f9fa);
    color: var(--primary-green, #28a745);
}

.bootstrap-select .dropdown-item.active {
    background-color: var(--primary-green, #28a745);
    color: var(--white, #ffffff);
}

/* Dark mode dropdown fixes */
[data-theme="dark"] .bootstrap-select .dropdown-menu {
    background-color: var(--card-bg) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .bootstrap-select .dropdown-item {
    color: var(--text-primary) !important;
    background-color: transparent;
}

[data-theme="dark"] .bootstrap-select .dropdown-item:hover,
[data-theme="dark"] .bootstrap-select .dropdown-item:focus {
    background-color: rgba(61, 134, 68, 0.2) !important;
    color: var(--primary-green) !important;
}

[data-theme="dark"] .bootstrap-select .dropdown-item.active {
    background-color: var(--primary-green) !important;
    color: var(--white) !important;
}

[data-theme="dark"] .bootstrap-select .dropdown-toggle {
    background-color: var(--input-bg) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

/* Topic Cards */
.learning-topic-clickable-area a {
    text-decoration: none;
    color: rgb(147, 147, 147);
}

.bouncy-card-box {
    border: 0px solid #ccc;
    padding-bottom: 20px;
    margin: 10px;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    min-height: 450px;
    background-color: var(--white, #ffffff);
    overflow: hidden;
}

.bouncy-card-box:hover {
    transform: translateY(-10px);
    cursor: pointer;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Dark mode bouncy card box elevation */
[data-theme="dark"] .bouncy-card-box {
    background-color: var(--card-bg) !important;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.1), 0 2px 8px rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .bouncy-card-box:hover {
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.15), 0 5px 15px rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-10px);
}

.bouncy-card-box img {
    width: 100%;
    border-radius: 15px 15px 0px 0px;
    margin: 0;
    margin-bottom: 20px;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bouncy-card-box:hover img {
    transform: scale(1.05);
}

.bouncy-box-item-content {
    margin-left: 15px;
    margin-right: 15px;
    margin-bottom: 35px;
    color: rgb(147, 147, 147);
    font-weight: 700;
    font-size: 1.3rem;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.bouncy-box-item-content:hover {
    color: var(--text-dark, #333);
}

.bouncy-box-item-content h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.bouncy-box-item-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.bouncy-box-item-content h3 a:hover {
    color: var(--primary-green, #28a745);
}

.bouncy-box-item-annotation {
    color: rgb(147, 147, 147);
    margin-left: 20px;
    font-size: 1.2rem;
    padding-right: 7px;
    bottom: 15px;
    position: absolute;
    width: calc(100% - 40px);
    align-items: center;
}

.bouncy-box-item-annotation i {
    margin-right: 0.5rem;
    transition: color 0.3s ease;
}

.bouncy-box-item-annotation i.fa-color-primary {
    color: var(--primary-green, #28a745);
}

.fa-color-gold {
    color: #FFD700;
}

.learning-resource-banner {
    width: 50%;
    opacity: 0.5;
}

.bouncy-box-right-side-annotation {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bouncy-box-right-side-annotation .favourite-topic-star {
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.bouncy-box-right-side-annotation .favourite-topic-star:hover {
    transform: scale(1.2);
    color: #FFD700 !important;
}

.border-container {
    position: relative;
    padding: 10px;
    margin: 20px;
    border-radius: 20px;
    background-color: white;
}

/* Responsive Design */
@media only screen and (max-width: 900px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .controls-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .search-wrapper {
        flex-direction: column;
    }

    .search-submit-btn {
        width: 100%;
    }
}

@media only screen and (max-width: 740px) {
    .subject-topics-hero-section {
        padding: 80px 0 40px;
        margin-top: 70px;
    }

    .hero-icon {
        font-size: 3rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .control-card {
        padding: 1.5rem;
    }

    .bouncy-card-box {
        margin: 5px;
        min-height: 400px;
    }

    .bouncy-box-item-content {
        font-size: 1.1rem;
        margin-left: 10px;
        margin-right: 10px;
    }

    .learning-resource-banner {
        width: 100%;
    }
}

@media only screen and (max-width: 481px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .control-card {
        padding: 1rem;
    }

    .bouncy-box-item-content {
        font-size: 1rem;
    }

    .bouncy-box-item-annotation {
        font-size: 1rem;
        margin-left: 10px;
        width: calc(100% - 20px);
    }
}

@keyframes blink {
    67% {
        opacity: 0;
    }
}

.recommended-item-thumbnail-cell {
    width: 15%;
}
