/*
  Theme Name: NeoMDA
  Theme URI: https://mydemeter.org/
  Description: Theme for Malaysia Demeter Association Official Website
  Version: 2.1.1
  Author: Afiq
  Text Domain: mydemeter
*/

a {
    color: #ce4639;
    text-decoration: none;
}

.mdared {
    color: #ce4639;
}

body,
button,
input,
select,
textarea {
    color: #434343;
    font-family: 'Libre Franklin', sans-serif;
    font-size: 14.4px;
    font-weight: 300;
}

@media screen and (min-width: 768px) and (max-width:900px)  {
    .navbar-nav {
        font-size: calc(12px - 0.13vw);
    }
}
@media screen and (max-width: 767px)  {
    .navbar-nav .nafiq.dropdown .nav-link,.navbar-nav .nav-link {
        font-size: 1rem;
    }
}

.min-h-280 {
    min-height: 280px;
}

.max {
    max-width: 75rem;
}

.mast {
    position: relative;
    background-repeat: no-repeat;
    background-position-x: center;
    background-size: cover;
}

.search-sect .card img{
    height: 250px;
    width: 250px;
}

.activities-sect .card {
    min-height: 200px;
    max-height: 250px;
}

.bdprep-sect .card {
    height: 200px;
}

.mast .card {
    height: 250px;
}

.card {
    position: relative;
    overflow: hidden;
}

.title-con {
    --bs-bg-opacity: .5;
}

.card-img {
    transition: transform 0.3s ease;
}

.catlist-body {
    height: 350px;
}

.zoom-on-hover:hover>.card-img {
    transform: scale(1.2);
}


@media screen and (min-width:600px) {
    #carousel-header {
        min-height: 550px;
    }

    .carousel-item>img {
        min-height: 550px;
    }
}

@media screen and (max-width:768px) {
    .carousel-item>img {
        max-height: 340px;
    }
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
    --bs-warning-rgb: rgb(255, 193, 7);
    --bs-body-bg: transparent;
    --bs-nav-tabs-link-active-border-color: var(--bs-warning-rgb) var(--bs-warning-rgb) var(--bs-body-bg);

    border-color: var(--bs-nav-tabs-link-active-border-color);
}

.nav-tabs .dropdown-menu .nav-link.active {
    --bs-warning-rgb: unset;
    --bs-body-bg: transparent;
    --bs-nav-tabs-link-active-border-color: var(--bs-warning-rgb) var(--bs-warning-rgb) var(--bs-body-bg);

    border-color: transparent;
    color: rgb(255, 193, 7);
}

#speaker-carousel .center {
    transform: scale(1.4);
    transition: 1s;
}

#speaker-carousel .owl-stage-outer {
    padding: 20% 0 10% 0;
}

@media screen and (min-width:992px) {

    #speaker-carousel .owl-stage-outer {
        padding: 10% 0 5% 0;
    }
}

@media (max-width:767px) {
    /* .nafiq.dropdown>.dropdown-menu {
        display: block;
    } */

    /* .dropdown:hover>.dropdown-menu {
        display: block;
    } */

}

@media (min-width:768px) {
    .nafiq.dropdown:hover>.dropdown-menu {
        display: block;
    }

    .nav-link {
        text-align: center;
    }
}

/* Navwalker */
@media all and (min-width: 769px) {
    ul.depth_1 {
        left: 100% !important;
        top: 0% !important
    }

    ul.depth_0>.menu-item-has-children a:after {
        display: inline-flex;
        content: "";
        border-color: transparent;
        border-style: solid;
        border-width: 5px 0 5px 5px;
        border-left-color: #000000;
    }

    ul.depth_1 a:after {
        border: 0 !important;
    }

    .dropdown-menu {
        font-size: unset;
    }
}

.navbar-nav .dropdown-menu {
    animation: fade-in 0.3s ease-in-out;
}

@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-logo img {
    width: 30px;
}

.hidden-y {
    opacity: 0;
    transform: translateY(-100%);
    transition: transform 0.5s, opacity 0.5s;
}

.visible {
    transform: none;
    opacity: 1;
}

.footer-widget-area {
    position: relative;
    min-height: 400px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position-y: center;

}

.footer-widget-area::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0.5;
}

.footer-widget-area {
    color: white;
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 300;
}

.timer {
    font-size: x-large;
}

@media screen and (min-width:992px) and (max-width:1199px) {
    .timer {
        font-size: large;
    }
}

@media screen and (max-width:600px) {
    .timer {
        font-size: large;
    }
}

.event-line {
    padding: 0.15rem;
}

.marquee {
    white-space: nowrap;
    overflow: hidden;
}

.marquee a,
.marquee div {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-100%, 0);
    }
}

.site-title {
    font-family: 'Playfair Display SC', serif;
    font-size: 24px;
    font-weight: 600;
}

.site-description {
    color: #55963c;
    font-size: 14.4px;
}

#carousel-header>.carousel-inner>.carousel-item::before {
    content: '';
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0));
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: background-color 0.3s ease;
    z-index: 1;
}


/*--------------------------------------------------------------
# Wordpress Social Sidebar Widgets
--------------------------------------------------------------*/
/* afiq */
.social-widget section .is-layout-flex {
    margin-bottom: 0;
    flex-wrap: nowrap;
}

.wp-block-social-links .wp-social-link a {
    padding: 0 .25em;
}

.wp-block-social-links {
    gap: 0 !important;
}

.wp-social-link {
    padding: 0 !important;
    background: none !important;
}

/* afiq */
.wp-block-social-links .wp-block-social-link .wp-block-social-link-anchor,
.wp-block-social-links .wp-block-social-link .wp-block-social-link-anchor:active,
.wp-block-social-links .wp-block-social-link .wp-block-social-link-anchor:hover,
.wp-block-social-links .wp-block-social-link .wp-block-social-link-anchor:visited,
.wp-block-social-links .wp-block-social-link .wp-block-social-link-anchor svg {
    fill: white;
}

/* afiq */
.wp-block-social-links .wp-block-social-link .wp-block-social-link-anchor,
.wp-block-social-links .wp-block-social-link .wp-block-social-link-anchor:active,
.wp-block-social-links .wp-block-social-link .wp-block-social-link-anchor:hover,
.wp-block-social-links .wp-block-social-link .wp-block-social-link-anchor:visited,
.wp-block-social-links .wp-block-social-link .wp-block-social-link-anchor:hover>svg {
    fill: #ce4639;
}

/* OWL Carousel */
.owl-carousel .owl-item img {
    height: 100%;
}

@media screen and (max-width:650px) {
    .afiq.owl-carousel .owl-item img {
        display: inline;
        width: 60%;
    }
}

@media screen and (min-width:992px) {
    .search-width {
        width: 500px;
    }
}

.footer-widget-area .widget {
    position: relative;
}

@media screen and (min-width:950px) {
    .footer-widget-area .widget-area {
        align-items: stretch;
        align-content: space-between;
        display: flex;
        flex-wrap: wrap;
        overflow: hidden;
    }

    .footer-widget-area .widget {
        border-top: none;
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        margin-bottom: 1.65em;
        margin-right: 27px;
        padding: 0.825em 27px 1.65em 0;
        width: 20%;
    }
}

/* .post-cat {
    top: -1rem;
    left: -1rem;
    background-color: #ce4639;
} */

.playfair {
    font-family: 'Playfair Display SC', serif;
    font-weight: 600;
}

/* .nav-links {
    display: flex;
    justify-content: space-between;
} */

.nav-next {
    text-align: right;
}

.white-blur {
    background-color: rgba(255, 255, 255, 0.3);
}

figcaption {
    text-align: center;
}

.navbar-nav .nav-link.active {
    color: #ce4639;

}

.nav-link {
    font-weight: 400;
    color: #000000;
}

@media screen and (min-width:1100px) {
    .utknavbar.nav-link {
        font-size: large;
    }
}

.dropdown-item.active {
    background-color: transparent;
    color: #ce4639;
}

.dropdown-menu>.current-menu-item>a::before {
    content: '> ';
    color: #ce4639;
}

.dropdown-item {
    border-radius: 10px;
}

/*--------------------------------------------------------------
## Event Calendar Widget | afiq
--------------------------------------------------------------*/

.custom-calendar {
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    max-width: 250px;
}

.custom-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background-color: #9d3c3c;
}

.custom-calendar-prev-btn,
.custom-calendar-next-btn {
    background-color: #f5f5f5;
    border: none;
    color: #000;
    cursor: pointer;
    font-weight: bold;
    border-radius: 7px;
    padding: 5px 9px;
    transition: background-color 0.3s ease;
}

.custom-calendar-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background-color: #fff;
}

.custom-calendar-weekdays {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 10px;
    font-weight: bold;
}

.custom-calendar-prev-btn:hover,
.custom-calendar-next-btn:hover {
    background-color: #ddd;
}

.custom-calendar-current-month {
    font-weight: bold;
    text-transform: uppercase;
}

.custom-calendar-body {
    display: flex;
    flex-direction: column;
}



.custom-calendar-weekday {
    flex: 1;
    text-align: center;
    font-size: smaller;
}

.custom-calendar-days {
    display: flex;
    flex-wrap: wrap;
}

.calendar-day {
    flex-basis: calc(100% / 7);
    border-style: solid;
    border-color: transparent;
    text-align: center;
}

.calendar-link {
    flex-basis: calc(100% / 7);
    border-style: solid;
    border-color: transparent;
    background-color: #aa7272;
    text-align: center;
}

.calendar-day:hover {
    background-color: #f5f5f5;
    cursor: pointer;
}

.current-date {
    border-color: #9d3c3c;
}

.calendar-link {
    color: #401317 !important;
}

/* carouselEvent */

#carouselEvent>.carousel-control-prev,
#carouselEvent>.carousel-control-next {
    width: unset;
}

#carouselEvent>.carousel-control-prev>.carousel-control-prev-icon,
#carouselEvent>.carousel-control-next>.carousel-control-next-icon {
    filter: invert(1) grayscale(100);
}

#carouselEvent .carousel-indicators [data-bs-target] {
    background-color: #000;
    border-radius: 50%;
    height: 10px;
    width: 10px;
}

#carouselEvent .carousel-indicators {
    margin-bottom: 0;
}

@media screen and (min-width:450px) {
.post-navigation .nav-links{
display: flex;
justify-content: space-between;
}}