html {
    font-family: sans-serif;
}

/* Define colors in body that you can reuse in the rest of webpage: */
body {
    --dark-blue: #6aa1c6; !about section, IPSSC;
    --gold: #e3c565;
    --dark-blue-tr: #6aa1c6e5; !top bar;
    --background-blue: #0066ff0d; !sections;
    --whitey: #f8f9f9;
    --top-bar: var(--dark-blue-tr);
    --text-size: 17px;
    background-color: #fffffe !important;
    font-family: sans-serif;
}


#header.header-scrolled,
#header.header-fixed {
    /* bacrground: var(--dark-blue-tr); */
    background: var(--top-bar);
    padding-top: 0;
    height: 65px;
    transition: all 0.5s;
}

#logo {
position: relative;
    top: 0px; /* Adjust to move outside */
    left: 5px; /* Or adjust horizontally as needed */
    height: 90px; /* Keep desired size */
    z-index: 10; /* Stay on top */
    transition: all 0.5s;
}

#header.header-scrolled #logo,
#header.header-fixed #logo {
    height: 57px; /* Shrink to normal navbar size */
    margin-top: 0px;
    transition: all 0.5s;
}

#IPSSC a {
    font-size: var(--text-size-about);
    font-weight: 500;
    color: var(--gold);
}

#IPSSC a:hover {
    font-weight: 500;
    color: var(--whitey);
}

#Gallery div.row img{
    transition: transform 0.25s ease;
    position: inherit;
}

#Gallery div.row img:hover{
    -webkit-transform: scale(2.5);
    transform: scale(2.5);
    z-index: 1;
}

#Gallery {
    padding: 60px 0 10px 0;
}

#Gallery a {
    font-size: 12px;
    color: var(--dark-blue);
}

#Gallery a:hover {
    color: var(--gold);
}

.btn-danger {
    background-color: var(--gold);
    border-color: var(--gold);
    font-size: 20px;
    color: white
}

.btn-danger:hover {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
    color: white
}

#intro::before {
    content: "";
    /* background: var(--gold); */
    position: absolute;
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;
}

#intro {
    width: 100vw;
    height: 100vh;
    background: url(../img/venue/group-photo.png) top center;
    background-size: cover;
    overflow: hidden;
    position: relative;
}

.container {
    padding-left: 5% !important;
    padding-right: 5% !important;
}

#intro .intro-container {
    position: absolute;
    /*background: url(../img/samostan_mekinje/IMG_3860.jpg) top center;*/
    /*background-size: 100%;*/
    /*background-repeat: no-repeat;*/
    color: white;
    bottom: 0;
    left: 0;
    top: 0;
    right: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    text-align: center;
    padding: 0 15px;
}

#header {
    height: 100px;
    padding: 5px 0;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    transition: all 0.5s;
    z-index: 997;
}

.nav-menu > li {
    margin-left: 10px;
}

.nav-menu > .active > a {
    color: white !important;
    font-weight: 700;
    border-bottom-color: white !important;
}

.nav-menu > li > a {
    color: white;
    text-decoration: none;
    outline: none;
    font-family: sans-serif;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 3px solid transparent;
}

.nav-menu > li > a:hover {
    color: white;
    border-bottom-color: white;
    transition: all 0.3s ease-in-out 0s;
}

#about {
    --text-size-about: 15px;
    /* background: rgba(224, 168, 51, 0.95); */
    background-size: cover;
    overflow: hidden;
    position: relative;
    color: var(--dark-blue);
    padding: 60px 0 40px 0;
}

#about:before {
    content: "";
    background: var(--dark-blue);
    position: absolute;
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;
}

#about h2 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
    color: white;
}

#about h3 {
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
    /* color: rgba(49, 37, 64, 0.95); */
}

#about p {
    font-size: var(--text-size-about);
    font-weight: 500;
    margin-bottom: 20px;
    color: white;
}

#about a {
    font-size: var(--text-size-about);
    font-weight: 500;
    color: var(--gold);
}

#about a:hover {
    font-weight: 500;
    color: var(--whitey);
}

#about .text-danger {
    /* font-weight: bold;*/
}

.bg-IPSSC {
    background: var(--background-blue);
    color: black;
}

#registration {
    padding: 60px 0 0 0;
}

#regIframe {
    width: 100% !important;
}

#programme {
    padding: 60px 0 60px 0;
}

#programme .nav-tabs {
    text-align: center;
    margin: auto;
    display: block;
    border-bottom: 0;
    margin-bottom: 30px;
}

#programme .nav-tabs li {
    display: inline-block;
    margin-bottom: 0;
}

#programme .nav-tabs a {
    border: none;
    border-radius: 50px;
    font-weight: 600;
    background-color: #0e1b4d;
    color: rgba(49, 37, 64, 0.95);
    padding: 10px 100px;
}

#programme .nav-tabs a.active {
    background-color: rgba(224, 168, 51, 0.95);
    color: rgba(49, 37, 64, 0.95);
}

#programme .sub-heading {
    text-align: center;
    font-size: 18px;
    font-style: italic;
    margin: 0 auto 30px auto;
}

#programme .tab-pane {
    transition: ease-in-out .2s;
}

#programme .schedule-item {
    border-bottom: 1px solid #cad4f6;
    padding-top: 15px;
    padding-bottom: 15px;
    transition: background-color ease-in-out 0.3s;
}

#programme .schedule-item:hover {
    background-color: #fff;
}

#programme .schedule-item time {
    padding-bottom: 5px;
    display: inline-block;
}

#programme .schedule-item .speaker {
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 50%;
    float: left;
    margin: 0 10px 10px 0;
}

#programme .schedule-item .speaker img {
    height: 100%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    margin-left: 50%;
    transition: all ease-in-out 0.3s;
}

#programme .schedule-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

#programme .schedule-item h4 span {
    font-style: italic;
    color: rgba(49, 37, 64, 0.95);
    font-weight: normal;
    font-size: 16px;
}

#programme .schedule-item p {
    font-style: italic;
    color: rgba(49, 37, 64, 0.95);
    margin-bottom: 0;
}

#callForPapers {
    padding: 60px 0 60px 0;
}

#callForPapers .card-body p {
  font-size: 14px;
}

#callForPapers .card-body a {
  font-size: 14px;
}

#venue {
    padding: 60px 0 60px 0;
}

#venue .directions {
    background-color: #fffffe !important;
    border-radius: 6px;
    padding-bottom: 20px;
    padding-left: 20px;
    padding-right: 20px;
    row-gap: 1px;
    grid-template-rows: 1fr 1fr;
    display: grid;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    overflow: hidden;
    height: 500px;
    width: 90%;      
    margin-left: auto;
    margin-right: auto;  
}

#venue .directions p {
    text-align: center;
    padding: 0;
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--dark-blue-tr);
}

.section-header {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 20px;
}

.section-header::before {
    content: '';
    position: absolute;
    display: block;
    width: 60px;
    height: 5px;
    background: var(--dark-blue);
    bottom: 0;
    left: calc(50% - 25px);
}

.section-header h2 {
    font-size: 36px;
    text-transform: uppercase;
    text-align: center;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-header p {
    text-align: center;
    padding: 0;
    margin: 0;
    font-size: var(--text-size);
    font-weight: 400;
    color: black
}

.section-header a {
    font-size: var(--text-size);
    font-weight: 400;
    color: var(--dark-blue);
}

.section-header a:hover {
    font-size: var(--text-size);
    font-weight: 400;
    color: var(--gold);
}


.p-IPSSC {
    padding: 0px 0 0px 0;
}

#organization {
    padding: 60px 0 30px 0;
}

#organization .speaker {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

#organization .speaker .details {
    background: rgba(66, 66, 64, 0.3);
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    padding-top: 10px;
    transition: all 300ms cubic-bezier(0.645, 0.045, 0.355, 1);
}

#organization .speaker .details span {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

#FAQ {
    padding: 60px 0 30px 0;
    background-color: white;
    color: black;
    font-size: 14px;
}

#FAQ a {
    font-size: 14px;
}

#organization .speaker .details p {
    color: #fff;
    font-size: 15px;
    margin-top: 10px;
    font-style: italic;
}

#organization .speaker:hover .details {
    bottom: 0 !important;
}

#organization-details {
    padding: 60px 0;
}

#organization-details .details h2 {
    color: #3778c0;
    /* color: var(--background-blue); */
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

#organization-details .details .social {
    margin-bottom: 15px;
}

#organization-details .details .social a {
    background: #e9edfb;
    color: #3778c0;
    line-height: 1;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    padding-top: 9px;
}

#organization-details .details .social a:hover {
    background: rgba(25, 111, 67, 0.95);
    color: #fff;
}

#organization-details .details .social a i {
    font-size: 18px;
}

#organization-details .details p {
    color: #3778c0;
    font-size: 15px;
    margin-bottom: 10px;
}

#sponsors {
    padding: 60px 0;
}

#sponsors .sponsors-wrap {
    border-top: 1px solid #e0e5fa;
    border-left: 1px solid #e0e5fa;
    margin-bottom: 30px;
}

#sponsors .supporter-logo {
    background-color: #fffffe !important;
    padding: 50px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    border-right: 1px solid #e0e5fa;
    border-bottom: 1px solid #e0e5fa;
    overflow: hidden;
    height: 200px;
}

#sponsors .supporter-logo:hover img {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
}

#sponsors img {
    transition: all 0.4s ease-in-out;
}

.back-to-top {
    position: fixed;
    font-size: 20px;
    display: none;
    background: var(--gold);
    color: white;
    width: 40px;
    height: 40px;
    text-align: center;
    border-radius: 50px;
    padding-top: 4px;
    right: 15px;
    bottom: 10px;
    transition: background 0.5s ease-in-out;
}

.back-to-top:focus {
    background: var(--gold);
    color: white;
    outline: none;
}

.back-to-top:hover {
    background: var(--dark-blue);
    color: white;
}

.bg-IPSSC-dark {
    background-color: var(--dark-blue)
}

.organizers .organizer {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    /* color: var(--dark-blue-tr); */
}

.organizers .details {
    --dark-blue-transparent: #6aa1c6d1;
    background-color: var(--dark-blue-transparent);
    color: white;
    position: absolute;
    left: 0;
    padding: 10px;
    bottom: 0px;
    width: 100%;
}

.organizers .details p {
    font-weight: 600;
    margin-bottom: 0;
}

.imgWrapper {
    border-radius: 4px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    border-right: 1px solid #e0e5fa;
    border-bottom: 1px solid #e0e5fa;
    overflow: hidden;
    background: #fffffe !important;
    height: 260px;
}

@media (max-width: 1200px) {
    #navbarSupportedContent {
        background-color: var(--top-bar);
        opacity: 0.95;
    }

    #navbarSupportedContent li {
        padding: 0.2rem;
    }

    #header {
        /* background: rgba(224, 168, 51, 0.95); */
        padding-top: 6px;
        height: 60px;
        transition: all 0.5s;
    }

    #header #iconLogo {
        margin-left: 6px;
    }

    #header button {
        margin-right: 6px;
    }
    
}

.google-maps {
    position: relative;
    padding-bottom: 75%;
/* / / This is the aspect ratio height: 0; */
    overflow: hidden;
}

.google-maps iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

/* Jus added this: */

#posters {
    position: relative;
    padding: 60px 0 60px 0;
    /*background-color: #a1a04e; Light green background */
    overflow: visible; /* Ensure the section allows overflow */
}

#posters .categories {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.category-btn {
    background-color: var(--dark-blue);
    border: none;
    color: white;
    font-size: 16px;
    padding: 5px 20px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.category-btn.active,
.category-btn:hover {
    background-color: var(--gold);
}

.posters-container {
    display: flex;
    overflow-x: scroll;
    padding: 20px 0;
    gap: 20px;
}

.poster-item {
    flex: 0 0 auto;
    text-align: center;
    transition: transform 0.25s ease;
}

.poster-img {
    height: 430px;  /* set your desired fixed height */
    width: auto;    /* width adjusts automatically to maintain aspect ratio */
    display: block;
    cursor: pointer;
    transition: transform 0.25s ease;
    border-radius: 10px;
}

.poster-img:hover {
    transform: scale(1.03);
}

.poster-description p {
    font-size: 16px;
    color: black;
    font-weight: bold;
    margin: 5px 0;
}

.download-btn {
    display: block;
    margin-top: 5px;
    text-decoration: none;
    color: var(--dark-blue-tr);
    font-weight: bold;
    transition: color 0.3s ease;
}

.download-btn:hover {
    color: var(--gold);
}

.popup-container {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.popup-image{
    width: auto;
    height: auto;
    max-width: 85vw;      /* never exceed 95 % of viewport width  */
    max-height: 95vh;     /* never exceed 95 % of viewport height */
    object-fit: contain;  /* keep aspect ratio, use whichever limit is lower */

    transform-origin: top left;
    cursor: grab;          /* hand cursor by default */
    user-select: none;
}

.popup-image.grabbing{
    cursor: grabbing;      /* while the button is down */
}

/*
.popup-details {
    color: #fff;
    text-align: justify;
    margin-left: 20px;

    max-width:420px;  
    padding:0 0px; 
    box-sizing:border-box; 
}
*/
.popup-details h3 {
    margin-bottom: 10px;
}

.popup-details p {
    margin: 5px 0;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 30px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    z-index: 1001; /* Ensure it's above the popup image */
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: red;
}

.nav-btn {
    position: absolute;
    top: 50%;
    font-size: 50px;
    color: rgb(230, 182, 78);
    cursor: pointer;
    user-select: none;
    transform: translateY(-50%);
    transition: color 0.3s ease;
    z-index: 1001;
}

.nav-btn:hover {
    color: #bb810c; /* Highlight color */
}

.left-arrow {
    left: 20px;
}

.right-arrow {
    right: 20px;
}
