.stories-section {
    background-color: #0a0a0a;
    padding: 100px 0;
    position: relative;
    font-family: 'Manrope', sans-serif;
    color: #fff;
    overflow: hidden;
}

/* Vertical Dashed Line */
.vertical-dashed-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 8%; /* Adjust based on container */
    width: 2px;
    background-image: linear-gradient(to bottom, #ff6933 50%, transparent 50%);
    background-size: 2px 15px;
    opacity: 0.3;
}

.stories-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.stories-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.quote-icon {
    background: #fff;
    color: #000;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.read-all {
    color: #ff6933;
    text-decoration: none;
    font-weight: 700;
}

/* Filters */
.stories-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-tab {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 10px 20px;
    border-radius: 30px;
    color: #888;
    cursor: pointer;
    font-weight: 600;
}

.filter-tab.active {
    background: #fff;
    color: #000;
}

/* Story Cards */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.story-card {
    background: #151515;
    border-radius: 20px;
    padding: 40px 30px 30px;
    position: relative;
    border: 1px solid rgba(255,255,255,0.05);
}

.story-avatar {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
}

.story-avatar img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid #ff6933;
}

.story-content h3 { font-size: 18px; margin-bottom: 5px; text-align: center; }
.student-status { color: #888; font-size: 13px; text-align: center; margin-bottom: 20px; }
.testimonial-text { font-size: 14px; line-height: 1.6; color: #ccc; margin-bottom: 30px; text-align: center; }

.story-footer {
    border-top: 1px solid #222;
    padding-top: 20px;
}

.journey-path {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 12px;
    color: #666;
}

.uni-logo-small { height: 20px; }

/* Bottom CTA */
.stories-cta {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.pagination-dots { display: flex; gap: 8px; }
.dot { width: 30px; height: 4px; background: #333; border-radius: 2px; }
.dot.active { background: #fff; }

/* --- Tablet View (max-width: 1024px) --- */
@media (max-width: 1024px) {
    .stories-grid {
        grid-template-columns: repeat(2, 1fr); /* 3 ki jagah 2 cards */
        gap: 40px 25px;
    }

    .vertical-dashed-line {
        left: 4%; /* Line ko thoda aur kinare kiya */
    }
}

/* --- Mobile View (max-width: 768px) --- */
@media (max-width: 768px) {
    .stories-section {
        padding: 60px 0;
    }

    .vertical-dashed-line {
        display: none; /* Mobile par screen choti hoti hai, line hata dena behtar hai */
    }

    .stories-header {
        flex-direction: column; /* Text aur "Read All" upar-niche */
        align-items: flex-start;
        gap: 20px;
    }

    .stories-filters {
        overflow-x: auto; /* Filters ko scrollable banaya */
        flex-wrap: nowrap;
        padding-bottom: 15px;
        width: 100vw;
        margin-left: -20px; /* Container padding compensate karne ke liye */
        padding-left: 20px;
    }

    .stories-filters::-webkit-scrollbar {
        display: none; /* Scrollbar hide ki */
    }

    .filter-tab {
        white-space: nowrap; /* Text break na ho */
        font-size: 13px;
    }

    .stories-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 60px; /* Avatar ke liye extra space */
    }

    .story-card {
        max-width: 450px;
        margin: 0 auto;
    }
}

/* --- Small Mobile (320px - 480px) --- */
@media (max-width: 480px) {
    .header-left h2 {
        font-size: 22px;
    }

    .quote-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .story-card {
        padding: 40px 20px 25px;
    }

    .testimonial-text {
        font-size: 13px;
    }

    .dot {
        width: 20px; /* Pagination dots chote kiye */
    }
}