/**
 * @file
 * Subtheme specific CSS.
 */
/* Main Color Variables */
:root {
    --primary-color: #8C1116;
    --primary-color-light: hsl(from var(--primary-color) h s calc(l + 25%) / 1);
    --primary-color-dark: hsl(from var(--primary-color) h s calc(l - 10%) / 1);
    --primary-color-transparent: hsl(from var(--primary-color) h s l / 0.1);
    --primary-dark: #6e0e12;

    --secondary-color: #333333;
    --secondary-color-light: #666666;
    --secondary-color-dark: #1a1a1a;
    
    --background-color: #ffffff;
    --background-alt: #f8f9fa;
    --text-color: #333333;
    --text-color-light: #666666;
    --border-color: #e5e5e5;
    
    --success-color: #28a745;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --danger-color: #dc3545;

    --white: #ffffff;
}

/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    color: var(--secondary-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color-dark);
    text-decoration: underline;
}

.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Navigation */
.navbar {
    background-color: var(--background-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 3rem;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    color: white; /*var(--secondary-color);*/
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active,
.nav-link.focus {
    color: var(--primary-color);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dropdown-item.active, 
.dropdown-item:active {
    background-color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color-transparent) 0%, var(--primary-color) 100%);
    color: var(--background-color);
    padding: 6rem 18rem;
    text-align: left;

    width: 100vw; /* 100% του viewport πλάτους */
    margin-left: calc(-50vw + 50%); /* Κεντράρισμα */
    margin-right: calc(-50vw + 50%);
}

.hero-section h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-section p {
    color: var(--background-color);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-section .btn-primary {
    background-color: var(--background-color);
    color: var(--primary-color);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-section .btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--background-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero-image-placeholder {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 3rem;
    text-align: center;
    color: var(--background-color);
}

.hero-image-placeholder i {
    margin-bottom: 1.5rem;
}

.hero-image-placeholder h3 {
    color: var(--background-color);
    font-size: 1.5rem;
}

/* Workflow Section */
.workflow-container {
    padding: 2rem 18rem;
    width: 100vw; /* 100% του viewport πλάτους */
    margin-left: calc(-50vw + 50%); /* Κεντράρισμα */
    margin-right: calc(-50vw + 50%);
}

.workflow-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.workflow-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.workflow-card .card-body {
    padding: 2rem;
}

.workflow-card i {
    color: var(--primary-color);
}

.workflow-card h4 {
    margin: 1rem 0;
    font-weight: 600;
    color: var(--secondary-color);
}

.workflow-card p {
    color: var(--text-color-light);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Documentation Section */
#documentation{
    padding: 2rem 18rem;
    width: 100vw; /* 100% του viewport πλάτους */
    margin-left: calc(-50vw + 50%); /* Κεντράρισμα */
    margin-right: calc(-50vw + 50%);
}

.doc-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.doc-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.doc-card .card-body {
    padding: 2rem;
}

.doc-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.doc-card i {
    color: var(--primary-color);
}

.document-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.document-list li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--border-color);
}

.document-list li:last-child {
    border-bottom: none;
}

.document-list li i {
    color: var(--primary-color);
}

/* Flowchart Section */
#flowchart{
    padding: 2rem 18rem;
    width: 100vw; /* 100% του viewport πλάτους */
    margin-left: calc(-50vw + 50%); /* Κεντράρισμα */
    margin-right: calc(-50vw + 50%);
}

.flowchart-container {
    margin-top: 3rem;
}

.flowchart-steps {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    background-color: var(--background-color);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.alt-step {
    background-color: var(--background-alt);
}

.step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.step-content {
    flex-grow: 1;
}

.step-content h4 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.flow-arrow {
    display: flex;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 1rem 0;
}

.flow-decision {
    position: relative;
    margin-bottom: 2rem;
    text-align: center;
}

.decision-text {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.decision-branches {
    display: flex;
    justify-content: space-between;
}

.branch {
    position: relative;
    width: 48%;
}

.branch-arrow {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.branch-arrow span {
    margin-right: 0.5rem;
    font-weight: 600;
}

.branch-return {
    display: flex;
    justify-content: flex-start;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 1rem;
}

/* National Framework Section */
#national-framework{
    padding: 2rem 18rem;
    width: 100vw; /* 100% του viewport πλάτους */
    margin-left: calc(-50vw + 50%); /* Κεντράρισμα */
    margin-right: calc(-50vw + 50%);
}

.framework-content {
    padding: 2rem;
}

.framework-content h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.framework-content p {
    margin-bottom: 1rem;
}

.framework-content .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.framework-content .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.framework-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.framework-icon-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    color: var(--primary-color);
}

/* Resources Section */
.resource-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.resource-card .card-body {
    padding: 2rem;
    text-align: center;
}

.resource-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: var(--primary-color-transparent);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.resource-card h4 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.resource-card .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.resource-card .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Contact Section */
.contact-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.contact-card .card-body {
    padding: 2rem;
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    padding: 0.75rem 0;
    border-bottom: 1px dashed var(--border-color);
}

.contact-list li:last-child {
    border-bottom: none;
}

.contact-list li i {
    color: var(--primary-color);
}

.social-media {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.form-label {
    font-weight: 500;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem var(--primary-color-transparent);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
}

/* Footer Styles */
.site-footer {    
    color: var(--footer-text);
    padding: 0 0;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Changed from 3 to 4 columns */
    gap: 2rem;
}

/* Add to your existing footer.css */
.footer-image {
    width: 100%; /* Full width of the column */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Ensure it behaves as a block element */
    margin-bottom: 1.5rem; /* Space below the image, matching other spacing */
}

.footer-column h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
    color: var(--white);
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-column ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
}

.footer-column ul li i {
    margin-right: 0.75rem;
    color: var(--primary-light);
    min-width: 16px;
    margin-top: 4px;
}

.footer-column a {
    color: var(--footer-link);
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--footer-link-hover);
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.mt-4 {
    margin-top: 1.5rem;
}

/* Responsive footer */
@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr); /* Switch to 2 columns on medium screens */
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr; /* Single column on small screens */
    }
    .footer-image {
        max-height: 200px; /* Optional: Limit image height on small screens */
        object-fit: cover; /* Optional: Crop image to fit while maintaining aspect ratio */
    }
}

.fa-location-dot, .fa-phone, .fa-envelope{
    margin-right: 10px;
}

/* Button Styles */
.btn {
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

.btn-primary, 
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 901px – 1200px (tablets και μικρές desktop οθόνες) */
@media (min-width: 901px) and (max-width: 1200px) {
  .workflow-container {
    padding: 2.5rem 4rem;
  }

  .workflow-steps .row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }

  .workflow-card i {
    font-size: 2.75rem;
  }
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .hero-section {
        text-align: center;
        padding: 4rem 0;
    }
    
    .hero-image-placeholder {
        margin-top: 2rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .workflow-card,
    .doc-card,
    .resource-card,
    .contact-card {
        margin-bottom: 1.5rem;
    }
    
    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .step-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .framework-content,
    .framework-image {
        text-align: center;
    }

    .workflow-container {
        padding: 2rem 2.5rem;
    }

    .workflow-steps .row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workflow-card .card-body {
        padding: 2rem;
    }

    .workflow-card i {
        font-size: 2.6rem;
    }

}

@media (max-width: 575.98px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }

    .workflow-card .card-body {
        padding: 1.5rem;
    }

    .workflow-card i {
        font-size: 2.2rem;
    }

}

/* Additional styles for error pages */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f1f3f4 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
    width: 100vw; /* 100% του viewport πλάτους */
    margin-left: calc(-50vw + 50%); /* Κεντράρισμα */
    margin-right: calc(-50vw + 50%); 
}

.error-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    /* background: linear-gradient(90deg, var(--primary-color), #a91b23, var(--primary-color)); */
}

.error-container {
    text-align: center;
    max-width: 600px;
    width: 100%;
    background: var(--white);
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 20px 60px rgba(140, 17, 22, 0.1);
    border: 1px solid rgba(140, 17, 22, 0.05);
    position: relative;
    z-index: 1;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    line-height: 1;
    text-shadow: 0 4px 8px rgba(140, 17, 22, 0.2);
    animation: pulse 2s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.8; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}

.error-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin: 30px 0;
    opacity: 0.8;
}

.error-title {
    font-size: 2.5rem;
    color: var(--text-color);
    margin: 20px 0 15px 0;
    font-weight: 600;
}

.error-message {
    font-size: 1.2rem;
    color: var(--text-light);
    margin: 0 0 40px 0;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.error-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(140, 17, 22, 0.3);
}

.error-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(140, 17, 22, 0.4);
    color: var(--white);
}

.error-btn.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.error-btn.secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.suggestions {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid rgba(140, 17, 22, 0.1);
}

.suggestions h3 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.suggestions li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
    color: var(--text-light);
    font-size: 1rem;
}

.suggestions li i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

/* Background decoration */
.error-page::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 10%;
    width: 200px;
    height: 200px;
    background: rgba(140, 17, 22, 0.03);
    border-radius: 50%;
    z-index: 0;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Responsive design */
@media (max-width: 768px) {
    .error-container {
        padding: 40px 25px;
    }
    
    .error-code {
        font-size: 6rem;
    }
    
    .error-title {
        font-size: 2rem;
    }
    
    .error-message {
        font-size: 1.1rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .error-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .error-code {
        font-size: 4.5rem;
    }
    
    .error-title {
        font-size: 1.7rem;
    }
    
    .error-container {
        margin: 10px;
        padding: 30px 20px;
    }
}

/* Sticky Header */
header#header {
  position: sticky;
  top: 0; /* This makes it stick to the top of the viewport */
  z-index: 1000; /* Ensure it stays on top of other content */
}