/* Ported from resources/views/frontend/pages/patient-stories/index.blade.php <style> */

        .patient-story-page {
            padding: 10px 0;
            background: #f8f9fa;
        }

        .story-header {
            text-align: center;
            margin-bottom: 50px;
        }

        .story-header h1 {
            font-size: 36px;
            font-weight: 700;
            color: #111;
        }

        .story-header p {
            max-width: 700px;
            margin: 15px auto 0;
            color: #666;
        }

        .story-topbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 40px;
        }

        .story-search {
            width: 400px;
        }

        .story-search form {
            position: relative;
        }

        .story-search input {
            width: 100%;
            height: 60px;
            border: 1px solid #ddd;
            border-radius: 50px;
            padding: 0 60px 0 25px;
        }

        .story-search button {
            position: absolute;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            border: none;
            background: none;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }



        .story-search button i {
            font-size: 26px;
            background: linear-gradient(135deg, #2dc5ff, #7b3ff2);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

      .story-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 30px;
            align-items: stretch;
        }
        
        .story-card {
            margin: 0 !important;
            align-self: stretch;
            min-height: 520px;
            height: auto;
        
            background: #fff;
            border-radius: 24px;
            overflow: hidden;
            box-shadow: 0 8px 25px rgba(0, 0, 0, .08);
        
            display: flex;
            flex-direction: column;
        }
        
               .story-image {
            width: 100%;
            height: 280px;
            flex-shrink: 0;
        }
        
        .story-image img {
            width: 100%;
            height: 280px;
            object-fit: cover;
            display: block;
        }
        
        .story-content {
            padding: 20px;
            flex: 1;
        }

        .story-content h3 {
            font-size: 22px;
            margin-bottom: 10px;
        }

        .patient-name {
            color: #0d6efd;
            font-weight: 600;
            margin-bottom: 10px;
        }

        .story-content p {
            color: #666;
            line-height: 1.7;
        }

        .video-badge {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);

            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: #fff;

            display: flex;
            align-items: center;
            justify-content: center;

            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
            z-index: 2;
        }

        .video-badge i {
            color: #2e7d32;
            font-size: 20px;
            margin-left: 4px;
        }

        .story-image {
            position: relative;
        }

        .hidden-story {
            display: none;
        }

        .load-more-wrapper {
            text-align: center;
            margin-top: 40px;
        }

        .load-more-btn {
            background: #0d6efd;
            color: #fff;
            border: none;
            padding: 14px 35px;
            border-radius: 50px;
            cursor: pointer;
        }

        .no-data {
            grid-column: 1/-1;
            background: #fff;
            padding: 60px;
            text-align: center;
            border-radius: 20px;
        }

        @media(max-width:991px) {
            .story-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media(max-width:576px) {
            .story-grid {
                grid-template-columns: 1fr;
            }

            .story-topbar {
                flex-direction: column;
            }

            .story-search {
                width: 100%;
            }
        }


        .video-modal {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, .85);
            z-index: 99999;
        }

        .video-modal-content {
            width: 80%;
            max-width: 1000px;
            aspect-ratio: 16/9;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: #000;
            border-radius: 20px;
            overflow: hidden;
        }

        .video-modal iframe {
            width: 100%;
            height: 100%;
            border: none;
        }

        .close-video {
            position: absolute;
            top: 15px;
            right: 20px;
            color: #fff;
            font-size: 35px;
            cursor: pointer;
            z-index: 10;
        }

        .hidden-story {
            display: none;
        }
        
        .read-more-btn {
            color: #2e7d32;
            font-weight: 600;
            text-decoration: none;
            margin-left: 5px;
            cursor: pointer;
        }
        
        .read-more-btn:hover {
            text-decoration: underline;
        }
