/* Dynamic Page Styles */

/* Hero Section */
.dynamic-hero {
    position: relative;
    height: 400px;
    background: var(--Secondary-primary-color);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: var(--section-padding);
    margin-top: 70px;
    color: var(--second-text-color);
    overflow: hidden;
}

/* Optional: Add a subtle pattern or overlay if needed, 
   but the gradient from Secondary-primary-color is distinct enough. 
   If we use an image, we can add an overlay. */
.dynamic-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    /* Slight darken for text readability if needed */
    z-index: 0;
}

.dynamic-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    animation: fadeInUp 0.8s ease-out;
}

.dynamic-breadcrumbs {
    font-family: var(--font-family);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.8);
}

.dynamic-hero-title {
    font-family: var(--font-family);
    font-size: 48px;
    font-weight: 700;
    margin: 0;
    color: var(--second-text-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-transform: capitalize;
}

/* Main Content Area */
#main-dynamic-content {
    padding: var(--section-padding);
    margin: 60px 0;
    min-height: 400px;
    background-color: var(--background-color-light);
}

.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;





    /* Modern Spinner */
    .spinner-container {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 50vh;
    }

    .spinner-border {
        width: 3rem;
        height: 3rem;
        color: var(--primary-color) !important;
    }

    /* Animations */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Responsive Adjustments */
    @media (max-width: 1020px) {
        .dynamic-hero {
            padding: 0 60px;
            /* Fallback if var not working or for specific override */
        }
    }

    @media (max-width: 768px) {
        .dynamic-hero {
            height: 300px;
            padding: 0 30px;
            margin-top: 60px;
        }

        .dynamic-hero-title {
            font-size: 32px;
        }

        #main-dynamic-content {
            padding: 0 20px;
            margin: 40px 0;
        }
    }

    /* Default Template Styles */
    .dynamic-default-container {
        padding: var(--section-margin);
    }

    .dynamic-content-section {
        margin-bottom: 3rem;
        animation: fadeInUp 0.5s ease-out;
    }

    .dynamic-content-text h3 {
        color: var(--main-highligt-color);
        margin-bottom: 1rem;
        font-weight: 600;
    }

    .dynamic-content-text p {
        color: var(--paragraph-text-color);
        line-height: 1.6;
    }

    .dynamic-content-img {
        max-height: 400px;
        object-fit: cover;
        border-radius: 10px;
        box-shadow: var(--shadow);
        transition: transform 0.3s ease;
    }

    .dynamic-content-img:hover {
        transform: translateY(-5px);
    }