:root{
  --primary:#166534; /* forest green */
  --accent:#8B5E3C; /* wood brown */
  --bg:#FAF5F0;     /* warm neutral */
  --leaf:#22C55E;   /* bright green */
  --wood:#B0764A;   /* light wood */
}
body{font-family:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,'Noto Sans','Poppins',sans-serif;background:var(--bg);} 
.topbar{background:var(--primary);} 
.btn-accent{background:var(--accent);color:#fff;}
.btn-accent:hover{background:#6e472f;color:#fff;}
.main-header{position:sticky;top:0;z-index:1020;background:#fff;border-bottom:1px solid rgba(139,94,60,.14);}
.navbar-brand{font-family:'Poppins',sans-serif;font-weight:700;letter-spacing:.5px;}
.navbar .nav-link{padding:.75rem 1rem;text-transform:uppercase;letter-spacing:.02em;font-weight:500;}
/* Mega menu */
.mega .dropdown-menu{width:100%;max-width:960px;}
.mega-menu{border-top:3px solid var(--accent);box-shadow:0 12px 32px rgba(0,0,0,.08);} 
/* Hero */
.hero .carousel-item{min-height:420px;border-radius:1rem;}
.bg-hero-1{background:linear-gradient(135deg, var(--primary), #0f3a23);} 
.bg-hero-2{background:linear-gradient(135deg, var(--wood), var(--accent));} 
.bg-hero-3{background:linear-gradient(135deg, #3f6212, var(--primary));} 
/* Hero background image helper */
.bg-hero-img{position:relative;background-size:cover;background-position:center;overflow:hidden;}
.bg-hero-img::before{content:'';position:absolute;inset:0;border-radius:inherit;background:linear-gradient(173deg, rgba(4,61,41,.85) 0%, rgba(5,110,73,.65) 100%);pointer-events:none;}
/* Category cards */
.card-category{border:1px solid #e5e7eb;background:#fff;border-radius:.75rem;transition:.2s;}
.card-category:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(0,0,0,.08);} 
.cat-icon{font-size:28px;}
/* Featured */
.featured .card{border:1px solid #e5e7eb;} 
/* Cert strip */
.certs .badge{font-size:.85rem;padding:.5rem .75rem;}
/* CTA strip */
.cta-strip{background:var(--primary);} 
/* Footer */
.site-footer h5,.site-footer h6{font-family:'Poppins',sans-serif;}
.site-footer .list-unstyled a{color:#333;}
/* Search suggestions */
.suggestions{position:absolute;top:100%;left:0;right:0;display:block;}
.suggestions .dropdown-item{white-space:nowrap;}
/* Buttons - wood/green palette */
.btn-primary{background:var(--primary);border-color:var(--primary);color:#fff;}
.btn-primary:hover,.btn-primary:focus{background:#14532d;border-color:#14532d;color:#fff;}
.btn-outline-primary{color:var(--primary);border-color:var(--primary);} 
.btn-outline-primary:hover,.btn-outline-primary:focus{background:var(--primary);color:#fff;}
.btn-success{background:var(--leaf);border-color:var(--leaf);color:#fff;}
.btn-success:hover{background:#16a34a;border-color:#16a34a;color:#fff;}
.btn-outline-success{color:var(--leaf);border-color:var(--leaf);} 
.btn-outline-success:hover{background:var(--leaf);color:#fff;}
.btn-outline-secondary{color:var(--accent);border-color:var(--accent);} 
.btn-outline-secondary:hover{background:var(--accent);color:#fff;}

/* Mega menu headings and items */
.mega-menu h6{color:var(--accent);margin-bottom:.5rem;}
.mega-menu h6::after{content:'';display:block;width:24px;height:2px;background:var(--accent);margin-top:.25rem;border-radius:2px;}
.mega-menu .dropdown-item{color:#333;border-radius:.375rem;}
.mega-menu .dropdown-item:hover{background:rgba(139,94,60,.08);color:var(--primary);} 
/* Hero text readability */
.hero .carousel-item{position:relative;}
.hero .carousel-item::before{content:'';position:absolute;inset:0;border-radius:inherit;background:linear-gradient(0deg, rgba(0,0,0,.12), rgba(0,0,0,0));pointer-events:none;}
.hero h1{letter-spacing:.01em;text-shadow:0 2px 8px rgba(0,0,0,.15);} 
.hero .lead{text-shadow:0 1px 6px rgba(0,0,0,.12);} 
/* Card headings & icons */
.card .h6.fw-bold{color:var(--primary);} 
.card .small.text-muted{color:#6b7280;} 
.cat-icon{color:var(--accent);} 
/* Category card border tint */
.card-category{border:1px solid rgba(139,94,60,.18);}
/* Footer */
.site-footer h5,.site-footer h6{font-family:'Poppins',sans-serif;}
.site-footer .list-unstyled a{color:#333;}
/* Search suggestions */
.suggestions{position:absolute;top:100%;left:0;right:0;display:block;}
.suggestions .dropdown-item{white-space:nowrap;}
/* Buttons - wood/green palette */
.btn-primary{background:var(--primary);border-color:var(--primary);color:#fff;}
.btn-primary:hover,.btn-primary:focus{background:#14532d;border-color:#14532d;color:#fff;}
.btn-outline-primary{color:var(--primary);border-color:var(--primary);} 
.btn-outline-primary:hover,.btn-outline-primary:focus{background:var(--primary);color:#fff;}
.btn-success{background:var(--leaf);border-color:var(--leaf);color:#fff;}
.btn-success:hover{background:#16a34a;border-color:#16a34a;color:#fff;}
.btn-outline-success{color:var(--leaf);border-color:var(--leaf);} 
.btn-outline-success:hover{background:var(--leaf);color:#fff;}
.btn-outline-secondary{color:var(--accent);border-color:var(--accent);} 
.btn-outline-secondary:hover{background:var(--accent);color:#fff;}

/* Navbar links (header inline) */
.main-header .nav-link:hover,.main-header .nav-link.active{color:var(--primary);border-bottom:2px solid var(--accent);} 

/* Footer links */
.site-footer .list-unstyled a:hover{color:var(--accent);text-decoration:underline;}
/* Footer SEO block */
.footer-seo a{color:#6b7280;margin-right:.5rem;}
.footer-seo a:hover{color:var(--primary);text-decoration:underline;}
.footer-seo{border-top:1px dashed rgba(139,94,60,.16);margin-top:.25rem;padding-top:.5rem;}

/* Badges override */
.badge.bg-success{background-color:var(--leaf)!important;}
.badge.bg-primary{background-color:var(--primary)!important;}

/* Theme overrides for utility classes */
.text-primary{color:var(--primary)!important;}
.bg-primary{background-color:var(--primary)!important;}

/* CTA buttons */
.cta-strip .btn-light{background:#fff;color:var(--primary);border-color:#fff;}
.cta-strip .btn-light:hover{background:#f5f5f5;color:var(--primary);} 
.cta-strip .btn-outline-light{color:#fff;border-color:#ffffffcc;}
.cta-strip .btn-outline-light:hover{background:#ffffff1a;color:#fff;}

/* Offcanvas list */
.offcanvas .list-group-item.active{background:var(--primary);border-color:var(--primary);} 
.offcanvas .list-group-item:hover{background:rgba(139,94,60,.06);}
/* Category strip */
.category-strip{background:#fff;border-bottom:1px solid rgba(139,94,60,.14);} 
.category-strip .category-link:not(:first-child){border-left:1px solid rgba(139,94,60,.18);padding-left:.9rem;}
.category-strip .category-link{padding:.5rem .75rem;color:#333;text-decoration:none;font-size:.9rem;border-radius:.375rem;}
.category-strip .category-link:hover{color:var(--primary);background:rgba(139,94,60,.06);} 
.cta-strip{background:var(--primary);} 
/* Footer */
.site-footer h5,.site-footer h6{font-family:'Poppins',sans-serif;}
.site-footer .list-unstyled a{color:#333;}
/* Search suggestions */
.suggestions{position:absolute;top:100%;left:0;right:0;display:block;}
.suggestions .dropdown-item{white-space:nowrap;}
/* Buttons - wood/green palette */
.btn-primary{background:var(--primary);border-color:var(--primary);color:#fff;}
.btn-primary:hover,.btn-primary:focus{background:#14532d;border-color:#14532d;color:#fff;}
.btn-outline-primary{color:var(--primary);border-color:var(--primary);} 
.btn-outline-primary:hover,.btn-outline-primary:focus{background:var(--primary);color:#fff;}
.btn-success{background:var(--leaf);border-color:var(--leaf);color:#fff;}
.btn-success:hover{background:#16a34a;border-color:#16a34a;color:#fff;}
.btn-outline-success{color:var(--leaf);border-color:var(--leaf);} 
.btn-outline-success:hover{background:var(--leaf);color:#fff;}
.btn-outline-secondary{color:var(--accent);border-color:var(--accent);} 
.btn-outline-secondary:hover{background:var(--accent);color:#fff;}

/* Nav aralıklarını ferahlat ve hafif sağa kaydır */
.main-header .nav-primary { gap: .4rem; justify-content: flex-start; padding-left: 1rem; flex-wrap: nowrap; }
.main-header .nav-link { padding: .55rem .75rem; font-size: .95rem; }
.search-form .form-control{height:36px;padding:.25rem .5rem;}
.category-strip .search-form{margin-left:auto;}
.category-strip .search-form .form-control{width:220px;}
.search-form .search-icon { position: absolute; left: .5rem; top: 50%; transform: translateY(-50%); color: #777; font-size: 1rem; }
.search-form .form-control { padding-left: 1.75rem; }
.category-strip .container {
  padding-top: .25rem;
  padding-bottom: 0; /* arama kutusunun altındaki boşluğu kaldır */
}
.category-strip .category-link {
  padding: .45rem .75rem; /* dikey alanı biraz daralt */
}
.suggestions { position: absolute; top: 100%; left: 0; right: 0; display: none; }
.suggestions.show { display: block; }
.category-strip .category-link {
  padding: .45rem .75rem; /* dikey alanı biraz daralt */
}
/* Marka (logo) stili – referans benzeri kutu */
.site-brand { background:#fff; border:1px solid rgba(139,94,60,.18); border-radius:.5rem; padding:.25rem .5rem; }
.site-brand .brand-mark { width:34px; height:34px; border:1px solid rgba(139,94,60,.18); border-radius:.375rem; background:#fff; color:var(--primary); display:flex; align-items:center; justify-content:center; box-shadow:0 1px 2px rgba(0,0,0,.04); }
.site-brand .brand-mark svg { width:18px; height:18px; }
.site-brand .brand-text { line-height:1; }
.site-brand .brand-title { font-family:'Poppins',sans-serif; font-weight:700; letter-spacing:.3px; color:var(--primary); display:block; }
.site-brand .brand-subtitle { font-size:.75rem; color:#6b7280; display:block; margin-top:.1rem; }
.btn-primary:hover,.btn-primary:focus{background:#14532d;border-color:#14532d;color:#fff;}
.btn-outline-primary{color:var(--primary);border-color:var(--primary);} 
.btn-outline-primary:hover,.btn-outline-primary:focus{background:var(--primary);color:#fff;}
.btn-success{background:var(--leaf);border-color:var(--leaf);color:#fff;}
.btn-success:hover{background:#16a34a;border-color:#16a34a;color:#fff;}
.btn-outline-success{color:var(--leaf);border-color:var(--leaf);} 
.btn-outline-success:hover{background:var(--leaf);color:#fff;}
.btn-outline-secondary{color:var(--accent);border-color:var(--accent);} 
.btn-outline-secondary:hover{background:var(--accent);color:#fff;}

/* SEO linkleri sütun içi liste için */
.site-footer .seo-links a {
  color: #6b7280;
}
.site-footer .seo-links a:hover {
  color: #374151;
  text-decoration: underline;
}
.btn-primary:hover,.btn-primary:focus{background:#14532d;border-color:#14532d;color:#fff;}
.btn-outline-primary{color:var(--primary);border-color:var(--primary);} 
.btn-outline-primary:hover,.btn-outline-primary:focus{background:var(--primary);color:#fff;}
.btn-success{background:var(--leaf);border-color:var(--leaf);color:#fff;}
.btn-success:hover{background:#16a34a;border-color:#16a34a;color:#fff;}
.btn-outline-success{color:var(--leaf);border-color:var(--leaf);} 
.btn-outline-success:hover{background:var(--leaf);color:#fff;}
.btn-outline-secondary{color:var(--accent);border-color:var(--accent);} 
.btn-outline-secondary:hover{background:var(--accent);color:#fff;}

/* Sağ blok ve bülten düzeni */
.site-footer .footer-right .newsletter-block{flex:1 1 320px;max-width:360px}
.site-footer .newsletter-form.compact{flex-wrap:nowrap}
.site-footer .newsletter-form.compact .form-control{max-width:50%;min-width:0}
.site-footer .newsletter-form.compact .btn{flex:0 0 auto}

/* Dikey (stacked) bülten formu */
.site-footer .newsletter-form.stacked{flex-direction:column}
.site-footer .newsletter-form.stacked .form-control{flex:0 0 auto;max-width:100%;width:100%}
.site-footer .newsletter-form.stacked .btn{align-self:flex-start}

@media (max-width: 768px){
  .site-footer .footer-right .newsletter-block{flex:1 1 auto;max-width:100%}
  .site-footer .newsletter-form.compact .form-control{max-width:100%}
  .site-footer .newsletter-form.stacked .form-control{max-width:100%}
}

.site-footer .newsletter-form{flex-wrap:nowrap}
 .site-footer .newsletter-form.compact .form-control{min-width:0;flex:1 1 auto;max-width:75%}
.site-footer .newsletter-form .btn{flex:0 0 auto}
@media (max-width: 992px){
  .site-footer .newsletter-form.compact .form-control{max-width:70%}
}
/* Yan yana düzen: sağ sütun (compact için) */
.site-footer .footer-right{align-items:flex-start}
.site-footer .footer-right .seo-block{flex:1 1 240px;min-width:240px}
/* newsletter-block genişliği stacked veya özel kural ile belirlenir */
.site-footer .footer-right .newsletter-form.compact .form-control{max-width:62%}
@media (max-width: 768px){
  /* Kategori şeridi: mobilde yatay kaydırılabilir chips görünümü (576px altına yeni kural override edecek) */
  .category-strip .container { overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .category-strip .category-link { display: inline-block; border-left: 0; margin-right: .5rem; }
  /* Topbar: mobilde iki satır, ferah boşluk ve eşit hizalama */
  .topbar .container { flex-direction: column; gap: .25rem; }
  .topbar .container > div { width: 100%; }
  .topbar .container > div:first-child { display: grid; grid-template-columns: 1fr 1fr; align-items: center; column-gap: .5rem; }
  .topbar .container > div:last-child { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; column-gap: .5rem; }
  .topbar .container > div > * { text-align: center; }
  /* Uzun metni mobilde sadeleştir: yalnızca saat kısmı */
  .topbar .topbar-hours-prefix { display: none; }
  .topbar .topbar-hours-time { white-space: nowrap; }
  /* Logo boyutu mobilde biraz küçült */
  .site-brand .brand-mark { width: 30px; height: 30px; }
  .site-brand .brand-title { font-size: .95rem; }
}
/* 576px ve altı: Kategori şeridini görünür yap ve linkleri blok düzene al */
@media (max-width: 576px){
  .category-strip .container { overflow-x: auto; white-space: nowrap; padding-left: .5rem; padding-right: .5rem; }
  .category-strip .category-link { display: inline-block; margin: 0 .5rem 0 0; }
  .category-strip .search-form { display: none !important; }
}

/* Product media placeholder */
.product-media { border-bottom: 1px solid rgba(0,0,0,.06); border-top-left-radius: .5rem; border-top-right-radius: .5rem; overflow: hidden; }
.product-thumb { height: 160px; }
 .product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
 .product-detail-img { height: 420px; object-fit: cover; }
 .video-badge { right: .5rem; bottom: .5rem; }

/* Product detail: foto/video aynı yükseklik – 16:9 */
.product-carousel .carousel-inner,
.product-carousel .carousel-item { height: 100%; }
.product-carousel-img { width: 100%; height: 100%; object-fit: contain; background:#f8f9fa; }
/* Blog detail adjustments: narrower media and readable text */
.blog-detail .hero-img { width: 100%; height: 100%; object-fit: cover; background:#f8f9fa; }
.blog-detail .content { font-size: 1rem; line-height: 1.8; color:#374151; overflow-wrap:anywhere; word-break: break-word; }
.blog-detail header .small { color:#6b7280; }
@media(min-width:992px){ .blog-detail h1.h4{ font-size:1.75rem; } }

/* Blog list: consistent card image size */
.blog-card-img { width:100%; height:180px; object-fit: cover; background:#f8f9fa; }

/* Blog gallery: consistent thumbnail size */
.blog-gallery-thumb { width:100%; height:160px; object-fit: cover; background:#f8f9fa; }

/* Utility: line clamp for excerpts */
.line-clamp-2 { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.js-media-video video { width: 100%; height: 100%; object-fit: contain; background:#000; }
.js-product-card { display: flex; flex-direction: column; }
.js-product-card .card-body { display: flex; flex-direction: column; gap: .5rem; }
.product-media{width:100%;}
.product-thumb{width:100%;height:220px;overflow:hidden;border-radius:.25rem;border:1px solid #eee;background:#fff;}
.product-thumb img{width:100%;height:100%;object-fit:contain;display:block;}
.video-badge{top:.5rem;right:.5rem;}
.product-desc{min-height:40px;line-height:1.5;margin:0;}
@media(min-width:992px){.product-thumb{height:240px}.product-desc{min-height:48px}}
.product-table{border:1px solid #eee;border-radius:.25rem;}
.product-table th,.product-table td{padding:.5rem .6rem;vertical-align:middle;}
.product-table thead th{background:#f5f5f7;border-bottom:1px solid #e5e5ea;}
.product-table tbody tr:hover{background:#fafafa}
.card .table{margin-bottom:0}
.product-table th, .product-table td { padding:.5rem .75rem; vertical-align: middle; word-break: break-word; }
/* About page sidebar clean layout */
.about-sidebar .card{border:1px solid rgba(139,94,60,.18); box-shadow:0 6px 18px rgba(0,0,0,.05);} 
.about-sidebar .sticky-card{position:sticky; top:1rem;} 
.about-sidebar .card-body{padding:1rem;} 
.about-sidebar .list-group-item{padding:.6rem .75rem; border-color:rgba(0,0,0,.06);} 
.about-sidebar .list-group-item:hover{background:#f8fafb;} 
.about-sidebar .list-group-item .bi-file-earmark-arrow-down{color:var(--leaf);} 
.about-sidebar .download-icon{opacity:0; transition:opacity .2s ease;} 
.about-sidebar .list-group-item:hover .download-icon{opacity:.85;} 
@media (max-width: 768px){
  .about-sidebar .sticky-card{position:static;}
}
.btn-primary:hover,.btn-primary:focus{background:#14532d;border-color:#14532d;color:#fff;}
.btn-outline-primary{color:var(--primary);border-color:var(--primary);} 
.btn-outline-primary:hover,.btn-outline-primary:focus{background:var(--primary);color:#fff;}
.btn-success{background:var(--leaf);border-color:var(--leaf);color:#fff;}
.btn-success:hover{background:#16a34a;border-color:#16a34a;color:#fff;}
.btn-outline-success{color:var(--leaf);border-color:var(--leaf);} 
.btn-outline-success:hover{background:var(--leaf);color:#fff;}
.btn-outline-secondary{color:var(--accent);border-color:var(--accent);} 
.btn-outline-secondary:hover{background:var(--accent);color:#fff;}

/* Home references slider */
.ref-slider { position: relative; }
.ref-track { display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: .25rem; scrollbar-width: none; }
.ref-track::-webkit-scrollbar { display: none; }
.ref-card { flex: 0 0 auto; width: 260px; scroll-snap-align: start; border: 1px solid rgba(139,94,60,.18); border-radius: .75rem; background: #fff; }
.ref-card .ref-img { width: 100%; height: 140px; object-fit: contain; background: #f8f9fa; }
.ref-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(22,101,52,.24); background: #fff; color: var(--primary); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,.08); z-index: 2; }
.ref-nav.prev { left: -12px; }
.ref-nav.next { right: -12px; }
@media (max-width: 768px){
  .ref-card{ width: 220px; }
  .ref-nav{ display: none; }
}

/* Utility: 2-line clamp for excerpts */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Blog slider variants */
.home-blog-slider .ref-card { width: 260px; }
.home-blog-slider .ref-img { height: 140px; object-fit: cover; }
/* Featured slider variants */
.home-featured-slider .ref-card { width: 260px; }
.home-featured-slider .ref-img { height: 140px; object-fit: cover; }
.ref-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(22,101,52,.24); background: #fff; color: var(--primary); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,.08); z-index: 2; }
.ref-nav.prev { left: -12px; }
.ref-nav.next { right: -12px; }
@media (max-width: 768px){
  .ref-card{ width: 220px; }
  .ref-nav{ display: none; }
}

/* Utility: 2-line clamp for excerpts */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Blog slider variants */
.home-blog-slider .ref-card { width: 260px; }
 .home-blog-slider .ref-img { height: 140px; object-fit: cover; }

/* Kategori kartları ikonları – boyut ve arkaplan */
.card-category .cat-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 12px; background: rgba(24,119,68,.08); }
.card-category .cat-icon img { width: 32px; height: 32px; display:block; }
/* Certificates grid equal sizing */
.cert-grid .card { display: flex; flex-direction: column; height: 100%; }
.cert-card .card-img-top { height: 240px; object-fit: contain; background: #f6f8fa; border-bottom: 1px solid #e9ecef; padding: 8px; }
.cert-card .card-body { flex: 1 1 auto; display: flex; flex-direction: column; }
.cert-card .btn { margin-top: auto; }
@media (max-width: 576px) { .cert-card .card-img-top { height: 200px; } }

/* --- Modern Theme Overrides (SNR SOFT) --- */
:root {
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #1f2937;
  --muted: #64748b;
  --radius: .75rem;
  --shadow-soft: 0 8px 24px rgba(31,41,55,.08);
}
body { color: var(--text); }
.topbar { background: linear-gradient(90deg, var(--primary), #14532d); }
.main-header { box-shadow: 0 2px 12px rgba(31,41,55,.06); }
.main-header .nav-link { border-radius: .5rem; }
.main-header .nav-link:hover,
.main-header .nav-link.active { background: rgba(22,101,52,.10); color: var(--primary); border-bottom-color: transparent; }
.hero .carousel-inner { box-shadow: var(--shadow-soft); }
.card { border: 1px solid #e5e7eb; border-radius: var(--radius); box-shadow: var(--shadow-soft); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 22px rgba(31,41,55,.10); }
.ref-card.card { border: 1px solid #e5e7eb; border-radius: var(--radius); box-shadow: var(--shadow-soft); transition: transform .2s ease, box-shadow .2s ease; }
.ref-card.card:hover { transform: translateY(-2px); box-shadow: 0 12px 22px rgba(31,41,55,.10); }
.btn { border-radius: .6rem; }
.category-strip { background: var(--surface); }
.category-strip .category-link { border-radius: .5rem; }
.site-footer { background: var(--surface); }
.site-footer .brand-mark { box-shadow: 0 1px 2px rgba(0,0,0,.04); }
/* Nav dropdown hover açmayı JS yönetiyor; CSS override kaldırıldı */

/* --- Mobile sliders: single-card per view --- */
/* --- Mobile slider cover images: uniform size & full image --- */
@media (max-width: 576px) {
  .ref-slider .ref-track { gap: .75rem; }
  .ref-slider .ref-card { width: 100%; }
  .home-blog-slider .ref-card,
  .home-featured-slider .ref-card { width: 100%; }
  /* Override mobile slider cover images to 180px and contain full image */
  .ref-slider .ref-card .ref-img,
  .home-featured-slider .ref-img,
  .home-blog-slider .ref-img {
    height: 180px !important;
    object-fit: contain !important;
    background: #f8f9fa;
  }
}

/* --- Content tables: corporate/legal pages --- */
main .card-body table,
main .card table,
main table.content-table {
  width: 100%;
  border-collapse: collapse;
  margin: .5rem 0 1rem;
}

main .card-body table thead th,
main .card table thead th,
main table.content-table thead th {
  background: #f8fafc;
  color: #334155;
  font-weight: 600;
}

main .card-body table th,
main .card-body table td,
main .card table th,
main .card table td,
main table.content-table th,
main table.content-table td {
  border: 1px solid #e5e7eb;
  padding: .5rem .75rem;
  text-align: left;
}

main .card-body table caption,
main .card table caption,
main table.content-table caption {
  caption-side: top;
  color: #6b7280;
  font-size: .875rem;
  margin-bottom: .25rem;
}

main .card-body table tbody tr:nth-child(even),
main .card table tbody tr:nth-child(even),
main table.content-table tbody tr:nth-child(even) {
  background: rgba(139,94,60,.06);
}

/* --- Responsive tables --- */
@media (max-width: 768px) {
  main .card-body table,
  main .card table,
  main table.content-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
.js-media-video video { width: 100%; height: 100%; object-fit: contain; background:#000; }
.js-product-card { display: flex; flex-direction: column; }
.js-product-card .card-body { display: flex; flex-direction: column; gap: .5rem; }
.product-media{width:100%;}
.product-thumb{width:100%;height:220px;overflow:hidden;border-radius:.25rem;border:1px solid #eee;background:#fff;}
.product-thumb img{width:100%;height:100%;object-fit:contain;display:block;}
.video-badge{top:.5rem;right:.5rem;}
.product-desc{min-height:40px;line-height:1.5;margin:0;}
@media(min-width:992px){.product-thumb{height:240px}.product-desc{min-height:48px}}
.product-table{border:1px solid #eee;border-radius:.25rem;}
.product-table th,.product-table td{padding:.5rem .6rem;vertical-align:middle;}
.product-table thead th{background:#f5f5f7;border-bottom:1px solid #e5e5ea;}
.product-table tbody tr:hover{background:#fafafa}
.card .table{margin-bottom:0}
.product-table th, .product-table td { padding:.5rem .75rem; vertical-align: middle; word-break: break-word; }
/* About page sidebar clean layout */
.about-sidebar .card{border:1px solid rgba(139,94,60,.18); box-shadow:0 6px 18px rgba(0,0,0,.05);} 
.about-sidebar .sticky-card{position:sticky; top:1rem;} 
.about-sidebar .card-body{padding:1rem;} 
.about-sidebar .list-group-item{padding:.6rem .75rem; border-color:rgba(0,0,0,.06);} 
.about-sidebar .list-group-item:hover{background:#f8fafb;} 
.about-sidebar .list-group-item .bi-file-earmark-arrow-down{color:var(--leaf);} 
.about-sidebar .download-icon{opacity:0; transition:opacity .2s ease;} 
.about-sidebar .list-group-item:hover .download-icon{opacity:.85;} 
@media (max-width: 768px){
  .about-sidebar .sticky-card{position:static;}
}
.btn-primary:hover,.btn-primary:focus{background:#14532d;border-color:#14532d;color:#fff;}
.btn-outline-primary{color:var(--primary);border-color:var(--primary);} 
.btn-outline-primary:hover,.btn-outline-primary:focus{background:var(--primary);color:#fff;}
.btn-success{background:var(--leaf);border-color:var(--leaf);color:#fff;}
.btn-success:hover{background:#16a34a;border-color:#16a34a;color:#fff;}
.btn-outline-success{color:var(--leaf);border-color:var(--leaf);} 
.btn-outline-success:hover{background:var(--leaf);color:#fff;}
.btn-outline-secondary{color:var(--accent);border-color:var(--accent);} 
.btn-outline-secondary:hover{background:var(--accent);color:#fff;}

/* Home references slider */
.ref-slider { position: relative; }
.ref-track { display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: .25rem; scrollbar-width: none; }
.ref-track::-webkit-scrollbar { display: none; }
.ref-card { flex: 0 0 auto; width: 260px; scroll-snap-align: start; border: 1px solid rgba(139,94,60,.18); border-radius: .75rem; background: #fff; }
.ref-card .ref-img { width: 100%; height: 140px; object-fit: contain; background: #f8f9fa; }
.ref-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(22,101,52,.24); background: #fff; color: var(--primary); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,.08); z-index: 2; }
.ref-nav.prev { left: -12px; }
.ref-nav.next { right: -12px; }
@media (max-width: 768px){
  .ref-card{ width: 220px; }
  .ref-nav{ display: none; }
}

/* Utility: 2-line clamp for excerpts */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Blog slider variants */
.home-blog-slider .ref-card { width: 260px; }
.home-blog-slider .ref-img { height: 140px; object-fit: cover; }
/* Featured slider variants */
.home-featured-slider .ref-card { width: 260px; }
.home-featured-slider .ref-img { height: 140px; object-fit: cover; }
.ref-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(22,101,52,.24); background: #fff; color: var(--primary); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,.08); z-index: 2; }
.ref-nav.prev { left: -12px; }
.ref-nav.next { right: -12px; }
@media (max-width: 768px){
  .ref-card{ width: 220px; }
  .ref-nav{ display: none; }
}

/* Utility: 2-line clamp for excerpts */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Blog slider variants */
.home-blog-slider .ref-card { width: 260px; }
 .home-blog-slider .ref-img { height: 140px; object-fit: cover; }

/* Kategori kartları ikonları – boyut ve arkaplan */
.card-category .cat-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 12px; background: rgba(24,119,68,.08); }
.card-category .cat-icon img { width: 32px; height: 32px; display:block; }
/* Certificates grid equal sizing */
.cert-grid .card { display: flex; flex-direction: column; height: 100%; }
.cert-card .card-img-top { height: 240px; object-fit: contain; background: #f6f8fa; border-bottom: 1px solid #e9ecef; padding: 8px; }
.cert-card .card-body { flex: 1 1 auto; display: flex; flex-direction: column; }
.cert-card .btn { margin-top: auto; }
@media (max-width: 576px) { .cert-card .card-img-top { height: 200px; } }

/* --- Modern Theme Overrides (SNR SOFT) --- */
:root {
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #1f2937;
  --muted: #64748b;
  --radius: .75rem;
  --shadow-soft: 0 8px 24px rgba(31,41,55,.08);
}
body { color: var(--text); }
.topbar { background: linear-gradient(90deg, var(--primary), #14532d); }
.main-header { box-shadow: 0 2px 12px rgba(31,41,55,.06); }
.main-header .nav-link { border-radius: .5rem; }
.main-header .nav-link:hover,
.main-header .nav-link.active { background: rgba(22,101,52,.10); color: var(--primary); border-bottom-color: transparent; }
.hero .carousel-inner { box-shadow: var(--shadow-soft); }
.card { border: 1px solid #e5e7eb; border-radius: var(--radius); box-shadow: var(--shadow-soft); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 22px rgba(31,41,55,.10); }
.ref-card.card { border: 1px solid #e5e7eb; border-radius: var(--radius); box-shadow: var(--shadow-soft); transition: transform .2s ease, box-shadow .2s ease; }
.ref-card.card:hover { transform: translateY(-2px); box-shadow: 0 12px 22px rgba(31,41,55,.10); }
.btn { border-radius: .6rem; }
.category-strip { background: var(--surface); }
.category-strip .category-link { border-radius: .5rem; }
.site-footer { background: var(--surface); }
.site-footer .brand-mark { box-shadow: 0 1px 2px rgba(0,0,0,.04); }
/* Nav dropdown hover açmayı JS yönetiyor; CSS override kaldırıldı */

/* --- Content media: figure/figcaption --- */
main .card-body figure { display: block; margin: .5rem 0 1rem; }
main .card-body figure img { max-width: 100%; height: auto; display: block; }
main .card-body picture { display: block; margin: .5rem 0 1rem; }
main .card-body picture img { max-width: 100%; height: auto; display: block; }
main .card-body figcaption { font-size: .875rem; color: #6b7280; margin-top: .25rem; text-align: center; }
.js-media-video video { width: 100%; height: 100%; object-fit: contain; background:#000; }
.js-product-card { display: flex; flex-direction: column; }
.js-product-card .card-body { display: flex; flex-direction: column; gap: .5rem; }
.product-media{width:100%;}
.product-thumb{width:100%;height:220px;overflow:hidden;border-radius:.25rem;border:1px solid #eee;background:#fff;}
.product-thumb img{width:100%;height:100%;object-fit:contain;display:block;}
.video-badge{top:.5rem;right:.5rem;}
.product-desc{min-height:40px;line-height:1.5;margin:0;}
@media(min-width:992px){.product-thumb{height:240px}.product-desc{min-height:48px}}
.product-table{border:1px solid #eee;border-radius:.25rem;}
.product-table th,.product-table td{padding:.5rem .6rem;vertical-align:middle;}
.product-table thead th{background:#f5f5f7;border-bottom:1px solid #e5e5ea;}
.product-table tbody tr:hover{background:#fafafa}
.card .table{margin-bottom:0}
.product-table th, .product-table td { padding:.5rem .75rem; vertical-align: middle; word-break: break-word; }
/* About page sidebar clean layout */
.about-sidebar .card{border:1px solid rgba(139,94,60,.18); box-shadow:0 6px 18px rgba(0,0,0,.05);} 
.about-sidebar .sticky-card{position:sticky; top:1rem;} 
.about-sidebar .card-body{padding:1rem;} 
.about-sidebar .list-group-item{padding:.6rem .75rem; border-color:rgba(0,0,0,.06);} 
.about-sidebar .list-group-item:hover{background:#f8fafb;} 
.about-sidebar .list-group-item .bi-file-earmark-arrow-down{color:var(--leaf);} 
.about-sidebar .download-icon{opacity:0; transition:opacity .2s ease;} 
.about-sidebar .list-group-item:hover .download-icon{opacity:.85;} 
@media (max-width: 768px){
  .about-sidebar .sticky-card{position:static;}
}
.btn-primary:hover,.btn-primary:focus{background:#14532d;border-color:#14532d;color:#fff;}
.btn-outline-primary{color:var(--primary);border-color:var(--primary);} 
.btn-outline-primary:hover,.btn-outline-primary:focus{background:var(--primary);color:#fff;}
.btn-success{background:var(--leaf);border-color:var(--leaf);color:#fff;}
.btn-success:hover{background:#16a34a;border-color:#16a34a;color:#fff;}
.btn-outline-success{color:var(--leaf);border-color:var(--leaf);} 
.btn-outline-success:hover{background:var(--leaf);color:#fff;}
.btn-outline-secondary{color:var(--accent);border-color:var(--accent);} 
.btn-outline-secondary:hover{background:var(--accent);color:#fff;}

/* Home references slider */
.ref-slider { position: relative; }
.ref-track { display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: .25rem; scrollbar-width: none; }
.ref-track::-webkit-scrollbar { display: none; }
.ref-card { flex: 0 0 auto; width: 260px; scroll-snap-align: start; border: 1px solid rgba(139,94,60,.18); border-radius: .75rem; background: #fff; }
.ref-card .ref-img { width: 100%; height: 140px; object-fit: contain; background: #f8f9fa; }
.ref-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(22,101,52,.24); background: #fff; color: var(--primary); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,.08); z-index: 2; }
.ref-nav.prev { left: -12px; }
.ref-nav.next { right: -12px; }
@media (max-width: 768px){
  .ref-card{ width: 220px; }
  .ref-nav{ display: none; }
}

/* Utility: 2-line clamp for excerpts */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Blog slider variants */
.home-blog-slider .ref-card { width: 260px; }
.home-blog-slider .ref-img { height: 140px; object-fit: cover; }
/* Featured slider variants */
.home-featured-slider .ref-card { width: 260px; }
.home-featured-slider .ref-img { height: 140px; object-fit: cover; }
.ref-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(22,101,52,.24); background: #fff; color: var(--primary); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,.08); z-index: 2; }
.ref-nav.prev { left: -12px; }
.ref-nav.next { right: -12px; }
@media (max-width: 768px){
  .ref-card{ width: 220px; }
  .ref-nav{ display: none; }
}

/* Utility: 2-line clamp for excerpts */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Blog slider variants */
.home-blog-slider .ref-card { width: 260px; }
 .home-blog-slider .ref-img { height: 140px; object-fit: cover; }

/* Kategori kartları ikonları – boyut ve arkaplan */
.card-category .cat-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 12px; background: rgba(24,119,68,.08); }
.card-category .cat-icon img { width: 32px; height: 32px; display:block; }
/* Certificates grid equal sizing */
.cert-grid .card { display: flex; flex-direction: column; height: 100%; }
.cert-card .card-img-top { height: 240px; object-fit: contain; background: #f6f8fa; border-bottom: 1px solid #e9ecef; padding: 8px; }
.cert-card .card-body { flex: 1 1 auto; display: flex; flex-direction: column; }
.cert-card .btn { margin-top: auto; }
@media (max-width: 576px) { .cert-card .card-img-top { height: 200px; } }

/* --- Modern Theme Overrides (SNR SOFT) --- */
:root {
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #1f2937;
  --muted: #64748b;
  --radius: .75rem;
  --shadow-soft: 0 8px 24px rgba(31,41,55,.08);
}
body { color: var(--text); }
.topbar { background: linear-gradient(90deg, var(--primary), #14532d); }
.main-header { box-shadow: 0 2px 12px rgba(31,41,55,.06); }
.main-header .nav-link { border-radius: .5rem; }
.main-header .nav-link:hover,
.main-header .nav-link.active { background: rgba(22,101,52,.10); color: var(--primary); border-bottom-color: transparent; }
.hero .carousel-inner { box-shadow: var(--shadow-soft); }
.card { border: 1px solid #e5e7eb; border-radius: var(--radius); box-shadow: var(--shadow-soft); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 22px rgba(31,41,55,.10); }
.ref-card.card { border: 1px solid #e5e7eb; border-radius: var(--radius); box-shadow: var(--shadow-soft); transition: transform .2s ease, box-shadow .2s ease; }
.ref-card.card:hover { transform: translateY(-2px); box-shadow: 0 12px 22px rgba(31,41,55,.10); }
.btn { border-radius: .6rem; }
.category-strip { background: var(--surface); }
.category-strip .category-link { border-radius: .5rem; }
.site-footer { background: var(--surface); }
.site-footer .brand-mark { box-shadow: 0 1px 2px rgba(0,0,0,.04); }
/* Nav dropdown hover açmayı JS yönetiyor; CSS override kaldırıldı */

/* Accessibility: Focus outlines and offcanvas scroll */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.dropdown-item:focus-visible,
.list-group-item:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.offcanvas .offcanvas-body { max-height: calc(100vh - 56px); overflow-y: auto; }
 .home-blog-slider .ref-img { height: 140px; object-fit: cover; }

/* Kategori kartları ikonları – boyut ve arkaplan */
.card-category .cat-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 12px; background: rgba(24,119,68,.08); }
.card-category .cat-icon img { width: 32px; height: 32px; display:block; }
/* Certificates grid equal sizing */
.cert-grid .card { display: flex; flex-direction: column; height: 100%; }
.cert-card .card-img-top { height: 240px; object-fit: contain; background: #f6f8fa; border-bottom: 1px solid #e9ecef; padding: 8px; }
.cert-card .card-body { flex: 1 1 auto; display: flex; flex-direction: column; }
.cert-card .btn { margin-top: auto; }
@media (max-width: 576px) { .cert-card .card-img-top { height: 200px; } }

/* --- Modern Theme Overrides (SNR SOFT) --- */
:root {
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #1f2937;
  --muted: #64748b;
  --radius: .75rem;
  --shadow-soft: 0 8px 24px rgba(31,41,55,.08);
}
body { color: var(--text); }
.topbar { background: linear-gradient(90deg, var(--primary), #14532d); }
.main-header { box-shadow: 0 2px 12px rgba(31,41,55,.06); }
.main-header .nav-link { border-radius: .5rem; }
.main-header .nav-link:hover,
.main-header .nav-link.active { background: rgba(22,101,52,.10); color: var(--primary); border-bottom-color: transparent; }
.hero .carousel-inner { box-shadow: var(--shadow-soft); }
.card { border: 1px solid #e5e7eb; border-radius: var(--radius); box-shadow: var(--shadow-soft); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 22px rgba(31,41,55,.10); }
.ref-card.card { border: 1px solid #e5e7eb; border-radius: var(--radius); box-shadow: var(--shadow-soft); transition: transform .2s ease, box-shadow .2s ease; }
.ref-card.card:hover { transform: translateY(-2px); box-shadow: 0 12px 22px rgba(31,41,55,.10); }
.btn { border-radius: .6rem; }
.category-strip { background: var(--surface); }
.category-strip .category-link { border-radius: .5rem; }
.site-footer { background: var(--surface); }
.site-footer .brand-mark { box-shadow: 0 1px 2px rgba(0,0,0,.04); }
/* Nav dropdown hover açmayı JS yönetiyor; CSS override kaldırıldı */

/* --- Content media: figure/figcaption --- */
main .card-body figure { display: block; margin: .5rem 0 1rem; }
main .card-body figure img { max-width: 100%; height: auto; display: block; }
main .card-body picture { display: block; margin: .5rem 0 1rem; }
main .card-body picture img { max-width: 100%; height: auto; display: block; }
main .card-body figcaption { font-size: .875rem; color: #6b7280; margin-top: .25rem; text-align: center; }
.js-media-video video { width: 100%; height: 100%; object-fit: contain; background:#000; }
.js-product-card { display: flex; flex-direction: column; }
.js-product-card .card-body { display: flex; flex-direction: column; gap: .5rem; }
.product-media{width:100%;}
.product-thumb{width:100%;height:220px;overflow:hidden;border-radius:.25rem;border:1px solid #eee;background:#fff;}
.product-thumb img{width:100%;height:100%;object-fit:contain;display:block;}
.video-badge{top:.5rem;right:.5rem;}
.product-desc{min-height:40px;line-height:1.5;margin:0;}
@media(min-width:992px){.product-thumb{height:240px}.product-desc{min-height:48px}}
.product-table{border:1px solid #eee;border-radius:.25rem;}
.product-table th,.product-table td{padding:.5rem .6rem;vertical-align:middle;}
.product-table thead th{background:#f5f5f7;border-bottom:1px solid #e5e5ea;}
.product-table tbody tr:hover{background:#fafafa}
.card .table{margin-bottom:0}
.product-table th, .product-table td { padding:.5rem .75rem; vertical-align: middle; word-break: break-word; }
/* About page sidebar clean layout */
.about-sidebar .card{border:1px solid rgba(139,94,60,.18); box-shadow:0 6px 18px rgba(0,0,0,.05);} 
.about-sidebar .sticky-card{position:sticky; top:1rem;} 
.about-sidebar .card-body{padding:1rem;} 
.about-sidebar .list-group-item{padding:.6rem .75rem; border-color:rgba(0,0,0,.06);} 
.about-sidebar .list-group-item:hover{background:#f8fafb;} 
.about-sidebar .list-group-item .bi-file-earmark-arrow-down{color:var(--leaf);} 
.about-sidebar .download-icon{opacity:0; transition:opacity .2s ease;} 
.about-sidebar .list-group-item:hover .download-icon{opacity:.85;} 
@media (max-width: 768px){
  .about-sidebar .sticky-card{position:static;}
}
.btn-primary:hover,.btn-primary:focus{background:#14532d;border-color:#14532d;color:#fff;}
.btn-outline-primary{color:var(--primary);border-color:var(--primary);} 
.btn-outline-primary:hover,.btn-outline-primary:focus{background:var(--primary);color:#fff;}
.btn-success{background:var(--leaf);border-color:var(--leaf);color:#fff;}
.btn-success:hover{background:#16a34a;border-color:#16a34a;color:#fff;}
.btn-outline-success{color:var(--leaf);border-color:var(--leaf);} 
.btn-outline-success:hover{background:var(--leaf);color:#fff;}
.btn-outline-secondary{color:var(--accent);border-color:var(--accent);} 
.btn-outline-secondary:hover{background:var(--accent);color:#fff;}

/* Home references slider */
.ref-slider { position: relative; }
.ref-track { display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: .25rem; scrollbar-width: none; }
.ref-track::-webkit-scrollbar { display: none; }
.ref-card { flex: 0 0 auto; width: 260px; scroll-snap-align: start; border: 1px solid rgba(139,94,60,.18); border-radius: .75rem; background: #fff; }
.ref-card .ref-img { width: 100%; height: 140px; object-fit: contain; background: #f8f9fa; }
.ref-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(22,101,52,.24); background: #fff; color: var(--primary); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,.08); z-index: 2; }
.ref-nav.prev { left: -12px; }
.ref-nav.next { right: -12px; }
@media (max-width: 768px){
  .ref-card{ width: 220px; }
  .ref-nav{ display: none; }
}

/* Utility: 2-line clamp for excerpts */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Blog slider variants */
.home-blog-slider .ref-card { width: 260px; }
.home-blog-slider .ref-img { height: 140px; object-fit: cover; }
/* Featured slider variants */
.home-featured-slider .ref-card { width: 260px; }
.home-featured-slider .ref-img { height: 140px; object-fit: cover; }
.ref-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(22,101,52,.24); background: #fff; color: var(--primary); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,.08); z-index: 2; }
.ref-nav.prev { left: -12px; }
.ref-nav.next { right: -12px; }
@media (max-width: 768px){
  .ref-card{ width: 220px; }
  .ref-nav{ display: none; }
}

/* Utility: 2-line clamp for excerpts */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Blog slider variants */
.home-blog-slider .ref-card { width: 260px; }
 .home-blog-slider .ref-img { height: 140px; object-fit: cover; }

/* Kategori kartları ikonları – boyut ve arkaplan */
.card-category .cat-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 12px; background: rgba(24,119,68,.08); }
.card-category .cat-icon img { width: 32px; height: 32px; display:block; }
/* Certificates grid equal sizing */
.cert-grid .card { display: flex; flex-direction: column; height: 100%; }
.cert-card .card-img-top { height: 240px; object-fit: contain; background: #f6f8fa; border-bottom: 1px solid #e9ecef; padding: 8px; }
.cert-card .card-body { flex: 1 1 auto; display: flex; flex-direction: column; }
.cert-card .btn { margin-top: auto; }
@media (max-width: 576px) { .cert-card .card-img-top { height: 200px; } }

/* --- Modern Theme Overrides (SNR SOFT) --- */
:root {
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #1f2937;
  --muted: #64748b;
  --radius: .75rem;
  --shadow-soft: 0 8px 24px rgba(31,41,55,.08);
}
body { color: var(--text); }
.topbar { background: linear-gradient(90deg, var(--primary), #14532d); }
.main-header { box-shadow: 0 2px 12px rgba(31,41,55,.06); }
.main-header .nav-link { border-radius: .5rem; }
.main-header .nav-link:hover,
.main-header .nav-link.active { background: rgba(22,101,52,.10); color: var(--primary); border-bottom-color: transparent; }
.hero .carousel-inner { box-shadow: var(--shadow-soft); }
.card { border: 1px solid #e5e7eb; border-radius: var(--radius); box-shadow: var(--shadow-soft); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 22px rgba(31,41,55,.10); }
.ref-card.card { border: 1px solid #e5e7eb; border-radius: var(--radius); box-shadow: var(--shadow-soft); transition: transform .2s ease, box-shadow .2s ease; }
.ref-card.card:hover { transform: translateY(-2px); box-shadow: 0 12px 22px rgba(31,41,55,.10); }
.btn { border-radius: .6rem; }
.category-strip { background: var(--surface); }
.category-strip .category-link { border-radius: .5rem; }
.site-footer { background: var(--surface); }
.site-footer .brand-mark { box-shadow: 0 1px 2px rgba(0,0,0,.04); }
/* Nav dropdown hover açmayı JS yönetiyor; CSS override kaldırıldı */

/* --- Featured Categories: force single-card per view on mobile/tablet --- */
@media (max-width: 768px) {
  .home-featured-slider .ref-card { width: 100% !important; }
  .home-featured-slider .ref-img { height: 180px !important; object-fit: contain !important; }
}

/* --- Featured Categories mobile: make cover image fill the area --- */
@media (max-width: 768px) {
  .home-featured-slider .ref-img { height: 220px !important; object-fit: cover !important; }
}

/* Footer sosyal ikonları */
.footer-social a {
  width: 40px;
  height: 40px;
  color: var(--primary);
  background-color: #fff;
  border: 1px solid rgba(22,101,52,.35);
}
.footer-social a i {
  font-size: 1.25rem;
  line-height: 40px;
}
.footer-social a:hover,
.footer-social a:focus {
  color: #fff;
  background-color: var(--primary);
  border-color: var(--primary);
}

/* Footer tagline boyutlandırma: logoya göre daha dar görünüm */
.site-footer .footer-tagline {
  max-width: 420px;
  font-size: .95rem;
  line-height: 1.5;
  margin-top: .25rem;
}
@media (max-width: 576px) {
  .site-footer .footer-tagline { max-width: 100%; font-size: .9rem; }
  .site-footer .footer-tagline > span { display: block !important; }
  .site-footer ul.list-unstyled li a { display: block !important; width: 100%; }
}
@media (min-width: 768px) {
  .site-footer .footer-brand-col { flex: 0 0 25.333%; max-width: 25.333%; }
}
@media (max-width: 768px) {
  /* Footer sol sütun: yalnızca mobilde ortala */
  .site-footer .footer-brand-col { text-align: center; }
  .site-footer .footer-brand-col .site-brand { justify-content: center; }
  .site-footer .footer-brand-col .footer-social { justify-content: center; }
  .site-footer .footer-brand-col .d-flex.gap-2.align-items-center.mb-3 { justify-content: center; }
  
  /* Footer diğer sütunlar: Kategoriler, Kurumsal, Popüler Aramalar */
  .site-footer .col-12.col-md-2,
  .site-footer .col-12.col-md-3 { text-align: center; }
  .site-footer .col-12.col-md-2 .btn-link { display: inline-block; margin: 0 auto; }
  .site-footer .col-12.col-md-3 .footer-right { align-items: center; }
   /* Bülten formu: mobilde ortala ve aradaki boşluğu kaldır */
   .site-footer .newsletter-block { text-align: center; }
   .site-footer .newsletter-form.stacked { align-items: center; }
   .site-footer .newsletter-form.stacked .form-control { text-align: center; }
   .site-footer .newsletter-form.stacked .form-control::placeholder { text-align: center; }
   .site-footer .newsletter-form.stacked .btn { align-self: center; padding: .55rem 1.25rem; font-size: 1rem; }
   .site-footer .footer-right { gap: 0 !important; }
 }

@media (min-width: 992px){
  /* Footer alt yasal bağlantılar: masaüstünde ortala */
  .site-footer .footer-bottom { justify-content: center !important; }
  .site-footer .footer-bottom > div { justify-content: center; }
}

/* Kategori Şeridi — Ticker Modu (temayı bozmaz) */
@media (min-width: 768px){
  .category-strip.js-cat-ticker .container{ overflow-x: auto; overflow-y: hidden; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .category-strip.js-cat-ticker .category-track{ display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
  .category-strip.js-cat-ticker .category-link{ display: inline-block; padding: .25rem .6rem; font-size: .9rem; white-space: nowrap; }
  /* Clickability safeguards */
  .category-strip.js-cat-ticker .category-track{ position: relative; pointer-events: auto; }
  .category-strip.js-cat-ticker .category-link{ position: relative; z-index: 1; }
}
@media (max-width: 768px){
  .category-strip.js-cat-ticker .container{ overflow-x: auto; overflow-y: hidden; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .category-strip.js-cat-ticker .category-track{ display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
  .category-strip.js-cat-ticker .category-link{ display: inline-block; padding: .25rem .5rem; font-size: .9rem; white-space: nowrap; }
  /* Clickability safeguards (mobile) */
  .category-strip.js-cat-ticker .category-track{ position: relative; pointer-events: auto; will-change: transform; }
  .category-strip.js-cat-ticker .category-link{ position: relative; z-index: 1; }
}