/* Enhanced RBI Notifications Styles */

/* Additional Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(30, 55, 153, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(30, 55, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(30, 55, 153, 0); }
}

/* Enhanced Hero Section */
.rbi-hero-section {
    background: linear-gradient(135deg, #1e3799 0%, #4a69bd 100%);
    padding: 100px 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.15;
    z-index: 0;
    animation: pulse 15s infinite alternate;
}

.rbi-hero-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(255,255,255,1), rgba(255,255,255,0));
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: #fd7e14;
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 90%;
}

.hero-image {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transform: perspective(1000px) rotateY(-8deg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    border-radius: 12px;
    animation: float 6s ease-in-out infinite;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.search-container {
    position: relative;
    max-width: 500px;
    margin-bottom: 20px;
}

.search-container input {
    padding: 18px 25px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    font-size: 1.05rem;
    padding-right: 60px;
    transition: all 0.3s ease;
}

.search-container input:focus {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2), 0 0 0 3px rgba(74, 105, 189, 0.2);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 8px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(253, 126, 20, 0.3);
}

.search-btn:hover {
    background: #e8670c;
    transform: scale(1.08);
    box-shadow: 0 6px 15px rgba(253, 126, 20, 0.4);
}

/* Enhanced Filter Section */
.filter-section {
    padding: 20px 0 40px;
    background-color: #f8f9fa;
}

.filter-container {
    background-color: white;
    border-radius: 15px;
    padding: 25px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-top: -50px;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.filter-group {
    margin-bottom: 0;
}

.filter-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.form-select {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 18px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    background-color: #f8f9fa;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 55, 153, 0.1);
    background-color: white;
}

/* Enhanced Notification Cards */
.notification-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 5px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.notification-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background-image: url('images/rbi.jpg');
    background-size: 60px;
    background-repeat: no-repeat;
    background-position: top right;
    opacity: 0.05;
    z-index: 0;
    transition: all 0.3s ease;
}

.notification-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.notification-card:hover::before {
    opacity: 0.08;
    transform: scale(1.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-image {
    width: 100%;
    height: 180px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.notification-card:hover .notification-image {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.notification-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.notification-category {
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 20px;
    margin-right: 12px;
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.notification-date {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
}

.notification-date i {
    margin-right: 5px;
    color: var(--primary-color);
}

.notification-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

.notification-excerpt {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.notification-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.notification-source {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
}

.notification-source i {
    margin-right: 5px;
    color: var(--primary-color);
}

.notification-read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 20px;
    background-color: rgba(30, 55, 153, 0.05);
}

.notification-read-more:hover {
    color: white;
    background-color: var(--primary-color);
    text-decoration: none;
    transform: translateX(5px);
}

.notification-read-more i {
    transition: all 0.3s ease;
    margin-left: 5px;
}

.notification-read-more:hover i {
    transform: translateX(3px);
}

/* Enhanced Sidebar */
.notifications-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.sidebar-widget:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--primary-color);
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 15px;
    position: relative;
}

.sidebar-widget h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent-color);
}

/* Important Notifications Widget */
.important-notification {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #f0f2f5;
    transition: all 0.3s ease;
}

.important-notification:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.important-notification:hover {
    transform: translateX(5px);
}

.important-notification-icon {
    min-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;
    color: var(--primary-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.important-notification:hover .important-notification-icon {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.important-notification-content {
    flex: 1;
}

.important-notification-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color);
    line-height: 1.4;
    transition: all 0.3s ease;
}

.important-notification:hover .important-notification-title {
    color: var(--primary-color);
}

.important-notification-date {
    font-size: 0.8rem;
    color: #666;
    display: flex;
    align-items: center;
}

.important-notification-date i {
    margin-right: 5px;
    font-size: 0.75rem;
}

/* 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);
    position: relative;
    overflow: hidden;
}

.apply-loan-widget::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background-image: url('../../images/loan/personal loan.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top right;
    opacity: 0.1;
    z-index: 0;
}

.apply-loan-btn {
    font-weight: 600;
    padding: 14px 20px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 15px rgba(30, 55, 153, 0.2);
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.apply-loan-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.apply-loan-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(30, 55, 153, 0.3);
}

.apply-loan-btn:hover::before {
    left: 100%;
}

/* Enhanced Modal */
.modal-content {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    border: none;
}

.modal-header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 30px;
    border-bottom: none;
}

.modal-title {
    font-weight: 700;
    font-size: 1.4rem;
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #f0f2f5;
}

.modal-notification-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-notification-meta {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.modal-notification-category {
    font-size: 0.85rem;
    padding: 5px 15px;
    border-radius: 20px;
    margin-right: 15px;
    color: white;
    font-weight: 600;
}

.modal-notification-date {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
}

.modal-notification-date i {
    margin-right: 8px;
}

.modal-notification-content {
    line-height: 1.8;
    color: #444;
    font-size: 1.05rem;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-image {
        margin-top: 30px;
    }
    
    .notifications-sidebar {
        margin-top: 40px;
    }
}

@media (max-width: 767px) {
    .rbi-hero-section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .filter-container {
        margin-top: -30px;
    }
    
    .filter-group {
        margin-bottom: 15px;
    }
    
    .notification-card {
        padding: 20px;
    }
}