@font-face {
    font-family: "Blenda Script";
    src: url("https://events.mhangsacreation.com/wp-content/themes/astra/assets/fonts/BlendaScript.woff2") format("woff2"),
         url("https://events.mhangsacreation.com/wp-content/themes/astra/assets/fonts/BlendaScript.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

/* Responsive typography */
body {
  font-size: 16px;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.6;
}

/*Loader css starts*/

/* Full-screen Preloader */
#preloader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: white; /* Background color */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Loader Animation (Spinner) */
.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #ddd;
    border-top: 5px solid #bf202d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Keyframes for spinning effect */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide Preloader after Animation */
.hide-preloader {
    opacity: 0;
    transition: opacity 0.5s ease-out;
    pointer-events: none;
}

/*loader css ends*/

/*hero section css starts*/

.coverimg {
    position: relative;
    width: 100%;
    height: 100%; /* Adjust as needed */
    overflow: hidden;
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.animated-text {
    position: absolute;
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
    color: #000000;
    font-size: 3rem;
    font-weight: bold;
    text-align: left;
    opacity: 0;
    animation: fadeInUp 4s ease-in-out forwards;
}

/* Fade-in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

#changing-text {
    color: #ff5733; /* Highlighted color */
    font-weight: bold;
    transition: opacity 0.5s ease-in-out;
    font-family: "Blenda Script", cursive;
}

/*hero section css ends*/

/*milestone and counter css starts*/
 
.milestone {
    float: left;
    width: 100%;
    margin: 5% 0;
}

/*counter css*/

.col-md-3.count {
    text-align: center;
}

h3.count_title {
    font-family: arial;
    font-size: 20px;
    font-weight: bold;
}

#event-counter-valueA {
    color: #f56a6a;
    font-size: 48px;
    font-weight: bold;
    width: 10%;
}

#event-counter-valueB {
    color: #f56a6a;
    font-size: 48px;
    font-weight: bold;
    width: 10%;
}

#event-counter-valueC {
    color: #f56a6a;
    font-size: 48px;
    font-weight: bold;
    width: 10%;
}

#event-counter-valueD {
    color: #f56a6a;
    font-size: 48px;
    font-weight: bold;
    width: 10%;
}

#plus-sign {
    font-size: 45px;
    color: #f56a6a;
    width: 10%;
    margin: inherit;
    font-weight: bold;
}

/*milestone and counter css ends*/

/*about section css starts*/

/*about section css ends*/


/*service section css starts*/

.service-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #dc2626;
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.1);
}

.content-box {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s ease-in-out forwards;
    background: #fff3f3;
    padding: 20px;
    border-radius: 8px;
}

.content-box.active {
    opacity: 1;
    transform: translateY(0);
}

/*service section css ends*/


/*portfolio secrion css starts*/

/*new portfolio tab*/
.event-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

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

.event-image {
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.1);
}

.event-content {
    padding: 15px;
}

.event-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.event-content p {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.event-category {
    display: inline-block;
    background: #ffeaea;
    color: #e74c3c;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
}
.event-btn {
    display: inline-block;
    padding: 10px 18px;
    background: #e74c3c;
    color: #fff;
    border-radius: 25px;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.event-btn:hover {
    background: #c0392b;
}

.portfolio-btn-wrapper {
    text-align: center;
    margin-top: 25px;
}

.tab-button {
    background: #f4f4f4;
    color: #333;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background: #e74c3c;
    color: #fff;
}

.tab-button.active {
    background: #e74c3c;
    color: #fff;
}


/*service css*/





/*Upcoming Event css*/

.upcoming {

    margin: 4% auto;

    width: 100%;

    float: left;

}



.upcoming_title h2 {
    text-align: center;
    font-weight: bold;
    font-family: 'Arial';
}



.upcoming_details h2 a {

    color: #BF212E;

    font-weight: bold;

    font-family: 'Arial';
    font-size: 27px;
}

.upcoming_details p {
    font-family: helvetica;
    font-size: 18px;
}

.upcoming_conts {

    float: left;

    width: 100%;

    margin: 3% auto;

}







.upcoming_img img {

    width: 100%;

    border-radius: 10px;

}



.upcoming_details h2 {

    font-size: 24px;

    margin-bottom: 10px;

}



.upcoming_details p {

    font-size: 16px;

    color: #555;

}






/*Sponsor Slider css*/



.sponsors h2 {

    text-align: center;
    font-weight: bold;
    font-family: 'Arial';
}

/*News css*/



.news_title h2 {

    text-align: center;
    font-weight: bold !important;
    font-family: 'Arial';
}


/*footer css*/



#foot {

    background: #000;

}


.footer {
    margin: 3% auto;
    padding: 5%;
}



.col-md-4.foot-logo {
    text-align: center;
}



.foot_logo img {
    float: left;
    width: 70% !important;
}

.foot_logo p {
    float: left;
    color: #fffafa;
    font-family: helvetica;
    font-size: 15px;
    margin-top: 10%;
}


.foot_quick {

    padding-left: 10%; 

}



.foot_quick h2 {

    color: #fff;

    font-weight: bold;

}

.row.lone {
    text-align: center;
    float: left;
    width: 100% !important;
    margin-top: 10%;
    font-size: 15px;
    font-family: helvetica;
}

.row.ltwo {
    text-align: center;
    float: left;
    width: 100% !important;
    margin-top: 10%;
    font-size: 15px;
    font-family: helvetica;
}




.foot_quick .ql a {

    color: #fff;

}



.foot_quick .ql a:hover {

    text-decoration: none;

    color: #BF202d;

}

.foot_contact h2 {
    font-family: arial;
    color: #fffafa;
    font-weight: bold;
}

.foot_contact ul {
    margin: 10% 0 0 0;
    list-style: none;
}

.foot_contact li {
    color: #fffafa;
    font-size: 15px;
    margin-bottom: 6%;
    font-family: helvetica;
}

.con_icon {
    float: left;
    width: 6%;
    margin-right: 1%;
}

.site-below-footer-wrap.ast-builder-grid-row-container.site-footer-focus-item.ast-builder-grid-row-full.ast-builder-grid-row-tablet-full.ast-builder-grid-row-mobile-full.ast-footer-row-stack.ast-footer-row-tablet-stack.ast-footer-row-mobile-stack {

    padding: 0;

}

.footer-social-icons {
    text-align: left;
    margin-top: 20px;
}
.footer-social-icons a {
    display: inline-block;
    margin: 0 10px;
    font-size: 20px;
    color: #fff;
    transition: color 0.3s;
}
.footer-social-icons a:hover {
    color: #bf202d;
}





/*single page css*/



.post_img {

    float: left;

    width: 100%;

    max-height: 100%;

}



.single_main_content {

    float: left;

    width: 100%;

}


/*gallery css*/
/*#content {
    margin-top: 10%;
}*/

.gallery-item {
    margin-top: 10%;
}

/*single php css*/
section.ast-single-entry-banner {
    display: none;
}
.single_post {
    margin-top: 10%;
}
.pthumb {
    float: left;
    width: 45%;
}
.ptit {
    float: right;
    width: 50%;
}
.post_title .single_post {
    font-family: arial;
    font-weight: bold;
    font-size: 30px;
}

.post-field {
    margin-top: 10%;
}

.post-field p {
    font-family: helvetica;
    font-size: 15px;
}

.related-posts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}
.related-post-item {
    flex: 1 1 calc(33.33% - 20px);
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.related-post-item img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}
.related-title {
    font-size: 24px;
    margin-bottom: 10px;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}
/*CSS for mobile*/

/* Responsive navigation */
@media (max-width: 768px) {
  .main-menu {
    padding: 10px;
  }
  
  .hero-section {
    padding: 20px;
  }
  
  .portfolio-item {
    width: 100%;
    margin-bottom: 20px;
  }
  
  .services-section .service-card {
    width: 100%;
    margin-bottom: 15px;
  }
}

/* Improve touch targets for mobile */
@media (max-width: 480px) {
  button, 
  .nav-link,
  .menu-item a {
    min-height: 44px;
    min-width: 44px;
    padding: 12px 16px;
  }
}


@media (max-width: 768px) {

.coverimg {
    position: relative;
    width: 100%;
    /* height: 730px; */
    overflow: hidden;
}

.animated-text {
    display: none;
}

.port-title h2 {
    font-family: Arial;
    font-weight: bold;
    font-size: 25px;
}

.swiper-slide h3 {
    text-align: left;
    font-size: 8px;
    margin-top: 0;
    top: 85%;
    position: absolute;
    color: #fffafa;
    font-family: arial;
    font-weight: bold;
    background: #000;
    width: 100%;
    padding: 3% 3%;
}


.services-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    border-bottom: 3px solid #bf202d;
    padding-right: 20px;
    margin-bottom: 5%;
}

.service-content h2 {
    font-size: 20px;
}

    /*upcoming css*/

    .upcoming {
        float: left;
        width: 100%;
    }
    .upcoming_conts {
        margin-bottom: 10%;
    }
    .upcoming_details h2 {
        text-align: center;
    }
    .upcoming_details p {
        display: none;
    }
    .upcoming_details div {
        text-align: center;
        float: left;
        width: 100%;
    }


    /*footer css*/
 .footer {
    margin: 3% auto;
    text-align: center;
}   


    .col-md-3.foot_logo {
        float: left;
        width: 100%;
        text-align: center;
    }
    .foot_logo img {
    float: left;
    width: 70% !important;
    margin-left: 15%;
}

    .col-md-4.foot_quick {
        text-align: center;
        margin: 5% 0;
    }

    .con_icon {
    display: none;
}

    .footer-social-icons {
    text-align: center;
    margin-top: 20px;
}
    
}   
