/* CSS Document */
/* Container fix */
.ast-woocommerce-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Grid layout */
ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin: 0;
    padding: 0;
}

/* Remove default Woo styles */
ul.products li.product-category {
    list-style: none;
    margin: 0 !important;
    padding: 0;
}

/* Card design */
ul.products li.product-category a {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

/* Hover effect */
ul.products li.product-category a:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Image fix */
ul.products li.product-category img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* Title */
.woocommerce-loop-category__title {
    font-size: 18px;
    font-weight: 600;
    padding: 15px 10px 5px;
    color: #222;
}

/* Count badge */
.woocommerce-loop-category__title .count {
    display: block;
    font-size: 13px;
    color: #777;
    margin-top: 5px;
    background: none;
}

/* Breadcrumb spacing */
.woocommerce-breadcrumb {
    margin-bottom: 15px;
    font-size: 14px;
}

/* Page title */
.woocommerce-products-header__title {
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: 700;
}

/* Blog article card */
.ast-article-post {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    transition: 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Hover lift (same design language as categories) */
.ast-article-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* Title spacing */
.ast-article-post .entry-title {
    font-size: 20px;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Title link */
.ast-article-post .entry-title a {
    color: #222;
    text-decoration: none;
}

.ast-article-post .entry-title a:hover {
    color: #0073aa;
}

/* Meta (category + author) */
.ast-article-post .entry-meta {
    font-size: 13px;
    color: #777;
    margin-bottom: 12px;
}

/* Excerpt */
.ast-article-post .ast-excerpt-container p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Push read more to bottom (important for equal height cards) */
.ast-article-post .read-more {
    margin-top: auto;
}

/* Read more button style */
.ast-article-post .read-more a {
    display: inline-block;
    font-size: 13px;
    color: #fff;
    background: #0073aa;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.3s;
}

.ast-article-post .read-more a:hover {
    background: #005f8d;
}

/* Remove empty thumbnail space */
.ast-blog-featured-section:empty {
    display: none;
}

.ast-article-post img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 12px;
}
.ast-article-post img {
    transition: transform 0.4s ease;
}

.ast-article-post:hover img {
    transform: scale(1.05);
}

/* Layout: optimal reading width */
.ast-article-single .entry-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 10px 20px;
}

/* Heading: clean + centered */
.ast-article-single .entry-title {
    text-align: center;
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 30px;
}

/* Paragraphs: comfortable reading */
.ast-article-single .entry-content p {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 18px;
}

/* Improve long paragraph readability */
.ast-article-single .entry-content p {
    max-width: 100%;
}

/* Section titles (your <strong> headings) */
.ast-article-single .entry-content p strong:first-child {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: #111;
    margin-top: 30px;
    margin-bottom: 8px;
}

/* Highlight important words inside text */
.ast-article-single .entry-content strong {
    color: #000;
    font-weight: 600;
}

/* Links */
.ast-article-single .entry-content a {
    color: #0073aa;
    text-decoration: underline;
}

/* Add breathing space between sections */
.ast-article-single .entry-content p + p {
    margin-top: 6px;
}

/* Subtle separation for sections */
.ast-article-single .entry-content p strong:first-child::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background: #0073aa;
    margin-top: 6px;
}

/* Better last line spacing */
.ast-article-single .entry-content p:last-child {
    margin-bottom: 40px;
}
ul.products li.product {
    border: 1px solid #e2e2e2; /* subtle card border */
    border-radius: 8px;          /* rounded corners */
    padding: 15px;               /* inner spacing */
    text-align: center;          /* center-align content */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}
ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
ul.products li.product img {
    max-width: 100%;
    height: auto; /* allow responsive height */
    border-radius: 4px;
    margin-bottom: 12px;
}
ul.products li.product .ast-woo-product-category {
    display: block;
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 6px;
}
ul.products li.product .price {
    display: block;
    font-size: 1rem;
    color: #333;
    margin-bottom: 12px;
}
/* WooCommerce product Add to Cart button - unified */
ul.products li.product .add_to_cart_button {
    display: inline-block;
    background-color: #0073aa; /* primary button color */
    color: #fff !important;    /* white text */
    padding: 8px 16px;
    border-radius: 6px;
    border: 2px solid #0073aa; /* match background, removes green */
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    box-shadow: none;           /* remove any default shadow */
}

/* Hover effect for Add to Cart button */
ul.products li.product .add_to_cart_button:hover {
    background-color: #005f8d; /* darker shade for hover */
    color: #fff !important;    /* keep text visible */
    border: 2px solid #005f8d; /* match hover background */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}
/* Shrink logo section */
#masthead .site-header-primary-section-left {
    max-width: 180px; /* adjust if needed */
    flex: 0 0 auto;   /* prevent logo from expanding */
}

/* Adjust logo image size */
#masthead .custom-logo {

    width: auto;
}

/* Desktop Header Menu Container */
#masthead .main-header-bar-navigation {
    display: flex;
    justify-content: flex-end;   /* Keep menu on right */
    overflow: visible;            /* Prevent horizontal overflow */
	position: relative;
}

/* Desktop Header Menu Alignment */
#masthead .main-header-menu {
    display: flex !important;
    flex-wrap: nowrap;           /* Keep all items in one line */
    gap: 12px;                   /* spacing between menu items */
    padding: 0;
    margin: 0;
    max-width: calc(100% - 180px); /* prevent exceeding header width */
    font-size: 14px;             /* slightly smaller font */
}

/* Menu links: padding and height control */
#masthead .main-header-menu .menu-link {
    padding: 10px 6px;           /* reduce padding to fit */
    line-height: 1.2;
    white-space: nowrap;
}

/* Dropdowns */
#masthead .main-header-menu .sub-menu {
    top: 100%;                   /* Correct dropdown position */
}

/* Optional: adjust primary header bar height */
#masthead .ast-primary-header-bar {
    min-height: 60px;            /* same as menu height */
}
/* Make galleries responsive and neat */
.gallery {
    display: flex;
    flex-wrap: wrap;         /* Wrap images to next line if needed */
    gap: 15px;               /* Space between images */
    justify-content: center; /* Optional: center images */
}

.gallery-item {
    flex: 1 1 45%;           /* Each image takes ~45% width on desktop */
    max-width: 100%;         /* Prevent overflow */
    box-sizing: border-box;
    position: relative;      /* For captions if needed */
}

.gallery-item img {
    width: 100%;
    height: 300px;        /* fixed height */
    object-fit: cover;    /* crops to fill box without distortion */
    display: block;
    border-radius: 4px;
}

/* Captions below images */
.gallery-caption {
    text-align: center;
    font-size: 14px;
    margin-top: 5px;
}
.ast-blog-featured-section img {
    width: 100%;
    height: auto;
    margin-bottom: 1rem; /* adds breathing space */
    border-radius: 4px;   /* optional, for styling */
}
.ast-blog-featured-section {
    min-height: 1px; /* ensures spacing even without image */
}
/* Testimonials page – scoped without page ID */
.site-main article.testimonial {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #fefefe;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.site-main article.testimonial:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.site-main article.testimonial .post-thumb {
    text-align: center; /* centers the image */
    margin-bottom: 1rem;
}

.site-main article.testimonial .post-thumb img {
    max-height: 220px;
    width: auto;
    border-radius: 8px;
    object-fit: cover;
}

.site-main article.testimonial .entry-title a {
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    color: #222;
    margin-bottom: 0.5rem;
    display: block;
}

.site-main article.testimonial .ast-excerpt-container p {
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 1rem auto;
}

/* Centered "Read More" button with white text */
.site-main article.testimonial .ast-read-more-container {
    text-align: center;
    margin-top: 1rem;
}

.site-main article.testimonial .ast-read-more-container a {
    display: inline-block;
    background-color: #1a73e8; /* button background */
    color: #fff; /* white text */
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.site-main article.testimonial .ast-read-more-container a:hover {
    background-color: #0b4f9c;
    color: #fff;
}
.site-main article.testimonial span.posted-by{
	display:none;
}
/* Scope everything to this page */
body.my-courses {
    font-family: 'Inter', 'Arial', sans-serif;
    color: #333;
    background-color: #f9f9f9;
    line-height: 1.6;
}

/* Page title */
body.my-courses .entry-title {
    font-size: 2.2rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Course navigation tabs */
body.my-courses #my-courses > ul {
    display: flex;
    justify-content: center;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

body.my-courses #my-courses > ul li a {
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    color: #fff;
    font-weight: 600;
    transition: all 0.3s ease;
	background-color: #3498db;
}

body.my-courses #my-courses > ul li a:hover,
body.my-courses #my-courses > ul li a.active {
    background-color: #ecf0f1;
	color:#333;
}

/* Course container */
body.my-courses .course-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem;
}

/* Individual course card */
body.my-courses .course {
    display: flex;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.my-courses .course:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.1);
}

body.my-courses .course img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-right: 1px solid #eee;
}

/* Course content */
body.my-courses .course header {
    padding: 0.8rem 1rem;
}

body.my-courses .course h2 {
    font-size: 1.25rem;
    margin: 0;
}

body.my-courses .course h2 a {
    color: #2c3e50;
    text-decoration: none;
}

body.my-courses .course h2 a:hover {
    color: #3498db;
}

/* Course meta */
body.my-courses .sensei-course-meta {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin: 0.5rem 0;
    display: flex;
    gap: 1rem;
}

/* Progress meter */
body.my-courses .meter {
    background: #e0e0e0;
    border-radius: 10px;
    height: 8px;
    margin-top: 0.5rem;
    width: 100%;
}

body.my-courses .meter span {
    display: block;
    height: 100%;
    border-radius: 10px;
    background-color: #3498db;
    transition: width 0.5s ease;
}

/* Course actions */
body.my-courses .entry-actions {
    padding: 0.5rem 1rem;
}

body.my-courses .course-delete {
    background-color: #e74c3c;
    color: #fff;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

body.my-courses .course-delete:hover {
    background-color: #c0392b;
}

/* Empty message styling */
body.my-courses .sensei-message.info {
    background-color: #ecf0f1;
    color: #7f8c8d;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-style: italic;
}
/* Scope all styles to My Account page */
body.mitt-konto {
    font-family: 'Inter', 'Arial', sans-serif;
    color: #333;
    background-color: #f8f9fa;
    line-height: 1.6;
}

/* Page title */
body.mitt-konto .entry-title {
    font-size: 2rem;
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
}

/* Two-column layout */
body.mitt-konto .woocommerce {
    display: flex;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
    flex-wrap: wrap; /* responsive fallback */
}

/* Navigation sidebar */
body.mitt-konto .woocommerce-MyAccount-navigation {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 1rem;
    flex: 0 0 220px; /* fixed width */
}

body.mitt-konto .woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

body.mitt-konto .woocommerce-MyAccount-navigation li {
    margin-bottom: 0.5rem;
}

body.mitt-konto .woocommerce-MyAccount-navigation a {
    display: block;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

body.mitt-konto .woocommerce-MyAccount-navigation a:hover {
    background-color: #3498db;
    color: #fff;
}

body.mitt-konto .woocommerce-MyAccount-navigation .is-active a {
    background-color: #3498db;
    color: #fff;
    font-weight: 600;
}

/* Content area */
body.mitt-konto .woocommerce-MyAccount-content {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 2rem;
    flex: 1 1 0; /* take remaining space */
}

/* Greeting and links */
body.mitt-konto .woocommerce-MyAccount-content p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1rem;
}

body.mitt-konto .woocommerce-MyAccount-content p a {
    color: #3498db;
    text-decoration: underline;
    transition: color 0.3s ease;
}

body.mitt-konto .woocommerce-MyAccount-content p a:hover {
    color: #2c3e50;
}

/* Notices */
body.mitt-konto .woocommerce-notices-wrapper {
    margin-bottom: 1.5rem;
}


/* Responsive adjustments */
@media (max-width: 600px) {
    body.my-courses .course {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    body.my-courses .course img {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    body.my-courses .course header {
        padding: 0.8rem;
    }
}
/* Mobile responsiveness */
@media (max-width: 768px) {
    body.my-courses .course-container article.course {
        flex-direction: column;
    }

    body.my-courses .course-container article.course img.woo-image {
        width: 100%;
        max-width: 200px;
        margin-bottom: 1rem;
    }

    .gallery-item {
        flex: 1 1 100%;      /* Full width on mobile */
    }

    ul.products.columns-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
	    body.mitt-konto .woocommerce {
        flex-direction: column;
        align-items: center;
    }

    body.mitt-konto .woocommerce-MyAccount-navigation {
        flex: 1 1 100%;
        margin-bottom: 1.5rem;
    }

    body.mitt-konto .woocommerce-MyAccount-content {
        flex: 1 1 100%;
        padding: 1.5rem;
    }
}