@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ==========================================================================
   1. CSS Design Variables
   ========================================================================== */
:root {
  /* Day Mode (Default) */
  --bg-color: #ffffff;
  --text-color: #313139;
  --text-muted: #808080;
  --headings-color: #1c1c1f;
  --accent-gold: #032E47;
  --accent-gold-hover: #022336;
  --border-color: rgba(0, 0, 0, 0.08);
  --header-bg: #ffffff;
  --footer-bg: #ffffff;
  --card-bg: #fafafa;
  --hero-bg: rgba(3, 46, 71, 0.03);
  --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  --card-hover-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --overlay-bg: rgba(255, 255, 255, 0.98);

  --header-height: 110px;
  --header-height-mobile: 80px;
}

/* Night Mode (Triggered by .dark-theme class on html) */
html.dark-theme {
  --bg-color: #0c0d12;
  --text-color: #d1d5db;
  --text-muted: #9ca3af;
  --headings-color: #ffffff;
  --accent-gold: #beac74;
  --accent-gold-hover: #d1be8a;
  --border-color: rgba(255, 255, 255, 0.08);
  --header-bg: #0c0d12;
  --footer-bg: #0c0d12;
  --card-bg: rgba(255, 255, 255, 0.02);
  --hero-bg: rgba(91, 158, 197, 0.04);
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --card-hover-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
  --overlay-bg: rgba(12, 13, 18, 0.92);
}

/* ==========================================================================
   2. Reset & General Styles
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Library Background Pattern on Night Mode */
html.dark-theme body {
  background-image: linear-gradient(rgba(12, 13, 18, 0.85), rgba(12, 13, 18, 0.92)), url('../img/background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease, border-color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  color: var(--headings-color);
  line-height: 1.25;
  transition: color 0.4s ease;
}

h1 {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 600;
}

h2 {
  font-size: clamp(26px, 3.5vw, 44px);
}

h3 {
  font-size: clamp(20px, 2.5vw, 32px);
}

/* Common Section Layout */
section {
  padding: 5rem 10% 4rem 10%;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* ==========================================================================
   3. Header & Navigation (Aksan Layout)
   ========================================================================== */
body > header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  transition: all 0.4s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 4rem;
}

/* Logo styling */
.logo {
  display: flex;
  align-items: center;
}

.logo > a > img {
  height: 50px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo > a > img:hover {
  transform: scale(1.03);
}

.ataturk-badge {
  display: flex;
  align-items: center;
  margin-left: 1.25rem;
  padding-left: 1.25rem;
  border-left: 1px solid var(--border-color);
  height: 40px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.dark-theme .ataturk-badge {
  border-left-color: var(--border-color);
  height: 40px;
}

.ataturk-img {
  height: 50px;
  width: auto;
  flex-shrink: 0;
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dark-theme .ataturk-img {
  height: 50px;
  width: auto;
  opacity: 1;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.15));
}

.ataturk-img:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Main Navigation */
header nav > ul, .nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

header nav > ul > li, .nav-menu li {
  position: relative;
  list-style: none;
}

header nav a, .nav-link {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-color);
  padding: 0.5rem 0.75rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  display: block;
  transition: color 0.3s ease;
}

header nav > ul > li > a:hover,
header nav > ul > li:hover > a,
.nav-link:hover, 
.nav-menu li:hover > .nav-link {
  color: var(--accent-gold);
}

/* Dropdown Submenus */
header nav ul .dropdown-menu, .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--header-bg);
  border: 1px solid var(--border-color);
  list-style: none;
  min-width: 250px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.5rem 0;
  margin: 0;
  z-index: 1010;
}

header nav ul li.dropdown:hover > .dropdown-menu,
header nav ul li:hover > .dropdown-menu,
.dropdown:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

header nav ul .dropdown-menu li,
.dropdown-menu li {
  margin: 0;
  padding: 0;
  width: 100%;
  list-style: none;
}

header nav ul .dropdown-menu li a,
.dropdown-menu li a {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-color);
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

header nav ul .dropdown-menu li a:hover,
.dropdown-menu li a:hover {
  background-color: rgba(190, 172, 116, 0.12);
  color: var(--accent-gold);
}

/* Header Utilities */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.lang-selector {
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-color);
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: none;
  border: 1px solid var(--border-color);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.theme-toggle-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: scale(1.05);
}

/* Mobile Toggle Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-color);
  transition: all 0.3s ease;
}

/* Hamburger active transformation */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================================
   4. Mobile Slide-out Menu Overlay
   ========================================================================== */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1080;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-wrap {
  position: fixed;
  top: 0;
  right: -320px;
  width: 320px;
  max-width: 85vw;
  height: 100%;
  background-color: var(--bg-color);
  border-left: 1px solid var(--border-color);
  z-index: 1090;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 6rem 2rem 2rem 2rem;
  overflow-y: auto;
}

.mobile-menu-wrap.active {
  right: 0;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-list li a {
  font-size: 1.15rem;
  font-weight: 500;
  display: block;
  color: var(--text-color);
}

.mobile-nav-list li a:hover {
  color: var(--accent-gold);
}

.mobile-submenu {
  list-style: none;
  padding-left: 1rem;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-left: 1px solid var(--border-color);
}

.mobile-submenu li a {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-muted);
}

.mobile-lang-row {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 1rem;
}

.mobile-lang-row a {
  font-weight: 600;
  font-size: 0.95rem;
}

/* ==========================================================================
   5. Splash Language Selector Page (index.html)
   ========================================================================== */
.splash-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100vw;
  padding: 2rem;
  text-align: center;
  position: relative;
}

/* Dark mode splash wallpaper */
html.dark-theme .splash-container {
  background-image: linear-gradient(rgba(12, 13, 18, 0.8), rgba(12, 13, 18, 0.9)), url('../img/background.jpg');
  background-size: cover;
  background-position: center;
}

.splash-logo {
  margin-bottom: 3.5rem;
}

.splash-logo img {
  height: 75px;
  width: auto;
}

.splash-title {
  font-size: clamp(28px, 4vw, 48px);
  margin-bottom: 2rem;
  max-width: 700px;
}

.splash-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  width: 100%;
  max-width: 500px;
  margin-top: 1rem;
}

.splash-btn {
  flex: 1;
  padding: 1rem 2rem;
  border: 1px solid var(--accent-gold);
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 500;
  background: transparent;
  transition: all 0.3s ease;
  border-radius: 4px;
  text-align: center;
}

.splash-btn:hover {
  background-color: var(--accent-gold);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(3, 46, 71, 0.25);
}

.splash-theme-toggle {
  position: absolute;
  top: 2rem;
  right: 2rem;
}

/* ==========================================================================
   6. Page Layout & Hero Section (Aksan Minimal Style)
   ========================================================================== */
main {
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height) - 160px);
}

.page-hero {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem 10% 2.5rem 10%;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--hero-bg);
}

.page-hero h1 {
  font-size: clamp(34px, 5.5vw, 60px);
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
}

.page-hero .subtitle {
  font-size: clamp(15px, 1.6vw, 22px);
  font-weight: 300;
  max-width: 800px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   7. Service Cards Grid (Aksan Grid Style)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.services-section {
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 1200px) {
  .services-section {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

@media (max-width: 768px) {
  .services-section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.service-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
  box-shadow: var(--card-hover-shadow);
}

.service-card-icon {
  font-size: 2.2rem;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  flex-grow: 1;
}

.service-card .read-more {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-card .read-more:hover {
  color: var(--text-color);
  padding-left: 5px;
}

/* Blog Category Filters */
.blog-filters-section {
  padding: 0 4rem;
  margin-top: 1rem;
}

.blog-filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-btn {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--accent-gold);
  border-color: var(--accent-gold);
  color: white !important;
}

.blog-item.hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .blog-filters-section {
    padding: 0 1.5rem;
  }
}

/* ==========================================================================
   8. Blog Layout (Grid Listing + Responsive Sidebar)
   ========================================================================== */
.blog-layout {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 3.5rem;
  margin-top: 2rem;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.blog-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 3rem;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  transition: all 0.4s ease;
}

.blog-item:hover {
  border-color: var(--accent-gold);
  box-shadow: var(--card-hover-shadow);
}

.blog-item-tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 0.75rem;
  white-space: nowrap;
}

.blog-item h3 {
  font-size: 1.85rem;
  margin-bottom: 1rem;
  font-weight: normal;
}

.blog-item h3 a:hover {
  color: var(--accent-gold);
}

.blog-item-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1.25rem;
}

.blog-item-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.blog-item-excerpt {
  font-size: 1.05rem;
  color: var(--text-color);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.blog-item-more {
  color: var(--accent-gold);
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(3, 46, 71, 0.25);
  padding-bottom: 2px;
}

.blog-item-more:hover {
  border-bottom-color: var(--accent-gold);
  color: var(--text-color);
}

/* Sidebar styling */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.sidebar-widget {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 6px;
}

.sidebar-widget h3 {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  font-weight: 600;
}

.sidebar-search form {
  display: flex;
  gap: 0.5rem;
}

.sidebar-search input {
  flex: 1;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: inherit;
}

.sidebar-search button {
  padding: 0.6rem 1rem;
  background-color: var(--accent-gold);
  border: none;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.sidebar-search button:hover {
  background-color: var(--accent-gold-hover);
}

.sidebar-widget ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.sidebar-widget ul li a {
  font-size: 0.9rem;
  line-height: 1.4;
  display: block;
}

.sidebar-widget ul li a:hover {
  color: var(--accent-gold);
}

/* ==========================================================================
   9. Article Reading Details (tasarrufun-iptali-davasi.html)
   ========================================================================== */
.article-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.article-header-block {
  text-align: center;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 2rem;
}

.article-header-block h1 {
  margin-bottom: 1.25rem;
}

.article-body {
  font-size: 1.15rem;
  line-height: 1.85;
}

.article-body p {
  margin-bottom: 1.75rem;
}

.article-body > p:first-of-type::first-letter {
  font-size: 3.8rem;
  float: left;
  line-height: 0.85;
  margin-top: 0.15rem;
  margin-right: 0.6rem;
  color: var(--accent-gold);
  font-weight: bold;
}

.article-body h2 {
  font-size: 1.85rem;
  margin-top: 3rem;
  margin-bottom: 1.2rem;
  font-weight: normal;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.article-body h3 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.article-body ul, .article-body ol {
  margin-bottom: 2rem;
  padding-left: 2rem;
}

.article-body li {
  margin-bottom: 0.75rem;
}

.article-body blockquote {
  border-left: 3px solid var(--accent-gold);
  background-color: var(--card-bg);
  padding: 1.8rem 2rem;
  margin: 2.5rem 0;
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  border-radius: 0 6px 6px 0;
  line-height: 1.6;
}

.seo-contextual-ref a {
  color: #032E47 !important;
  font-weight: bold !important;
  text-decoration: underline !important;
  transition: color 0.3s ease;
}

.seo-contextual-ref a:hover {
  color: #022336 !important;
  text-decoration: none !important;
}

html.dark-theme .seo-contextual-ref a {
  color: #beac74 !important;
}

html.dark-theme .seo-contextual-ref a:hover {
  color: #d1be8a !important;
}

/* ==========================================================================
   10. Practice Detail Page (Side navigation + Responsive details)
   ========================================================================== */
.practice-detail-layout {
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: 2.5rem;
  width: 100%;
}

.practice-sidebar-left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  grid-column: 1;
  grid-row: 1;
}

.practice-sidebar-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  grid-column: 3;
  grid-row: 1;
}

.practice-detail-content {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
}

@media (min-width: 1025px) {
  .practice-detail-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  .practice-sidebar-left,
  .practice-sidebar-right {
    min-width: 280px;
  }
}

.related-posts-widget {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: 6px;
}

.related-posts-widget h3 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
}

.related-posts-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.related-post-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.related-post-item a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-color);
  line-height: 1.4;
  transition: color 0.3s ease;
}

.related-post-item a:hover {
  color: var(--accent-gold);
}

.related-post-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.practice-menu-widget {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: 6px;
}

.practice-menu-widget h3 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
}

.practice-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.practice-nav-list li a {
  display: block;
  padding: 0.6rem 0.8rem;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

/* Only truncate left sidebar items to keep them on a single line */
.practice-sidebar-left .practice-nav-list li a {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Allow right sidebar items (blog titles) to wrap normally */
.practice-sidebar-right .practice-nav-list li a {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.4;
}

.service-contact-btn {
  display: none !important;
}

.practice-nav-list li.active a, .practice-nav-list li a:hover {
  background-color: var(--accent-gold);
  color: white !important;
}

.practice-detail-content {
  font-size: 1.05rem;
  line-height: 1.75;
}

.practice-detail-content h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: normal;
}

.practice-detail-content p {
  margin-bottom: 1.5rem;
}

.practice-detail-content ul {
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

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

/* ==========================================================================
   11. Biography & Contact Page Formatting
   ========================================================================== */
.bio-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 3.5rem;
  margin-top: 2.5rem;
}

.bio-image {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  align-self: start;
}

.bio-image img {
  width: 100%;
  height: auto;
  display: block;
}

.bio-details h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.bio-title {
  color: var(--accent-gold);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bio-text p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

/* Contact layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
}

.contact-info-block {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 3.5rem;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 1.5rem;
}

.contact-info-icon {
  font-size: 1.75rem;
  color: var(--accent-gold);
}

.contact-info-text h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.contact-info-text p, .contact-info-text a {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-info-text a:hover {
  color: var(--accent-gold);
}

/* Contact Form Grid styling */
.contact-form-widget {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 3.5rem;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

.contact-form-widget h3 {
  font-size: 1.85rem;
  margin-bottom: 1.5rem;
  font-weight: normal;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.btn-submit {
  display: inline-block;
  width: 100%;
  padding: 0.9rem 2rem;
  background-color: var(--accent-gold);
  border: none;
  color: white;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-align: center;
}

.btn-submit:hover {
  background-color: var(--accent-gold-hover);
}

/* Buttons and Links */
.button {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--accent-gold);
  color: white;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-align: center;
}

.button:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-1px);
}

.button-outline {
  display: inline-block;
  padding: 0.8rem 2rem;
  border: 1px solid var(--accent-gold);
  color: var(--text-color);
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-align: center;
}

.button-outline:hover {
  background-color: var(--accent-gold);
  color: white;
  transform: translateY(-1px);
}
/* ==========================================================================
   HOMEPAGE – Full Viewport Hero (Aksan-style)
   ========================================================================== */
.homepage-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px - 80px); /* viewport minus header minus footer */
  padding: 0;
  overflow: hidden;
}

.homepage-hero {
  text-align: center;
  padding: 2rem;
}

.homepage-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--text-color);
  margin-bottom: 1.2rem;
  line-height: 1.15;
  animation: heroFadeIn 1.2s ease-out;
}

.homepage-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-weight: 300;
  color: var(--text-muted);
  animation: heroFadeIn 1.6s ease-out;
  margin-top: 1rem;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   CONTACT – Google Maps Embed
   ========================================================================== */
.contact-map-section {
  margin-top: 3rem;
  padding: 0 4rem 2rem;
}

.contact-map-section h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.map-container {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}

html.dark-theme .map-container {
  filter: brightness(0.85) contrast(1.1);
}

@media (max-width: 768px) {
  .contact-map-section {
    padding: 0 1.5rem 2rem;
  }
  .map-container iframe {
    height: 280px;
  }
}

/* ==========================================================================
   12. Footer Styling (Aksan 42 Years / Anniversary design)
   ========================================================================== */
footer {
  border-top: 1px solid var(--border-color);
  background-color: var(--footer-bg);
  padding: 1.25rem 2rem;
  transition: background-color 0.4s ease;
}

.footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.back-to-top-static {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
  vertical-align: middle;
  padding: 0 4px;
}

.back-to-top-static:hover {
  color: var(--accent-gold);
  transform: translateY(-2px);
}

/* ==========================================================================
   13. Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1200px) {
  .header-container {
    padding: 0 2rem;
  }
  footer {
    padding: 3rem 2rem;
  }
}

@media (max-width: 1024px) {
  :root {
    --header-height: 90px;
  }

  header nav, nav, .nav-menu {
    display: none !important; /* Hide navigation on mobile, use mobile side-menu instead */
  }

  .hamburger {
    display: flex; /* Show mobile hamburger toggler */
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }

  .practice-detail-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .practice-sidebar-left {
    grid-column: auto;
    grid-row: 2;
  }

  .practice-sidebar-right {
    grid-column: auto;
    grid-row: 3;
  }

  .practice-detail-content {
    grid-column: auto;
    grid-row: 1;
  }

  .service-contact-btn {
    display: none;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .bio-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .bio-image {
    max-width: 260px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 80px;
  }

  section {
    padding: 4rem 1.5rem 3rem 1.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .blog-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .splash-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  .article-wrapper {
    padding: 2.5rem 1rem;
  }
  
  .article-body > p:first-of-type::first-letter {
    font-size: 3rem;
  }
  
  .contact-info-block, .contact-form-widget {
    padding: 2rem 1.5rem;
  }

  /* Mobile Header Optimization */
  .header-container {
    padding: 0 0.75rem;
  }

  .logo > a > img {
    height: 30px;
  }

  .ataturk-badge {
    margin-left: 0.5rem;
    padding-left: 0.5rem;
    height: 20px;
    flex-shrink: 0;
  }

  .dark-theme .ataturk-badge {
    height: 20px;
    flex-shrink: 0;
  }

  .ataturk-img {
    height: 30px;
    width: auto;
    flex-shrink: 0;
  }

  .dark-theme .ataturk-img {
    height: 30px;
    width: auto;
    flex-shrink: 0;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .theme-toggle-btn {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
}

/* Precedent Decision Modal */
.decision-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.decision-modal.active {
  display: flex;
}

.decision-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 13, 18, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: opacity 0.3s ease;
}

html.dark-theme .decision-modal-backdrop {
  background: rgba(0, 0, 0, 0.65);
}

.decision-modal-content {
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-top: 4px solid #beac74;
  width: 100%;
  max-width: 800px;
  max-height: 80vh;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(3, 46, 71, 0.15);
  z-index: 1;
  animation: modalFadeIn 0.3s ease;
}

html.dark-theme .decision-modal-content {
  background: rgba(18, 19, 26, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 4px solid #beac74;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.decision-modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #313139;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s ease;
  padding: 0;
  line-height: 1;
}

html.dark-theme .decision-modal-close {
  color: #d1d5db;
}

.decision-modal-close:hover {
  opacity: 1;
  color: #beac74 !important;
  transform: scale(1.1);
}

.decision-modal-header {
  padding: 1.5rem 2.5rem;
  border-bottom: 1px solid rgba(3, 46, 71, 0.06);
}

html.dark-theme .decision-modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.decision-modal-header h3 {
  margin: 0;
  font-size: 1.4rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  color: #032E47;
  letter-spacing: 0.02em;
}

html.dark-theme .decision-modal-header h3 {
  color: #beac74;
}

.decision-modal-body {
  padding: 2rem 2.5rem;
  overflow-y: auto;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #2b2d35;
  white-space: pre-wrap;
  font-family: 'Georgia', serif;
}

html.dark-theme .decision-modal-body {
  color: #d1d5db;
}

.decision-modal-body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
}

html.dark-theme .decision-modal-body h3 {
  color: #beac74;
}

.decision-modal-body h4 {
  color: var(--accent-gold);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.decision-modal-body p {
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.decision-modal-body strong {
  color: #111115;
}

html.dark-theme .decision-modal-body strong {
  color: #ffffff;
}

.decision-modal-body blockquote {
  margin: 2rem 0;
  padding-left: 1.5rem;
  border-left: 4px solid var(--accent-gold);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.7;
}

.decision-modal-body hr {
  border: 0;
  border-top: 1px solid rgba(3, 46, 71, 0.08);
  margin: 1.5rem 0;
}

html.dark-theme .decision-modal-body hr {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.decision-modal-footer {
  padding: 1.25rem 2.5rem;
  border-top: 1px solid rgba(3, 46, 71, 0.06);
  display: flex;
  align-items: center;
  background: rgba(3, 46, 71, 0.03);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

html.dark-theme .decision-modal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
}

.decision-modal-copy {
  background: #032E47;
  color: #ffffff;
  border: 1px solid #032E47;
  padding: 0.6rem 1.8rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.decision-modal-copy:hover {
  background: #beac74;
  border-color: #beac74;
  color: #ffffff;
}

html.dark-theme .decision-modal-copy {
  background: #beac74;
  color: #0c0d12;
  border: 1px solid #beac74;
}

html.dark-theme .decision-modal-copy:hover {
  background: #d1be8a;
  border-color: #d1be8a;
  color: #0c0d12;
}

.decision-modal-body::-webkit-scrollbar {
  width: 6px;
}

.decision-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.decision-modal-body::-webkit-scrollbar-thumb {
  background: rgba(3, 46, 71, 0.15);
  border-radius: 3px;
}

html.dark-theme .decision-modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
}


/* Visually Hidden practice tags container for SEO purposes only */
.practice-tags-container {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Homepage Hero Link */
.homepage-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  font-weight: 500;
  color: var(--accent-gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: all 0.3s ease;
  animation: heroFadeIn 2s ease-out;
}

.homepage-hero-link:hover {
  border-bottom-color: var(--accent-gold);
  gap: 0.8rem;
}

.homepage-hero-link .arrow {
  transition: transform 0.3s ease;
}

.homepage-hero-link:hover .arrow {
  transform: translateX(3px);
}

/* Mobile Floating Contact Bar */
.mobile-contact-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-contact-bar {
    position: fixed;
    bottom: 75px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    z-index: 9999;
    width: 100%;
    max-width: 100%;
    align-items: center;
  }
  
  html.dark-theme .mobile-contact-bar {
    background: none;
    border: none;
    box-shadow: none;
  }

  .mobile-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    pointer-events: auto;
  }

  .phone-btn {
    left: 0;
    border-radius: 0 25px 25px 0;
    background: var(--accent-gold);
    color: #ffffff;
    box-shadow: 2px 4px 12px rgba(3, 46, 71, 0.2);
    padding-right: 4px; /* offset slightly to visually center the icon */
  }
  
  html.dark-theme .phone-btn {
    background: rgb(190, 172, 116); /* R: 0.745, G: 0.674, B: 0.455 */
    color: #0c0d12;
    box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.4);
  }

  .whatsapp-btn {
    right: 0;
    border-radius: 25px 0 0 25px;
    background: var(--accent-gold);
    color: #ffffff;
    box-shadow: -2px 4px 12px rgba(3, 46, 71, 0.2);
    padding-left: 4px; /* offset slightly to visually center the icon */
  }

  html.dark-theme .whatsapp-btn {
    background: rgb(190, 172, 116); /* R: 0.745, G: 0.674, B: 0.455 */
    color: #0c0d12;
    box-shadow: -2px 4px 12px rgba(0, 0, 0, 0.4);
  }

  .mobile-contact-btn svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    transition: transform 0.3s ease;
  }

  .mobile-contact-btn:active {
    transform: scale(0.9);
  }
}

/* ==========================================================================
   13. Blog Grid & Pagination Updates (3x3 grid layout)
   ========================================================================== */
.blog-grid-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 0 4rem 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2rem;
}

/* Adjust card sizing for 3-column layout */
.blog-grid .blog-item {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-grid .blog-item h3 {
  font-size: 1.45rem;
  line-height: 1.4;
  margin-bottom: 0.8rem;
  margin-top: 0.5rem;
}

.blog-grid .blog-item-excerpt {
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1; /* Pushes the 'Okumaya Devam Et' link to the bottom */
}

/* Pagination Styling */
.pagination-container {
  display: flex;
  justify-content: center;
  margin-top: 4rem;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 1rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background-color: var(--card-bg);
  color: var(--text-color);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}

.page-link:hover:not(.disabled) {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-2px);
}

.page-link.active {
  background-color: var(--accent-gold);
  border-color: var(--accent-gold);
  color: white !important;
}

.page-link.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .blog-grid-layout {
    padding: 0 2rem 4rem;
  }
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .blog-grid-layout {
    padding: 0 1.5rem 4rem;
  }
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .blog-grid .blog-item {
    padding: 2rem;
  }
}



/* Contact section layout stretch */
.contact-section {
  max-width: 100% !important;
}

/* Static Blog Return Link styling */
.blog-return-static-link {
  display: none !important;
}

/* Floating Back to Blog Button Styling */
.floating-back-btn {
  position: fixed;
  bottom: 2.5rem;
  left: 2.5rem;
  background-color: rgba(15, 15, 17, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #ffffff !important;
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.floating-back-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.floating-back-btn:hover {
  background-color: rgba(15, 15, 17, 0.9);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.2);
}

.floating-back-btn svg {
  transition: transform 0.3s ease;
}

.floating-back-btn:hover svg {
  transform: translateX(-3px);
}

@media (max-width: 768px) {
  .floating-back-btn {
    bottom: 1.5rem;
    left: 1.5rem;
    padding: 0.7rem 1.1rem;
    font-size: 0.85rem;
    background-color: rgba(15, 15, 17, 0.85); /* Slightly less transparent on mobile for better readability */
    border-color: rgba(212, 175, 55, 0.5); /* Stronger gold border on mobile */
    font-weight: 600;
  }
}
