/* 🔹 Dynamic Posts Section */
.dynamic-posts {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}

.dynamic-posts h2 {
  font-size: 26px;
  margin-bottom: 20px;
  color: #1a1a1a;
  border-left: 5px solid #007bff;
  padding-left: 12px;
}

/* 🔹 Post List */
#postList {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

/* 🔹 Individual Post Card */
.post {
  background: #ffffff;
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Hover Animation */
.post:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Left Accent Line */
.post::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: #007bff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.post:hover::before {
  opacity: 1;
}

/* 🔹 Post Title */
.post a {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: #222;
  text-decoration: none;
  margin-bottom: 8px;
}

.post a:hover {
  color: #007bff;
  text-decoration: underline;
}

/* 🔹 Post Meta */
.post small {
  font-size: 13px;
  color: #666;
}

/* 🔹 Loading / Empty State */
#postList:empty {
  font-size: 16px;
  color: #777;
  text-align: center;
}

/* 🔹 Mobile Optimization */
@media (max-width: 600px) {
  .dynamic-posts h2 {
    font-size: 22px;
  }

  .post a {
    font-size: 16px;
  }
}


.dynamic-posts .post a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.dynamic-posts .post small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.9rem;
}
:root {
    --primary-color: #1a237e;
    --secondary-color: #3949ab;
    --accent-color: #00bcd4;
    --background-color: #f5f6fa;
    --text-color: #2c3e50;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}
h3 a {
  text-decoration: none;
  color: white; /* White text */
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
}

/* Enhanced Header Styles */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo h1 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    padding: 0.7rem 1.2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-links li a:hover,
.nav-links li a.active {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Enhanced Hero Section */
.hero {
    text-align: center;
    padding: 6rem 2rem;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                url('https://images.unsplash.com/photo-1516979187457-637abb4f9353?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    margin-bottom: 3rem;
    border-radius: 0 0 50px 50px;
    box-shadow: var(--card-shadow);
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Enhanced Feature Cards */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.feature-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover i {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.feature-card button {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-card button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Enhanced Content Sections */
.content-section {
    display: none;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: white;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

.content-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* Quiz Categories */
.quiz-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

.category:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.category h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Notifications List */
.notifications-list .notification-item {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.notification-item:hover {
    transform: translateX(10px);
    box-shadow: var(--hover-shadow);
}

.notification-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.notification-item .date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Papers List */
.papers-list .paper-item {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.paper-item:hover {
    transform: translateX(10px);
    box-shadow: var(--hover-shadow);
}

.download-btn {
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

/* Enhanced Footer */
footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 4rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .nav-links {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--primary-color);
        flex-direction: column;
        padding: 1rem;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0.5rem 0;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .features {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .content-section {
        margin: 1rem;
        padding: 1.5rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
} 
/* Enhanced Footer Links */
footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem 1rem;
    text-align: center;
}

footer p {
    margin: 0.5rem 0;
    font-size: 14px;
    opacity: 0.9;
}

footer a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Footer container spacing */
footer div {
    max-width: 1200px;
    margin: auto;
}

/* Responsive footer text */
@media (max-width: 768px) {
    footer p {
        font-size: 13px;
        line-height: 1.6;
    }

    footer a {
        display: inline-block;
        margin: 4px 6px;
    }
}
