     /* ========== ROOT VARIABLES ========== */
     :root {
         --primary-color: #1976D2;
         /* Professional blue */
         --secondary-color: #7B1FA2;
         /* Deep purple */
         --accent-color: #F06292;
         /* Soft pink */
         --dark-color: #1A237E;
         /* Navy blue */
         --light-color: #F8FAFC;
         /* Light slate */
         --text-color: #2D3748;
         /* Dark gray */
         --text-light: #A0AEC0;
         /* Light gray */
         --border-color: rgb(3, 115, 3);
         --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
         --card-shadow-hover: 0 14px 28px rgba(0, 0, 0, 0.15);
         --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
         --border-radius: 12px;
     }

     /* ========== BASE STYLES ========== */

     .main-page {
         padding: .5rem 5%;
         width: 85%;
         margin: 0 auto;
         line-height: 1.5;
     }

     .main-page .hero {
         text-align: center;
         margin-top: .5rem;
         animation: fadeIn 0.8s ease-out;

     }

     .main-page .hero h1 {
         font-size: 2rem;
         color: rgba(170, 2, 2, 0.926)
     }


     /* ========== CHAPTER GRID STYLES ========== */
     .chapter-grid {
         width: 100%;
         display: grid;
         grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
         gap: 2rem;
         margin: 1rem auto;
     }

     .chapter-card {
         width: 100%;
         background: white;
         border-radius: var(--border-radius);
         padding: .6rem;
         box-shadow: var(--card-shadow);
         position: relative;
         overflow: hidden;
         border-left: 5px solid var(--border-color);
         transition: var(--transition);
         margin: .5rem auto;
         display: flex;
         flex-direction: column;
         text-align: center;
         align-items: center;
         justify-content: center;
     }

     .chapter-card:hover {
         transform: translateY(-8px);
         box-shadow: var(--card-shadow-hover);
         border-left-color: var(--accent-color);
     }

     .chapter-card::before {
         content: '';
         position: absolute;
         top: -50%;
         left: -50%;
         width: 200%;
         height: 200%;
         background: radial-gradient(circle, rgba(245, 98, 146, 0.2), transparent);
         transition: var(--transition);
         opacity: 0;
     }

     .chapter-card:hover::before {
         opacity: 1;
         transform: translate(25%, 25%) scale(0.5);
     }

     .chapter-card h2 {
         font-size: 1.2rem;
         font-weight: 600;
         color: var(--text-color);
         margin-bottom: 1rem;
         transition: var(--transition);
     }

     .chapter-card:hover h2 {
         color: var(--secondary-color);
     }

     .chapter-card a {
         display: inline-flex;
         align-items: center;
         background: var(--border-color);
         color: white;
         padding: 0.5rem 1.5rem;
         border-radius: 8px;
         text-decoration: none;
         font-weight: 500;
         transition: var(--transition);
         position: relative;
         overflow: hidden;
         box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
     }

     .chapter-card a::before {
         content: '';
         position: absolute;
         top: 50%;
         left: 50%;
         width: 0;
         height: 0;
         background: var(--accent-color);
         border-radius: 50%;
         transform: translate(-50%, -50%);
         transition: width 0.5s ease, height 0.5s ease;
         z-index: -1;
     }

     .chapter-card a:hover::before {
         width: 400px;
         height: 300px;
     }

     .chapter-card a:hover {
         transform: scale(1.05);
         box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
     }

     .chapter-card a i {
         margin-left: 10px;
         transition: var(--transition);
     }

     .chapter-card a:hover i {
         transform: rotate(45deg);
     }


     /* ========== ANIMATIONS ========== */
     @keyframes fadeIn {
         from {
             opacity: 0;
             transform: translateY(20px);
         }

         to {
             opacity: 1;
             transform: translateY(0);
         }
     }

     @keyframes gradientShift {
         0% {
             background-position: 0% 50%;
         }

         100% {
             background-position: 400% 50%;
         }
     }

     /* ========== RESPONSIVE DESIGN ========== */
     /* Large Tablets (769px - 1024px) */
     @media (max-width: 1024px) {
         .hero h1 {
             font-size: 2.5rem;
         }

         .chapter-grid {
             grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
             gap: 1.8rem;
         }

         .chapter-card {
             padding: 1.8rem;
         }
     }

     /* Small Tablets and Large Mobiles (481px - 768px) */
     @media (max-width: 800px) {

         .chapter-card h2 {
             font-size: 1rem;
             margin-bottom: .5rem;
         }

         .main-page {
             padding: .5rem;
             width: 90%;
         }

         /* .chapter-card  .btn {
             font-size: 1.1rem;
         } */

         .hero h1 {
             font-size: 2.2rem;
         }

         .chapter-grid {
             grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
             gap: 1rem;
             padding: 1rem;
             margin: .5rem auto;
             /* background-color: #7B1FA2; */
         }

         .chapter-card {
             /* padding: 1rem; */
             font-size: 1.2rem;
             width: 100%;
         }

         .chapter-card a {
             font-size: 1.1rem;
         }
     }

     /* Small Mobiles (up to 480px) */
     @media (max-width: 480px) {
         .chapter-grid {
             width: 100%;
             grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
             /* background-color: #1976D2; */

         }
         .chapter-card{
            margin: 0;
         }

         .main-page {
             width: 100%;
         }

         .main-page .hero h1 {
             font-size: 1.5rem;
         }



         .chapter-card h2 {
             font-size: 1.2rem;
         }

         .chapter-card a {
             padding: 0.5rem 1rem;
             font-size: 0.95rem;
         }

         .chapter-grid {
             width: 100%;

         }

     }