/* Import Google Font */
html,
body {
    font-family: 'Poppins', 'Hind', sans-serif;
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    padding: 0;
    color: #333;
    background: #f9f9f9;
    line-height: 1.7;   /* readability बढ़ाने के लिए */
    font-size: 15px;    /* default size बढ़ा दिया */
}


/* Main content ko grow karna hoga */
.container.my-5 {
    flex: 1;
}


.hindi {
    font-family: 'Hind', sans-serif;
    color: #444;
}

.notes-preview .card {
    margin-top: 20px;
}

.btn.small {
    padding: 8px 18px;
    font-size: 0.9rem;
}

/* Header */
header {
    background: linear-gradient(135deg, #1d3557, #457b9d);
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: auto;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: #ffdd57;
}

/* Hero */
.hero {
    background: url('https://source.unsplash.com/1600x600/?books,study') no-repeat center center/cover;
    color: #333a76;
    text-align: center;
    padding: 120px 20px;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.btn {
    background: #e63946;
    color: #fff;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.btn:hover {
    background: #d62828;
}

/* Section */
.container {
    width: 90%;
    margin: auto;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin: 40px 0 20px;
    font-weight: 700;
    color: #1d3557;
}

/* Cards */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    margin-bottom: 10px;
    color: #457b9d;
}

/* Footer */
footer {
    background: #1d3557;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
}

footer a {
    color: #fff;          /* white link */
    text-decoration: none; /* remove underline */
    font-weight: 500;
  }

  footer a:hover {
    text-decoration: underline; /* hover पर underline */
  }
  
/* About Section */
.about-section {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    margin-top: 50px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease;
}

.about-title {
    font-family: 'Hind', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    text-align: center;
    color: #1a73e8;
    margin-bottom: 20px;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

.about-text strong {
    color: #e63946;
}

.highlight {
    color: #ff9800;
    font-weight: 600;
}

/* Notes Section */
.notes-section {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    max-width: 800px;
    margin: auto;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2c3e50;
}

.section-subtitle {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #555;
}

.notes-list a {
    display: block;
    padding: 12px 18px;
    margin-bottom: 12px;
    border-radius: 8px;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, background 0.2s;
}

.notes-list a:hover {
    transform: translateY(-2px);
    background: #eef6ff;
}


    .container {
      width: 90%;
      margin: auto;
    }

    .chapters-section {
      margin: 40px auto;
      background: white;
      padding: 30px;
      border-radius: 12px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .section-title {
      font-size: 1.8rem;
      margin-bottom: 10px;
      text-align: center;
      color: #0a3d62;
    }

    .section-subtitle {
      text-align: center;
      color: #555;
      margin-bottom: 25px;
    }

    .chapters-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .chapters-list a {
      display: block;
      padding: 14px 18px;
      background: #f1f2f6;
      border-radius: 8px;
      text-decoration: none;
      color: #0a3d62;
      font-weight: 600;
      transition: all 0.3s ease;
    }

    .chapters-list a:hover {
      background: #0a3d62;
      color: white;
    }

    
    
    .chapter-detail {
      margin: 40px auto;
      background: white;
      padding: 30px;
      border-radius: 12px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .chapter-title {
      font-size: 2rem;
      font-weight: 700;
      margin-bottom: 15px;
      color: #0a3d62;
    }

    .chapter-meta {
      color: #555;
      font-size: 0.9rem;
      margin-bottom: 20px;
    }

    .chapter-content {
      line-height: 1.8;
      color: #2f3542;
      font-size: 1rem;
    }

    .note-box {
      background: #f1f2f6;
      padding: 15px;
      margin: 20px 0;
      border-left: 5px solid #0a3d62;
      border-radius: 8px;
    }

    .back-btn {
      display: inline-block;
      margin-top: 20px;
      padding: 10px 18px;
      background: #0a3d62;
      color: white;
      border-radius: 8px;
      text-decoration: none;
      transition: 0.3s;
    }

    .back-btn:hover {
      background: #3c6382;
    }



@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Responsive */
@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2rem;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
        background: #457b9d;
        padding: 10px;
        border-radius: 8px;
    }
}