/* ==========================================================================
   Modern Layout, Full-Frame Hero & Motion Enhancements
   Preserves original colors, structure, and all site content untouched.
   ========================================================================== */

:root {
  --brand-plum: #350e4d;
  --brand-violet: #761b86;
  --brand-amber: #ffa526;
  --brand-cyan: #2abfd4;
  --brand-sky: #46bbe7;
  --card-shadow: 0 14px 38px rgba(42, 16, 72, 0.08);
  --card-shadow-hover: 0 20px 46px rgba(42, 16, 72, 0.14);
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(180deg, #f3f0f8 0%, #eceaf2 100%) !important;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  overflow-x: hidden;
  padding-bottom: 56px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
p, li, td, th, a, div, input, button, select, textarea, label, strong, em,
span:not(.fa):not(.fas):not(.far):not(.fab):not(.fa-solid),
.navbar,
.navbar-default .navbar-nav > li > a,
.timer_box,
.timer_box h1,
.timer_box p,
.duyurubaslik2,
.tarih,
.btnyazi,
.minibaslik,
.looktext,
.vticker,
.role-card,
.ribbon,
.name,
.bultenbg,
.RadiusContTable *,
[style*="DINPro"] {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Wider modern container proportions while keeping Bootstrap grid behavior */
@media (min-width: 1200px) {
  .container {
    width: 1180px;
    max-width: 94vw;
  }
}

@media (min-width: 1380px) {
  .container {
    width: 1320px;
    max-width: 94vw;
  }
}

@media (min-width: 1620px) {
  .container {
    width: 1460px;
    max-width: 92vw;
  }
}

/* ==========================================================================
   Header, Countdown & Navigation
   ========================================================================== */
.headerbg {
  background: linear-gradient(180deg, #ece8f3 0%, #ffffff 78%) !important;
  border-top: 5px solid transparent !important;
  border-image: linear-gradient(90deg, #ffa526, #e668a7, #761b86, #2abfd4, #ffa526) 1 !important;
  box-shadow: 0 4px 20px rgba(34, 14, 58, 0.06);
  position: relative;
  z-index: 20;
}

.headerbg hr {
  border-top: 1px solid rgba(118, 27, 134, 0.14) !important;
}

#timer {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 4px 0;
}

.timer_box {
  position: relative;
  min-width: 74px;
  width: auto !important;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(118, 27, 134, 0.12);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(53, 14, 77, 0.06);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.timer_box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(118, 27, 134, 0.14);
}

.timer_box h1 {
  margin-top: 2px !important;
  margin-left: 0 !important;
  line-height: 1.1;
}

.timer_box p,
.timer_box .gun,
.timer_box .saat,
.timer_box .dakika,
.timer_box .saniye {
  position: static !important;
  margin: 2px 0 0 !important;
  font-size: 10px !important;
  letter-spacing: 0.6px;
  font-weight: 700;
  color: #666;
}

/* Social icon micro-interactions */
.headerbg a i.fab {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, filter 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.headerbg a:hover i.fab {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 20px rgba(118, 27, 134, 0.28);
  filter: brightness(1.08);
}

/* Navbar links */
.navbar-default .navbar-nav > li > a {
  position: relative;
  padding: 15px 18px !important;
  color: #261638 !important;
  font-weight: 500 !important;
  font-size: 16px !important;
  letter-spacing: 0.1px;
  transition: color 0.25s ease, transform 0.25s ease;
}

@media (max-width: 1199px) and (min-width: 992px) {
  .navbar-default .navbar-nav > li > a {
    font-size: 15px !important;
    padding: 14px 12px !important;
  }
}

@media (max-width: 991px) and (min-width: 768px) {
  .navbar-default .navbar-nav > li > a {
    font-size: 13px !important;
    padding: 12px 9px !important;
  }
}

.navbar-default .navbar-nav > li > a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 6px;
  height: 2.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ffa526, #761b86);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.navbar-default .navbar-nav > li > a:hover::after,
.navbar-default .navbar-nav > li > a:focus::after,
.navbar-default .navbar-nav > li.modern-nav-active > a::after {
  transform: scaleX(1);
}

.navbar-default .navbar-nav > li.modern-nav-active > a {
  color: #6b147a !important;
  font-weight: 600 !important;
  background: transparent !important;
}

.navbar-nav > li > .dropdown-menu {
  border: 1px solid rgba(118, 27, 134, 0.12);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(34, 14, 58, 0.14);
  padding: 6px;
  animation: dropdownFadeIn 0.22s ease-out;
}

.navbar-nav > li > .dropdown-menu > li > a {
  border-radius: 8px;
  padding: 8px 14px;
  transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.navbar-nav > li > .dropdown-menu > li > a:hover {
  background-color: #f4ecf9;
  color: #350e4d;
  padding-left: 18px;
}

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

/* ==========================================================================
   Full-Frame Uncropped Hero (.sliderbg) + Mystical Live Canvas
   ========================================================================== */
.sliderbg {
  position: relative !important;
  width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #170829 !important;
  background-image: none !important;
  overflow: hidden;
  border-bottom: 6px solid #761b86;
}

.sliderbg::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(90deg, #761b86, #e668a7, #2abfd4, #ffa526, #761b86);
  background-size: 220% 100%;
  animation: mysticBorderFlow 9s linear infinite;
}

@keyframes mysticBorderFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}

.hero-bg-img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  animation: heroSubtlePulse 14s ease-in-out infinite alternate;
}

@keyframes heroSubtlePulse {
  0% { filter: brightness(0.98) saturate(1.02); }
  50% { filter: brightness(1.04) saturate(1.1); }
  100% { filter: brightness(1) saturate(1.05); }
}

.hero-mystic-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  display: block;
}

.hero-content-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.hero-content-overlay .container {
  padding-top: 0;
  padding-bottom: 0;
}

.hero-logo-link {
  position: relative;
  display: inline-block;
  pointer-events: auto;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease;
}

.hero-logo-link::before {
  content: "";
  position: absolute;
  inset: -90px -120px;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 52% 52%,
    rgba(16, 5, 34, 0.46) 0%,
    rgba(16, 5, 34, 0.22) 38%,
    rgba(16, 5, 34, 0) 64%
  );
  filter: blur(40px);
}

.hero-logo-link:hover {
  transform: translateY(-3px) scale(1.02);
  filter: drop-shadow(0 10px 26px rgba(176, 114, 255, 0.38));
}

.hero-logo-img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(650px, 43vw) !important;
  height: auto;
  display: block;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  filter:
    drop-shadow(0 3px 10px rgba(8, 2, 22, 0.58))
    drop-shadow(0 10px 28px rgba(10, 3, 28, 0.42));
  animation: heroLogoReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes heroLogoReveal {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 991px) {
  .sliderbg {
    min-height: 0 !important;
    background-image: none !important;
  }
  .hero-logo-img {
    max-width: min(410px, 44vw) !important;
  }
}

@media (max-width: 767px) {
  .hero-content-overlay .container {
    width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .hero-content-overlay .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .hero-content-overlay .col-xs-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .hero-logo-img {
    max-width: min(215px, 41vw) !important;
  }
}

/* Compact hero height on subpages (?p != home): sized just to fit the logo cleanly */
body.is-subpage .hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
}

body.is-subpage .hero-content-overlay {
  position: relative;
  display: block;
  padding: 20px 0 48px;
}

body.is-subpage .hero-logo-img {
  max-width: min(500px, 42vw) !important;
}

body.is-subpage .btnbg .col-md-4 > a:first-child img {
  max-width: 96px !important;
  margin-top: -36px !important;
}

@media (max-width: 991px) {
  body.is-subpage .hero-content-overlay {
    padding: 16px 0 38px;
  }
  body.is-subpage .hero-logo-img {
    max-width: min(360px, 48vw) !important;
  }
  body.is-subpage .btnbg .col-md-4 > a:first-child img {
    max-width: 76px !important;
    margin-top: -28px !important;
  }
}

@media (max-width: 767px) {
  body.is-subpage .hero-content-overlay {
    padding: 14px 0 32px;
  }
  body.is-subpage .hero-logo-img {
    max-width: min(265px, 64vw) !important;
  }
  body.is-subpage .btnbg .col-md-4 > a:first-child img {
    max-width: 64px !important;
    margin-top: -24px !important;
  }
}

/* ==========================================================================
   3 Floating Action Buttons (.btnbg)
   ========================================================================== */
.btnbg {
  background: linear-gradient(180deg, #fbf9fe 0%, #f1edf7 100%) !important;
  background-image: linear-gradient(180deg, #fbf9fe 0%, #f1edf7 100%) !important;
  border-bottom: 5px solid #ffa526 !important;
  position: relative;
  z-index: 5;
  padding-bottom: 22px !important;
  box-shadow: 0 8px 24px rgba(53, 14, 77, 0.05);
}

.btnbg .col-md-4 {
  position: relative;
  z-index: 6;
}

.btnbg .col-md-4 > a:first-child img {
  margin-top: -64px !important;
  border-radius: 50%;
  box-shadow: 0 12px 26px rgba(34, 14, 58, 0.22);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.38s ease, filter 0.38s ease;
  animation: floatIcon 5s ease-in-out infinite;
}

.btnbg .col-md-4:nth-child(2) > a:first-child img {
  animation-delay: 0.7s;
}

.btnbg .col-md-4:nth-child(3) > a:first-child img {
  animation-delay: 1.4s;
}

.btnbg .col-md-4:hover > a:first-child img {
  animation-play-state: paused;
  transform: translateY(-6px) scale(1.11);
  box-shadow: 0 18px 36px rgba(118, 27, 134, 0.35);
  filter: brightness(1.06);
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

.btnyazi {
  margin-top: 10px;
  color: #2f1447;
  letter-spacing: 0.2px;
  transition: color 0.25s ease, transform 0.25s ease;
}

.btnbg .col-md-4:hover .btnyazi,
.btnbg a.hvr-grow:hover .btnyazi {
  color: #761b86;
  transform: translateY(-2px);
}

@media (max-width: 991px) {
  .btnbg > .container > .col-md-4.hidden-sm.hidden-xs {
    display: block !important;
    width: 33.3333% !important;
    float: left !important;
    padding: 0 6px !important;
  }
  .btnbg > .container > .hidden-lg.hidden-md {
    display: none !important;
  }
  .btnbg .col-md-4 > a:first-child img {
    max-width: 84px !important;
    margin-top: -42px !important;
  }
}

@media (max-width: 575px) {
  .btnbg {
    min-height: 0 !important;
    padding-bottom: 14px !important;
  }
  .btnbg .col-md-4 > a:first-child img {
    max-width: 66px !important;
    margin-top: -28px !important;
  }
  .btnbg .btnyazi {
    font-size: 12px !important;
    margin-top: 6px !important;
    margin-bottom: 4px !important;
    line-height: 1.25;
  }
}

/* ==========================================================================
   Homepage Sections: Welcome + Slider (.davetbg) & Announcements + Newsletter (.footerbg)
   ========================================================================== */
.davetbg {
  padding-top: 26px !important;
  padding-bottom: 30px !important;
}

.davetbg .col-md-6:first-child {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 18px;
  padding: 26px 32px !important;
  margin-top: 18px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(118, 27, 134, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.davetbg .col-md-6:first-child:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}

.davetbg h3,
.duyurubaslik2,
.icerik h3 {
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
}

.davetbg h3 i.fa-circle,
.duyurubaslik2 i.fa-circle,
.bultenbaslik i.fa-circle,
.icerik h3 i.fa-circle {
  animation: dotPulse 2.8s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 0.92; }
  50% { transform: scale(1.22); opacity: 1; }
}

.davetbg p {
  line-height: 1.75;
  color: #2c2836;
}

.davetbg .minibaslik a {
  display: inline-block;
  margin-top: 6px;
  padding: 9px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #350e4d 0%, #761b86 100%);
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(118, 27, 134, 0.25);
  transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
}

.davetbg .minibaslik a:hover {
  transform: translateY(-2px) translateX(2px);
  box-shadow: 0 12px 26px rgba(118, 27, 134, 0.36);
  filter: brightness(1.08);
}

.davetbg .fullwidthbanner-container {
  border-radius: 16px !important;
  padding: 8px !important;
  background: #fff !important;
  border: 1px solid rgba(118, 27, 134, 0.1) !important;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.davetbg .fullwidthbanner-container:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}

.davetbg .fullwidthbanner {
  border-radius: 11px;
}

/* Announcements & Newsletter */
.footerbg {
  padding-top: 10px;
  padding-bottom: 34px;
}

.onemlibg {
  background: rgba(255, 255, 255, 0.93) !important;
  border-radius: 18px;
  padding: 20px 26px !important;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(42, 191, 212, 0.18);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.onemlibg:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}

.vticker li {
  border-radius: 10px;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.vticker li:hover {
  background-color: rgba(42, 191, 212, 0.08);
  transform: translateX(4px);
}

.bultenbg {
  border-radius: 18px;
  padding: 22px 28px !important;
  box-shadow: 0 16px 38px rgba(0, 95, 136, 0.24);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.bultenbg:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 46px rgba(0, 95, 136, 0.3);
}

/* ==========================================================================
   Inner Content Pages (.icerik)
   ========================================================================== */
.icerik {
  padding-top: 28px;
  padding-bottom: 36px;
}

.icerik > .container {
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(8px);
  border-radius: 18px;
  padding: 30px 36px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(118, 27, 134, 0.08);
}

/* Avoid double-card styling when kayit.html nests .icerik > .container */
.icerik h3 + p[style*="26px"] {
  margin: 0 !important;
  line-height: 0 !important;
  font-size: 0 !important;
}

.icerik .icerik {
  background: transparent !important;
  background-image: none !important;
  padding: 0 !important;
  min-height: 0 !important;
}

.icerik .icerik > .container {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

.icerik p,
.icerik li {
  line-height: 1.72;
}

.icerik .table {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(34, 14, 58, 0.06);
  background: #fff;
}

.icerik .table tr {
  transition: background-color 0.2s ease;
}

.icerik .table tr:hover td {
  background-color: rgba(118, 27, 134, 0.035);
}

.role-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px 20px 22px;
  box-shadow: 0 10px 26px rgba(27, 36, 71, 0.1);
  border: 1px solid rgba(27, 36, 71, 0.08);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease;
}

.role-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(27, 36, 71, 0.16);
}

.mybtn {
  margin-top: 22px;
  background: linear-gradient(135deg, #2869ba 0%, #5b2896 100%) !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 28px rgba(40, 105, 186, 0.28);
  font-weight: 700;
  transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
}

.mybtn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 34px rgba(91, 40, 150, 0.36);
  filter: brightness(1.08);
}

/* Bottom copyright strip */
body > .container:last-of-type > div:first-child {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(118, 27, 134, 0.08);
  box-shadow: 0 6px 18px rgba(42, 16, 72, 0.05);
}

/* Scroll reveal utility */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive tweaks for smaller screens */
@media (max-width: 991px) {
  .sol {
    padding-right: 15px !important;
    padding-left: 15px !important;
  }
  .davetbg .col-md-6:first-child,
  .icerik > .container {
    padding: 20px 20px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-img,
  .hero-logo-img,
  .btnbg .col-md-4 > a:first-child img,
  .davetbg h3 i.fa-circle,
  .duyurubaslik2 i.fa-circle,
  .bultenbaslik i.fa-circle,
  .icerik h3 i.fa-circle,
  .sliderbg::after {
    animation: none !important;
  }
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
