/* RBI Notifications CSS */

/* Hero Section */
.rbi-hero-section {
    background: var(--gradient-primary);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.rbi-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../../images/pattern-bg.svg');
    background-size: cover;
    opacity: 0.1;
    z-index: 0;
}

.rbi-hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-image {
    box-shadow: var(--box-shadow);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.search-container {
    position: relative;
    max-width: 500px;
}

.search-container input {
    padding: 15px 20px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    padding-right: 50px;
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--primary-color);
    transform: scale(1.05);
}

/* Filter Section */
.filter-section {
    padding: 20px 0;
    background-color: #f8f9fa;
}

.filter-container {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.filter-group {
    margin-bottom: 0;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-select {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 15px;
    transition: var(--transition);
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 55, 153, 0.1);
}

/* Notifications Section */
.notifications-section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
}

.section-header p {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Notifications Container */
.notifications-container {
    margin-bottom: 30px;
}

.notification-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
    transition: var(--transition);
    cursor: pointer;
    border-left: 4px solid var(--primary-color);
}

.notification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.notification-card.press-release {
    border-left-color: #4a9eff;
}

.notification-card.circular {
    border-left-color: #28a745;
}

.notification-card.notification {
    border-left-color: #fd7e14;
}

.notification-card.speech {
    border-left-color: #6f42c1;
}

.notification-meta {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.notification-category {
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 20px;
    margin-right: 10px;
    color: white;
    font-weight: 500;
}

.notification-category.press-release {
    background-color: #4a9eff;
}

.notification-category.circular {
    background-color: #28a745;
}

.notification-category.notification {
    background-color: #fd7e14;
}

.notification-category.speech {
    background-color: #6f42c1;
}

.notification-date {
    font-size: 0.85rem;
    color: #666;
}

.notification-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.notification-excerpt {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.notification-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-source {
    font-size: 0.85rem;
    color: #666;
}

.notification-read-more {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.notification-read-more:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 0;
}

.loading-spinner p {
    margin-top: 15px;
    color: #666;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-item {
    margin: 0 5px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid #e0e0e0;
}

.page-link:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-item.disabled .page-link {
    color: #ccc;
    pointer-events: none;
}

/* Sidebar */
.notifications-sidebar {
    position: sticky;
    top: 100px;
}

/* Apply for Loan Widget */
.apply-loan-widget {
    background: linear-gradient(135deg, rgba(30, 55, 153, 0.05), rgba(30, 55, 153, 0.1));
    border: 1px solid rgba(30, 55, 153, 0.1);
}

.apply-loan-btn {
    font-weight: 600;
    padding: 12px 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(30, 55, 153, 0.2);
}

.apply-loan-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(30, 55, 153, 0.3);
}

.sidebar-widget {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-color);
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list li:last-child {
    margin-bottom: 0;
}

.category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    padding: 8px 0;
}

.category-list a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.category-list a i {
    margin-right: 10px;
    color: var(--primary-color);
}

.category-list .count {
    background-color: #f0f2f5;
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 0.8rem;
    color: #666;
}

/* Important Notifications */
.important-notification {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.important-notification:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.important-notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(30, 55, 153, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.important-notification-icon i {
    color: var(--primary-color);
}

.important-notification-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color);
}

.important-notification-content p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0;
}

/* Subscribe Form */
.subscribe-form .form-group {
    margin-bottom: 15px;
}

.subscribe-form .form-control {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    transition: var(--transition);
}

.subscribe-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 55, 153, 0.1);
}

.subscribe-form .btn {
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
}

/* Modal Styles */
.modal-content {
    border-radius: 12px;
    overflow: hidden;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-header {
    background-color: var(--primary-color);
    color: white;
    border-bottom: none;
    padding: 20px 25px;
}

.modal-title {
    font-weight: 600;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    border-top: none;
    padding: 15px 25px 25px;
}

.notification-content {
    line-height: 1.7;
}

.notification-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.notification-content p {
    margin-bottom: 15px;
}

.notification-meta-details {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.notification-meta-item {
    display: flex;
    margin-bottom: 10px;
}

.notification-meta-item:last-child {
    margin-bottom: 0;
}

.notification-meta-label {
    font-weight: 600;
    width: 120px;
    color: var(--text-color);
}

.notification-meta-value {
    color: #666;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 50px 0;
}

.no-results i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.no-results p {
    color: #666;
    max-width: 500px;
    margin: 0 auto 20px;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .rbi-hero-section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-image {
        margin-top: 30px;
    }
    
    .notifications-sidebar {
        margin-top: 40px;
        position: static;
    }
}

@media (max-width: 767px) {
    .rbi-hero-section {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .filter-container {
        margin-top: -20px;
    }
    
    .filter-group {
        margin-bottom: 15px;
    }
    
    .notification-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .notification-category {
        margin-bottom: 5px;
    }
}

@media (max-width: 575px) {
    .notification-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .notification-source {
        margin-bottom: 10px;
    }
    
    .page-link {
        width: 35px;
        height: 35px;
    }
}