:root {
    --color-header: rgb(5, 32, 75);
    --color-footer: rgb(20, 50, 110);
    --color-highlight: rgb(236, 124, 0);
    --color-extraHighligt: rgb(236, 77, 0);
    --color-muted: rgb(140, 155, 180);
}


h1 h2 h3 h4 h5 {
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-top: 64px;
    padding-top: 64px;
    font-family: sans-serif;
    letter-spacing: 2px;
    margin-bottom: 270px;
}


.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px; /* Vertically center the text there */
    background-color: var(--color-footer);
}


a {
    text-decoration: none;
    color: var(--color-highlight);
}

    a:hover {
        color: var(--color-extraHighligt);
    }

.usefull-link {
    color: var(--color-header);
}


/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 900px;
}



.navbar {
    background-color: var(--color-header);
    border-color: whitesmoke;
    opacity: 0.95;
}

.nav-item a {
    color: white;
}

    .nav-item a:hover {
        color: var(--color-highlight);
    }


/*#region Fade In στις σελίδες */
.fadeIn div {
    animation: fadein 0.5s;
    -moz-animation: fadein 0.5s; /* Firefox */
    -webkit-animation: fadein 0.5s; /* Safari and Chrome */
    -o-animation: fadein 0.5s; /* Opera */
}

@keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@-moz-keyframes fadein { /* Firefox */
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@-webkit-keyframes fadein { /* Safari and Chrome */
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@-o-keyframes fadein { /* Opera */
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
/*#endregion */


/* Login button --------------------------------------------*/

.loginButton {
    color: white;
    background-color: transparent;
    border: none;
    padding: 4px 4px;
    margin: 0 1px;
}

/* Languange selection button --------------------------------*/

.langButton:hover {
    color: var(--color-highlight);
    background-color: white;
}

.langButton {
    color: white;
    background-color: transparent;
    border: none;
    padding: 4px 4px;
    margin: 0 1px;
}

    .langButton:hover {
        font-weight: 500;
        color: var(--color-highlight);
        background-color: white;
    }

.active .langButton {
    background-color: var(--color-highlight);
}

    .active .langButton:hover {
        background-color: white;
    }

.navbar-toggler-icon {
    background-color: var(--color-highlight);
}

.text-muted {
    color: var(--color-muted) !important
}


/* Social --------------------------------------------*/
.social-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 28px;
    text-decoration: none;
    background-color: var(--color-footer); /* optional base bg */
    /* Smooth transition */
    transition: color 0.8s ease, background-color 0.8s ease, transform 0.8s ease, box-shadow 0.8s ease;
}

    .social-circle:hover {
        color: var(--color-highlight);
        background-color: silver;
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    }


.nav-pills .nav-link {
    color: white;
    background-color: var(--color-header);
    border-color: #1861ac;
    margin: 0px 10px 10px 0px;
}

    .nav-pills .nav-link.active, .nav-pills .show > .nav-link {
        color: white;
        background-color: var(--color-highlight );
        border-color: rgb(236, 124, 0);
    }

/* News --------------------------------------------- */
.newsList {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Each news item */
.newsItem {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-radius: 14px;
    background: white;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

    .newsItem:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    }

/* Icon */
.newsIcon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-header), var(--color-highlight));
    box-shadow: 0 8px 20px rgba(5, 32, 75, 0.25);
    transition: 0.3s ease;
}

.newsItem:hover .newsIcon {
    transform: rotate(8deg) scale(1.05);
}

.newsIcon i {
    color: white;
    font-size: 28px;
}


/* News Details Page -------------*/
.news-detail-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.news-detail-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.news-detail-date {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-detail-text {
    font-size: 1rem;
    line-height: 1.75;
    text-align: justify;
    margin-bottom: 30px;
}

    .news-detail-text img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 20px auto;
        border-radius: 8px;
    }

.news-detail-back {
    text-align: right;
}

    .news-detail-back a {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 8px 14px;
        border-radius: 6px;
        transition: all 0.3s ease;
    }

        .news-detail-back a:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
        }

/* Content */
.newsContent {
    display: flex;
    flex-direction: column;
}

.newsTitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-header);
    margin-bottom: 6px;
}

.newsItem:hover .newsTitle {
    color: var(--color-highlight);
}

.newsDate {
    font-size: 0.9rem;
    color: var(--color-muted);
}


/* Carousel --------------------------------------------*/

.full-carousel {
    width: 100%;
}

.carousel-item {
    height: 550px;
    position: relative;
}

    .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    /* Dark overlay */
    .carousel-item::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1;
    }
/* Caption styling */
.custom-caption {
    z-index: 2;
    bottom: 20%;
    text-align: left;
}
/* Typography */
.slide-title {
    font-size: 3rem;
    font-weight: 700;
}

.slide-text {
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.slide-btn {
    font-size: 16px; /* smaller than btn-lg default */
    padding: 0.5rem 1rem;
}


/* Base button style */
.btn-custom {
    background-color: var(--color-footer); /* or your base button color */
    color: #ffffff;
    border: none;
    padding: 0.5rem 1.5rem;
    font-size: 16px;
    border-radius: 6px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
    /* Hover effect using highlight */
    .btn-custom:hover {
        background-color: var(--color-highlight);
        color: #ffffff; /* keep text readable */
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }


.btn-outline-primary {
    color: var(--color-header);
    border-color: var(--color-header);
}

    .btn-outline-primary:hover {
        background-color: var(--color-highlight);
        color: #ffffff; /* keep text readable */
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }


/* Keyframe animation */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Apply animation when slide becomes active */
.carousel-item.active .slide-title {
    animation: slideUpFade 0.8s ease forwards;
}

.carousel-item.active .slide-text {
    animation: slideUpFade 0.8s ease forwards;
    animation-delay: 0.2s;
}

.carousel-item.active .slide-btn {
    animation: slideUpFade 0.8s ease forwards;
    animation-delay: 0.4s;
}


/* Persons List --------------------------------------------- */
.personsList {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Card */
.personCard {
    padding: 25px;
    border-radius: 14px;
    background: white;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

    .personCard:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    }

/* Header */
.personHeader {
    margin-bottom: 15px;
}

.personTitle {
    font-size: 0.95rem;
    color: var(--color-highlight);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.personName {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-header);
}

/* Contact Section */
.personContact {
    margin-top: 10px;
    font-size: 0.95rem;
}

.contactHeading {
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #444;
}

.contactItem {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

    .contactItem span {
        font-weight: 600;
    }

    .contactItem a {
        color: var(--color-header);
        text-decoration: none;
    }

        .contactItem a:hover {
            text-decoration: underline;
        }



/* Image λίγο μεγαλύτερο zoom effect στο hover ---------------------------------*/
.grow-img05 {
    -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
    -o-transition: all 1s ease;
    transition: all 1s ease;
    overflow: hidden;
}

    .grow-img05:hover {
        -moz-transform: scale(1.05);
        -o-transform: scale(1.05);
        -ms-transform: scale(1.05);
        -webkit-transform: scale(1.05);
        transform: scale(1.05);
        overflow: hidden;
    }


.change_opacity {
    opacity: 1;
}

    .change_opacity:hover {
        opacity: 0.8;
    }



/* Menu --------------------------------------------*/


    .navbar-inverse .navbar-brand {
        color: white; /*το άλλαξα*/
    }

.navbar-nav > li > a {
    color: white; /*Menu color*/
    font-family: sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.6px;
    padding-left: 4px;
    padding-right: 6px;
}

.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
    color: var(--color-highlight);
}

.navbar-inverse .navbar-nav > li > a:before {
    content: "";
    position: absolute;
    width: 60%;
    height: 1.2px;
    bottom: 5px;
    left: 20%;
    background-color: #229038;
    visibility: hidden;
    -webkit-transform: scaleX(0);
    -moz-transform: scaleX(0);
    -o-transform: scaleX(0);
    -ms-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transition: all 0.3s ease-in-out 0s;
    -moz-transition: all 0.3s ease-in-out 0s;
    -o-transition: all 0.3s ease-in-out 0s;
    transition: all 0.3s ease-in-out 0s;
}

.navbar-inverse .navbar-nav > li > a:hover:before {
    visibility: visible;
    -webkit-transform: scaleX(1);
    -ms-transform: scaleX(1);
    -moz-transform: scaleX(1);
    -o-transform: scaleX(1);
    transform: scaleX(1);
}




/*Για να εμφανίζω ένα x button στο menu σε κινητά*/
.navbar-toggle .icon-bar:nth-of-type(2) {
    top: 1px;
}

.navbar-toggle .icon-bar {
    position: relative;
    transition: all 500ms ease-in-out;
}

.navbar-toggle.active .icon-bar:nth-of-type(1) {
    top: 6px;
    transform: rotate(45deg);
}

.navbar-toggle.active .icon-bar:nth-of-type(2) {
    background-color: transparent;
}

.navbar-toggle.active .icon-bar:nth-of-type(3) {
    top: -6px;
    transform: rotate(-45deg);
}
/*#region Drop Down Menu*/
.dropdown {
    font-family: 'Segoe UI';
    font-size: 15px;
    font-weight: 600;
}

.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu > .dropdown-menu {
        top: 0;
        left: 100%;
        margin-top: -6px;
        margin-left: -1px;
        -webkit-border-radius: 0 6px 6px 6px;
        -moz-border-radius: 0 6px 6px;
        border-radius: 0 6px 6px 6px;
        background-color: #4388e9;
    }


    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }


    .dropdown-submenu > a:after {
        display: block;
        content: " ";
        float: right;
        width: 0;
        height: 0;
        border-color: transparent;
        border-style: solid;
        border-width: 5px 0 5px 5px;
        border-left-color: #ccc;
        margin-top: 5px;
        margin-right: -10px;
    }



    .dropdown-submenu:hover > a:after {
        border-left-color: #fff;
    }



    .dropdown-submenu.pull-left {
        float: none;
    }


        .dropdown-submenu.pull-left > .dropdown-menu {
            left: -100%;
            margin-left: 10px;
            -webkit-border-radius: 6px 0 6px 6px;
            -moz-border-radius: 6px 0 6px 6px;
            border-radius: 6px 0 6px 6px;
        }




.dropdown-menu > li > a {
    display: block;
    padding: 3px 20px;
    clear: both;
    font-weight: normal;
    line-height: 1.428571429;
    color: var(--color-header);
    white-space: nowrap;
    font-family: 'Segoe UI';
    font-size: 15px;
    font-weight: 600;
}

    .dropdown-menu > li > a:hover,
    .dropdown-menu > li > a:focus {
        color: white;
        text-decoration: none;
        background-color: var(--color-highlight);
    }

.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus {
    color: var(--color-highlight);
    text-decoration: none;
    background-color: pink;
    outline: 0;
}
/*#endregion*/
/*#region Auto drop down menu */
.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}
/*#endregion*/



/* Κινητά  ---------------------------------------------------------*/

@media screen and (max-width: 1200px) {

    body {
        margin-top: 120px;
        padding-top: 120px;
        margin-bottom: 620px;
    }
}
