/* Existing styles */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Malayalam&family=Open+Sans&display=swap');

body {
    font-family: 'Noto Sans Malayalam', 'Open Sans', sans-serif;
}
    @font-face {
        font-family: 'Chilanka';
        src: url("{% static 'fonts/Chilanka-Regular.ttf' %}") format('truetype');
        font-weight: 400;
        font-style: normal;
    }
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
  }

body {
    font-family: 'Noto Sans Malayalam', 'Open Sans', sans-serif;

    background-color: #ccf0ebc0;
}

/* Navbar styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #281E30; /* Transparent background */
    backdrop-filter: blur(10px); /* Blurred background */
    padding: 10px 20px;
}

.navbar .left {
    color: #000000;
    font-weight: bold;
}

.navbar .right {
    display: flex;
    align-items: center;
}

.navbar .hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.navbar .hamburger .bar {
    width: 25px;
    height: 3px;
    background-color:#ffffff;
    margin: 4px 0;
    transition: 0.4s;
}

.navbar .menu {
    display: flex;
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 15px;
    transition: 0.3s;
}

.navbar a:hover {
    font-weight: bold;
}

/* Sidebar styles */
.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(51, 51, 51, 0.8); /* Transparent background */
    backdrop-filter: blur(10px); /* Blurred background */
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
    z-index: 1000;
}

.sidebar a {
    padding: 10px 15px;
    text-decoration: none;
    font-size: 18px;
    color: white;
    text-shadow: 1px 1px 2px black; /* White font with black border */
    display: block;
    transition: 0.3s;
}

.sidebar a:hover {
    background-color: #ddd;
    color: black;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
}



.search-container input[type="text"] {
    width: 67%;
    padding: 22px;
    border-radius: 22px;
    outline: none;
    background-color: #faf7f2;
    transition: width 0.4s ease-in-out;
    height: 28px;
    margin-top: 5px;
}

.search-container button {
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
    position: relative;
    left: -35px;
    top: 2px;
}

/* Letter index styles */
/*.letter-index {
    margin-top: 60px;
    display: none; 
    text-align: left; 
    font-size: 1.2em; 
    text-decoration: none; 
    padding: 10px;
    background-color: #201d58;
    backdrop-filter: blur(10px); 
    position: fixed;
    top: 60px; 
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;

}
.letter-index h3{
    text-align: center;
    color:#ffffff;
}

.letter-index a {
    color: #ffffff;
    text-decoration: none; 
    display: inline-block;
    padding: 5px 10px;
}

.letter-index a:hover {
    
    color:#005b49;
}

.letter-index-row {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}*/

/*****hide on 10th oct*********************/
/*.letter-index {
    background-color: #201d58;
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(238, 236, 236, 0.3);
    padding: 20px;
    margin: 0 auto 20px;
     margin-top: -16%;
    max-width: 80%;
    z-index: 900;
    position: relative;
    transition: all 0.5s ease;
    text-align: center;
}
.letter-index a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    font-size: 1rem;
    padding: 5px 10px; 
    transition: transform 0.3s, color 0.3s;
}
 .letter-index a:hover {
        color: #005b49;
        transform: scale(1.1); 
    }
.letter-index {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem; 
    margin-bottom: 1rem;
}
   
 .letter-index h3 {
        color: #ffffff;
        margin-bottom: 1rem;
        font-weight: 600;
    }*/



.letter-index {
    border-radius: 21px;
    margin-top: 60px;
    display: none;
    text-align: left;
    font-size: 1.2em;
    text-decoration: none;
    padding: 10px;
    background-color: #201d58;
    backdrop-filter: blur(10px);
    /* color: white; */
    position: fixed;
    top: 60px;
    left: 150px;
    right: 150px;
    width: 75%;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;

        display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem; 
    margin-bottom: 1rem;
}

.letter-index a {
    font-weight: 500;
    font-size: 1.2rem;
    padding: 5px 10px; 
    transition: transform 0.3s, color 0.3s;
    text-decoration: none;
    color: #ffffff;
}

 .letter-index a:hover {
        color: #05b491;
        transform: scale(1.1); /* smaller scale */
        font-weight: bolder;
    }
 .letter-index h3 {
        color: #ffffff;
        margin-bottom: 1rem;
        font-weight: 600;
        text-align: center;
    }
.letter-index-row {
    text-align: center;
}


.button-container{
  text-align: center;
      margin-top: -4%;
    margin-bottom: -20%;
}
 .button-container button{

    border: none;
    border-radius: 8px;
    background-color: #201d58;
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    margin-bottom: -4px;
    font-size: larger;
    text-align: center;
    height: 43px;
 }

     .button-container button:hover {
        background-color: #009879;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
/* Intro section styles */
.intro  {
    padding: 20px;
    border-radius: 10px;
     /* Transparent background */
    backdrop-filter: blur(10px); 
    margin-right: 10px;
    margin-left: 10px;
    margin-bottom: 120px;/* Blurred background */
    background-color: #F6D4CF;
}

.intro   h2 {
    text-align: left;
    font-size: 4.5rem;
    color: #281E30;
}

.intro  p {
    text-align: justify; 
    color: #281E30;
    font-size: 1.0rem;
    margin-bottom: 10px;
    font-weight: 900;
}
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

.intro  h2 {
    animation: slideInRight 2s ease-in-out;
}

.intro p {
    animation: slideInLeft 2s ease-in-out;
}

.digital {
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 120px;/* Blurred background */
}
.digital h2 {
    font-size: 4.5rem;
    color: #281E30;
    text-align: right;
    margin-right: 20px;
   
}

.digital p {
    text-align: justify;

    color: #281E30;
    font-size: 1.0rem;
    margin: 20px;
    margin-bottom: 10px;
    font-weight: 900;
}




.dictionary  {
    padding: 20px;
    border-radius: 10px;
    margin-top: 200px; /* Transparent background */
    backdrop-filter: blur(10px); 
    margin-bottom: 120px;/* Blurred background */
    background-color: #F6D4CF;
    margin:10px;
}

.dictionary  h2 {
    text-align: left;
    font-size: 4.5rem;
    color: #281E30;
}

.dictionary p {
    text-align: justify; 
    color: #281E30;
    font-size: 1.0rem;
    margin-bottom: 10px;
    font-weight: 900;
}
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

.dictionary  h2 {
    animation: slideInRight 2s ease-in-out;
}

.dictionary p {
    animation: slideInLeft 2s ease-in-out;
}

.intro, .digital, .dictionary {
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 120px;
    /* background-color: #F6D4CF; */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Border shadow */
    transition: transform 0.3s, box-shadow 0.3s; /* Smooth transition for hover effect */
}

.intro:hover, .digital:hover, .dictionary:hover {
    transform: translateY(-10px); /* Slight lift on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}

.pagination {
    text-align: center;
    margin: 20px 0;
}

.pagination .step-links a,
.pagination .step-links span {
    margin: 0 5px;
    padding: 8px 16px;
    text-decoration: none;
    color: #007bff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.pagination .step-links a:hover {
    background-color: #f1f1f1;
}

.pagination .step-links .current {
    background-color: #007bff;
    color: #fff;
    border: 1px solid #007bff;
}

/* Modal styles */


/* Card styles */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Add this CSS to style the "Show More" button */
.show-more-button, .show-less-button {
    background-color: #009879;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 10px;
}

.show-more-button:hover, .show-less-button:hover {
    background-color: #009879;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.show-more-button:active, .show-less-button:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .navbar .menu {
        display: none;
    }

    .navbar .hamburger {
        display: flex;
    }

    .sidebar {
        width: 0;
    }

    .sidebar.active {
        width: 250px;
    }
    .search-container input[type="text"] {
        width: 150px; /* Smaller width for mobile view */
    }

    .search-container input[type="text"]:focus {
        width: 200px; /* Enlarged width on focus for mobile view */
    }
    .intro {
        margin-top: 500px;
        padding: 15px;
        margin: 15px;
    }

    .intro h2 {
        font-size: 1.5em;
    }

    .intro p {
        font-size: 1em;
    }
    results-grid {
        grid-template-columns: 1fr;
    }

    .card-header {
        font-size: 1em;
    }
}


.btn1 {
    text-align: center;
    margin-top: -6%;
    margin-bottom: -26%;}
    
.btn1 button {
    
    border: none;
    border-radius: 5px;
    background-color: #201d58;
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    margin-bottom: 254px;
    text-align: center;
    height: 43px;
    width: 350px;
}
.btn1 button:hover {

    text-align: center;
    background-color: #007d63;