/**
 * Using Library Page - Custom Styles
 * Enhanced styling for library guide with improved hero section and interactive tabs
 */

/* Hero Section Enhancements */
.page-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.85) 0%,
        rgba(30, 41, 59, 0.75) 25%,
        rgba(30, 64, 175, 0.65) 50%,
        rgba(16, 185, 129, 0.55) 75%,
        rgba(15, 23, 42, 0.80) 100%
    );
    z-index: 2;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    filter: brightness(0.5) contrast(1.1) saturate(1.1);
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 5rem 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-content h1 {
    font-weight: 800;
    color: #ffffff !important;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.9);
}

.hero-content .lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: #ffffff !important;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

.hero-content .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
    border: none;
}

.hero-content .breadcrumb-item a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero-content .breadcrumb-item a:hover {
    color: #ffffff;
}

.hero-content .breadcrumb-item.active {
    color: #10b981;
    font-weight: 600;
}

/* Enhanced Tab Navigation */
.library-tabs-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(30, 64, 175, 0.1);
    position: relative;
    z-index: 10;
}

.nav-tabs-wrapper {
    padding: 2rem 0;
}

#libraryGuideTab {
    border: none;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

#libraryGuideTab .nav-item {
    margin-bottom: 0.75rem;
}

#libraryGuideTab .nav-link {
    border: 2px solid transparent;
    border-radius: 60px;
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: #475569;
    background: #ffffff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-decoration: none;
    min-width: 180px;
    text-align: center;
}

#libraryGuideTab .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: left 0.8s ease;
}

#libraryGuideTab .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #1e40af, #10b981);
    transition: all 0.4s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

#libraryGuideTab .nav-link:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px rgba(30, 64, 175, 0.25);
    border-color: rgba(30, 64, 175, 0.3);
    color: #1e40af;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

#libraryGuideTab .nav-link:hover::before {
    left: 100%;
}

#libraryGuideTab .nav-link:hover::after {
    width: 80%;
}

#libraryGuideTab .nav-link.active {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #10b981 100%);
    color: #ffffff;
    border-color: #1e40af;
    box-shadow: 0 15px 35px rgba(30, 64, 175, 0.4);
    transform: translateY(-4px) scale(1.05);
}

#libraryGuideTab .nav-link.active::after {
    width: 100%;
    background: #ffffff;
}

#libraryGuideTab .nav-link.active i {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-4px); }
    60% { transform: translateY(-2px); }
}

/* Tab Content Styling */
.tab-content-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%);
    min-height: 60vh;
    padding: 4rem 0;
}

.tab-pane {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-pane.active.show {
    opacity: 1;
    transform: translateY(0);
}

/* Page Background Pattern */
.tab-content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(30, 64, 175, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(245, 158, 11, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #1e40af, #10b981);
    border-radius: 2px;
}

/* Card Components */
.access-card,
.membership-card,
.responsibility-card,
.returns-card,
.overdue-info-card,
.notices-card,
.fines-card,
.suspended-card,
.clearing-card,
.appeals-card,
.contact-card,
.responsibility-section,
.replacement-option,
.payment-process,
.timeline-card,
.clearance-overview,
.clearance-category,
.requirement-card,
.non-compliance-card,
.clearance-contact-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.access-card::before,
.membership-card::before,
.responsibility-card::before,
.returns-card::before,
.overdue-info-card::before,
.notices-card::before,
.fines-card::before,
.suspended-card::before,
.clearing-card::before,
.appeals-card::before,
.contact-card::before,
.responsibility-section::before,
.replacement-option::before,
.payment-process::before,
.timeline-card::before,
.clearance-overview::before,
.clearance-category::before,
.requirement-card::before,
.non-compliance-card::before,
.clearance-contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e40af, #10b981);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.access-card:hover,
.membership-card:hover,
.responsibility-card:hover,
.returns-card:hover,
.overdue-info-card:hover,
.notices-card:hover,
.fines-card:hover,
.suspended-card:hover,
.clearing-card:hover,
.appeals-card:hover,
.contact-card:hover,
.responsibility-section:hover,
.replacement-option:hover,
.payment-process:hover,
.timeline-card:hover,
.clearance-overview:hover,
.clearance-category:hover,
.requirement-card:hover,
.non-compliance-card:hover,
.clearance-contact-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(30, 64, 175, 0.15);
    border-color: rgba(30, 64, 175, 0.2);
}

.access-card:hover::before,
.membership-card:hover::before,
.responsibility-card:hover::before,
.returns-card:hover::before,
.overdue-info-card:hover::before,
.notices-card:hover::before,
.fines-card:hover::before,
.suspended-card:hover::before,
.clearing-card:hover::before,
.appeals-card:hover::before,
.contact-card:hover::before,
.responsibility-section:hover::before,
.replacement-option:hover::before,
.payment-process:hover::before,
.timeline-card:hover::before,
.clearance-overview:hover::before,
.clearance-category:hover::before,
.requirement-card:hover::before,
.non-compliance-card:hover::before,
.clearance-contact-card:hover::before {
    transform: scaleX(1);
}

/* Library Page Card Icons - Specific to library content only */
.using-library-page .card-icon,
.tab-content .card-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #10b981 100%);
    color: #ffffff;
    font-size: 2.5rem;
    box-shadow: 0 15px 35px rgba(30, 64, 175, 0.4);
    position: relative;
    overflow: hidden;
}

.using-library-page .card-icon::before,
.tab-content .card-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: libraryIconShine 3s infinite;
}

@keyframes libraryIconShine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
    100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

.using-library-page .card-icon.text-warning,
.tab-content .card-icon.text-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 50%, #ea580c 100%);
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.4);
}

/* Image Cards */
.image-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    min-height: 350px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.image-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(30, 64, 175, 0.1) 0%,
        transparent 50%,
        rgba(16, 185, 129, 0.1) 100%
    );
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.image-card:hover::before {
    opacity: 1;
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.image-card:hover img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        transparent,
        rgba(15, 23, 42, 0.8),
        rgba(15, 23, 42, 0.95)
    );
    color: white;
    padding: 2.5rem;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
}

.image-card:hover .image-overlay {
    transform: translateY(0);
}

.image-overlay h5 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Table Enhancements */
.privileges-table-wrapper {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.table-responsive {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background: linear-gradient(135deg, #1e40af 0%, #10b981 100%);
    color: #ffffff;
    border: none;
    padding: 1rem;
    font-weight: 600;
    text-align: center;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.table tbody tr:hover {
    background-color: #f8fafc;
}

/* Process Steps */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #1e40af;
    transition: all 0.3s ease;
}

.step:hover {
    background: #f1f5f9;
    transform: translateX(8px);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e40af 0%, #10b981 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h6 {
    color: #1e40af;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Contact Methods - Footer Style */
.contact-info {
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 8px 0;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.contact-item:hover {
    transform: translateX(3px);
    background: rgba(0, 123, 255, 0.05);
    padding-left: 8px;
}

/* Simple contact icons for renewal section */
.renewal-contact .contact-item i {
    color: #007bff;
    width: 20px;
    margin-right: 12px;
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
    background: none !important;
    border-radius: 0 !important;
    height: auto !important;
}

.contact-item span {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
}

.quick-tip {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    align-items: flex-start;
    margin-top: 15px;
}

.quick-tip i {
    color: #856404 !important;
    margin-right: 8px;
    margin-top: 2px;
    flex-shrink: 0;
    background: none !important;
    border-radius: 0 !important;
    height: auto !important;
    width: auto !important;
}

.quick-tip span {
    color: #856404;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Features Highlight Cards */
.feature-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e40af 0%, #3b82f6 50%, #10b981 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 30px 60px rgba(30, 64, 175, 0.15);
    border-color: rgba(30, 64, 175, 0.2);
}

/* Feature Icons - Specific to library page features only */
.using-library-page .feature-icon,
.tab-content .feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #10b981 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    box-shadow: 0 12px 30px rgba(30, 64, 175, 0.3);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.using-library-page .feature-icon::before,
.tab-content .feature-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: libraryIconShine 3s infinite;
}

.using-library-page .feature-card:hover .feature-icon,
.tab-content .feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(30, 64, 175, 0.4);
}

.feature-card h5 {
    color: #1e40af;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.feature-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: #475569;
    font-size: 0.95rem;
    position: relative;
}

.feature-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #1e40af 100%);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.feature-list li:hover {
    color: #1e40af;
    transform: translateX(4px);
}
.renewal-card,
.renewal-methods-card,
.reservation-card,
.recall-section,
.contact-info-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.renewal-card::before,
.renewal-methods-card::before,
.reservation-card::before,
.recall-section::before,
.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e40af 0%, #3b82f6 50%, #10b981 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.renewal-card:hover::before,
.renewal-methods-card:hover::before,
.reservation-card:hover::before,
.recall-section:hover::before,
.contact-info-card:hover::before {
    transform: scaleX(1);
}

.renewal-card:hover,
.renewal-methods-card:hover,
.reservation-card:hover,
.recall-section:hover,
.contact-info-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(30, 64, 175, 0.15);
    border-color: rgba(30, 64, 175, 0.2);
}

.card-header h4,
.renewal-methods-card h4,
.reservation-card h4,
.recall-section h4,
.contact-info-card h4 {
    color: #1e40af;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    position: relative;
}

.card-header h4::after,
.renewal-methods-card h4::after,
.reservation-card h4::after,
.recall-section h4::after,
.contact-info-card h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1e40af, #10b981);
    border-radius: 2px;
}

/* Reservation Steps Styling */
.reservation-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.reservation-steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.reservation-steps li:nth-child(1) { border-left-color: #10b981; }
.reservation-steps li:nth-child(2) { border-left-color: #3b82f6; }
.reservation-steps li:nth-child(3) { border-left-color: #f59e0b; }
.reservation-steps li:nth-child(4) { border-left-color: #ef4444; }

.reservation-steps li:hover {
    background: #f1f5f9;
    transform: translateX(8px);
}

/* Recall Steps Styling */
.recall-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.recall-steps .step-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.recall-steps .step-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #1e40af 0%, #10b981 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.recall-steps .step-item:hover::before {
    transform: scaleY(1);
}

.recall-steps .step-item:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.1);
}

.recall-steps .step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e40af 0%, #10b981 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.recall-steps .step-item h6 {
    color: #1e40af;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.recall-steps .step-item p {
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Method Item Enhancements */
.method-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.method-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #10b981 0%, #1e40af 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.method-item:hover::before {
    transform: scaleY(1);
}

.method-item:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transform: translateX(8px) translateY(-2px);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.2);
}

.method-item i {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #1e40af 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.method-item:hover i {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.method-item h6 {
    color: #1e40af;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.method-item p {
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.method-item strong {
    color: #1e40af;
    font-weight: 700;
}

/* Contact Methods Enhancement */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #3b82f6 0%, #10b981 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.contact-item:hover::before {
    transform: scaleY(1);
}

.contact-item:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transform: translateX(8px) translateY(-2px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.2);
}

/* Need Assistance section circular icons */
.need-assistance .contact-item i {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.need-assistance .contact-item:hover i {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.contact-item h6 {
    color: #1e40af;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-item p {
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.contact-item strong {
    color: #1e40af;
    font-weight: 700;
}

/* Quick Tip Styling */
.quick-tip {
    padding: 1.5rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    border: 1px solid #f59e0b;
    border-left: 4px solid #f59e0b;
}

.quick-tip h6 {
    color: #92400e;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.quick-tip p {
    color: #78350f;
    margin: 0;
    font-style: italic;
}

/* Alert Enhancements */
.alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-left: 4px solid #f59e0b;
    color: #92400e;
    border-radius: 12px;
    padding: 1.25rem;
}

.alert-warning strong {
    color: #78350f;
}

/* Quick Reference Section */
.quick-reference-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-top: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    overflow: hidden;
}

.quick-reference-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e40af 0%, #3b82f6 33%, #10b981 66%, #f59e0b 100%);
}

.quick-reference-section h4 {
    color: #1e40af;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
}

.quick-reference-section h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #1e40af, #10b981);
    border-radius: 2px;
}

.reference-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.reference-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #1e40af 0%, #10b981 100%);
    border-radius: 2px 0 0 2px;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.reference-card:hover::before {
    transform: scaleY(1);
}

.reference-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(30, 64, 175, 0.12);
    border-color: rgba(30, 64, 175, 0.2);
}

.reference-card h6 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.reference-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.reference-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
}

.reference-list li:last-child {
    border-bottom: none;
}

.reference-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e40af 0%, #10b981 100%);
    flex-shrink: 0;
    margin-top: 0.5rem;
    box-shadow: 0 2px 6px rgba(30, 64, 175, 0.3);
}

.reference-list li strong {
    color: #1e40af;
    font-weight: 600;
}

.reference-list li:hover {
    color: #1e40af;
    transform: translateX(4px);
}

/* Responsive Design for Quick Reference */
@media (max-width: 768px) {
    .quick-reference-section {
        padding: 2rem 1.5rem;
        margin-top: 2rem;
    }
    
    .reference-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
}
@media (max-width: 768px) {
    .recall-steps .step-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 1rem;
    }
    
    .method-item,
    .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 1rem;
    }
    
    .renewal-card,
    .renewal-methods-card,
    .reservation-card,
    .recall-section,
    .contact-info-card {
        padding: 2rem;
    }
}

/* Clearing Steps */
.clearing-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f0fdf4;
    border-radius: 12px;
    border-left: 4px solid #10b981;
    transition: all 0.3s ease;
}

.step-item:hover {
    background: #dcfce7;
    transform: translateX(4px);
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #10b981;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 0.875rem;
}

/* Fine Details */
.fine-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fine-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #fef3c7;
    border-radius: 12px;
    border-left: 4px solid #f59e0b;
}

.fine-label {
    font-weight: 600;
    color: #92400e;
}

.fine-amount {
    font-weight: bold;
    color: #d97706;
}

/* Contact Section */
.contact-section {
    background: #f8fafc;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
}

.contact-method {
    text-align: center;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    height: 100%;
}

.contact-method:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.15);
}

.contact-method i {
    color: #1e40af;
}

/* Timeline Info */
.timeline-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timeline-item {
    padding: 1rem;
    background: #fef2f2;
    border-radius: 12px;
    border-left: 4px solid #ef4444;
}

.timeline-item h6 {
    color: #dc2626;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Category Headers */
.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.category-header i {
    font-size: 2rem;
}

/* Access Features */
.access-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.access-features .badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1200px) {
    #libraryGuideTab {
        padding: 0 1rem;
        gap: 0.5rem;
    }
    
    #libraryGuideTab .nav-link {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        min-width: 160px;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 992px) {
    .hero-content {
        padding: 3rem 0;
    }
    
    .page-hero {
        min-height: 60vh;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .nav-tabs-wrapper {
        padding: 1.5rem 0;
    }
    
    #libraryGuideTab {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    #libraryGuideTab .nav-item {
        flex: 0 0 auto;
    }
    
    #libraryGuideTab .nav-link {
        min-width: 140px;
        padding: 0.75rem 1.25rem;
    }
    
    .tab-content-section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .process-steps {
        gap: 1rem;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .page-hero {
        min-height: 50vh;
    }
    
    .hero-content {
        padding: 2rem 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-content .lead {
        font-size: 1.1rem;
    }
    
    .nav-tabs-wrapper {
        padding: 1rem 0;
    }
    
    #libraryGuideTab {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    #libraryGuideTab .nav-item {
        width: 100%;
        max-width: 320px;
    }
    
    #libraryGuideTab .nav-link {
        width: 100%;
        text-align: center;
        min-width: auto;
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .tab-content-section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .access-card,
    .membership-card,
    .responsibility-card,
    .returns-card,
    .overdue-info-card,
    .notices-card,
    .fines-card,
    .suspended-card,
    .clearing-card,
    .appeals-card,
    .contact-card,
    .responsibility-section,
    .replacement-option,
    .payment-process,
    .timeline-card,
    .clearance-overview,
    .clearance-category,
    .requirement-card,
    .non-compliance-card,
    .clearance-contact-card {
        padding: 2rem;
        margin-bottom: 1.5rem;
        border-radius: 16px;
    }
    
    .using-library-page .card-icon,
    .tab-content .card-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .image-card {
        min-height: 280px;
    }
}

@media (max-width: 576px) {
    .page-hero {
        min-height: 45vh;
    }
    
    .hero-content {
        padding: 1.5rem 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .hero-content .breadcrumb {
        padding: 0;
        font-size: 0.875rem;
    }
    
    .nav-tabs-wrapper {
        padding: 0.75rem 0;
    }
    
    #libraryGuideTab .nav-link {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .tab-content-section {
        padding: 1.5rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .privileges-table-wrapper {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .table thead th,
    .table tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .method-item,
    .contact-item,
    .step-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        padding: 1.25rem;
    }
    
    .using-library-page .card-icon,
    .tab-content .card-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
    
    .image-card {
        min-height: 250px;
    }
    
    .access-card,
    .membership-card,
    .responsibility-card,
    .returns-card,
    .overdue-info-card,
    .notices-card,
    .fines-card,
    .suspended-card,
    .clearing-card,
    .appeals-card,
    .contact-card,
    .responsibility-section,
    .replacement-option,
    .payment-process,
    .timeline-card,
    .clearance-overview,
    .clearance-category,
    .requirement-card,
    .non-compliance-card,
    .clearance-contact-card {
        padding: 1.5rem;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Protect footer and specific contact sections from page-specific styling */
.site-footer .fas,
.site-footer .fab,
.site-footer .contact-item i,
footer .fas,
footer .fab,
footer .contact-item i {
    background: none !important;
    color: #007bff !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    width: 16px !important;
    height: auto !important;
    animation: none !important;
    margin-right: 10px !important;
    font-size: 0.85rem !important;
    display: inline !important;
    flex-shrink: initial !important;
    align-items: initial !important;
    justify-content: initial !important;
}

.site-footer .social-link,
.site-footer .social-link i,
footer .social-link,
footer .social-link i {
    background: inherit !important;
    animation: none !important;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #1e40af;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
