/*
Theme Name: Hello Elementor Child
Template: hello-elementor
*/

/* Add the Media Room CSS here */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');

.page .site-main,
.blog .site-main,
.archive .site-main,
.category .site-main,
.page .site-main *,
.blog .site-main *,
.archive .site-main *,
.category .site-main *{
    font-family: "Manrope", sans-serif !important;
}

body:has(.hero__background).home .elementor-location-header {
    background: unset !important;
}

body:has(.hero__background).home .site-header-container {
    background: unset !important;
}

body:has(.hero__background).home #mega-menu-wrap-menu-1 #mega-menu-menu-1 > li.mega-menu-item > a.mega-menu-link {
    color: black !important;
}

body:has(.hero__background).home #mega-menu-wrap-menu-1 .mega-menu-toggle .mega-toggle-block-1 .mega-toggle-animated-inner,
body:has(.hero__background).home #mega-menu-wrap-menu-1 .mega-menu-toggle .mega-toggle-block-1 .mega-toggle-animated-inner::before,
body:has(.hero__background).home #mega-menu-wrap-menu-1 .mega-menu-toggle .mega-toggle-block-1 .mega-toggle-animated-inner::after {
    background-color: black !important;
}

/* Hero Section */
.media-hero {
    background-color: #e8e8e8;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background-image: url(./media-hero.jpg);
}

.media-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

.media-hero__content {
    position: relative;
    z-index: 2;
}

.media-hero__title {
    color: #009846;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    margin: 0;
}

.media-hero__description *{
    color: black !important;
}

.media-hero__description a:hover{
    text-decoration: underline;
}

/* Container */
.media-room-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Filters Bar */
.media-filters {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 40px;
}

.media-filters__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

/* Hide mobile dropdown on desktop */
.media-filters__categories--mobile {
    display: none;
}

.media-filters__search {
    flex-shrink: 0;
    width: 280px;
}

/* Category Buttons */
.category-btn {
    padding: 0 24px;
    height: 38px;
    line-height: 36px;
    border: 1px solid #000000;
    border-radius: 100px;
    background: #fff;
    color: #000000 !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.category-btn:hover {
    border-color: #009846;
    background: #009846;
    color: #fff !important;
}

.category-btn.active {
    background: #009846;
    border-color: #009846;
    color: #fff !important;
}

/* Mobile Dropdown */
.media-filters__categories--mobile select {
    width: 100%;
    height: 38px;
    padding: 0 40px 0 20px;
    border: 1px solid #000000;
    border-radius: 100px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center;
    color: #000000;
    font-size: 15px;
    font-weight: 500;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.media-filters__categories--mobile select:focus {
    outline: none;
    border-color: #009846;
}

/* Search */
.media-filters__search form {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 100px;
    padding: 0 20px;
    height: 38px;
    gap: 10px;
}

.media-filters__search .search-icon {
    color: #999;
    flex-shrink: 0;
}

.media-filters__search input[type="text"] {
    border: none;
    outline: none;
    background: transparent;
    padding: 0;
    font-size: 15px;
    width: 100%;
    color: #333;
    height: 100%;
}

.media-filters__search input[type="text"]::placeholder {
    color: #999;
}

/* Articles Grid */
.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Article Card */
.media-card {
    background: #fff;
    overflow: hidden;
    box-shadow: 0 -1px 4px 1px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.media-card__image {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.media-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.media-card:hover .media-card__image img {
    transform: scale(1.05);
}

.media-card__placeholder {
    width: 100%;
    height: 100%;
    background: #e9ecef;
}

.media-card__content {
    padding: 20px;
    display:flex;
    flex-direction:column;
    gap:8px;
}

.media-card__content *{
    margin: 0 !important;
}

/* Article Card Category */
.media-card__category,
.media-card__category:visited,
.media-card__category:link {
    color: #009846 !important;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none !important;
    text-transform: capitalize;
}

.media-card__category:hover {
    text-decoration: underline !important;
    color: #009846 !important;
}

.media-card__title {
    color: #3D3936;
    leading-trim: both;
    text-edge: cap;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.media-card__title a,
.media-card__title a:visited,
.media-card__title a:link {
    color: #1a1a1a !important;
    text-decoration: none !important;
}

.media-card__title a:hover {
    color: #009846 !important;
}

.media-card__date {
    display: block;
    color: #888;
    font-size: 12px;
}

/* Article Card Link */
.media-card__link,
.media-card__link:visited,
.media-card__link:link {
    color: #009846 !important;
    font-weight: 600;
    text-decoration: none !important;
    font-size: 18px;
}

.media-card__link:hover {
    text-decoration: underline !important;
    color: #009846 !important;
}

/* Pagination */
.media-pagination {
    margin-top: 50px;
    text-align: center;
}

.media-pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #333;
    text-decoration: none;
}

.media-pagination .page-numbers.current,
.media-pagination .page-numbers:hover {
    background: #009846;
    border-color: #009846;
    color: #fff;
}
.mega-menu-item-has-children > .mega-menu-link::after {
	display:none !important;
}

/* No Results */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

/* Responsive */
@media (max-width: 992px) {
    .media-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .media-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    /* Hide desktop buttons, show mobile dropdown */
    .media-filters__categories--desktop {
        display: none;
    }
    
    .media-filters__categories--mobile {
        display: block;
        width: 100%;
    }
    
    .media-filters__search {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .media-grid {
        grid-template-columns: 1fr;
    }
    
    .media-hero {
        padding: 60px 20px;
    }
}