﻿body 
{
          * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
            color: #333;
            line-height: 1.6;
            padding: 20px;
            min-height: 100vh;
        }

        .library-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 30px;
            background: white;
            border-radius: 20px;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
        }

        .section-header {
            text-align: center;
            margin-bottom: 50px;
            padding-bottom: 20px;
            border-bottom: 2px solid #f0f4f8;
            position: relative;
        }

        .section-header::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 4px;
            background: linear-gradient(to right, #4a6fa5, #6c98d9);
            border-radius: 2px;
        }

        .section-title {
            font-size: 2.8rem;
            color: #2c3e50;
            margin-bottom: 15px;
            font-weight: 700;
            text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
        }

        .section-subtitle {
            font-size: 1.2rem;
            color: #7f8c8d;
            max-width: 700px;
            margin: 0 auto;
        }

        /* تصميم الكاروسيل */
        .halls-carousel {
            position: relative;
            overflow: hidden;
            padding: 20px 0;
        }

        .carousel-container {
            display: flex;
            transition: transform 0.5s ease;
            gap: 25px;
        }

        .hall-card {
            flex: 0 0 calc(25% - 25px);
            background: white;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
            transition: all 0.4s ease;
            position: relative;
            display: flex;
            flex-direction: column;
        }

        .hall-card:hover {
            transform: translateY(-12px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
        }

        .hall-image {
            height: 200px;
            overflow: hidden;
            position: relative;
        }

        .hall-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .hall-card:hover .hall-image img {
            transform: scale(1.08);
        }

        .hall-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.7));
            display: flex;
            align-items: flex-end;
            padding: 20px;
            opacity: 0;
            transition: opacity 0.4s ease;
        }

        .hall-card:hover .hall-overlay {
            opacity: 1;
        }

        .btn-explore {
            background: rgba(255, 255, 255, 0.9);
            color: #2c3e50;
            padding: 10px 20px;
            border-radius: 30px;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .btn-explore:hover {
            background: white;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .hall-content {
            padding: 25px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }

        .hall-title {
            font-size: 1.3rem;
            color: #2c3e50;
            margin-bottom: 10px;
            font-weight: 700;
            line-height: 1.4;
        }

        .hall-title a {
            color: inherit;
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .hall-title a:hover {
            color: #4a6fa5;
        }

        .hall-description {
            color: #7f8c8d;
            font-size: 0.95rem;
            margin-top: auto;
            line-height: 1.5;
        }

        /* أزرار التنقل المخصصة */
        .carousel-nav {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-top: 40px;
            gap: 15px;
        }

        .nav-btn {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: white;
            border: 2px solid #e0e6ed;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 1.2rem;
            color: #4a6fa5;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        }

        .nav-btn:hover {
            background: #4a6fa5;
            color: white;
            transform: translateY(-3px);
            box-shadow: 0 6px 15px rgba(74, 111, 165, 0.3);
        }

        .carousel-dots {
            display: flex;
            gap: 10px;
        }

        .dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #dde4ec;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .dot.active {
            background: #4a6fa5;
            transform: scale(1.2);
        }

        /* تصميم متجاوب */
        @media (max-width: 1200px) {
            .hall-card {
                flex: 0 0 calc(33.333% - 25px);
            }
        }

        @media (max-width: 992px) {
            .hall-card {
                flex: 0 0 calc(50% - 25px);
            }
            
            .section-title {
                font-size: 2.3rem;
            }
        }

        @media (max-width: 768px) {
            .hall-card {
                flex: 0 0 calc(100% - 25px);
            }
            
            .section-title {
                font-size: 2rem;
            }
            
            .library-container {
                padding: 20px;
            }
        }

        /* تأثيرات إضافية */
        .hall-tag {
            position: absolute;
            top: 15px;
            left: 15px;
            background: rgba(255, 255, 255, 0.9);
            color: #4a6fa5;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            z-index: 2;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
        }

        .hall-card:nth-child(2n) .hall-tag {
            background: rgba(106, 176, 76, 0.9);
            color: white;
        }

        .hall-card:nth-child(3n) .hall-tag {
            background: rgba(231, 76, 60, 0.9);
            color: white;
        }
}
