/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #ffffff;
    color: #333;
}


/* Header */
header {
    background-color: #ffffff;
    color: #2c3e50;
    padding: 7.5px 3%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease-in-out;
}


header.scrolled {
    background-color: white;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 65px;
    margin-right: 5px;
    margin-left: 2.5px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s ease-in-out;
}

nav ul li a:hover {
    color: #f39c12;
}

.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
#home {
    text-align: center;
    color: white;
}

/* Carousel */
.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 12px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 20px;
    border-radius: 5px;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* Product Section */
#products {
    text-align: center;
    padding: 50px 10%;
    background: #f8f9fa;
}

#products p {
    color: #2c3e50;
    border: none;
    padding: 10px;
    font-size: 17px;
    margin-top: 5px;
    cursor: pointer;
}


.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.product {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.product:hover {
    transform: scale(1.05);
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

.product img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}

.product h3 {
    margin: 10px 0;
    font-size: 18px;
}

.product p {
    font-size: 16px;
    color: #27ae60;
    font-weight: bold;
}

/* .product button {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
} */

/* .product .view-details {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 10px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
} */

.downloads-details {
    background: #fff;
    color: #2c3e50;
    border: 2px solid #2c3e50;
    padding: 7.5px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

.downloads-details:hover {
    background: #f39c12;
    border: none;
}

.product button:hover {
    background: #f39c12;
    border: none;
}

/* #products .view-more {   
    background: #2c3e50;
    color: white;
    border: none;
    padding: 15px;
    font-size: medium;
    margin-top: 30px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
} */

/* About Us Section */
#about {
    background: #fff;
    text-align: center;
    color: #2c3e50;
}

.about {
    padding: 50px 10%;
    margin: 20px auto;
    width: 100%;
    max-width: 1200px;
}

#about h2 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #34495e;
}

#about p {
    font-size: 19px;
    line-height: 1.8;
    color: #555;
    text-align: justify;
    margin-bottom: 15px;
}

#about p strong {
    font-size: 20px;
    font-weight: 600;
    color: #f39c12;
}

#about p:first-letter {
    padding-left: 25px;
    font-size: 22px;
    font-weight: bold;
    color: #f39c12;
    /* // #2c3e50; */
}

/* News Section */
#news {
    height: 100%;
    padding: 40px 20px;
    text-align: center;
    background: #ffffff;
    align-content: center;
}

#more-news {
    height: 100%;
    padding: 40px 20px;
    text-align: center;
    background: #ffffff;
    align-content: center;
}

.news-list {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.news-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: justify;
    width: 400px;
    transition: transform 0.3s ease-in-out;
}

.news-item img {
    width: 100%;
    height: 180px;
    border-radius: 5px;
    object-fit: cover;
}

.news-item h3 {
    font-size: 18px;
    margin: 10px 0;
    color: #2c3e50;
}

.news-item p {
    font-size: 15px;
    color: #555;
    line-height: 1.4;
    height: 60px;
    /* Restrict to 3 lines */
    overflow: hidden;
}

.news-item:hover {
    transform: scale(1.05);
}

.view-details {
    display: inline-block;
    background: #2c3e50;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s;
    text-decoration: none;
}

.view-details:hover {
    background: #f39c12;
    ;
    color: #122c40;
}

.view-more {
    background: #2c3e50;
    color: white;
    padding: 10px 20px;
    border: none;
    margin-top: 25px;
    font-size: 18px;
    cursor: pointer;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.view-more:hover {
    background: #f39c12;
    color: #122c40;
}

/* Contact Section */
#contact {
    height: 100%;
    padding: 50px 8%;
    text-align: center;
    align-content: center;
    background: #f9f9f9;
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-container h2 {
    padding: 20px;
}

/* Get in Touch Box */
.contact-info {
    flex: 1;
    max-width: 35%;
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}

/* Business Name */
.business-name {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
}

/* Info Items */
.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
}

.info-item img {
    width: 24px;
    height: 24px;
}

.contact-info label {
    font-size: 14px;
    font-weight: bold;
    color: #2c3e50;
}


.contact-info p {
    margin: 5px 0;
    color: #555;
}

/* WhatsApp Button */
.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    font-weight: bold;
}

.whatsapp-btn img {
    width: 20px;
    height: 20px;
}

/* Contact Form */
form {
    flex: 1;
    max-width: 60%;
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form input,
form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

form textarea {
    min-height: 150px;
}

form button {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

form button:hover {
    background: #f39c12;
    color: #102a3b;
}


/* Footer Styling */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px 10px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Social Media Icons */
.social-icons {
    display: flex;
    gap: 15px;
    color: #fff;
}

.icons-color {
    font-size: 25px;
    color: #fff;
    padding: 0.50px;
}

.social-icons a img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s;
}

.social-icons a:hover img {
    transform: scale(1.2);
}

/* WhatsApp Chat */
.whatsapp a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    background: #25d366;
    padding: 8px 15px;
    border-radius: 20px;
    transition: background 0.3s;
}

.whatsapp a img {
    width: 24px;
    height: 24px;
}

.whatsapp a:hover {
    background: #1da851;
}

/* Copyright Text */
footer p {
    margin-top: 10px;
    font-size: 16px;
}

/* vihar-book page */

.search-container {
    text-align: center;
    margin: 20px;
}

.search-container input {
    width: 50%;
    padding: 10px;
    font-size: 16px;
}

/* book Section */
#bookList {
    text-align: center;
    padding: 40px 7.5%;
    /* background: #f8f9fa; */
}

.book-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.book {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.book img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}

.book-buttons {
    margin-top: 10px;
}

.book-buttons a {
    display: inline-block;
    margin: 5px;
    padding: 8px 12px;
    text-decoration: none;
    /* color: #fff;
    background-color: #007bff; */
    border-radius: 5px;
}

.book-title
{
    color: #2c3e50;
    font-weight: 400;
    text-align: start;
    padding: 2px 0 0px 0;
}
.book-sub-title {
    color: #f39c12;
    font-weight: 400;
    text-align: start;
    padding: 2px 0 0px 0;
}

.book-prakshan{
    color: #25D366;
    font-weight: 600;
    text-align: start;
    padding: 2px 0 0px 0;
}

.book-field {
  margin: 10px 0;
  text-align: left;
}

.book-label {
  display: block;
  font-size: 0.85rem;
  font-weight: bold;
  color: #555;
  margin-bottom: 3px;
}

.book-title, 
.book-sub-title, 
.book-prakshan {
  margin: 0;
  /* color: #222; */
}


/* news-articvle */
/* News Article */
#article {
    text-align: center;
    padding: 50px 10%;
    background: #f8f9fa;
    width: 100%;
}

#article h2 {
    text-align: left;
    font-weight: 500;
    color: #2c3e50;
}

.article-img {
    width: 100%;
    padding-top: 15px;
    padding-bottom: 15px;
}

#article p {
    text-align: justify;
    color: #2c3e50;
    font-size: 18px;
}

#article p:first-letter {
    padding-left: 25px;
    font-size: 22px;
    font-weight: bold;
    color: #f39c12;
}

.article-heading {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    color: #f39c12;
    padding: 10px 0;
    width: 100%;
}

.article-heading .article-left {
    text-align: left;
}

.article-heading .article-right {
    text-align: right;
}

/* ashish-patra */

.achievements-section {
    padding: 25px 10%;
    text-align: center;
    background-color: #fff;
    margin-bottom: 15px;
}

.achievements-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.achievements-section h2 {
    padding-bottom: 25px;
}

.achievement-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
}

.achievement-card:hover {
    transform: scale(1.05);
}

.achievement-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

.achievement-card h3 {
    font-size: 1.2em;
    margin: 15px 0;
}

.view-image {
    display: inline-block;
    padding: 10px 15px;
    margin-top: 10px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.view-image:hover {
    background: #0056b3;
}

.pdf-preview {
    width: 100%;      /* full width of card */
    height: auto;     /* keep aspect ratio */
    border: 1px solid #ccc;
    margin-bottom: 10px;
}



@media (max-width: 768px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .logo-container {
        display: flex;
        align-items: center;
        flex: 1;
        justify-content: flex-start;
    }

    .hamburger {
        display: block;
        flex: 0;
        text-align: right;
    }

    nav {
        width: 100%;
    }

    nav ul {
        display: none;
        flex-direction: column;
        gap: 10px;
        padding: 10px;
        background-color: #ffffff;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    #sticky-header h2 {
        width: 100px;
        text-decoration: none;
        font-size: 18px;
        font-weight: 500;
    }

    nav ul.active {
        display: flex;
    }

    .product-list {
        grid-template-columns: 1fr;
    }

    .carousel-slide img {
        height: 100%;
        object-fit: cover;
    }

    #about {
        padding: 30px 5%;
    }

    #about p {
        font-size: 18px;
    }

    #about h2 {
        font-size: 28px;
    }

    #news {
        height: 100%;
    }

    .news-list {
        flex-direction: column;
        align-items: center;
    }

    .news-item {
        width: 90%;
    }

    #contact {
        height: 100%;
    }

    .contact-content {
        flex-direction: column;
        align-items: center;
    }

    .contact-info,
    form {
        max-width: 100%;
        width: 100%;
    }

    .achievements-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }


}

@media (max-width: 480px) {
    .achievements-container {
        grid-template-columns: 1fr;
    }
}