/* ============================================================
   inner-page.css — Premium Styles for internal pages
   ============================================================ */

/* ── Hero Section ─────────────────────────────────────────────── */
.inner-hero {
  position: relative;
  background-color: var(--color-brand-darker);
  color: var(--color-white);
  padding: calc(100px + var(--header-height, 96px)) 0 80px 0;
  text-align: center;
  overflow: hidden;
}

/* Background image with blur and bleed (to hide blurred borders) */
.inner-hero::before {
  content: '';
  position: absolute;
  top: -20px; left: -20px; right: -20px; bottom: -20px;
  background-image: url('../../images/kurumsalbg.jpeg');
  background-size: cover;
  background-position: center;
  filter: blur(6px) brightness(0.6);
  opacity: 0.35;
  z-index: 1;
  pointer-events: none;
}

/* Radial gradient overlays and grid lines */
.inner-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    radial-gradient(circle at 100% 0%, rgba(59, 114, 200, 0.4) 0%, transparent 60%),
    radial-gradient(circle at 0% 100%, rgba(20, 61, 141, 0.5) 0%, transparent 60%),
    url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPgo8cmVjdCB3aWR0aD0iNCIgaGVpZ2h0PSI0IiBmaWxsPSIjZmZmIiBmaWxsLW9wYWNpdHk9IjAuMDMiLz4KPC9zdmc+');
  pointer-events: none;
  z-index: 2;
}

.inner-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.inner-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
}

.inner-breadcrumb a {
  color: var(--color-white);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.inner-breadcrumb a:hover {
  color: var(--color-brand-light);
}

.inner-breadcrumb span.separator {
  color: rgba(255, 255, 255, 0.3);
}

.inner-hero__title {
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.inner-hero__accent {
  width: 60px;
  height: 4px;
  background: var(--color-brand-light);
  margin-top: 32px;
  border-radius: 2px;
}

/* ── Layout ───────────────────────────────────────────────────── */
.inner-layout {
  max-width: 1200px;
  margin: 0 auto;
  /* Add padding to the left to avoid the "Sizi Arayalım" button overlapping on large screens */
  /* Sizi Arayalım takes ~48px, so we give 100px left padding */
  padding: 80px 48px 120px 100px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  align-items: start;
}

/* ── Sidebar (Premium Typographic Menu) ───────────────────────── */
.inner-sidebar {
  position: sticky;
  top: 140px; /* offset for sticky header */
}

.inner-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 24px; /* Space for the tracking line */
  border-left: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inner-sidebar__link {
  display: flex;
  align-items: center;
  padding: 8px 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  transition: all var(--transition-base);
  position: relative;
}

.inner-sidebar__link::before {
  content: '';
  position: absolute;
  left: -25px; /* aligns with the border-left of the ul */
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 0;
  background: var(--color-brand-primary);
  transition: height var(--transition-base) ease-out;
}

.inner-sidebar__link:hover {
  color: var(--color-brand-primary);
}

.inner-sidebar__link.is-active {
  color: var(--color-brand-primary);
  font-weight: 700;
}

.inner-sidebar__link.is-active::before {
  height: 100%;
}

/* ── Content Area (Premium Typography) ────────────────────────── */
.inner-content {
  min-height: 500px;
}

.inner-tab-content {
  display: none;
  opacity: 0;
}

/* Staggered entry animation */
.inner-tab-content.is-active {
  display: block;
  animation: contentFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.inner-content__title {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-brand-darker);
  margin-top: 0;
  margin-bottom: 40px;
  letter-spacing: -0.02em;
}

.inner-content__body p {
  font-size: 1.15rem;
  line-height: 1.9;
  color: #475569;
  margin-bottom: 2rem;
}

/* Lead paragraph style instead of drop cap */
.inner-content__body > p:first-of-type {
  font-size: 1.25rem;
  color: var(--color-brand-dark);
  font-weight: 500;
}

.inner-content__body h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-brand-dark);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

/* Elegant blockquote for Vision/Mission */
.inner-content__body blockquote {
  margin: 2.5rem 0;
  padding: 2rem 3rem;
  background: #f8fafc;
  border-left: 4px solid var(--color-brand-light);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--color-brand-darker);
  font-style: italic;
  position: relative;
}

.inner-content__body blockquote::before {
  content: '“';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 5rem;
  color: rgba(59, 114, 200, 0.1);
  font-family: serif;
  line-height: 1;
}

/* Document Lists */
.inner-content__body ul.document-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.inner-content__body ul.document-list a {
  display: flex;
  align-items: center;
  padding: 24px 32px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  color: var(--color-brand-dark);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  transition: all var(--transition-base);
}

.inner-content__body ul.document-list a:hover {
  border-color: var(--color-brand-light);
  box-shadow: 0 8px 24px rgba(59, 114, 200, 0.08);
  transform: translateY(-2px);
}

.inner-content__body ul.document-list a::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 16px;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjM0I3MkM4IiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PHBhdGggZD0iTTE0IDJIMmE0 ٤gMCAwIDAtNCA0djEyYTQgNCAwIDAgMCA0IDRoMTZhNCA0IDAgMCAwIDQtNFY4em0tNCAwdiA4bTEwIDBMMTQgOHoiLz48L3N2Zz4=');
  background-size: contain;
  background-repeat: no-repeat;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .inner-layout {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 64px 32px 80px 80px; /* Keep left padding for side CTA */
  }

  .inner-sidebar {
    position: static;
  }

  .inner-sidebar__list {
    border-left: none;
    padding-left: 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }

  .inner-sidebar__link {
    padding: 12px 20px;
    background: #f8fafc;
    border-radius: 30px;
    font-size: 0.95rem;
  }

  .inner-sidebar__link::before {
    display: none;
  }

  .inner-sidebar__link.is-active {
    background: var(--color-brand-primary);
    color: var(--color-white);
  }
}

@media (max-width: 576px) {
  .inner-layout {
    padding: 40px 24px 60px 24px; /* On mobile, CTA might be hidden or smaller */
  }
  
  .inner-content__title {
    font-size: 2rem;
  }

  .inner-content__body p {
    font-size: 1.05rem;
  }
}

/* Lists within inner content */
.inner-content__body ul {
  list-style-type: none;
  padding-left: 1rem;
  margin-bottom: 2.5rem;
}
.inner-content__body ul li {
  position: relative;
  font-size: 1.15rem;
  line-height: 1.8;
  color: #475569;
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
}
.inner-content__body ul li::before {
  content: "•";
  color: var(--color-brand-primary);
  font-weight: bold;
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: -2px;
}

/* CSR Grid */
.csr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.csr-card {
  background: #f8fafc;
  padding: 3rem 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}
.csr-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  border-color: var(--color-brand-light);
}
.csr-card i {
  font-size: 3.5rem;
  color: var(--color-brand-primary);
  margin-bottom: 1.5rem;
  display: inline-block;
}
.csr-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-brand-dark);
  margin: 0;
}

/* --- Certificate Grid --- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.cert-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--color-brand-light);
}

.cert-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform 0.5s ease;
}

.cert-card:hover .cert-card__image img {
  transform: scale(1.05);
}

.cert-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 38, 77, 0.6); /* Brand primary with opacity */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cert-card:hover .cert-card__overlay {
  opacity: 1;
}

.cert-card__overlay i {
  color: #ffffff;
  font-size: 3rem;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.cert-card:hover .cert-card__overlay i {
  transform: translateY(0);
}

.cert-card__body {
  padding: 1.5rem;
  text-align: center;
  border-top: 1px solid #f1f5f9;
}

.cert-card__body h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-brand-dark);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- CSR Sub-tabs Navigation --- */
.csr-tabs-nav {
  display: flex;
  gap: 1.5rem;
  margin: 2.5rem 0 3rem 0;
  justify-content: center;
  flex-wrap: wrap;
}

.csr-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.csr-tab-btn:hover {
  color: var(--color-brand-primary);
  background: #fff;
  border-color: var(--color-brand-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}

.csr-tab-btn.is-active {
  color: #fff;
  background: var(--color-brand-primary);
  border-color: var(--color-brand-primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.csr-tab-btn i {
  font-size: 1.4rem;
}

/* --- CSR Content Panes --- */
.csr-panes-wrapper {
  position: relative;
}

.csr-pane {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.csr-pane.is-active {
  display: block;
}

.csr-pane-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

/* --- CSR Project Card --- */
.csr-project-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: all 0.3s ease;
}

.csr-project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--color-brand-light);
}

.csr-project-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f8fafc;
}

.csr-project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.csr-project-card:hover .csr-project-card__image img {
  transform: scale(1.05);
}

.csr-project-card__overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(14, 38, 77, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.csr-project-card:hover .csr-project-card__overlay {
  opacity: 1;
}

.csr-project-card__overlay i {
  color: #ffffff;
  font-size: 2.5rem;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.csr-project-card:hover .csr-project-card__overlay i {
  transform: translateY(0);
}

.csr-project-card__body {
  padding: 1.5rem;
  border-top: 1px solid #f1f5f9;
}

.csr-project-card__body h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-brand-dark);
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

.csr-project-card__body p {
  font-size: 0.95rem;
  color: #64748b;
  margin: 0;
}
