* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.widget {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    width: 100%;
    max-width: 380px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
}

.widget-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 22px 25px;
    position: relative;
    overflow: hidden;
}

.widget-header::before {
    content: "";
    position: absolute;
    top: -20px;
    right: -20px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

.widget-header::after {
    content: "";
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.widget-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    margin: 0;
    position: relative;
    z-index: 1;
}

.widget-header h3 i {
    margin-right: 12px;
    font-size: 1.3rem;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.widget-header p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 8px;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

.blog-elegant {
    padding: 0;
}

.meta {
    padding: 0;
}

.cat-class {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cat-class>li {
    border-bottom: 1px solid #f1f3f9;
    position: relative;
}

.cat-class>li:last-child {
    border-bottom: none;
}

.list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    overflow: hidden;
}

.list::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.list:hover {
    background: #f8faff;
    padding-left: 30px;
}

.list:hover::before {
    opacity: 1;
}

.list.active {
    background: #f0f5ff;
    color: #667eea;
}

.list-text {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.list:hover .list-text {
    transform: translateX(5px);
}

.mr-5 {
    margin-right: 15px;
    width: 24px;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    color: #667eea;
}

.list:hover .mr-5 {
    transform: scale(1.2);
    color: #764ba2;
}

.dropdown-angle {
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    color: #a0aec0;
    font-size: 0.9rem;
}

.list.active .dropdown-angle {
    transform: rotate(180deg);
    color: #667eea;
}

.sub-opt {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.7s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    background: #fafbff;
}

.sub-opt.expanded {
    max-height: 500px;
}

.sub-opt li {
    padding: 0;
    margin: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.sub-opt.expanded li {
    opacity: 1;
    transform: translateY(0);
}

.sub-opt.expanded li:nth-child(1) {
    transition-delay: 0.1s;
}

.sub-opt.expanded li:nth-child(2) {
    transition-delay: 0.15s;
}

.sub-opt.expanded li:nth-child(3) {
    transition-delay: 0.2s;
}

.sub-opt.expanded li:nth-child(4) {
    transition-delay: 0.25s;
}

.sub-opt.expanded li:nth-child(5) {
    transition-delay: 0.3s;
}

.sub-opt.expanded li:nth-child(6) {
    transition-delay: 0.35s;
}

.sub-opt.expanded li:nth-child(7) {
    transition-delay: 0.4s;
}

.sub-opt.expanded li:nth-child(8) {
    transition-delay: 0.45s;
}

.sub-opt.expanded li:nth-child(9) {
    transition-delay: 0.5s;
}

.sub-opt a {
    display: flex;
    align-items: center;
    padding: 14px 25px 14px 64px;
    color: #64748b;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    border-left: 3px solid transparent;
}

.sub-opt a:before {
    content: "";
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #cbd5e0;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.sub-opt a:hover {
    background: #f0f5ff;
    color: #667eea;
    padding-left: 68px;
    border-left-color: #667eea;
}

.sub-opt a:hover:before {
    background: #667eea;
    width: 8px;
    height: 8px;
}

.sub-opt a:hover .mr-5 {
    transform: translateX(3px);
}

.external-link .dropdown-angle {
    font-size: 0.8rem;
}

/* Search box */
.search-box {
    padding: 18px 20px;
    background: #f8faff;
    border-bottom: 1px solid #f1f3f9;
}

.search-container {
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    background: white;
    font-size: 0.9rem;
    color: #4a5568;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.search-container input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.search-container i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
}

/* Footer */
.widget-footer {
    padding: 15px 25px;
    background: #f8faff;
    text-align: center;
    font-size: 0.85rem;
    color: #718096;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    color: #718096;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #667eea;
}

/* Responsive design */
@media (max-width: 480px) {
    .widget {
        max-width: 100%;
    }

    .widget-header {
        padding: 18px 20px;
    }

    .list {
        padding: 15px 20px;
    }

    .sub-opt a {
        padding-left: 58px;
    }

    .sub-opt a:hover {
        padding-left: 62px;
    }

    .sub-opt a:before {
        left: 35px;
    }
}

/* Animation for icons */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.list:hover .fa-image,
.list:hover .fa-lock,
.list:hover .fa-youtube,
.list:hover .fa-laptop-code,
.list:hover .fa-php,
.list:hover .fa-qrcode,
.list:hover .fa-file-alt,
.list:hover .fa-keyboard,
.list:hover .fa-volume-up,
.list:hover .fa-baseball-ball,
.list:hover .fa-calculator,
.list:hover .fa-file-pdf {
    animation: pulse 0.8s ease;
}

/* Highlight effect */
.highlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(102, 126, 234, 0.1), transparent);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.list:hover .highlight {
    opacity: 1;
}