* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #06b6d4;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-accent: #f1f5f9;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

::-webkit-scrollbar-track {
  background-color: #f3f4f6;  /* Equivalent to Tailwind's bg-gray-100 */
  border-radius: 9999px;      /* Equivalent to rounded-full */
}

::-webkit-scrollbar-thumb {
  background-image: linear-gradient(to right, #22d3ee, #3b82f6); /* from-cyan-400 to-blue-500 */
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background-image: linear-gradient(to right, #06b6d4, #2563eb); /* from-cyan-500 to-blue-600 */
}



body {
    font-family: 'Roboto Slab', serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
    display:none;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-logo i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-auth {
    display: flex;
    gap: 1rem;
}

.btn-login, .btn-signup {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-login:hover {
    background: var(--primary-color);
    color: white;
}

.btn-signup {
    background: var(--primary-color);
    color: white;
}

.btn-signup:hover {
    background: var(--secondary-color);
    /* transform: translateY(-2px); */
    box-shadow: var(--shadow-md);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    /* height: 100vh; */
        height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
}

.hero-overlay {
    position: absolute;
    top: 175px;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: rgba(30, 58, 138, 0.7); */
    /* backdrop-filter: blur(1px); */
    display: flex;
    align-items: center;
    /* justify-content: center; */
    z-index: 2;
    /* display: none; */
}


.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
    display:none;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
    font-weight:bold;
    display:none;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
} 

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    box-shadow: var(--shadow-lg);
}

 .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}



.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    display:none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

/* Content Sections */
.content-section {
    padding: 5rem 0;
    position: relative;
}

.content-section:nth-child(even) {
    background: var(--bg-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    border-radius: 2px;
}

/* .view-more-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-more-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.view-more-btn i {
    transition: transform 0.3s ease;
}

.view-more-btn:hover i {
    transform: translateX(5px);
} */


.view-more-btn {
  position: relative;
  overflow: hidden;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
}

.view-more-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease-in-out;
  z-index: 0;
}

.view-more-btn:hover::before {
  transform: scaleX(1);
}

.view-more-btn span,
.view-more-btn i {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease, color 0.3s ease;
}

.view-more-btn:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.view-more-btn:hover i {
  transform: translateX(5px);
}

/* Cards Container */
.cards-container {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    /* scroll-snap-type: x mandatory; */
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) var(--bg-accent);
}

span{
    font-weight:bold;
}

.cards-container::-webkit-scrollbar {
    height: 8px;
}

.cards-container::-webkit-scrollbar-track {
    background: var(--bg-accent);
    border-radius: 4px;
}

.cards-container::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

.cards-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Post Cards */
.post-card {
    flex: 0 0 350px;
    scroll-snap-align: start;
    background: var(--bg-primary);
    border-radius: 16px;
    /* overflow: hidden; */
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    cursor: pointer;
        border: 2px solid transparent;
}

.post-card:hover {
    /* transform: translateY(-8px); */
    box-shadow: var(--shadow-xl);
     border-color: var(--secondary-color);
}

.post-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
    transition: transform 0.3s ease;
    border-radius: 15px
}

/* .post-card:hover .post-image img {
    transform: scale(1.05);
} */

.post-content {
    padding: 1.5rem;
}

.post-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.4;
        height: 28px;
    overflow-y: hidden;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-info img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.post-summary {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
    /* height: 68px; */
    height: 87px;
    overflow-y: hidden;
    word-break: break-word;
}

.post-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.post-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.post-stats i {
    color: var(--secondary-color);
}

/* Profile Cards */
.profile-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
        border: 2px solid transparent;
}

.profile-card:hover {
    /* transform: translateY(-8px); */
    box-shadow: var(--shadow-xl);
     border-color: var(--secondary-color);
}

.profile-header {
    position: relative;
    margin-bottom: 1.5rem;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    position: relative;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--secondary-color);
}

.profile-status {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid white;
}

.profile-status.online {
    background: var(--success-color);
}

.profile-status.away {
    background: var(--warning-color);
}

.profile-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    height:53px;
    overflow-y: hidden;
}

.profile-role {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.profile-bio {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    height: 100px;
    overflow-y: hidden;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

/* Group Cards */
.group-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
        border: 2px solid transparent;
}

.group-card:hover {
    /* transform: translateY(-8px); */
    box-shadow: var(--shadow-xl);
     border-color: var(--secondary-color);
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.group-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.group-badge {
    padding: 0.25rem 0.75rem;
    background: white;
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    /* border: 2px solid black; */
}

.group-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.group-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    height: 108px;
    overflow-y: hidden;
}

.group-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.stat-item i {
    color: var(--secondary-color);
    width: 16px;
}

.group-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    height: 34px;
    overflow-y: hidden;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: var(--bg-accent);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.join-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.join-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Note Cards */
.note-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    background: var(--bg-primary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
        border: 2px solid transparent;
}

.note-card:hover {
    /* transform: translateY(-8px); */
    box-shadow: var(--shadow-xl);
     border-color: var(--secondary-color);
}

.note-thumbnail {
    position: relative;
    /* height: 120px; */
    height: 165px;
    background: linear-gradient(135deg, var(--bg-accent) 0%, var(--border-color) 100%);
    display: flex;
    /* align-items: center;
    justify-content: center; */
}

.note-preview i {
    font-size: 3rem;
    color: var(--text-secondary);
    display:none;
}

.note-preview img{
    height:100%;
    width:100%;
}

.note-type {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    display:none;
}

.note-content {
    padding: 1.5rem;
}

.note-content h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.4;
        height: 50px;
    overflow-y: hidden;
}

.note-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.subject {
    padding: 0.25rem 0.75rem;
    background: var(--secondary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
}

.rating i {
    color: var(--warning-color);
}

.uploader-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.uploader-info img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.note-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.note-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.download-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--success-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Multi Note Cards */
.multi-note-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.multi-note-card:hover {
    /* transform: translateY(-8px); */
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary-color);
}

.collection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.collection-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--warning-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.file-count {
    padding: 0.5rem 1rem;
    background: var(--bg-accent);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
}

.collection-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    height: 50px;
    overflow-y: hidden;
}

.collection-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.file-types {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.file-type {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: var(--bg-accent);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.collection-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.collection-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Video Cards */
.video-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    background: var(--bg-primary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.video-card:hover {
    /* transform: translateY(-8px); */
    box-shadow: var(--shadow-xl);
     border-color: var(--secondary-color);
}

.video-thumbnail {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* .video-card:hover .video-thumbnail img {
    transform: scale(1.05);
} */

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-overlay:hover {
    background: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-duration {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.video-content {
    padding: 1.5rem;
}

.video-content h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.4;
        height: 50px;
    overflow-y: hidden;
}

.creator-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.creator-info img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.video-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.video-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.video-tags {
    display: flex;
    gap: 0.5rem;
}

.video-tags .tag {
    padding: 0.25rem 0.75rem;
    background: var(--secondary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Resource Cards */
.resource-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.resource-card:hover {
    /* transform: translateY(-8px); */
    box-shadow: var(--shadow-xl);
     border-color: var(--secondary-color);
}

.resource-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.resource-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.resource-type {
    padding: 0.5rem 1rem;
    background: var(--accent-color);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.resource-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    height: 50px;
    overflow-y: hidden;
}

.resource-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.category {
    padding: 0.25rem 0.75rem;
    background: var(--bg-accent);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.resource-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
}

.resource-rating i {
    color: var(--warning-color);
}

.resource-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    display:none;
}

.resource-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.resource-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.access-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.access-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}


/* Job Cards */
.job-card {
    flex: 0 0 350px;
    scroll-snap-align: start;
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.job-card:hover {
    /* transform: translateY(-8px); */
    box-shadow: var(--shadow-xl);
    border-color: var(--success-color);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.company-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--success-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.job-type {
    padding: 0.5rem 1rem;
    background: var(--bg-accent);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
}

.job-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    height: 23px;
    overflow-y: hidden;
}

.company-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.company-name {
    font-weight: 600;
    color: var(--text-primary);
}

.job-location {
    color: var(--text-secondary);
    font-size: 0.9rem;
    height:25px;
    overflow-y:hidden;

}

.salary-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--success-color);
}

.job-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
   
    height: 33px;
    overflow-y: hidden;
}

.skill {
    padding: 0.25rem 0.75rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.job-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.apply-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--success-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Stream Cards */
.stream-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stream-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.stream-card.science::before {
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
}

.stream-card.commerce::before {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

.stream-card.arts::before {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
}

.stream-card.technology::before {
    background: linear-gradient(135deg, #06b6d4 0%, #1e3a8a 100%);
}

.stream-card:hover {
    /* transform: translateY(-8px); */
    box-shadow: var(--shadow-xl);
     border-color: var(--secondary-color);

}

.stream-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.stream-card.science .stream-icon {
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
}

.stream-card.commerce .stream-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

.stream-card.arts .stream-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
}

.stream-card.technology .stream-icon {
    background: linear-gradient(135deg, #06b6d4 0%, #1e3a8a 100%);
}

.stream-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.stream-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    height:109px;
    overflow-y:hidden;
}

.stream-subjects {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.stream-subjects .subject {
    padding: 0.25rem 0.75rem;
    background: var(--bg-accent);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.stream-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stream-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.explore-btn {
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.explore-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* College Cards */
.college-card {
    flex: 0 0 350px;
    scroll-snap-align: start;
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.college-card:hover {
    /* transform: translateY(-8px); */
    box-shadow: var(--shadow-xl);
     border-color: var(--secondary-color);
}

.college-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.college-logo {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.college-ranking {
    padding: 0.5rem 1rem;
    background: var(--success-color);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
}

.college-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    height: 49px;
    overflow-y: hidden;
}

.college-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    height: 76px;
    overflow-y: hidden;
}

.college-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.available-courses {
    margin-bottom: 2rem;
}

.available-courses h4 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.courses {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    height: 30px;
    overflow-y: hidden;
}

.course {
    padding: 0.25rem 0.75rem;
    background: var(--secondary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.college-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.info-btn {
    flex: 1;
    padding: 0.75rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width:200px;
}

.info-btn:hover {
    background: var(--primary-color);
    color: white;
}

.college-actions .apply-btn {
    flex: 1;
}


/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
}

.contact-item i {
    width: 20px;
    color: var(--accent-color);
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:valid + label,
.form-group textarea:valid + label {
    top: -0.5rem;
    left: 0.5rem;
    background: var(--primary-color);
    padding: 0 0.5rem;
    font-size: 0.875rem;
    color: var(--accent-color);
}

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--warning-color) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.submit-btn i {
    transition: transform 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(5px);
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.footer-section p {
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links .social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links .social-link:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}



.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem;
        transition: left 0.3s ease;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-auth {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .btn-login, .btn-signup {
        width: 100%;
        justify-content: center;
    }

    .hero-title {
        /* font-size: 2.5rem; */
        font-size: 1.4rem;
    }

   

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary, .btn-secondary {
        /* width: 200px; */
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .cards-container {
        gap: 1.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

     .hero{
        height:30vh;
    }
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        /* font-size: 1rem; */
                font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .view-more-btn {
        align-self: stretch;
        justify-content: center;
    }

    .cards-container {
        gap: 1rem;
    }

    .post-card, .profile-card, .group-card, 
    .note-card, .multi-note-card, .video-card, 
    .resource-card, .job-card, .stream-card, 
    .college-card {
        flex: 0 0 280px;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-buttons {
        gap: 0.5rem;
    }

    .btn-primary, .btn-secondary {
        /* width: 100%; */
        /* padding: 0.875rem 1.5rem;
        font-size: 1rem; */
        padding: 0.6rem 1.2rem;
        font-size: 0.7rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .cards-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .post-card, .profile-card, .group-card, 
    .note-card, .multi-note-card, .video-card, 
    .resource-card, .job-card, .stream-card, 
    .college-card {
        /* flex: 0 0 260px; */
         flex: 0 0 287px;
    }

    .content-section {
        padding: 3rem 0;
    }

    .contact-section {
        padding: 3rem 0;
    }

    .contact-info h2 {
        font-size: 2rem;
    }

    .contact-form {
        padding: 1rem;
    }
    .hero-overlay {
    /* position: absolute; */
    /* top: 76px; */
        top: 82px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
button:focus,
input:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.5);
        --shadow-md: 0 4px 8px 0 rgba(0, 0, 0, 0.5);
        --shadow-lg: 0 8px 16px 0 rgba(0, 0, 0, 0.5);
        --shadow-xl: 0 16px 32px 0 rgba(0, 0, 0, 0.5);
    }
}


 .cards-container { display: flex; gap: 18px; flex-wrap: wrap; }
  .resource-card {
    width: 300px; /* maintain fixed width as per your preference */
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(18,22,30,0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  /* ---------- Thumbnail block (YouTube-like layered look) ---------- */
  .resource-thumbnail {
    position: relative;
    width: 100%;
    height: 170px; /* adjust height as needed */
    overflow: hidden;
    flex-shrink: 0;
    background-color: #ddd;
  }
  .resource-thumbnail img {
    width: 100%;
    height: 100%;
    /* object-fit: cover;  */
    display: block;
    transition: transform .35s ease;
  }
  /* .resource-thumbnail:hover img { transform: scale(1.03); } */

  /* gradient overlay (soft dark for readability) */
  .resource-thumbnail::after{
    content: "";
    position: absolute;
    inset: 0;
    /* background: linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.45) 85%); */
    pointer-events: none;
  }

  /* central play button */
  .play-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    cursor: pointer;
  }
  .play-btn i { font-size: 20px; color: #111; margin-left: 3px; }

  /* top-left badge (e.g., 12 Videos) */
  .badge-left {
    position: absolute;
    left: 10px;
    top: 10px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
  }

  /* top-right duration badge */
  .badge-right {
    position: absolute;
    right: 10px;
    top: 10px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    padding: 6px 9px;
    border-radius: 6px;
    font-size: 13px;
    display: inline-flex;
    gap: 6px;
    align-items: center;
    display: none;
  }

  /* bottom-left uploader small avatar overlap */
  .thumb-uploader {
    position: absolute;
    left: 10px;
    bottom: -18px; /* overlap outside the thumbnail */
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.95);
    padding: 6px 8px;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    font-size: 13px;
  }
  .thumb-uploader img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }

  /* rest of card content */
  .resource-content {
    padding: 18px 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .resource-header { display:flex; align-items:center; gap:10px; }
  .resource-icon { width:36px; height:36px; border-radius:6px; background:#f5f7fb; display:flex; align-items:center; justify-content:center; }
  .resource-type { font-size:13px; color:#666; }
  .resource-content h3 { margin:0; font-size:16px; line-height:1.25; max-height:2.5em; overflow:hidden; text-overflow:ellipsis; }
  .resource-meta { display:flex; justify-content:space-between; align-items:center; gap:8px; font-size:13px; color:#777; }
  .uploader-info { display:flex; align-items:center; gap:8px; font-size:13px; color:#444; }
  .uploader-info img { width:30px; height:30px; border-radius:50%; object-fit:cover; }
  .resource-tags { display:flex; gap:8px; flex-wrap:wrap; display:none; }
  .resource-tags .tag { background:#f0f4ff; padding:6px 8px; border-radius:6px; font-size:12px; }
  .resource-stats { display:flex; gap:12px; font-size:13px; color:#777; align-items:center; }
  .access-btn { margin-top:6px; padding:10px 12px; background:#1d4ed8; color:#fff; border:none; border-radius:8px; cursor:pointer; font-size:14px; align-self:flex-start; }
  .access-btn:hover { opacity:.95; }


  .cards-container {
  display: flex;
  gap: 18px;
  flex-wrap: nowrap;      /* ❌ ab wrap band ho gaya */
  overflow-x: auto;       /* ✅ horizontal scroll allow */
  padding-bottom: 10px;   /* thoda spacing scroll bar ke liye */
  scroll-behavior: smooth;/* smooth scroll */
}
.cards-container::-webkit-scrollbar {
  height: 8px;
}
.cards-container::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 10px;
}
