* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Playpen Sans', sans-serif;
}

body {
    font-family: 'Playpen Sans', sans-serif;
    background-color: white;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 10px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header img {
    height: 60px;
    width: 250px; 
}

/* Navbar Styling */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}
.nav-ele
/* Logo Styling */
.logo {
    font-size: 24px;
    font-weight: bold;
    color: black;
}

/* Desktop Navbar Links */
.nav-links {
    display: flex;
    list-style-type: none;
    gap: 20px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: black;
    text-decoration: none;
    padding: 10px 15px;
    display: inline-block;
    font-size: 16px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background-color: #f1f1f1;
    border-radius: 4px;
}

/* Dropdown Menu */
.dropdown {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    list-style-type: none;
    padding: 8px 0;
    margin-top: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    min-width: 200px;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown li {
    margin: 0;
}

.dropdown a {
    padding: 10px 20px;
    display: block;
    white-space: nowrap;
    color: #333;
    transition: all 0.2s ease;
}

.dropdown a:hover {
    background-color: #f8f9fa;
    color: #000;
    padding-left: 25px;
}

/* Show dropdown on hover (Desktop) */
.nav-links li:hover .dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: black;
    transition: 0.3s;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Sidebar Styling */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background-color: white;
    color: black;
    padding: 20px;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar.active {
    left: 0;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin: 8px 0;
}

.sidebar ul a {
    color: black;
    text-decoration: none;
    display: block;
    padding: 12px 15px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.sidebar ul a:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

/* Dropdowns in Sidebar */
.sidebar .dropdown {
    max-height: 0;
    overflow: hidden;
    padding-left: 15px;
    transition: max-height 0.3s ease;
    visibility: visible;
    opacity: 1;
    position: static;
    box-shadow: none;
    transform: none;
}

.sidebar .dropdown.active {
    max-height: 500px;
}

.sidebar .dropdown a {
    padding: 10px 15px;
}

/* Overlay */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay.active {
    display: block;
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .sidebar .dropdown a {
        padding-left: 25px;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .sidebar .dropdown a {
        padding-left: 25px;
    }
}
/* Slideshow styles */
.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: auto;
    overflow: hidden;
}
.slide-container{
    display: flex;
    justify-content: center;
}
.mySlides {
    width: 1200px;
    display: none;
}

.fade {
    animation: fade 1.5s ease-in-out;
}

@keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.dot-container {
    text-align: center;
    padding: 10px 0;
}

.dot {
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
    cursor: pointer;
}
/* 
.active {
    background-color: #717171;
} */

/* Responsive styles */
@media (max-width: 768px) {

    .slideshow-container{
        display: none;
    }
}


.dot-container {
display: none;
}


.container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px; /* Set a max width for the container */
    margin: auto; /* Center container */
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

.card:hover {
    transform: scale(1.05);
}

.card-title {
    padding: 15px;
    font-size: 18px;
    text-align: center;
    background-color: #f4f4f4;
    color: #333;
}

.card-content {
    padding: 15px;
}


.educators-section {
    background-color: #f27d42; 
    padding: 50px 20px;
    display: flex;
    justify-content: center;
  }

  .educators-container {
    max-width: 1200px;
    display: flex;
    align-items: center;
  }

  .image-container2 img {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 400px;
    height: 430px;
  }

  .content-container {
    background-color: #ffffff;
    margin-left: 30px;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
  }

  .content-container h1 {
    font-size: 28px;
    color: #3b3b3b;
    margin-bottom: 20px;
  }

  .content-container p {
    font-size: 16px;
    line-height: 1.6;
    color: #4b4b4b;
    margin-bottom: 15px;
  }

  .content-container a {
    display: inline-block;
    background-color: #7f56d9;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 15px;
    transition: background-color 0.3s ease;
  }
  .content-container p{
    font-size: 1.3rem;
  }

  .content-container h1{
    text-align: center;
  }

  .content-container a:hover {
    background-color: #6942b9;
  }

  /* Responsive design */
  @media (max-width: 1024px)  {
    .educators-container {
        flex-direction: column;
        text-align: center;
      }
  }
  
  @media (max-width: 768px) {
    .educators-container {
      flex-direction: column;
      text-align: center;
    }

    .image-container img {
      margin-bottom: 20px;
      height: auto;
    }

    .content-container {
      margin-left: 0;
    }

    .content-container p{
        font-size: 0.7 rem;
    }
  }

iframe {
    width: 100%;
    height: 200px; /* Adjust height as needed */
    border: none;
}

.math-card-wrapper {
    width: 100%;
padding: 20px;
}

.math-card-wrapper {
padding: 20px;
display: flex; 
justify-content: center;
}

.math-card {
/* background-image: url('https://dhimath.org/images/DhimathJourney.gif'); Replace with your image URL */
background-size: cover;
background-position: center;
border-radius: 10px;
width: 100%; /* Increased width */
height: 250px; /* Increased height */
padding: 20px;
display: flex;
flex-direction: column;
justify-content: center; /* Center content vertically */
align-items: center; /* Center content horizontally */
text-align: center;
color: #A020F0;
text-shadow:  0 0 160px #A020F0;
}

.title {
font-size: 2.5em; /* Increased font size */
font-weight: bold;
margin-bottom: 20px;
}

.button {
    background-color: #6200ea; /* Button color */
    color: white; /* Text color */
    border: none;
    border-radius: 5px;
    padding: 15px 30px;
    font-size: 16px;
    cursor: pointer;
    outline: none;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s;
    text-decoration: none;
}

.button::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.2));
    animation: shimmer 1.5s infinite;
    transition: opacity 0.3s;
    opacity: 0;
}

.button:hover::before {
    opacity: 1;
    animation: shimmer 1.5s infinite ;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.tagline {
font-size: 1.5em; /* Increased font size */
margin-top: 20px;
}

.banner {
text-align: center;
}

.banner-title {
font-size: 3em;
margin-bottom: 20px;
color: #333; /* Dark color for title */
}

.typing-animation {
font-size: 1.5em;
color: #555; /* Default text color */
white-space: pre; /* Preserve whitespace */
overflow: hidden; /* Prevent overflow */
}

@media (max-width: 480px) {
    .typing-animation{
        font-size: 1em;
    }
}

.main-title {
    text-align: center;
    font-size: 3em;
    padding: 5px;
    color: #333;
}



.card-wrapper {
    display: flex; /* Use flexbox for centering */
    justify-content: center; /* Center the items horizontally */
    width: 100%; /* Full width */
}

/* Existing styles remain unchanged */
.gallery-container {
    display: flex; /* Use flexbox for full-width layout */
    justify-content: space-between; /* Distribute images evenly */
    max-width: 1200px; /* Optional max width */
    width: 100%; /* Make it responsive */
    padding: 20px; /* Padding for inner spacing */
    box-sizing: border-box; /* Include padding in width calculations */
}

/* Individual gallery items */
.gallery-item {
    flex: 1; /* Make items flexible to fill space */
    text-align: center;
    background-color: #FFFFFF; /* White background for cards */
    padding: 15px;
    margin: 0 10px; /* Margin between images */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden; /* Prevent overflow */
}

/* Image styling */
.gallery-item img {
    width: 100%; /* Ensure images cover full width of card */
    height: auto; /* Maintain aspect ratio */
    max-height: 200px; /* Set a maximum height for images */
    object-fit: contain; /* Ensure the entire image is visible */
    border-radius: 8px; /* Rounded corners for images */
}

/* Title styling */
.title2 {
    font-size: 1.5em; /* Increased font size */
    font-weight: bold;
    color: #FFFDD0;
    background-color: #FF8C42;
    padding: 5px;
    margin: 10px 0;
    border-radius: 5px;
}

/* Description styling */
.description {
    color: #FF8C42;
    font-size: 1.2em; /* Increased font size */
    line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-item {
        margin: 0 5px; /* Reduce margin on smaller screens */
    }
    .description {
        font-size: 1em; /* Adjusted for smaller screens */
    }

    .gallery-container{
        flex-direction: column;
        gap: 10px;
        margin: 10px;
    }

   
}

@media (max-width: 480px) {
    .gallery-item {
        margin: 0 2px; /* Further reduce margin for very small screens */
    }
    .title2 {
        font-size: 0.8em; /* Further adjusted for smaller screens */
    }
    .description {
        font-size: 0.6em; /* Further adjusted for smaller screens */
    }
}

.text-animation-container {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
    padding: 20px 0; /* Add padding for spacing without excessive height */
}

.text-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.static-word {
    font-size: 2.5rem;
    font-weight: bold;
}

.dynamic-text-box {
    height: 60px; /* Increased height to accommodate descenders like 'y' */
    line-height: 60px; /* Match the height for proper vertical centering */
    overflow: hidden;
    position: relative;
}

.dynamic-text-list {
    position: relative;
    animation: rollUp 6s cubic-bezier(0.23, 1, 0.32, 1) infinite;
}

.dynamic-text {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    height: 60px; /* Match the .dynamic-text-box height */
}

.joy { color: #EC6D24; }
.innovation { color: #284B7A; }
.dhimath { color: #4E9736; }

@keyframes rollUp {
    0%, 25% {
        transform: translateY(0);
    }
    33%, 58% {
        transform: translateY(-60px); /* Match the new height */
    }
    66%, 91% {
        transform: translateY(-120px); /* Match the cumulative height */
    }
    100% {
        transform: translateY(-180px); /* Match the total height */
    }
}

@media (max-width: 768px) {
    .text-wrapper {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .static-word,
    .dynamic-text {
        font-size: 2rem;
    }

    .dynamic-text-box {
        height: 50px; /* Adjust for smaller font size */
        line-height: 50px;
    }
}

  
.collaboration {
text-align: center;
margin-top: 30px; /* Space between the banner and the collaboration section */
}

.collaboration-title {
font-size: 3em;
margin-bottom: 20px;
color: #333; /* Dark color for title */
}

.image-container {
display: flex; /* Use flexbox to align images */
justify-content: center; /* Center images horizontally */
flex-wrap: wrap; /* Allow wrapping for smaller screens */
}

.collab-image {
width: 100px; /* Set a width for images */
height: auto; /* Maintain aspect ratio */
margin: 0 25px; /* Increased space between images */
transition: transform 0.3s; /* Animation effect on hover */
}

.collab-image:hover {
transform: scale(1.1); /* Scale effect on hover */
}

.supported-by-section {
    text-align: center;
    padding: 40px 20px;
    background-color: #ffffff;
}

.supported-by-section h2 {
    margin-bottom: 20px;
    font-size: 28px;
    color: #333;
}

.logos-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
}

.logo-item {
    width: 250px;
    height: 150px;
    text-align: center;
    background-color: #ffffff; /* To maintain transparency */
    color: white;
    border: 1px solid #ddd;
    border-radius: 10px; /* Add slight rounding for a modern look */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Crop excess image parts */
}

.logo-item img {
    object-fit: contain; /* Ensure images fit within the square */
    background-color: transparent; /* Keeps the background transparent */
}

footer {
    width: 100%;
    background-color: #FFFFFF;
    padding: 2rem;
    border: 20px solid #FFA733;
    color: #002060;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

.footer-container {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on small screens */
    justify-content: space-around;

}

.footer-section {
    flex: 1;
    min-width: 200px;
    padding: 1rem;
    text-align: center;
}

.footer-section h3 {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #FF6600;
}

.footer-logo{
    display: flex;
    justify-content: flex-start;
}
.footer-logo img {
    width: 280px;
    height: 300px;
    margin-bottom: 1rem;
}

.footer-description {
    font-size: 1.2rem;
    color: #2C6E0B;
    margin-top: 0.5rem;
    font-weight: bold;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    color: #002060;
    font-size: 1.1rem;
    margin-top: 0;
}

.footer-section ul li a {
    text-decoration: none;
    color: #002060;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #FF6600;
}

.contribute-button {
    background-color: #002060;
    color: #FFFFFF;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 1rem;
    border: none;
    margin-top: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contribute-button:hover {
    background-color: #FF6600;
}

.whatsapp-button {
    background-color: #25D366;
    color: #FFFFFF;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.whatsapp-button:hover {
    background-color: #128C7E;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    font-size: 0.9rem;
    color: #002060;
    border-top: 1px solid #FF6600;
    margin-top: 2rem;
}

.footer-bottom a {
    color: #002060;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #FF6600;
}

.social-icons {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.social-icons a {
    color: #002060;
    margin: 0 0.5rem;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #FF6600;
}

.join-whatsapp h3 {
    font-size: 1.6rem;
    color: #FF6600;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.join-whatsapp .footer-section a {
    color: #002060;
    font-size: 1rem;
    text-decoration: none;
    margin-bottom: 0.3rem;
    display: block;
}

.join-whatsapp .footer-section a:hover {
    color: #FF6600;
}

/* Responsive styling for mobile */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        min-width: 100%;
        padding: 1rem;
    }

    .footer-logo img {
        width: 300px;
    }

    .footer-description {
        font-size: 1rem;
    }
    .footer-section ul li{
        list-style-type: none;
    }
    .footer-section ul li a {
        font-size: 0.9rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
    }

    .social-icons a {
        font-size: 1.3rem;
    }
}
