/* Put your custom styles here */
.card-title a { color: inherit; }
body, .bg-dark { background: #181a1b !important; color: #f1f1f1; }

/* Fix horizontal scroll issues */
html, body {
    height: 100%;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

main {
    flex: 1;
    width: 100%;
    max-width: 100%;
}

/* Container fixes */
.container {
    max-width: 1140px;
    margin: 0 auto;
}

.container-fluid {
    max-width: 100%;
    overflow-x: hidden;
}

/* Prevent horizontal overflow */
.row {
    margin-left: 0;
    margin-right: 0;
}

.col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, 
.col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
.col-auto, .col-sm, .col-md, .col-lg, .col-xl, .col-xxl {
    padding-left: 15px;
    padding-right: 15px;
}
.card, .carousel, .carousel-inner, .carousel-item { background: #23272b; color: #f1f1f1; border: none; }
.card { border-radius: 1rem; box-shadow: 0 2px 16px 0 #0002; }
.btn-primary, .badge-primary { background: var(--main-color, #0d6efd); border: none; }
.btn, .btn:focus, .btn:active { box-shadow: none !important; }
.carousel-caption { background: rgba(24,26,27,0.7); border-radius: 1rem; }
.carousel-indicators [data-bs-target] { background: #fff; }
.rounded-circle { border: 3px solid var(--main-color, #0d6efd); }
.lead { font-size: 1.15rem; line-height: 1.7; }
.navbar, .footer, footer { background: #181a1b !important; }
::-webkit-scrollbar { background: #23272b; width: 8px; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
@media (max-width: 768px) {
  .carousel-caption { font-size: 0.95rem; padding: 0.5rem 1rem; }
  .card { padding: 1rem; }
}
/* Admin thumbs safety (no effect if not present) */
.frameo-admin .thumb{max-width:52px;max-height:52px;border-radius:6px;}

/* Photo archive overlay */
.photo-thumb { position: relative; overflow: hidden; }
.photo-thumb .card-img-top { display: block; width: 100%; height: auto; transition: transform .35s ease; }
.photo-thumb .thumb-overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-start; padding: 0.75rem 1rem; background: linear-gradient( to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,0.65) 100% ); opacity: 0; transition: opacity .25s ease; }
.photo-thumb .thumb-title { color: #fff; font-weight: 600; font-size: 1rem; padding: 0.25rem 0.5rem; border-left: 6px solid var(--main-color, #0d6efd); }
.photo-thumb:hover .thumb-overlay { opacity: 1; }
.photo-thumb:hover .card-img-top { transform: scale(1.03); }

/* GLightbox Custom Styling */
.glightbox-clean .gslide-description {
    background: rgba(24, 26, 27, 0.6) !important; /* daha şeffaf */
    color: #f1f1f1 !important;
    border-radius: 0.85rem !important;
    padding: 0.75rem 1rem !important; /* daha küçük kutu */
    text-align: center !important;
    margin: 0.5rem auto !important;
    max-width: 520px !important; /* biraz daha dar */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
    backdrop-filter: blur(8px) !important;
}

.glightbox-clean .gslide-description h3 {
    color: #ffffff !important;
    margin-bottom: 0.5rem !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
}

/* Force GLightbox title/desc colors regardless of skin */
.glightbox-container .gslide-description,
.glightbox-container .gslide-title,
.glightbox-container .gslide-desc,
.glightbox-clean .gslide-title,
.glightbox-clean .gslide-desc {
    color: #ffffff !important;
}

.glightbox-container .gslide-title,
.glightbox-clean .gslide-title {
    text-align: center !important;
    font-weight: 700 !important;
}

.glightbox-container .gslide-desc,
.glightbox-clean .gslide-desc {
    color: #e9ecef !important;
    text-align: center !important;
}

.glightbox-clean .gslide-description small {
    color: #e9ecef !important;
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6) !important;
}

.glightbox-clean .gslide-media {
    border-radius: 1rem !important;
    overflow: hidden !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}

.glightbox-clean .gslide {
    background: rgba(0, 0, 0, 0.9) !important;
}

.glightbox-clean .gprev, .glightbox-clean .gnext {
    background: rgba(24, 26, 27, 0.8) !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    backdrop-filter: blur(10px) !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
}

.glightbox-clean .gprev:hover, .glightbox-clean .gnext:hover {
    background: rgba(13, 110, 253, 0.8) !important;
    border-color: rgba(13, 110, 253, 0.5) !important;
}

.glightbox-clean .gclose {
    background: rgba(24, 26, 27, 0.8) !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    backdrop-filter: blur(10px) !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
}

.glightbox-clean .gclose:hover {
    background: rgba(220, 53, 69, 0.8) !important;
    border-color: rgba(220, 53, 69, 0.5) !important;
}

/* Project Page Styles */
.project-main-photo img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.project-description {
    background: #1f2123;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.project-description h2 {
    color: var(--main-color, #0d6efd);
    font-weight: 600;
}

.project-description .content {
    color: #e9ecef;
    line-height: 1.7;
}

.project-gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-gallery-item:hover img {
    transform: scale(1.05);
}

/* Share buttons */
.btn i {
    font-size: 1.1em;
}

@media (max-width: 768px) {
    .project-main-photo img {
        height: 250px;
    }
    
    .project-gallery-item img {
        height: 150px;
    }
}

/* Blog Single Page Styles */

.lead.text-muted {
    color: #cfd3d6 !important;
}

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

.blog-categories .badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
}

.blog-meta {
    font-size: 0.9rem;
}

/* Improve readability of meta texts on dark background */
.blog-meta, .blog-meta small, .blog-meta span, .blog-meta a {
    color: #cfd3d6 !important;
}
.blog-meta a:hover { color: #ffffff; }

.blog-featured-image {
    position: relative;
}

.blog-featured-image .image-container {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.blog-featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-featured-image:hover img {
    transform: scale(1.02);
}

.blog-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e9ecef;
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #f1f1f1;
    font-weight: 600;
}

.blog-content h1 { font-size: 2rem; }
.blog-content h2 { font-size: 1.75rem; color: var(--main-color, #0d6efd); }
.blog-content h3 { font-size: 1.5rem; }
.blog-content h4 { font-size: 1.25rem; }

/* Blog List Page Styles */
.blog-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    background: #2d3338;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.blog-image-container {
    position: relative;
    overflow: hidden;
}

.blog-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image {
    transform: scale(1.05);
}

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
}

.blog-title a {
    color: #f1f1f1;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: var(--main-color, #0d6efd);
}

.blog-excerpt {
    color: #cfd3d6;
    line-height: 1.6;
}

.blog-meta {
    font-size: 0.85rem;
}

.blog-meta i {
    color: var(--main-color, #0d6efd) !important;
}

/* Pagination Styles */
.pagination {
    justify-content: center;
}

.page-link {
    border: none;
    color: #e0e0e0;
    background: transparent;
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: var(--main-color, #0d6efd);
    color: #ffffff;
}

.page-item.active .page-link {
    background-color: var(--main-color, #0d6efd);
    border-color: var(--main-color, #0d6efd);
}

/* Single Blog Post Styles */
.blog-single {
    background: #2d3338;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.blog-header .badge {
    background-color: var(--main-color, #0d6efd) !important;
    color: #ffffff !important;
}

.blog-header .blog-meta i {
    color: var(--main-color, #0d6efd) !important;
}

.blog-share .btn {
    border-color: var(--main-color, #0d6efd);
    color: var(--main-color, #0d6efd);
}

.blog-share .btn:hover {
    background-color: var(--main-color, #0d6efd);
    color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-image {
        height: 200px;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
}

.blog-content p {
    margin-bottom: 1.5rem;
    color: #cfd3d6;
}

.blog-content blockquote {
    border-left: 4px solid var(--main-color, #0d6efd);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    background: #23272b;
    padding: 1.5rem;
    border-radius: 0.5rem;
    color: #e9ecef;
    border: 1px solid #2d3338;
}

.blog-content a {
    color: var(--main-color, #0d6efd);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-content a:hover {
    color: #4dabf7;
    text-decoration: underline;
}

.blog-content ul,
.blog-content ol {
    color: #cfd3d6;
    margin-bottom: 1.5rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
}

.blog-content code {
    background: #23272b;
    color: #f1f1f1;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
    border: 1px solid #2d3338;
}

.blog-content pre {
    background: #23272b;
    color: #f1f1f1;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    border: 1px solid #2d3338;
    margin: 1.5rem 0;
}

.blog-content pre code {
    background: none;
    border: none;
    padding: 0;
}

.blog-footer {
    background: #23272b;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #2d3338;
}

.blog-footer h6 { color: #f1f1f1; }
.blog-footer .text-muted, .blog-share .text-muted { color: #cfd3d6 !important; }

.author-avatar img {
    width: 50px;
    height: 50px;
}

.blog-share .btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Comments Styling */
.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    background: #23272b;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid #2d3338;
}

.comment-author {
    font-weight: 600;
    color: #f1f1f1;
}

.comment-meta {
    font-size: 0.85rem;
    color: #adb5bd;
    margin-bottom: 0.5rem;
}

.comment-content {
    color: #cfd3d6;
    line-height: 1.6;
}

.comment-reply-link {
    color: var(--main-color, #0d6efd);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.comment-reply-link:hover {
    color: #4dabf7;
    text-decoration: underline;
}

/* Card text readability on dark theme */
.card-text.text-muted {
    color: #cfd3d6 !important;
}

.card-text.small.text-muted {
    color: #adb5bd !important;
}

/* Portfolio and photo cards text */
.card .text-muted {
    color: #cfd3d6 !important;
}

.card .small.text-muted {
    color: #adb5bd !important;
}

/* Blog Single Responsive */
@media (max-width: 768px) {
    .blog-single {
        padding: 1rem;
        margin: 0 1rem;
    }
    
    .blog-featured-image img {
        height: 250px;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .blog-footer .row {
        text-align: center;
    }
    
    .blog-share {
        margin-top: 1rem;
    }
}
    

/* ===== Frameo Navbar Polish ===== */
:root{
    --main-color: #0d6efd; /* WP ayarından geliyorsa zaten var; yoksa fallback */
  }
  
  /* Arkaplan ve genel renkler */
  header.sticky-top .navbar{
    background:#181a1b;
    --bs-navbar-color:#e9ecef;
    --bs-navbar-hover-color: var(--main-color);
  }
  
  /* Brand (logo/isim) */
  .navbar-brand img{
    max-height: 36px; 
    width:auto;
  }
  .navbar-brand{
    letter-spacing:.2px;
    transition: opacity .2s ease;
  }
  .navbar-brand:hover{ opacity:.9; }
  
  /* Linkler: boşluk, tipografi */
  .navbar-nav .nav-link{
    position: relative;
    padding:.75rem 1rem;
    font-weight:500;
    color:#e9ecef;
    transition: color .2s ease;
  }
  
  /* Hover underline animasyonu */
  .navbar-nav .nav-link::after{
    content:"";
    position:absolute;
    left:1rem;
    right:1rem;
    bottom:.45rem;
    height:2px;
    background:var(--main-color);
    transform:scaleX(0);
    transform-origin:left;
    transition:transform .25s ease;
    opacity:.9;
  }
  .navbar-nav .nav-link:hover::after,
  .navbar-nav .nav-link:focus::after{
    transform:scaleX(1);
  }
  
  /* Aktif menü vurgusu (WP sınıfları) */
  .navbar-nav .current-menu-item > .nav-link,
  .navbar-nav .current_page_parent > .nav-link,
  .navbar-nav .current-menu-ancestor > .nav-link{
    color:var(--main-color);
  }
  .navbar-nav .current-menu-item > .nav-link::after,
  .navbar-nav .current_page_parent > .nav-link::after,
  .navbar-nav .current-menu-ancestor > .nav-link::after{
    transform:scaleX(1);
  }
  
  /* Dropdown: görünüm ve hover ile açılma (lg ve üstü) */
  .navbar-nav .dropdown-menu{
    background:#1f2224;
    border:1px solid #2a2f34;
    border-radius:.5rem;
    padding:.35rem;
    box-shadow:0 12px 28px rgba(0,0,0,.35);
    min-width: 14rem;
  }
  .navbar-nav .dropdown-item{
    color:#eaecee;
    border-radius:.35rem;
    padding:.55rem .75rem;
  }
  .navbar-nav .dropdown-item:hover,
  .navbar-nav .dropdown-item:focus{
    color:#fff;
    background:rgba(13,110,253,.15);
  }
  
  /* Desktop’ta hover ile dropdown aç */
  @media (min-width: 992px){
    .navbar-nav .dropdown:hover > .dropdown-menu{
      display:block;
      margin-top:.25rem;
    }
  }
  
  /* Caret rengi/animasyonu */
  .navbar-nav .dropdown-toggle::after{
    vertical-align: .1em;
    transition: transform .2s ease, color .2s ease;
  }
  .navbar-nav .dropdown.show .dropdown-toggle::after,

  /* Mobil menü: toggler görünürlük, ayırt edicilik */
  .navbar-toggler{
    border-color: rgba(233,236,239,.35);
  }
  .navbar-toggler .navbar-toggler-icon{
    filter: invert(92%) sepia(7%) saturate(195%) hue-rotate(180deg) brightness(96%) contrast(88%);
  }
  /* Mobil açılınca link blokları ve ayrım çizgisi */
  @media (max-width: 991.98px){
    #primaryMenu{
      background:#181a1b;
      border-top:1px solid #2a2f34;
      padding-top:.75rem;
    }
    .navbar-nav .nav-link{
      padding:.6rem 0;
    }
  }
  
  /* Scroll edilince header gölgesi (JS ile .scrolled ekleyeceğiz) */
  header.sticky-top.scrolled{
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
  }
  
  /* Klavye erişilebilirliği: focus halkası */
  .navbar-nav .nav-link:focus{
    outline:2px solid rgba(13,110,253,.35);
    outline-offset:2px;
    border-radius:.35rem;
  }
  
  /* Tercih: animasyonu azalt (erişilebilirlik) */
  @media (prefers-reduced-motion: reduce){
    .navbar-nav .nav-link,
    .navbar-nav .nav-link::after,
    .navbar-nav .dropdown-toggle::after{
      transition:none !important;
    }
  }
  
  /* Footer copyright */
  #frameo-copyright,
  #frameo-copyright div,
  #frameo-copyright a {
    text-align: center;
    display: block;
    width: 100%;
    font-size: 0.75rem; 
  }

/* Hero Slider - Full Width Cover */
.hero-slider {
    width: 100vw !important;
    height: 60vh !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    overflow: hidden !important;
    max-width: none !important;
}

@media(min-width: 992px) {
    .hero-slider {
        height: 800px !important;
    }
}

.hero-slider .carousel,
.hero-slider .carousel-inner,
.hero-slider .carousel-item {
    height: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hero-slider .carousel-item {
    position: relative !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hero-slider .carousel-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.20) 0%, rgba(0,0,0,.35) 65%, rgba(0,0,0,.45) 100%);
}

.hero-slider .carousel-item img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hero-slider .carousel-caption {
    position: absolute;
    left: 50%;
    bottom: 10%;
    transform: translateX(-50%);
    background: rgba(0,0,0,.35);
    padding: .85rem 1.25rem;
    border-radius: .85rem;
}
  