/*
 * UIkit Overrides using variables from variables.css
 */

/* Backgrounds & Text Colors */
.uk-background-primary {
  background-color: var(--uk-global-primary-background) !important;
}

.uk-text-primary {
  color: var(--uk-global-primary-background) !important;
}

/* Sections */
.uk-section-primary {
  background-color: var(--uk-global-primary-background) !important;
  color: var(--uk-global-inverse-color) !important; /* Assume light text on primary background */
}
/* Ensure links within primary sections are also light */
.uk-section-primary a:not(.uk-button),
.uk-section-primary .uk-link:not(.uk-button) {
   color: var(--uk-global-inverse-color) !important;
}
.uk-section-primary a:not(.uk-button):hover,
.uk-section-primary .uk-link:not(.uk-button):hover {
   color: rgba(255, 255, 255, 0.8) !important; /* Slightly dimmer white on hover */
   text-decoration: underline;
}


.uk-section-secondary {
  background-color: var(--uk-global-secondary-background) !important;
  color: var(--uk-global-inverse-color) !important; /* Assume light text on secondary background */
}
/* Ensure links within secondary sections are also light */
.uk-section-secondary a:not(.uk-button),
.uk-section-secondary .uk-link:not(.uk-button) {
   color: var(--uk-global-inverse-color) !important;
}
.uk-section-secondary a:not(.uk-button):hover,
.uk-section-secondary .uk-link:not(.uk-button):hover {
   color: rgba(255, 255, 255, 0.8) !important; /* Slightly dimmer white on hover */
   text-decoration: underline;
}


/* Add other UIkit component overrides below as needed */

/* Buttons (Based on .mainBtn) */
.uk-button-primary {
  background-color: var(--uk-global-primary-background) !important;
  color: var(--uk-global-inverse-color) !important;
  border-color: transparent !important; /* Assuming no border like .mainBtn */
  text-transform: uppercase !important;
  padding: 10px 15px !important; /* Match .mainBtn padding */
  font-weight: 600 !important;
  font-size: var(--uk-global-small-font-size) !important; /* Approx 14px */
  transition: all 0.2s ease-in-out; /* Keep transition */
}

.uk-button-primary:hover,
.uk-button-primary:focus {
  background-color: var(--uk-global-emphasis-color) !important; /* Match .mainBtn:hover */
  color: var(--uk-global-inverse-color) !important;
  border-color: transparent !important;
  text-decoration: none; /* Remove potential underline on hover/focus */
  outline: none;
}

/* Links */
a, .uk-link {
 color: var(--uk-global-link-color); /* Use primary color for links */
 transition: all 0.2s ease-in-out;
}

a:hover, .uk-link:hover,
a:focus, .uk-link:focus {
 color: var(--uk-global-link-hover-color); /* Use button hover color */
 text-decoration: none; /* Remove underline on hover/focus */
 outline: none;
}

/* General Typography */
body {
  color: var(--uk-global-color); /* Ensure body text uses the variable */
  font-family: var(--uk-global-font-family); /* Ensure consistent font */
  font-size: var(--uk-global-font-size);
  line-height: var(--uk-global-line-height);
}

h1, .uk-h1,
h2, .uk-h2,
h3, .uk-h3,
h4, .uk-h4,
h5, .uk-h5,
h6, .uk-h6 {
  color: var(--uk-global-emphasis-color); /* Ensure headings use the variable */
  font-family: var(--uk-global-font-family); /* Ensure consistent font */
  text-transform: uppercase !important; /* Make headings uppercase like template */
}

/* Divider (like .title-section span) */
.uk-divider-small {
  height: 4px !important; /* Match template */
  background-color: var(--uk-global-primary-background) !important;
  border: none !important;
  width: 70px !important; /* Match template span width */
  margin: 20px auto !important; /* Center divider and add margin like template */
}

/* Navbar (Based on .main-header) */
.uk-navbar-container:not(.uk-navbar-transparent) { /* Target non-transparent navbars */
  background: var(--uk-global-background) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important; /* Match template shadow */
  /* Padding might be handled differently by UIkit, adjust if needed */
  /* position: fixed; width: 100%; z-index: 9999; are often handled by UIkit sticky component or theme layout */
}

.uk-navbar-nav > li > a {
  color: var(--uk-global-color) !important;
  text-transform: uppercase !important;
  font-size: 15px !important; /* Match template */
  padding: 8px 15px !important; /* Match template, adjust if needed */
  min-height: initial !important; /* Override UIkit default min-height if necessary */
  border-radius: 3px; /* Match template */
}

.uk-navbar-nav > li > a:hover,
.uk-navbar-nav > li > a:focus {
  color: var(--uk-global-link-hover-color) !important; /* Use defined hover color */
  background: none !important; /* Remove default UIkit hover background */
}

.uk-navbar-nav > li.uk-active > a,
.uk-navbar-nav > li > a.uk-active, /* Add case where active class is on <a> */
.uk-navbar-nav > li > a.is-active { /* Add case for Drupal's .is-active class */
  background: var(--uk-global-primary-background) !important; /* Re-add !important */
  color: var(--uk-global-inverse-color) !important; /* Re-add !important */
  border-radius: 3px !important; /* Match template */
}

/* Footer — genel kapsayıcı, arka plan uk-section-secondary / uk-section-default
   gibi region sınıflarıyla kontrol edilmektedir; burada override yapılmaz. */
.site-footer {
  font-size: 0.95rem;
}

/* Footer bölümlerindeki linkleri section'ın renk şemasıyla uyumlu tut */
.site-footer .uk-section-secondary a:not(.uk-icon-button),
.site-footer .uk-section-secondary .uk-link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer .uk-section-secondary a:not(.uk-icon-button):hover,
.site-footer .uk-section-secondary .uk-link:hover {
  color: var(--uk-global-inverse-color);
  text-decoration: underline;
}

/* Top Header Region (Based on .top-header) */
/* Assuming a region/class like .top-header-region */
.top-header-region {
  background: var(--uk-global-primary-background) !important;
  color: var(--uk-global-inverse-color) !important;
  padding: 10px 0 !important; /* Match template */
}

/* Assuming UIkit iconnav for social icons */
.top-header-region .uk-iconnav > li > a {
  color: var(--uk-global-inverse-color) !important;
  border: 1px solid var(--uk-global-inverse-color) !important;
  border-radius: 50% !important; /* Make icons circular */
  width: 32px; /* Match template */
  height: 32px; /* Match template */
  box-sizing: border-box;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.top-header-region .uk-iconnav > li > a:hover,
.top-header-region .uk-iconnav > li > a:focus {
  background-color: var(--uk-global-inverse-color) !important;
  color: var(--uk-global-primary-background) !important;
  border-color: var(--uk-global-inverse-color) !important;
}

/* Services Section (Based on #services) */
/* Assuming service items use .uk-card or similar */
.service-item .uk-icon { /* Target icons within service items */
  color: var(--uk-global-primary-background) !important;
  /* Font-size might be handled by UIkit icon component */
}

.service-item .uk-card-title { /* Target card titles within service items */
  font-size: 18px !important; /* Match template h3 */
  text-transform: uppercase !important;
  font-weight: 600 !important;
  color: var(--uk-global-emphasis-color) !important; /* Ensure correct color */
}

/* Portfolio Section (Based on #portfolio) */
/* Assuming portfolio items use .uk-inline-clip and .uk-overlay */
.portfolio-section { /* Assuming a wrapper class/ID */
  background: var(--uk-global-secondary-background) !important;
  padding-top: 100px !important; /* Match template */
  padding-bottom: 80px !important; /* Match template */
}

.portfolio-section .uk-heading-divider, /* Adjust if using a different title style */
.portfolio-section h2 { /* Target title within portfolio */
  color: var(--uk-global-inverse-color) !important;
}

.portfolio-item .uk-overlay { /* Target overlays within portfolio items */
  background: rgba(227, 114, 46, 0.9) !important; /* Match template overlay */
  padding: 20px !important; /* Match template overlay padding */
  transition: all 0.2s ease-in-out; /* Match template transition */
}

.portfolio-item .uk-overlay h4,
.portfolio-item .uk-overlay .uk-h4 { /* Target title within overlay */
  font-size: 18px !important; /* Match template */
  margin-bottom: 10px !important; /* Match template */
  color: var(--uk-global-inverse-color) !important;
}
.portfolio-item .uk-overlay h4 a,
.portfolio-item .uk-overlay .uk-h4 a {
  color: var(--uk-global-inverse-color) !important;
}


.portfolio-item .uk-overlay p { /* Target text within overlay */
  font-weight: 300 !important; /* Match template span */
  color: var(--uk-global-inverse-color) !important;
  margin: 0;
}

/* About Section (Based on #about) */
/* Progress Bars */
.uk-progress {
  background-color: #e6e6e6 !important; /* Match template .progress background */
  height: 30px !important; /* Match template */
  border-radius: 0 !important; /* Match template */
  margin-bottom: 15px !important; /* Match template */
}

.uk-progress::-webkit-progress-bar { /* Webkit browsers */
  background-color: #e6e6e6 !important;
  border-radius: 0 !important;
}
.uk-progress::-moz-progress-bar { /* Firefox */
  background-color: #e6e6e6 !important;
  border-radius: 0 !important;
}

.uk-progress::-webkit-progress-value { /* Webkit browsers */
  background-color: var(--uk-global-primary-background) !important; /* Match template .progress-bar */
  border-radius: 0 !important;
  box-shadow: none !important;
}
.uk-progress::-moz-progress-bar { /* Firefox */
   background-color: var(--uk-global-primary-background) !important; /* Match template .progress-bar */
   border-radius: 0 !important;
   box-shadow: none !important;
}
/* Note: UIkit progress doesn't have text inside by default like the template */

/* Team Members (Assuming .uk-card) */
.team-member .uk-card-body { /* Target card body within team members */
  background: #f5f5f5 !important; /* Match template .inner-content (whitesmoke) */
  border: 1px solid #d6d6d6 !important; /* Match template */
  border-top: 0 !important; /* Match template */
  padding: 20px !important; /* Match template */
}

.team-member .uk-card-title { /* Target card title within team members */
  font-size: 18px !important; /* Match template h5 */
  font-weight: 600 !important;
  color: var(--uk-global-primary-background) !important; /* Match template h5 color */
  margin-bottom: 10px !important; /* Match template */
}

.team-member .uk-card-body p { /* Target paragraph (like span) within team member card */
  color: #9d9d9d !important; /* Match template span color */
  margin-bottom: 15px !important; /* Match template */
  display: block !important; /* Match template */
}

/* Team Member Image Overlay */
.team-member .uk-overlay { /* Target overlay on team member image */
  background: rgba(0, 0, 0, 0.6) !important; /* Match template */
  transition: all 0.2s ease-in-out; /* Match template */
}

/* Assuming .uk-iconnav for social icons on overlay */
.team-member .uk-overlay .uk-iconnav > li > a {
  color: var(--uk-global-inverse-color) !important;
  background-color: rgba(255, 255, 255, 0.2) !important; /* Match template */
  width: 40px !important; /* Match template */
  height: 40px !important; /* Match template */
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 0 !important; /* Template uses square icons here */
}

.team-member .uk-overlay .uk-iconnav > li > a:hover,
.team-member .uk-overlay .uk-iconnav > li > a:focus {
  background-color: rgba(255, 255, 255, 0.4) !important; /* Match template hover */
  color: var(--uk-global-inverse-color) !important;
}

/* Contact Section (Based on #contact) */
/* Form Inputs */
.uk-input,
.uk-textarea {
  border: 1px solid var(--uk-global-border) !important; /* Match template border */
  color: var(--uk-global-color) !important; /* Match template text color */
  padding: 8px 10px !important; /* Match template padding */
}

.uk-input:focus,
.uk-textarea:focus {
  border-color: var(--uk-global-primary-background) !important; /* Add focus style */
  box-shadow: none !important; /* Remove default focus shadow if any */
}

/* Contact Info Icons */
.contact-info .uk-icon { /* Target icons within contact info */
  color: var(--uk-global-primary-background) !important; /* Match template i color */
  /* Size might be handled by icon component */
}

/* Slideshow (Based on .flexslider, .flex-caption) */
/* Assuming .uk-slideshow component */

/* Slideshow Navigation Arrows */
.uk-slideshow .uk-slidenav {
  color: var(--uk-global-emphasis-color) !important; /* Match template arrow color */
  background-color: var(--uk-global-background) !important; /* Match template arrow background */
  width: 40px !important; /* Match template */
  height: 40px !important; /* Match template */
  border-radius: 3px !important; /* Match template */
  /* UIkit handles icon positioning, size might need adjustment via icon ratio */
}
.uk-slideshow .uk-slidenav:hover,
.uk-slideshow .uk-slidenav:focus {
  color: var(--uk-global-emphasis-color) !important; /* Keep color on hover */
  background-color: #f0f0f0 !important; /* Slight background change on hover */
}


/* Slideshow Caption/Overlay */
/* Targeting overlay within slideshow items */
.uk-slideshow-items .uk-overlay,
.uk-slideshow-items .uk-position-cover, /* Common positioning class */
.uk-slideshow-items .uk-slideshow-caption { /* Specific caption class */
  color: var(--uk-global-inverse-color) !important; /* Match template .flex-caption color */
  /* Position is handled by UIkit, adjust vertical alignment if needed */
  /* top: 39%; /* Avoid fixed percentage, use UIkit positioning */
  text-align: center !important; /* Match template */
  padding: 20px !important; /* Add some padding */
}

/* Slideshow Title */
.uk-slideshow-items .uk-overlay h2,
.uk-slideshow-items .uk-slideshow-caption h2,
.uk-slideshow-items .uk-overlay .uk-h2,
.uk-slideshow-items .uk-slideshow-caption .uk-h2 {
  font-size: 50px !important; /* Match template */
  text-transform: uppercase !important; /* Match template */
  font-weight: 700 !important; /* Match template */
  color: var(--uk-global-inverse-color) !important; /* Match template */
  margin-bottom: 45px !important; /* Match template */
}

/* Slideshow Text */
.uk-slideshow-items .uk-overlay p,
.uk-slideshow-items .uk-slideshow-caption p {
  font-size: 18px !important;
  font-family: inherit !important; /* Tema font ailesini kullan */
  line-height: 28px !important;
  color: var(--uk-global-inverse-color) !important;
}

/* Decorative line (span) - Requires custom element or pseudo-element */
/* Example using ::after on the paragraph */
/*
.uk-slideshow-items .uk-overlay p::after,
.uk-slideshow-items .uk-slideshow-caption p::after {
  content: '';
  display: block;
  width: 60px;
  height: 9px;
  background: url(../images/slider-dec.png) no-repeat; // Ensure path is correct relative to CSS
  margin: 30px auto;
}
*/

/* Slideshow Dot Navigation */
.uk-slideshow .uk-dotnav {
  /* Position the dotnav below the caption, adjust margin as needed */
  margin-top: 25px !important;
}

.uk-slideshow .uk-dotnav > li > a {
  background-color: rgba(255, 255, 255, 0.5) !important; /* Semi-transparent white dots */
  border: 1px solid transparent !important; /* Remove default border */
  width: 10px !important; /* Adjust size if needed */
  height: 10px !important; /* Adjust size if needed */
  /* Ensure rounded corners */
  border-radius: 50%;
}

.uk-slideshow .uk-dotnav > li.uk-active > a {
  background-color: var(--uk-global-inverse-color) !important; /* Solid white for active dot */
}

/* --- Drupal Admin Specific Overrides --- */

/* Vertical Tabs Skinning */
.vertical-tabs {
    display: flex !important;
    border: none !important;
    background: transparent !important;
    margin: 30px 0 !important;
    gap: 0 !important;
}

.vertical-tabs__menu {
    width: 260px !important;
    border: none !important;
    background: #fbfbfb !important;
    border-radius: 5px 0 0 5px !important;
    border: 1px solid #e5e5e5 !important;
    border-right: none !important;
}

.vertical-tabs__menu-item {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid #eee !important;
    margin: 0 !important;
}

.vertical-tabs__menu-item:last-child {
    border-bottom: none !important;
}

.vertical-tabs__menu-item.is-selected {
    background: #fff !important;
    border-left: 4px solid var(--uk-global-primary-background) !important;
    margin-right: -1px !important;
    position: relative;
    z-index: 2;
}

.vertical-tabs__menu-item a {
    padding: 16px 20px !important;
    color: var(--uk-global-emphasis-color) !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    display: block !important;
}

.vertical-tabs__menu-item.is-selected a {
    color: var(--uk-global-primary-background) !important;
}

.vertical-tabs__panes {
    flex: 1;
    background: #fff !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 0 5px 5px 0 !important;
    padding: 30px !important;
    box-shadow: 10px 0 15px rgba(0,0,0,0.02) !important;
}

/* Form Items in Admin */
.form-item {
    margin-bottom: 25px !important;
}

.form-item label {
    font-weight: 600 !important;
    color: var(--uk-global-emphasis-color) !important;
    margin-bottom: 8px !important;
    display: block;
}

.form-actions {
    background: #f8f8f8 !important;
    padding: 20px !important;
    border-radius: 5px !important;
    margin-top: 30px !important;
    display: flex;
    gap: 15px;
}

/* Details / Fieldset skinning */
details {
    border: 1px solid #e5e5e5 !important;
    border-radius: 5px !important;
    margin-bottom: 20px !important;
    background: #fff !important;
    overflow: hidden;
}

summary {
    background: #f9f9f9 !important;
    padding: 12px 20px !important;
    font-weight: 600 !important;
    color: var(--uk-global-emphasis-color) !important;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

details[open] summary {
    border-bottom: 1px solid #e5e5e5;
}

.details-wrapper {
    padding: 25px !important;
}

/* Ensure UIkit inputs are sized well in admin */
.uk-input, .uk-select, .uk-textarea {
    max-width: 100%;
}

/* Mobile Menu Fixes */
#mobile-menu .uk-navbar-nav {
    display: block !important;
    float: none !important;
}

#mobile-menu .uk-navbar-nav > li {
    display: block !important;
    float: none !important;
    width: 100% !important;
}

#mobile-menu .uk-navbar-nav > li > a {
    display: flex !important;
    align-items: center !important;
    min-height: 45px !important;
    padding: 10px 20px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    text-transform: none !important; /* Keep it more readable on mobile */
    font-size: 16px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#mobile-menu .uk-navbar-nav > li > a:hover,
#mobile-menu .uk-navbar-nav > li.uk-active > a {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

/* Handle Dropdowns in Mobile Menu */
#mobile-menu .uk-navbar-dropdown {
    position: static !important;
    display: block !important;
    background: transparent !important;
    padding: 0 0 0 20px !important;
    box-shadow: none !important;
    color: inherit !important;
}

#mobile-menu .uk-nav-sub > li > a {
    padding: 8px 20px !important;
    color: rgba(255, 255, 255, 0.5) !important;
}