/*
Theme Name: EPAC Custom Theme
Description: Custom WordPress theme based on your original design
Version: 1.0
Author: Your Name
*/

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* WordPress content styling */
.wp-content {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.wp-content.loaded {
    opacity: 1;
}

.wp-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-style: italic;
}

.wp-loading::before {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: wp-spin 1s linear infinite;
}

@keyframes wp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.wp-error {
    color: #e74c3c;
    background: #fff5f5;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #fed7d7;
}

/* Header styles */
header {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #f8f9fa;
}

header nav {
    max-width: 1600px;
    margin: 0 auto;
}

header h1 {
    margin: 0;
    font-size: 2rem;
	text-indent:-9999px;
}

header h1 a {
    text-decoration: none;
    color: inherit;
}

header p {
    margin: 8px 0 0 0;
}

/* Navigation menu styles */
.main-navigation {
    margin-top: 15px;
}

.main-menu {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Slėpti tekstinį pavadinimą visur */
.site-title,
.site-branding .site-title,
.wp-block-site-title {
  position: absolute !important;
  clip: rect(1px,1px,1px,1px);
  height: 1px; width: 1px; overflow: hidden;
}

/* Jei tema palaiko tik tekstinę nuorodą kaip brand'ą – padarom ją logo */
.site-title a,
.site-branding a.custom-logo-link,
.navbar-brand,
.header .site-branding a {
  display: inline-block !important;
  width: 12px;               /* koreguok */
  height: 56px;               /* koreguok */
  background: url('https://mediumvioletred-wolf-399010.hostingersite.com/wp-content/uploads/2025/08/cropped-logo-1.png') no-repeat center / contain;
  text-indent: -9999px;       /* paslepia tekstą */
  overflow: hidden;
}

/* Jei tema turi <img> logotipui – užtikrinam, kad jis rodomas */
.custom-logo,
.wp-block-site-logo img,
.site-logo img {
  display: inline-block !important;;
  max-height: 56px; /* koreguok */
  height: auto;
}



.menu-item-logo img { height:56px; width:56px; display:block; max-height:56px; }
@media (max-width:56px){
  .menu-item-logo img { height:56px; max-height:48px; }
}


/* (nebūtina) gražesniam lygiavimui ankštyje */
.header .site-branding { display: flex; align-items: center; gap: 56px; }


.main-menu-item a {
    text-decoration: none;
    color: #333;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.main-menu-item a:hover {
    background-color: #e9ecef;
}

.main-menu-item.current-menu-item a,
.main-menu-item.current_page_item a {
    background-color: #3498db;
    color: white;
}

/* Main content styles */
main {
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Hero section */
.hero-section {
    text-align: center;
    margin-bottom: 60px;
}

.hero-section h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.hero-section p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* About section */
.about-section {
    margin-bottom: 60px;
}

.about-section h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-section div {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
}

/* Blog posts styling */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.blog-post-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    background: white;
    transition: box-shadow 0.3s ease;
}

.blog-post-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.blog-post-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.blog-post-title a {
    text-decoration: none;
    color: inherit;
}

.blog-post-title a:hover {
    color: #3498db;
}

.blog-post-date {
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 12px;
}

.blog-post-excerpt {
    color: #444;
    line-height: 1.6;
    margin-bottom: 16px;
}

.blog-post-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.blog-post-link:hover {
    text-decoration: underline;
}

/* Pagination */
.page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
}

.page-numbers:hover,
.page-numbers.current {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

/* Categories and tags */
.cat-links, .tags-links {
    margin-right: 10px;
}

.cat-links a, .tags-links a {
    color: #3498db;
    text-decoration: none;
}

.cat-links a:hover, .tags-links a:hover {
    text-decoration: underline;
}

/* Footer styles */
footer {
    background: #0e4194;
    color: white;
    padding: 40px 20px;
    margin-top: 80px;
}

footer div {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}


.footer-navigation {
    margin-top: 20px;
}

.footer-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-menu a {
    color: #bdc3c7;
    text-decoration: none;
}

.footer-menu a:hover {
    color: white;
}

/* Responsive design */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }
    
    .hero-section h2 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    main {
        padding: 20px 15px;
    }
    
    .main-menu {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-menu {
        flex-direction: column;
        gap: 10px;
    }
}

/* WordPress specific styles */
.alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
}

.aligncenter {
    display: block;
    margin: 0 auto 20px;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 20px;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: #666;
    text-align: center;
    margin-top: 8px;
}

/* Comments */
.comments-area {
    margin-top: 40px;
}

.comment-list {
    list-style: none;
}

.comment {
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Widgets */
.widget {
    margin-bottom: 40px;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-widget-title {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* Search form */
.search-form {
    display: flex;
    gap: 10px;
    max-width: 300px;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-form input[type="submit"] {
    padding: 8px 16px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.search-form input[type="submit"]:hover {
    background: #2980b9;
}

/* Single post styles */
.single-post-header {
    margin-bottom: 30px;
}

.single-post-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.single-post-meta {
    color: #666;
    margin-bottom: 20px;
}

.single-post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.single-post-content h1,
.single-post-content h2,
.single-post-content h3,
.single-post-content h4,
.single-post-content h5,
.single-post-content h6 {
    margin: 30px 0 15px;
}

.single-post-content p {
    margin-bottom: 20px;
}

.single-post-content ul,
.single-post-content ol {
    margin: 20px 0;
    padding-left: 40px;
}

.single-post-content blockquote {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    font-style: italic;
}

/* Post navigation */
.post-navigation {
    margin: 40px 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.post-navigation a {
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    flex: 1;
    text-align: center;
    transition: background-color 0.3s ease;
}

.post-navigation a:hover {
    background: #e9ecef;
}

/* Archive pages */
.archive-header {
    margin-bottom: 40px;
    text-align: center;
}

.archive-title {
    font-size: 2rem;
    margin-bottom: 15px;
}

.archive-description {
    color: #666;
    font-size: 1.1rem;
}

/* Error 404 */
.error-404 {
    text-align: center;
    padding: 60px 20px;
}

.error-404 h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #e74c3c;
}

.error-404 p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

/* Accessibility */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

.container { max-width: 1024px; margin: 0 auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }
.text-primary { color: var(--wp--preset--color--primary, #1e3a8a); } /* pakeisk #2563eb į savo brand spalvą */
.mb-8 { margin-bottom: 2rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-gray-700 { color: #374151; }

:root {
  --primary: #1e3a8a; /* Pakeisk, jei nori kitokios "primary" spalvos */
}

.epac-container {
  max-width: 64rem; /* ~1024px */
  margin: 0 auto;
  padding: 3rem 1rem;
  min-height: calc(100vh - 200px);
}

.epac-header { text-align: center; margin-bottom: 2rem; padding-top: 1rem; }
.epac-title {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-weight: 800; color: var(--primary);
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  opacity: 0; transform: translateY(-30px);
  animation: epac-fade-down 0.6s ease forwards;
}
.epac-icon { width: clamp(2.5rem, 2.5vw + 1rem, 3rem); height: auto; color: var(--primary); }

.epac-card {
  background: linear-gradient(135deg, #eff6ff, #eef2ff 45%, #f5f3ff);
  padding: clamp(1.5rem, 2vw + 1rem, 2rem);
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  max-width: 56rem; margin: 0 auto;
  opacity: 0; transform: scale(0.9);
  animation: epac-zoom-in 0.5s ease forwards 0.2s;
}

.epac-image { overflow: hidden; border-radius: 0.75rem; box-shadow: 0 6px 16px rgba(2,6,23,0.06); margin-bottom: 1.5rem; }
.epac-image img { width: 100%; height: auto; display: block; }

.epac-text {
  font-size: clamp(1.125rem, 0.8vw + 1rem, 1.25rem);
  line-height: 1.7; color: #374151; text-align: center;
  padding: 0 0.5rem;
  opacity: 0; transform: translateY(20px);
  animation: epac-fade-up 0.5s ease forwards 0.4s;
}

/* Animacijos */
@keyframes epac-fade-down {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes epac-zoom-in {
  to { opacity: 1; transform: scale(1); }
}
@keyframes epac-fade-up {
  to { opacity: 1; transform: translateY(0); }
}

/* Smulkūs pritaikymai mažiems ekranams */
@media (max-width: 480px) {
  .epac-container { padding: 2rem 1rem; }
}

:root{
  --teal-600:#0d9488; --teal-700:#0f766e; --gray-700:#374151; --gray-500:#6b7280; --primary:#0f172a;
}
.nlp.container{max-width:1100px;margin:0 auto;padding:24px}
.nlp-title{font-size:2.25rem;font-weight:800;color:var(--primary);display:flex;align-items:center;gap:12px;margin:24px 0}
.nlp-mail{color:var(--teal-600)}
.nlp-intro{color:var(--gray-700);line-height:1.7;margin:0 0 2rem}
.nlp-grid{display:grid;grid-template-columns:1fr;gap:24px}
@media (min-width:768px){.nlp-grid{grid-template-columns:repeat(2,1fr)}}
.nlp-card{background:#fff;padding:24px;border-radius:12px;box-shadow:0 4px 14px rgba(0,0,0,.08);transition:box-shadow .3s,transform .2s}
.nlp-card:hover{box-shadow:0 8px 24px rgba(0,0,0,.12);transform:translateY(-2px)}
.nlp-card-title{font-size:1.25rem;font-weight:700;color:var(--primary);margin:0 0 4px}
.nlp-card-date{font-size:.875rem;color:var(--gray-500);margin:0 0 12px}
.nlp-link{display:inline-block;text-decoration:none;color:var(--teal-600)}
.nlp-link:hover{color:var(--teal-700);text-decoration:underline}
.nlp-cta{text-align:center;margin-top:2.5rem}
.nlp-btn{display:inline-block;background:var(--teal-600);color:#fff;padding:.9rem 1.75rem;border-radius:10px;font-size:1.125rem;text-decoration:none;transition:background .2s}
.nlp-btn:hover{background:var(--teal-700)}

:root{
  --ga-primary:#3b82f6; /* mėlyna akcentams */
  --ga-text:#374151;    /* neutralus tekstas */
  --ga-card-bg: linear-gradient(135deg,#eff6ff, #eef2ff 40%, #f5f3ff);
}
.ga-wrap{min-height:calc(100vh - 200px); padding:3rem 1rem;}
.ga-container{max-width:64rem;margin:0 auto;}
.ga-title{
  display:flex;align-items:center;justify-content:center;
  font-weight:800;font-size:clamp(2rem,4vw,3rem);margin:0 0 1.5rem;
  color:var(--ga-primary);text-align:center;
}
.ga-emoji{font-size:1.25em;margin-right:.5rem;line-height:1}
.ga-card{
  background:var(--ga-card-bg);
  padding:2rem; border-radius:1rem; box-shadow:0 10px 30px rgba(0,0,0,.08);
}
.ga-intro,.ga-text{font-size:1.125rem; line-height:1.8; color:var(--ga-text);}
.ga-subtitle{
  display:flex;align-items:center;gap:.5rem;
  margin:2rem 0 1rem; font-size:clamp(1.5rem,2.5vw,2rem);
  font-weight:700; color:var(--ga-primary);
}
.ga-list{list-style:none; padding:0; margin:0}
.ga-list li{
  position:relative; padding-left:2rem; margin:.6rem 0; font-size:1.125rem; color:var(--ga-text);
  opacity:0; transform:translateX(-12px); animation:ga-fade .5s ease forwards;
}
.ga-list li::before{
  content:"✔"; position:absolute; left:0; top:.1rem; font-weight:700;
  display:inline-flex; width:1.25rem; height:1.25rem; align-items:center; justify-content:center;
  border-radius:999px; border:2px solid #10b981; color:#10b981;
}
/* seka kaip framer-motion: mažos užlaikos kiekvienam punktui */
.ga-list li:nth-child(1){animation-delay:.30s}
.ga-list li:nth-child(2){animation-delay:.35s}
.ga-list li:nth-child(3){animation-delay:.40s}
.ga-list li:nth-child(4){animation-delay:.45s}
.ga-list li:nth-child(5){animation-delay:.50s}
.ga-list li:nth-child(6){animation-delay:.55s}
.ga-list li:nth-child(7){animation-delay:.60s}
.ga-list li:nth-child(8){animation-delay:.65s}
.ga-list li:nth-child(9){animation-delay:.70s}

.site-footer { background:#0e4194; color:#e5e7eb; padding:48px 24px; }
.footer-grid { display:grid; grid-template-columns:1fr; gap:32px; text-align:center; max-width:1200px; margin:0 auto; }
@media (min-width:768px){ .footer-grid { grid-template-columns:repeat(3,minmax(0,1fr)); text-align:left; } }

.footer-title { color:#fff; font-weight:600; margin:0 0 8px; font-size:1.125rem; }
.footer-text { font-size:.9rem; margin:0 0 6px; }

.footer-menu { list-style:none; padding:0; margin:0; }
.footer-menu a, .footer-link { color:#e5e7eb; text-decoration:none; }
.footer-menu a:hover, .footer-link:hover { color:#fff; text-decoration:underline; }

.social-links { display:flex; gap:16px; justify-content:center; }
@media (min-width:768px){ .social-links { justify-content:center; } }
.social-links a { opacity:.85; transition:opacity .2s; }
.social-links a:hover { opacity:1; }

.footer-bottom { margin-top:32px; padding-top:32px; border-top:1px solid #1e3a8a; text-align:center; font-size:.9rem; color:#d1d5db; }


@keyframes ga-fade{
  to{opacity:1; transform:none}
}

/* mažesniems ekranams */
@media (max-width:640px){
  .ga-card{padding:1.25rem}
}


/* Print styles */
@media print {
    header, footer, .main-navigation, .post-navigation {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    a {
        text-decoration: none;
        color: #000;
    }
}