* {
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    font-family: Arial, sans-serif;
    min-height: 100vh; /* Ensure the body takes up at least the full viewport height */
    display: flex;
    flex-direction: column;
}

header {
    background: linear-gradient(90deg, #333, #555); /* Gradient background for the menu */
    color: white;
    padding: 1rem;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .social-links {
    display: flex;
}

header .social-links a {
    color: white;
    margin-left: 1rem;
    text-decoration: none;
}

.logo-bright {
    filter: brightness(1.5);
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    margin: 0;
}

nav ul li {
    position: relative;
    margin: 0 1rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav ul li .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(90deg, #333, #555);
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 10; /* Ensure submenu is above other elements */
}

nav ul li:hover .submenu {
    display: block;
}

nav ul li .submenu li {
    margin: 0;
}

nav ul li .submenu li a {
    padding: 0.5rem 1rem;
    display: block;
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

.language-switcher button {
    background-color: #444;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.language-switcher button:hover {
    background-color: #555;
}

.banner {
    width: 100%; /* Set width to 100% */
    height: 180px; /* Set a fixed height for the banner */
    background-color: #ffeb3b; /* Light yellow background color */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border: 2px solid #ccc; /* Add a border */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add a shadow for 3D effect */
    z-index: 1; /* Ensure banner is below the submenu */
    margin: 0; /* Remove margin */
}

.registration-number {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1rem;
    color: maroon;
}

.address-text {
    font-size: 1rem;
    color: maroon;
}

.title {
    text-align: center;
    color: maroon;
    margin-top: 10px;
}

.small-text {
    font-size: 1.5rem; /* Smaller font size for श्री */
    font-weight: bold; /* Make text bold */
}

.large-text {
    font-size: 2.5rem; /* Larger font size for परशुराम ढोल ताशा पथक ट्रस्ट पुणे */
    font-weight: bold; /* Make text bold */
}

.carousel-inner img {
    height: 600px; /* Set a fixed height for the carousel images */
    object-fit: cover; /* Ensure the images cover the container without distortion */
}

#slider {
    padding: 0; /* Remove padding from the slider section */
}

.carousel {
    margin: 0; /* Remove margin from the carousel */
}

.page-title {
    font-size: 2.5rem; /* Increase font size */
    font-weight: bold; /* Make text bold */
    background: linear-gradient(90deg, #555, #525252); /* Gray gradient color */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

#statistics {
    padding: 2rem 0;
}

.stat {
    text-align: center;
    padding: 0 15px; /* Add space between each column */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat h3 {
    margin: 0.5rem 0; /* Add space between the numbers and text */
    font-size: 2.5rem; /* Increase font size */
    font-weight: bold; /* Make text bold */
    background: linear-gradient(90deg, #555, #999); /* Gray gradient color */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat p {
    margin: 0.5rem 0; /* Add space between the numbers and text */
    font-size: 2rem; /* Increase font size */
    font-weight: bold; /* Make text bold */
    background: linear-gradient(90deg, #555, #999); /* Gray gradient color */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.about-row {
    height: 500px; 
}

.about-content {
    width: 100%;
    background: url('../images/about-back.jpg') no-repeat center center; 
    background-size: cover; /* Cover the entire area */
    position: relative;
    padding: 1rem;
}

.about-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(100px); 
    box-shadow: 0 0 5px 5px white inset;
    border-radius: 10px;
    z-index: 1;
}

.about-content h2,
.about-content p {
    position: relative;
    z-index: 2;
}

.registration {
    width: 100%;
    border: 5px solid #ffcc00;
    border-radius: 10px;
    box-shadow: 0 0 5px 5px #ffcc00 inset;
    padding: 1rem;
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    background: linear-gradient(90deg, #555, #999); /* Gray gradient color */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertical center */
    align-items: center;
}

.registration-img-overlap {
    /* Remove position: absolute and bottom */
    width: 80%;
    max-width: 350px;
    z-index: 2;
    margin-top: 2.5rem;
}

.reg-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    background: linear-gradient(90deg, #555, #999); /* Gray gradient color */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.3;      /* Add or increase line-height */
    line-height: 1.3;
    padding-top: 0.3em;
    text-align: center; /* Center the heading text */
    display: block;     /* Ensure block-level for centering */
}

.animated-text {
    padding: 2rem;
    animation: pulse 1.5s infinite;
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem; /* Increase font size */
    font-weight: bold; /* Make text bold */
    background: linear-gradient(90deg, #555, #999); /* Gray gradient color */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.animated-icon {
    font-size: 3rem;
    color: #ffcc00;
    animation: bounce 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

#cards {
    padding: 1rem 1rem; 
}

.cards-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; 
}

.photo-card {
    border: 0.5px solid #ffeb3b;
    box-shadow: 0 0 3px 3px #ffeb3b;
}

.card {
    text-align: center;
    border: 2px solid #ddd;
    box-shadow: 0 10px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.5px;
}

.card:hover {
    transform: translateY(-10px);
}

.card img {
    width: 100%;
    height: 100%; /* Increase the height of the image */
    object-fit: cover;
}

.card p {
    margin: 0;
    padding: 0.5rem;
    flex-shrink: 0; /* Prevent the label from shrinking */
    font-weight: bold; /* Make text bold */
    -webkit-background-clip: text;
    background-clip: text;
}

.card-text {
    line-height: 2;
}

.bold-text {
    font-weight: bold;
    margin: 0 auto;
}

.fixed-card {
    width: 500px; /* Increased width */
    height: 500px; /* Increased height */
    border: 0.5px solid #ffeb3b;
    box-shadow: 0 0 3px 3px #ffeb3b;
    transition: transform 0.3s ease;
}

.fixed-card img {
    height: 350px; /* Increased height for the image */
    object-fit: cover; /* Ensure the image covers the area without distortion */
}

.fixed-card .card-body {
    overflow: hidden; /* Hide overflow content */
    text-overflow: ellipsis; /* Add ellipsis for overflow text */
    padding: 10px; /* Reduce padding for less space */
}

.social-title {
    font-weight: bold; /* Make text bold */
    background: linear-gradient(90deg, #555, #999); /* Gray gradient color */
    -webkit-background-clip: text;
    background-clip: text;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: auto; /* Ensure the footer stays at the bottom */
}

.responsive-container {
    width: 100%;
    max-width: 100%;
  }
  
  .responsive-container img {
    width: 100%;
    height: 500px; /* Set a fixed height for the image */
    display: block;
  }

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar {
        justify-content: flex-start !important;
    }

    .logo-social-col {
        justify-content: flex-start !important;
        align-items: flex-start !important;
        text-align: left !important;
    }
    
    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    .banner {
        height: auto; /* Allow the banner to adjust its height */
        padding: 1rem; /* Add padding for better spacing */
    }

    .registration-number {
        font-size: 0.8rem; /* Adjust font size for smaller screens */
    }

    .registration-img-overlap {
        width: 90%;
        max-width: 260px;
    }
    
    .small-text {
        font-size: 1.2rem; /* Adjust font size for smaller screens */
    }

    .large-text {
        font-size: 1.8rem; /* Adjust font size for smaller screens */
    }

    .address-text {
        font-size: 0.8rem; /* Adjust font size for smaller screens */
    }

    #about {
        flex-direction: column;
    }

    .about-content, .registration {
        width: 100%;
    }

    .about-row {
        margin-bottom: 720px; 
    }

    .registration {
        margin-top: 10px;
    }

    .fixed-card {
        margin-left: auto;
        margin-right: auto;
        width: auto; /* Increased width */
        height: auto; /* Increased height */
    }
    
    .fixed-card img {
        height: 350px; /* Increased height for the image */
        object-fit: cover; /* Ensure the image covers the area without distortion */
    }
}

@media (max-width: 370px) {
    #cards {
        margin-top: 40px; 
    }

    .about-row {
        margin-bottom: 850px; 
    }
}