/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f9f9f9;
}

/* Professional eBook Banner Styling */
.ebook-banner {
    background: linear-gradient(90deg, #FFD700, #FF8C00); /* Gradient color for an attractive look */
    color: #fff;
    padding: 12px 0; /* Increase padding for spacing */
    text-align: center;
    font-size: 1rem;
    font-family: Arial, sans-serif; /* Use a clean, readable font */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Soft shadow for a modern effect */
}

.ebook-banner p {
    margin: 0;
    font-weight: 600;
}

.ebook-banner .banner-link {
    color: #003366; /* Dark blue for the link */
    font-weight: bold;
    margin-left: 5px;
    text-decoration: underline;
    transition: color 0.3s ease; /* Smooth color transition */
}

.ebook-banner .banner-link:hover {
    color: #fff; /* Change link color on hover for contrast */
}

/* Media Query for Responsive Banner */
@media (max-width: 768px) {
    .ebook-banner {
        font-size: 0.9rem;  /* Adjust font size for mobile */
        padding: 10px 0;     /* Adjust padding for smaller screens */
    }
}

/* Main Section Styling */
.intro {
    text-align: center;
    padding: 50px 0;
}

.intro h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.intro .highlight {
    color: #6c63ff;
}

/* Class 11 and 12 Resource Section (Two by Two Layout) */
.subjects {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping of items into multiple rows */
    justify-content: center;
    gap: 20px; /* Reduced gap between boxes */
    padding: 20px 0;
    margin: 0 auto; /* Center the content horizontally */
    max-width: 900px; /* Limit width to keep the boxes in the middle */
}

.subject-card {
    background-color: #f3f3f3;
    padding: 20px;
    border-radius: 10px;
    width: 200px;
    text-align: center;
}

.subject-card h2 {
    font-size: 2rem;
    color: #6c63ff;
}

.subject-card a {
    display: inline-block;
    margin-top: 10px;
    color: white;
    background-color: #6c63ff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease; /* Smooth transition for hover */
}

.subject-card a:hover {
    background-color: #5a53d3; /* Slightly darker shade of purple on hover */
    transform: scale(1.05); /* Slight zoom-in effect on hover */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Add shadow for depth */
}

/* Responsive Two-Column Layout */
@media (min-width: 769px) {
    .subjects {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Two items per row */
        gap: 20px;
        justify-content: center; /* Ensure grid is centered */
    }
}

/* Center the boxes on smaller screens (Mobile) */
@media (max-width: 768px) {
    .subjects {
        display: flex;
        flex-direction: column; /* Stack boxes vertically */
        align-items: center; /* Center the boxes horizontally */
        gap: 20px;
        max-width: 100%; /* Full width for mobile */
    }
}


/* Footer Styles */
.footer-index {
    background-color: #2c3e50;
    color: #fff;
    padding: 40px 0;
}

.container {
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Footer Description */
.footer-description {
    flex: 1;
    min-width: 250px;
    margin-right: 60px;
}

.footer-description h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-description p {
    font-size: 16px;
    line-height: 1.5;
    max-width: 400px;
}

/* Quick Links */
.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-links h4 {
    font-size: 20px;
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

/* Hover effect for quick links */
.footer-links ul li a:hover {
    color: #f39c12; /* Orange hover color */
}

/* Social Media Links */
.footer-social {
    flex: 1;
    min-width: 200px;
}

.footer-social h4 {
    font-size: 20px;
    margin-bottom: 15px;
}

.social-icons a {
    display: inline-block;
    margin-right: 15px;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.1); /* Scale effect on hover */
}

.social-icons img {
    width: 30px;
    height: 30px;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 14px;
    margin: 0;
}

/* Responsive Design for Footer */
@media (max-width: 768px) {

    .footer-description, .footer-links, .footer-social {
        margin-bottom: 20px;
        margin-right: 0;
    }

    .social-icons a {
        margin-right: 10px;
    }
    
}


/* Scroll-Up Button Styles */
.scroll-up {
    position: fixed;
    bottom: 40px;
    right: 30px;
    background-color: #f57c00; /* Orange */
    color: white;
    border: none;
    border-radius: 50%;
    padding: 15px 20px;
    font-size: 20px;
    cursor: pointer;
    display: none; /* Hidden by default */
    z-index: 999;
    transition: opacity 0.4s ease;
}

.scroll-up:hover {
    background-color: #e65100; /* Darker orange on hover */
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-items {
        display: none;
        flex-direction: column;
    }

    .navbar .hamburger {
        display: flex;
    }

    .main-section {
        padding: 50px 20px;
    }

    .subjects {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
}



/* About Us Section */
.about-us {
    padding: 50px 0;
    background-color: #f9f9f9;
}

/*.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}*/


.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-image img {
    width: 70%;
    max-width: 500px;
    border-radius: 10px;
}

.about-text {
    max-width: 600px;
    margin-left: 40px;
}

.about-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
}

.mission-vision {
    margin-top: 40px;
}

.mission-vision h2,
.team h2 {
    font-size: 2rem;
    color: #6c63ff;
    margin-bottom: 20px;
}

.mission-vision p,
.team p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

/* Team Section */
.team {
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }

    .about-text {
        margin-left: 0;
        margin-top: 20px;
    }

    .about-image img {
        margin-bottom: 20px;
    }
}

/* Footer */
/*.footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

.footer-description p {
    margin: 0;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.footer-links ul li {
    display: inline-block;
    margin: 0 15px;
}

.footer-links ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.footer-links ul li a:hover {
    color: #f57c00;
    text-decoration: underline;
}
*/




/* Contact Page Styling */
.contact-page {
    padding: 50px 20px;
    text-align: center;
}

.contact-header h1 {
    font-size: 3rem;
    color: #6c63ff;
}

.contact-header p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 40px;
}

/* Contact Form Styling */
.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form label {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 5px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #6c63ff;
}

.submit-btn {
    background-color: #f57c00;
    color: white;
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #e65100;
}

/* Contact Info Section */
.contact-info {
    margin-top: 50px;
}

.contact-info h2 {
    color: #6c63ff;
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 10px;
}

/* Social Media Links */
.social-media {
    margin-top: 30px;
}

.social-media a {
    margin: 0 10px;
}

.social-media img {
    width: 30px;
    transition: transform 0.3s ease;
}

.social-media a:hover img {
    transform: scale(1.2);
}

/* Map Styling */
.map-container {
    margin-top: 30px;
    max-width: 600px;
    margin: 30px auto;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    border: none;
    border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 600px) {
    .footer {
        padding: 15px 0;
    }

    .footer p {
        font-size: 0.8em;
    }

    .footer-links a {
        font-size: 0.8em;
        margin: 0 5px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .contact-header h1 {
        font-size: 2rem;
    }

    .contact-header p {
        font-size: 1rem;
    }

    .contact-form-container {
        width: 90%;
    }

    .map-container iframe {
        height: 300px;
    }
}


/*Subjects*/
header {
    text-align: center;
    padding: 50px 20px;
    background-color: #6c63ff;
    color: white;
}

header h1 {
    font-size: 3rem;
    margin: 0;
}

header p {
    font-size: 1.2rem;
    margin-top: 10px;
}

.subjects-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 25px;
}

.subject-card {
    background-color: #ffffff;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
}

.subject-card h2 {
    font-size: 2rem;
    color: #f57c00;
}

.subject-card p {
    font-size: 1rem;
    color: #555;
    margin: 20px 0;
}

.subject-card a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #6c63ff;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.subject-card a:hover {
    background-color: #5a53d3;
}

/* Footer Styling */
footer {
    text-align: center;
    padding: 20px;
    background-color: #6c63ff;
    color: white;
    position: relative;
}

footer p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .subject-card {
        width: 90%;
    }
}

/* Custom Scrollbar CSS for the entire page */
::-webkit-scrollbar {
    width: 8px; /* Width of the scrollbar */
}

::-webkit-scrollbar-track {
    background: #f1f1f1; /* Track background color */
}

::-webkit-scrollbar-thumb {
    background: #6c63ff; /* Scrollbar thumb color */
    border-radius: 10px; /* Rounded corners for the thumb */
}

::-webkit-scrollbar-thumb:hover {
    background: #5a54d9; /* Darker color on hover */
}

/* For Firefox */
* {
    scrollbar-width: thin; /* Thin scrollbar */
    scrollbar-color: #6c63ff #f1f1f1; /* Scrollbar thumb color and track color */
}

