
* {
    box-sizing: border-box;
}
/* .pageWrapper h1,
.pageWrapper h2,
.pageWrapper h3,
.pageWrapper h4,
.pageWrapper h5,
.pageWrapper h6 {
    font-weight: bold;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
} */

.centerObj {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.colorWhite {
    color: white;
}

.fullWidth{
    min-width: 99.08vw;
    width:calc(100vw - var(--scrollbarWidth));
    margin-inline-start: 50%;
    transform: translateX(-50%);
    overflow-x: hidden;
}

.grid {
    display: grid;
    place-items: center;
}

.twoxtwoGrid{
    grid-template-columns: repeat(auto-fit, minmax(min(500px,100%), 1fr)); 
}

.flexColumn {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.Headers{
    margin-bottom:18px;
    margin-top:-15px;
}

/* TEMPLATE END */

/* BookDesc Stylings */

.groupSection{
    margin-bottom: 30px;
}

.groupHeader{
    background-color: rgb(230, 230, 230);
    padding: 15px 0;
    margin-bottom: 4px;
}

.bookDesc__Grid__2{
    display:grid; 
    grid-template-columns: repeat(auto-fit, minmax(min(500px,100%), 1fr)); 
    gap:4px;
}

.bookDesc__Grid__3{
    display:grid; 
    grid-template-columns: repeat(auto-fit, minmax(min(330px,100%), 1fr)); 
    gap:4px;
}

.bookDesc__Card{
    background-color: white;
    padding:18px;
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    min-height: 400px; /* Ensures consistent card heights */
    border: 1px solid #e0e0e0;
}

.Card__Fill2{
    grid-column: span 2;
}

.Card__Fill3{
    grid-column: span 3;
}

.bookDesc__Card * {
    margin:unset;
}

.bookDesc__ImgContain img{
    max-height:300px;
    object-fit: contain;
    border:1px solid rgba(214, 214, 214, 0.692);
}

.bookDesc__TitleWrap{
    margin-block:12px;
    line-height:1.3;
    text-align:center;
    flex: 0 0 auto; /* Don't grow, don't shrink, use natural height */
}

.bookDesc__Title{
    font-size:clamp(18px, 5vw, 24px);
    color: rgb(41, 53, 122);
}

.bookDesc__Subtitle{
    display:block;
    font-size:.75em;
    font-weight:normal;
    margin-block:4px 12px;
}

.bookDesc__Author{
    font-size:14px;
    color: rgb(126, 136, 194);
    font-weight:normal !important;
    font-style: italic;
    flex: 0 0 auto; /* Don't grow, don't shrink, use natural height */
}

.bookDesc__CopyBG{
    background-color:rgb(249, 250, 252);
    border-radius:8px;
    padding:16px;
    margin-bottom:8px;
    border:1px solid rgb(229, 229, 247);
    width:500px;
    max-width:94%;
    height: 120px; /* Fixed height for uniform display */
    display: flex;
    align-items: center;
}

.bookDesc__Copy{
    color:rgb(114, 121, 158);
    font-size:13px;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    position: relative;
    width: 100%;
}

.equalHeight{
    height: 120px; /* Fixed height for uniform display */
    display: flex;
    align-items: center;
}

.equalHeightContent{
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    width: 100%;
}

.placeholderCard{
    background-color: white;
    border: 1px solid #e0e0e0;
    padding: 18px;
    margin: 0;
    visibility: hidden;
    min-height: 400px;
}

.placeholderCard * {
    visibility: hidden;
}

.bookDesc__Button{
    background-color:rgb(41, 53, 122); 
    width:500px;
    max-width:94%;
    min-height:55px;
    border-radius:8px;
    transition: background-color .3s ease-in-out; 
}

.bookDesc__Button:hover,.bookDesc__Button:focus{
    background-color:rgb(35, 41, 73); 
}

.groupTitle{
    color: rgb(41, 53, 122);
    font-size: 28px;
    margin: 30px 0 15px 0;
    font-weight: bold;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    line-height: 1.2;
}

/* Group Navigation */
.groupNavContainer{
    background-color: rgb(41, 53, 122);
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
}

.groupNavList{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.groupNavLink{
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.groupNavLink:hover{
    background-color: rgba(255, 255, 255, 0.3);
}

/* Media Queries */
/* Desk Only */
@media only screen and (min-width: 560px) {
.HeaderMobile {
    display: none;
}
}

/* Mobile Only */

@media only screen and (max-width: 560px) {
.HeaderDesk {
    display: none;
}
}

/* Janky Card Span on GIA site fix */
@media only screen and (width<1200px){
    .Card__Fill2{
        grid-column:unset;
    }

    .Card__Fill3{
        grid-column:span 2;
    }
}

@media only screen and (width<700px){
    .Card__Fill3{
        grid-column:unset;
    }
}
