/* assets/css/style.css */

/* Custom Accent Color */
:root {
    --bs-primary: #007bff; /* Default Bootstrap blue */
    /*--megadeploy-accent: #007bff; */
    --megadeploy-accent: #004d9f; 
    --megadeploy-secondary-accent: #6c757d; /* Muted gray for secondary elements */
}

/* Overrides for Bootstrap primary color */
.btn-primary,
.bg-primary,
.text-primary,
.navbar-brand,
.form-check-input:checked {
    --bs-primary: var(--megadeploy-accent);
    /*background-color: var(--megadeploy-accent) !important;*/
    border-color: var(--megadeploy-accent) !important;
    color: var(--megadeploy-accent) !important;
}

.btn-outline-primary {
    --bs-btn-color: var(--megadeploy-accent);
    --bs-btn-border-color: var(--megadeploy-accent);
    --bs-btn-hover-bg: var(--megadeploy-accent);
    --bs-btn-hover-border-color: var(--megadeploy-accent);
    --bs-btn-active-bg: var(--megadeploy-accent);
    --bs-btn-active-border-color: var(--megadeploy-accent);
}

/* General Body and Font */
body {
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f8f9fa; /* Light background for the whole site */
    color: #343a40; /* Dark text for readability */
}

main {
    flex: 1; /* Ensures main content takes available space pushing footer down */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

/* Navbar Enhancements */
.navbar {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.navbar-brand img {
    transition: transform 0.3s ease-in-out;
}
.navbar-brand:hover img {
    transform: scale(1.05);
}
.nav-link {
    font-weight: 100;
    color: #000000 !important;
    transition: color 0.3s ease-in-out;
    font-size: 0.9rem;
}
.nav-link:hover {
    color: var(--megadeploy-accent) !important;
}
.nav-link.active {
    color: var(--megadeploy-accent) !important;
    font-weight: 600;
}

/* Αυτός ο κανόνας είναι γενικά καλός για το τελευταίο link της δεξιάς ομάδας. Μπορεί να παραμείνει. */
.navbar-nav .nav-item:last-child .nav-link {
    margin-right: 0;
}

@media (min-width: 992px) {
    /* Κενά για την αριστερή ομάδα συνδέσμων (me-auto group) */
    /* Προσθήκη margin-right σε όλα τα στοιχεία ΕΚΤΟΣ από το τελευταίο */
    .navbar-nav.me-auto .nav-item:not(:last-child) {
        margin-right: 1.5rem;
    }
    /* Διασφάλιση ότι το τελευταίο στοιχείο της αριστερής ομάδας ΔΕΝ έχει margin-right */
    .navbar-nav.me-auto .nav-item:last-child {
        margin-right: 0;
    }

    /* Κενά για την δεξιά ομάδα συνδέσμων (ms-auto group) */
    /* Προσθήκη margin-left σε όλα τα στοιχεία ΕΚΤΟΣ από το πρώτο */
    .navbar-nav.ms-auto .nav-item:not(:first-child) {
        margin-left: 1.5rem;
    }
    /* Διασφάλιση ότι το πρώτο στοιχείο της δεξιάς ομάδας ΔΕΝ έχει margin-left */
    .navbar-nav.ms-auto .nav-item:first-child {
        margin-left: 0;
    }
}


/* Hero Section Styling */
.hero-section {
    /*height: 70vh; */
    /*min-height: 500px; */
}

.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 60vh;
    min-height: 500px;
}

.carousel-item {
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    color: white; /* Ensure text is visible on dark images */
}
.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 1;
}
.carousel-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center; /* Center content vertically */
    text-align: center;
    z-index: 2;
    padding-bottom: 0; /* Override default Bootstrap padding */
}
.carousel-caption .container {
    height: 100%; /* Ensure container fills caption space */
    display: flex;
    align-items: center;
}
.carousel-caption h1, .carousel-caption p, .carousel-caption .btn {
    color: white; /* Ensure text and buttons are white */
}
.carousel-caption h1 {
    font-size: 2.5rem; /* Larger font for impact */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.carousel-caption p {
    font-size: 1.25rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Animate.css for hero section text (optional, requires CDN link in header) */
/* Add this to header.php if you want animations:
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"/>
*/
.animate__animated {
    animation-duration: 1.5s;
}


/* Section Padding */
section {
    /*padding: 80px 0;*/
}
section.bg-light {
    background-color: #f8f9fa !important;
}

/* Card Styling */
.card {
    border: none;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}
.card-img-top {
    max-height: 100px;
    max-width: 280px;
    width: min-content;
    align-items: center;
    padding: 20px;
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
    margin: auto;
}
.card-title {
    color: var(--megadeploy-accent);
}
.badge {
    font-weight: 500;
    padding: 0.4em 0.8em;
    border-radius: 0.5rem;
}
.badge.bg-info {
    background-color: #e0f7fa !important; /* Lighter info for tags */
    color: #007bff !important; /* Darker text for contrast */
}


/* Buttons */
.btn {
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 50px; /* Rounded pill buttons */
    transition: all 0.3s ease-in-out;
}
.btn-primary {
    color: white!important;
    background-color: var(--megadeploy-accent) !important;
    border-color: var(--megadeploy-accent) !important;
}
.btn-primary:hover {
    color: var(--megadeploy-accent) !important;
    background-color: darken(var(--megadeploy-accent), 10%) !important;
    border-color: darken(var(--megadeploy-accent), 10%) !important;
}
.btn-outline-primary {
    color: var(--megadeploy-accent) !important;
    border-color: var(--megadeploy-accent) !important;
}
.btn-outline-primary:hover {
    background-color: var(--megadeploy-accent) !important;
    color: white !important;
}


.btn:hover {
    color:white!important;
    background-color: #003061;
    border-color: #003061;
}
/* Image grayscale for trust section */
.trust-section img.grayscale {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease-in-out;
}
.trust-section img.grayscale:hover {
     filter: grayscale(0%);
     opacity: 1;
}


/* Timeline Styling (for about page) */
.timeline {
    list-style: none;
    padding: 0;
    position: relative;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e9ecef; /* Light gray line */
    left: 50%; /* Center the line */
    transform: translateX(-50%);
}
.timeline li {
    position: relative;
    margin-bottom: 40px;
    padding: 10px 0;
}
.timeline li:nth-child(odd) .timeline-content {
    margin-left: 55%; /* Content on right */
}
.timeline li:nth-child(even) .timeline-content {
    margin-right: 55%; /* Content on left */
    text-align: right;
}
.timeline li::before {
     content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--megadeploy-accent); /* Accent colored circle */
    left: 50%; /* Align with the line */
    top: 15px; /* Adjust vertical alignment */
    transform: translateX(-50%);
    z-index: 1;
    border: 2px solid white; /* White border for contrast */
}
.timeline-year {
    position: absolute;
    left: 50%;
    top: -20px; /* Position above the circle */
    transform: translateX(-50%);
    font-weight: bold;
    color: #6c757d; /* Muted color */
    background-color: #f8f9fa;
    padding: 2px 10px;
    border-radius: 15px;
    font-size: 0.9em;
    white-space: nowrap;
    z-index: 2;
}
.timeline li:nth-child(odd) .timeline-year {
    /* Adjust for odd items */
    /*left: 25%; */
    transform: translateX(-50%);
}
.timeline li:nth-child(even) .timeline-year {
    /* Adjust for even items */
    /*left: 75%; */
    transform: translateX(-50%);
}

.timeline-content {
    background: #ffffff; /* Light background for content */
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
}
.timeline-content h5 {
    margin-top: 0;
    color: var(--megadeploy-accent);
}

/* Responsive adjustments for timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px; /* Move line to left for mobile */
        transform: none;
    }
    .timeline li {
        padding-left: 60px; /* Space for the circle and line */
        margin-left: 0;
        margin-right: 0;
        text-align: left !important;
    }
    .timeline li::before {
        left: 17px; /* Align with the line */
        transform: none;
    }
    .timeline li:nth-child(odd) .timeline-content,
    .timeline li:nth-child(even) .timeline-content {
        margin-left: 0;
        margin-right: 0;
    }
    .timeline-year {
        position: static; /* Remove absolute positioning */
        display: block; /* Make it a block element */
        font-weight: bold;
        margin-bottom: 5px;
        color: #343a40; /* Darker color on mobile */
        text-align: left;
        transform: none;
        padding: 0;
        background: transparent;
        border-radius: 0;
        left: auto;
    }
}

/* Contact Page Specifics */
.embed-responsive {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
}
.embed-responsive iframe {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Form inputs */
.form-control.rounded-pill,
.form-control.rounded-3 {
    border-radius: 0.75rem !important; /* Slightly less rounded for textareas */
    padding: 0.75rem 1.25rem;
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.form-control:focus {
    border-color: var(--megadeploy-accent);
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25); /* Bootstrap blue with opacity */
}

/* GDPR Link Styling */
.form-check-label a {
    font-weight: 500;
}


/* assets/css/style.css OR assets/css/footer.css */

/* Footer Specific Styles */
footer.bg-dark {
    background-color: #212529 !important; /* Ensure Bootstrap dark color is used if not already default */
}

/* Make text-megadeploy-accent available */
.text-megadeploy-accent {
    color: var(--megadeploy-accent) !important;
}

footer .text-megadeploy-accent {
    color: #dbddd2 !important;
}

/* Footer logo placeholder styling */
footer .d-flex img[src*="logo-footer-placeholder.png"] {
    /* If you use an SVG logo, you might not need the filter, or you can control fill with CSS.
       For PNG, this inverts a dark logo to be white on the dark footer.
       Adjust if your logo is already light or an SVG. */
    filter: brightness(0) invert(1);
}
/* If you have a light version of your logo specifically for dark backgrounds, use that directly
   and remove the filter above. Example:
footer .d-flex img[src*="logo-footer-light.png"] {
    filter: none;
}
*/


.footer-links li a {
    color: #adb5bd; /* Slightly lighter than text-white-75 for links if desired, or use text-white-75 */
    text-decoration: none;
    transition: color 0.2s ease-in-out, padding-left 0.2s ease-in-out;
}

.footer-links li a:hover,
.footer-links li a:focus {
    color: var(--megadeploy-accent) !important; /* Use your defined accent color */
    padding-left: 5px; /* Slight indent on hover */
}

.footer-social-icon {
    transition: color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.footer-social-icon:hover,
.footer-social-icon:focus {
    color: var(--megadeploy-accent) !important;
    transform: scale(1.1);
}

footer hr.bg-white-25 {
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    opacity: 1; /* Override Bootstrap's default opacity for hr if needed */
}

/* Ensure footer is pushed to the bottom if content is short */
/* This is already in your existing CSS (body display:flex, main flex:1), so it's good. */

/* Styling for the "Back to Top" link */
#backToTop {
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}
#backToTop:hover,
#backToTop:focus {
    color: var(--megadeploy-accent) !important;
}
#backToTop i {
    margin-right: 0.25rem;
    vertical-align: middle; /* Better icon alignment */
}

/* Small adjustments for readability */
footer .small {
    font-size: 0.9em; /* Slightly adjust if needed */
}

footer .text-white-75 a,
footer a.text-white-75 {
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

footer .text-white-75 a:hover,
footer a.text-white-75:hover {
    color: #dbddd2 !important;
}

footer a {
    color: #dbddd2 !important;
}

/*footer .text-white-75 a:hover,*/
/*footer a.text-white-75:hover {*/
/*    color: var(--megadeploy-accent) !important;*/
/*}*/