/*main.main{*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    align-items: center;*/
/*    justify-content: flex-start;*/
/*}*/
.main{
    margin-bottom: 100px;
}





.space{
    display: grid;
    width: 2rem;
    height: 2rem;
}

:root{
    /*--phd__section-mobile-breakpoint: 30rem ;*/
    --phd__section-max-width: 80rem;
    --phd__section-max-width-wide: 80rem;
    --phd__section-max-width-narrow: 40rem;
    --phd__section-paddings: 3rem 0;

    --phd__section-padding-xs: .6rem;
    --phd__section-padding-s: 1rem;
    --phd__section-padding-m: 2.5rem;
    --phd__section-padding-l: 3.5rem;
    --phd__section-padding-xl: 5rem;


    --phd__section-gap-xs: 1rem;
    --phd__section-gap-s: 2rem;
    --phd__section-gap-m: 3rem;
    --phd__section-gap-l: 4rem;
    --phd__section-gap-xl: 6rem;

    --phd__section-column-gap-xs: var(--phd__section-gap-xs);
    --phd__section-column-gap-s: var(--phd__section-gap-s);
    --phd__section-column-gap-m: var(--phd__section-gap-m);
    --phd__section-column-gap-l: var(--phd__section-gap-l);
    --phd__section-column-gap-xl: var(--phd__section-gap-xl);

    --phd__section-row-gap-xs: var(--phd__section-gap-xs);
    --phd__section-row-gap-s: var(--phd__section-gap-s);
    --phd__section-row-gap-m: var(--phd__section-gap-m);
    --phd__section-row-gap-l: var(--phd__section-gap-l);
    --phd__section-row-gap-xl: var(--phd__section-gap-xl);



}
section{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    /*margin: auto;*/
    font-size: 1rem;


}

.section-wrapper{
    max-width: var(--phd__section-max-width, 60rem);
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Width Variations */
.section-wrapper.wide {
    max-width: var(--phd__section-max-width-wide);
}
.section-wrapper.narrow {
    max-width: var(--phd__section-max-width-narrow);
}




.section-grid {
    display: grid;
    width: 100%;
    height: max-content;
}


.section-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
}
.section-grid > * {
    grid-column: span 1; /* Reset spans to 1 column on small screens */
    /*grid-column: 1 / -1;       */
}


@media (min-width: 48rem){
    /* 2 Columns */
    .section-grid.cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 3 Columns */
    .section-grid.cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    /* 4 Columns */
    .section-grid.cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }


    /* Additional Column Variations */
    .section-grid.cols-5 {
        grid-template-columns: repeat(5, 1fr);
    }
    .section-grid.cols-6 {
        grid-template-columns: repeat(6, 1fr);
    }

    /* Span 2 Columns */
    .section-grid .span-2 {
        grid-column: span 2;
    }

    /* Span 3 Columns */
    .section-grid .span-3 {
        grid-column: span 3;
    }

    /* Span More Columns */
    .section-grid .span-4 {
        grid-column: span 4;
    }
    .section-grid .span-5 {
        grid-column: span 5;
    }
    .section-grid .span-6 {
        grid-column: span 6;
    }

    /* Asymmetric Grid Options */
    .section-grid.asym-2-1 {
        grid-template-columns: 2fr 1fr;
    }
    .section-grid.asym-1-2 {
        grid-template-columns: 1fr 2fr;
    }

    .section-grid.asym-3-2 {
        grid-template-columns: 3fr 2fr;
    }
    .section-grid.asym-2-3 {
        grid-template-columns: 2fr 3fr;
    }

}


/* Alignment Utilities */
.grid-start {
    justify-items: start;
    align-items: start;
}
.grid-end {
    justify-items: end;
    align-items: end;
}
.grid-stretch {
    justify-items: stretch;
    align-items: stretch;
}

.grid-center {
    justify-items: center;
    align-items: center;
}
.flex-center,
.flex-start,
.flex-end {
    display: flex;
}
.flex-start {
    justify-content: flex-start;
    align-items: flex-start;
}
.flex-end {
    justify-content: flex-end;
    align-items: flex-end;
}
.flex-center {
    justify-content: center;
    align-items: center;
}

/* Full Width (Span All Columns) */
.section-grid .full-width {
    grid-column: 1 / -1; /* Span all columns dynamically */
}

/* Define 2 Rows */
.section-grid.rows-2 {
    grid-template-rows: repeat(2, 1fr);
}

/* Define Other Row Variations (Optional) */
.section-grid.rows-3 {
    grid-template-rows: repeat(3, 1fr);
}

.section-grid.rows-4 {
    grid-template-rows: repeat(4, 1fr);
}

.section-grid.auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}


/* Add Gap Support */
.gap-xs { gap: var(--phd__section-gap-xs); }
.gap-s { gap: var(--phd__section-gap-s); }
.gap-m { gap: var(--phd__section-gap-m); }
.gap-l { gap: var(--phd__section-gap-l); }
.gap-xl { gap: var(--phd__section-gap-xl); }

.col-gap-xs {
    column-gap: var(--phd__section-column-gap-xs);
}

.col-gap-s {
    column-gap: var(--phd__section-column-gap-s);
}

.col-gap-m {
    column-gap: var(--phd__section-column-gap-m);
}

.col-gap-l {
    column-gap: var(--phd__section-column-gap-l);
}

.col-gap-xl {
    column-gap: var(--phd__section-column-gap-xl);
}

.row-gap-xs {
    row-gap: var(--phd__section-row-gap-xs);
}

.row-gap-s {
    row-gap: var(--phd__section-row-gap-s);
}

.row-gap-m {
    row-gap: var(--phd__section-row-gap-m);
}

.row-gap-l {
    row-gap: var(--phd__section-row-gap-l);
}

.row-gap-xl {
    row-gap: var(--phd__section-row-gap-xl);
}


/*✳️PADDINGS*/

.p-xs {
    padding: var(--phd__section-padding-xs);
}

.p-s {
    padding: var(--phd__section-padding-s);
}

.p-m {
    padding: var(--phd__section-padding-m);
}

.p-l {
    padding: var(--phd__section-padding-l);
}

.p-xl {
    padding: var(--phd__section-padding-xl);
}

.ph-xs {
    padding: 0 var(--phd__section-padding-xs);
}

.ph-s {
    padding: 0 var(--phd__section-padding-s);
}

.ph-m {
    padding: 0 var(--phd__section-padding-m);
}

.ph-l {
    padding: 0 var(--phd__section-padding-l);
}

.ph-xl {
    padding: 0 var(--phd__section-padding-xl);
}

.pv-xs {
    padding: var(--phd__section-padding-xs) 0;
}

.pv-s {
    padding: var(--phd__section-padding-s) 0;
}

.pv-m {
    padding: var(--phd__section-padding-m) 0;
}

.pv-l {
    padding: var(--phd__section-padding-l) 0;
}

.pv-xl {
    padding: var(--phd__section-padding-xl) 0;
}
/* Extra Small */
.pt-xs {
    padding-top: var(--phd__section-padding-xs);
}
.pb-xs {
    padding-bottom: var(--phd__section-padding-xs);
}
.pl-xs {
    padding-left: var(--phd__section-padding-xs);
}
.pr-xs {
    padding-right: var(--phd__section-padding-xs);
}

/* Small */
.pt-s {
    padding-top: var(--phd__section-padding-s);
}
.pb-s {
    padding-bottom: var(--phd__section-padding-s);
}
.pl-s {
    padding-left: var(--phd__section-padding-s);
}
.pr-s {
    padding-right: var(--phd__section-padding-s);
}

/* Medium */
.pt-m {
    padding-top: var(--phd__section-padding-m);
}
.pb-m {
    padding-bottom: var(--phd__section-padding-m);
}
.pl-m {
    padding-left: var(--phd__section-padding-m);
}
.pr-m {
    padding-right: var(--phd__section-padding-m);
}

/* Large */
.pt-l {
    padding-top: var(--phd__section-padding-l);
}
.pb-l {
    padding-bottom: var(--phd__section-padding-l);
}
.pl-l {
    padding-left: var(--phd__section-padding-l);
}
.pr-l {
    padding-right: var(--phd__section-padding-l);
}

/* Extra Large */
.pt-xl {
    padding-top: var(--phd__section-padding-xl);
}
.pb-xl {
    padding-bottom: var(--phd__section-padding-xl);
}
.pl-xl {
    padding-left: var(--phd__section-padding-xl);
}
.pr-xl {
    padding-right: var(--phd__section-padding-xl);
}


/*---------------------------------------------*/
/*             Flex Utility Classes          */
/*---------------------------------------------*/

/* Display */
.flex {
    display: flex;
}

/* Flex Direction */
.flex-row {
    flex-direction: row;
}
.flex-column {
    flex-direction: column;
}

/* Flex Wrap */
.flex-wrap {
    flex-wrap: wrap;
}
.flex-nowrap {
    flex-wrap: nowrap;
}
.flex-wrap-reverse {
    flex-wrap: wrap-reverse;
}

/* Justify Content */
.justify-start {
    justify-content: flex-start;
}
.justify-center {
    justify-content: center;
}
.justify-end {
    justify-content: flex-end;
}
.justify-between {
    justify-content: space-between;
}
.justify-around {
    justify-content: space-around;
}
.justify-evenly {
    justify-content: space-evenly;
}

/* Align Items */
.items-start {
    align-items: flex-start;
}
.items-center {
    align-items: center;
}
.items-end {
    align-items: flex-end;
}
.items-baseline {
    align-items: baseline;
}
.items-stretch {
    align-items: stretch;
}

/* Align Self */
.self-auto {
    align-self: auto;
}
.self-start {
    align-self: flex-start;
}
.self-center {
    align-self: center;
}
.self-end {
    align-self: flex-end;
}
.self-stretch {
    align-self: stretch;
}

.f-light{
    font-weight: 300;
}
.f-regular{
    font-weight: 400;
}
.f-bold{
    font-weight: 600;
}
.f-black{
    font-weight: 700;
}


/* Combined Alignment (Shortcut Flex Helpers) */
.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}
.flex-start {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}
.flex-end {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

/* Flex Grow & Shrink */
.flex-grow-0 {
    flex-grow: 0;
}
.flex-grow {
    flex-grow: 1;
}
.flex-shrink-0 {
    flex-shrink: 0;
}
.flex-shrink {
    flex-shrink: 1;
}

/* Flex Basis / Shorthand */
.flex-auto {
    flex: 1 1 auto;
}
.flex-initial {
    flex: 0 1 auto;
}
.flex-none {
    flex: none;
}

/* Order Utilities */
.order-0 {
    order: 0;
}
.order-1 {
    order: 1;
}
.order-2 {
    order: 2;
}
.order-3 {
    order: 3;
}
.order-4 {
    order: 4;
}
.order-5 {
    order: 5;
}
/* For placing an item first or last */
.order-first {
    order: -1;
}
.order-last {
    order: 9999;
}

.text-right{
    text-align: right;
}

.text-center{
    text-align: center;
}

.text-left{
    text-align: left;
}



/*✴️ HERO*/


/* Base Hero Styling */
.hero {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /*overflow: hidden;*/
}

/* Hero Height Variations */
.hero-s { min-height: 40vh; } /* Small */
.hero-m { min-height: 60vh; } /* Medium */
.hero-l { min-height: 80vh; } /* Large */

/* Full-Width Hero Background */
.hero-full .hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    left: 0;
    right: 0;
    contain: paint; /* Optional: improves rendering */
}

.hero-img-full img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-side-image{
    width: 100%;
    height: 100%;
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-side-image.right{
    justify-content: end;
}

.hero-overlay {
    position: absolute; /* Ensure it layers correctly */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    z-index: 1;
    pointer-events: none;
}
.hero-overlay.light {
    background: rgba(255, 255, 255, 0.8);
}
.hero-overlay.dark {
    background: rgba(0, 0, 0, 0.6);
}



/*!* Hero Content *!*/

.hero-text{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
    z-index: 1;
}

.hero-text p{
    margin-bottom: 40px;
}



.hero-content {
    color: white;
    max-width: var(--phd__section-max-width);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}


.img-cover {
    object-fit: cover;
}
.img-full{
    width: 100%;
    height: 100%;
    object-fit: cover;
}



/* ⚠️️🛑⚠️🛑⚠️ TEST CODE BELLOW USE AT YOUR OWN RISK ⚠️️🛑⚠️🛑⚠️ */
/* Base styles for mobile (image on right) */
.hero-side-image {
    position: absolute;
    top: 0;
    right: 0; /* Pinned to the right side of the window */
    width: 100%; /* Default width for mobile */
    height: 100%; /* Full height of the section */
    display: flex;
    justify-content: flex-end; /* Right-align the image */
    align-items: center;
}

.hero-side-image img {
max-width: 70%;

    object-fit: contain; /* Scale without distortion */
    max-height: 100%; /* Stay within section height */
}