/* ----------------------------------------------------------------
	Custom CSS

	Add all your Custom Styled CSS here for New Styles or
	Overwriting Default Theme Styles for Better Handling Updates
-----------------------------------------------------------------*/

/* Premium Light Theme Blog Styles */
.bg-light-color {
    background-color: #f8f9fa !important;
}

.blog-glass-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
    border-radius: 16px !important;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
}

.blog-img-wrap {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.blog-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-glass-card:hover .blog-img-wrap img {
    transform: scale(1.05);
}

.blog-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #222 !important;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 10;
}

.blog-card-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #1a1a1a !important;
    transition: color 0.3s;
}

.blog-glass-card:hover .blog-title {
    color: #00bcd4 !important; /* glowing theme color */
}

.blog-desc {
    color: #555555 !important;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-meta-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
    padding-top: 15px;
    margin-top: auto;
    font-size: 0.8rem;
    color: #666 !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more-btn {
    background: transparent !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #333 !important;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-glass-card:hover .read-more-btn {
    background: #00bcd4 !important;
    color: #fff !important;
    border-color: #00bcd4 !important;
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.25) !important;
}

.sidebar-widget {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a !important;
    border-left: 3px solid #00bcd4 !important;
    padding-left: 12px;
    margin-bottom: 20px;
}

.search-input {
    background: #f8f9fa !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #333 !important;
    border-radius: 30px !important;
    padding: 10px 20px !important;
}

.search-input:focus {
    background: #ffffff !important;
    border-color: #00bcd4 !important;
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.15) !important;
}

.sidebar-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.sidebar-post-img {
    width: 70px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.sidebar-post-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #222 !important;
    line-height: 1.4;
    margin-bottom: 3px;
    transition: color 0.3s;
}

.sidebar-post-title:hover {
    color: #00bcd4 !important;
}

.sidebar-post-date {
    font-size: 0.75rem;
    color: #777 !important;
}

/* Pagination Styling */
.blog-pagination .page-link {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #555 !important;
    border-radius: 50% !important;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 4px;
    transition: all 0.3s;
}

.blog-pagination .page-item.active .page-link {
    background: #00bcd4 !important;
    border-color: #00bcd4 !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(0, 188, 212, 0.3) !important;
}

.blog-pagination .page-link:hover {
    background: #f0f0f0 !important;
    color: #00bcd4 !important;
}

.blog-pagination .page-item.disabled .page-link {
    opacity: 0.4;
    pointer-events: none;
}

/* Lock scroll when any magnific popup is active */
body:has(.mfp-wrap) {
    overflow: hidden !important;
}

/* Fullscreen video popup customization */
.mfp-fullscreen {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.mfp-fullscreen .mfp-content {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
}

.mfp-fullscreen .mfp-iframe-scaler {
    padding-top: 0 !important;
    height: 100% !important;
    width: 100% !important;
}

.mfp-fullscreen .mfp-iframe-scaler iframe {
    width: 100% !important;
    height: 100% !important;
    background: #000 !important;
}

/* Perfect alignment for the close button, overriding theme defaults */
.mfp-fullscreen .mfp-close,
.mfp-fullscreen button.mfp-close {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    line-height: 44px !important;
    background: rgba(0, 0, 0, 0.6) !important;
    border-radius: 50% !important;
    color: #fff !important;
    text-align: center !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 24px !important;
    z-index: 99999 !important;
    transition: background 0.3s, transform 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    cursor: pointer !important;
}

.mfp-fullscreen .mfp-close:hover {
    background: rgba(0, 0, 0, 0.9) !important;
    transform: scale(1.05);
}

/* Premium Product Card Styles */
#section-products .product-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    height: calc(100% - 30px) !important;
    margin: 15px 5px !important;
}

#section-products .product-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(0, 188, 212, 0.2) !important;
}

#section-products .product-card .portfolio-image {
    position: relative !important;
    overflow: hidden !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03) !important;
    border-radius: 16px 16px 0 0 !important;
}

#section-products .product-card .portfolio-image img {
    width: 100% !important;
    height: 250px !important;
    object-fit: cover !important;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

#section-products .product-card:hover .portfolio-image img {
    transform: scale(1.06) !important;
}

/* Elegant brand-colored gradient overlay on hover */
#section-products .product-card .bg-overlay-bg {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.85), rgba(0, 150, 136, 0.85)) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
}

#section-products .product-card .overlay-trigger-icon {
    width: 48px !important;
    height: 48px !important;
    line-height: 48px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    color: #00bcd4 !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important;
    transition: all 0.3s !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#section-products .product-card .overlay-trigger-icon:hover {
    background: #00bcd4 !important;
    color: #ffffff !important;
    transform: scale(1.1) !important;
}

#section-products .product-card .portfolio-desc {
    padding: 24px !important;
    margin: 0 !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    background: #ffffff !important;
}

#section-products .product-card .portfolio-desc h3 {
    margin: 0 0 10px 0 !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

#section-products .product-card .portfolio-desc h3 a {
    color: #1a1a1a !important;
    transition: color 0.3s !important;
}

#section-products .product-card:hover .portfolio-desc h3 a {
    color: #00bcd4 !important;
}

#section-products .product-card .portfolio-desc span {
    font-size: 0.88rem !important;
    color: #666666 !important;
    line-height: 1.6 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin-bottom: 20px !important;
}

/* Beautiful custom button inside the card footer */
#section-products .product-card .product-card-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
    padding-top: 16px !important;
    margin-top: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

#section-products .product-card .product-card-footer .read-more-link {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #00bcd4 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
    transition: gap 0.3s !important;
}

#section-products .product-card:hover .product-card-footer .read-more-link {
    color: #008ba3 !important;
    gap: 10px !important;
}

/* Overrides to shrink section top/bottom spacing slightly */
.aras-section {
    padding: clamp(48px, 6vw, 80px) 0 !important;
}

.aras-section-header {
    margin-bottom: clamp(24px, 4vw, 40px) !important;
}

.page-section, .section {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

/* Slider height optimization for 1920x600px aspect ratio */
#slider,
#slider .slider-inner,
#slider .swiper,
#slider .swiper-parent,
#slider .swiper-wrapper,
#slider .swiper-slide {
    height: 600px !important;
    min-height: 600px !important;
}

@media (max-width: 991.98px) {
    #slider,
    #slider .slider-inner,
    #slider .swiper,
    #slider .swiper-parent,
    #slider .swiper-wrapper,
    #slider .swiper-slide {
        height: 450px !important;
        min-height: 450px !important;
    }
}

@media (max-width: 767.98px) {
    #slider,
    #slider .slider-inner,
    #slider .swiper,
    #slider .swiper-parent,
    #slider .swiper-wrapper,
    #slider .swiper-slide {
        height: 350px !important;
        min-height: 350px !important;
    }
}

@media (max-width: 575.98px) {
    #slider,
    #slider .slider-inner,
    #slider .swiper,
    #slider .swiper-parent,
    #slider .swiper-wrapper,
    #slider .swiper-slide {
        height: 250px !important;
        min-height: 250px !important;
    }
    /* Hide some texts or buttons on mobile if height is constrained */
    #slider h2 {
        font-size: 1.5rem !important;
        margin-top: 5px !important;
    }
    #slider .aras-hero-cta {
        padding: 8px 16px !important;
        font-size: 0.85rem !important;
    }
}



