:root {
    --primary: #28235b;
    --secondary: #354F8E;
    --light: #EFF5F9;
    --dark: #1D2A4D;
}

.btn {
    font-weight: 700;
    transition: .5s;
}

.btn:hover {
    -webkit-box-shadow: 0 8px 6px -6px #555555;
    -moz-box-shadow: 0 8px 6px -6px #555555;
    box-shadow: 0 8px 6px -6px #555555;
}

.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 0;
    border-radius: 50% 50% 0 0;
    z-index: 99;
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Jost', sans-serif;
    position: relative;
    margin-left: 30px;
    padding: 30px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    outline: none;
    transition: .5s;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (min-width: 992px) {
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 5px;
        bottom: 0;
        left: 50%;
        background: var(--primary);
        transition: .5s;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        margin-left: 0;
        padding: 10px 0;
    }
}

.hero-header {
    background: url("../img/hero.52a4e846eadc.jpg") top right no-repeat;
    background-size: cover;
}

.service-item {
    position: relative;
    height: 350px;
    padding: 0 30px;
    transition: .5s;
}

.service-item .service-icon {
    width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 50%;
    transform: rotate(-14deg);
}

.service-item .service-icon i {
    transform: rotate(15deg);
}

.service-item a.btn {
    position: absolute;
    width: 60px;
    bottom: -48px;
    left: 50%;
    margin-left: -30px;
    opacity: 0;
}

.service-item:hover a.btn {
    bottom: -24px;
    opacity: 1;
}

.price-carousel::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 50%;
    bottom: 0;
    left: 0;
    background: var(--primary);
    border-radius: 8px 8px 50% 50%;
    z-index: -1;
}

.price-carousel .owl-nav {
    margin-top: 35px;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
}

.price-carousel .owl-nav .owl-prev,
.price-carousel .owl-nav .owl-next{
    position: relative;
    margin: 0 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: #FFFFFF;
    font-size: 22px;
    border-radius: 45px;
    transition: .5s;
}

.price-carousel .owl-nav .owl-prev:hover,
.price-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}

@media (min-width: 576px) {
    .team-item .row {
        height: 350px;
    }
}

.team-carousel .owl-nav {
    position: absolute;
    padding: 0 45px;
    width: 100%;
    height: 45px;
    top: calc(50% - 22.5px);
    left: 0;
    display: flex;
    justify-content: space-between;
}

.team-carousel .owl-nav .owl-prev,
.team-carousel .owl-nav .owl-next {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.team-carousel .owl-nav .owl-prev:hover,
.team-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
}

.testimonial-carousel .owl-dots {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 20px;
    height: 20px;
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 20px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 40px;
    height: 40px;
    background: var(--primary);
}

.testimonial-carousel .owl-item img {
    width: 150px;
    height: 150px;
}

/* === FIXED SIZE BLOG CARDS === */
.post-card {
  height: 480px;                
  display: flex;
  flex-direction: column;
}

.post-card-img {
  height: 220px;                 
  width: 100%;
  object-fit: cover;             
  object-position: center;
  display: block;
}

.post-card-body {
  flex: 1;
  overflow: hidden;             
}

.post-card-meta {
  margin-top: auto;
}


.post-card-title {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;

  line-clamp: 2;
  box-orient: vertical;

  overflow: hidden;

  overflow-wrap: anywhere;
  word-break: break-word;

  
  line-height: 1.25;
  max-height: calc(1.25em * 2); 
}


.post-card-excerpt {
  overflow: hidden;
  line-height: 1.5;
  /* Standard */
  line-clamp: 2;
  box-orient: vertical;

  /* WebKit */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
    
  overflow-wrap: anywhere;  
  word-break: break-word;  
}


.post-detail-title,
.post-detail-summary,
.post-detail-content {
  overflow-wrap: anywhere;
  word-break: break-word;
}


.post-detail-content p,
.post-detail-content li,
.post-detail-content a,
.post-detail-content span {
  overflow-wrap: anywhere;
  word-break: break-word;
}


.post-detail-content a {
  word-break: break-all; 
}

.post-detail-title,
.post-detail-summary,
.post-detail-content {
  white-space: normal;
}

.post-detail-title {
  white-space: normal !important;    
  overflow-wrap: anywhere !important;  
  word-break: break-all;   
  max-width: 100%;
  display: block;
}

.recent-post-img {
  flex-shrink: 0;
}

.recent-post-item {
  height: 100px; 
}

.recent-post-img {
  flex-shrink: 0;
}

.recent-post-title {
  flex: 1;
  min-width: 0;                
  width: 0;                   

  display: block !important;             
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;     

  overflow-wrap: normal;
  word-break: normal;


  line-height: 1.2;
  padding-top: 2.50rem;
  padding-bottom: 0.75rem;
}

/* === POST DETAIL MAIN IMAGE CONTROL === */
.post-detail-image-wrapper {
  width: 100%;
  min-height: 300px;      /* küçükse en az bu kadar büyür */
  max-height: 900px;      /* büyükse bunu geçmez */

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
  border-radius: 8px;
}

.post-detail-image {
  max-width: 100%;
  max-height: 100%;

  width: auto;
  height: auto;

  object-fit: cover;   
}

@media (max-width: 576px) {
  .post-detail-image-wrapper {
    min-height: 200px;
    max-height: 360px;
  }
}

.skeleton {
  position: relative;
  background: #e9ecef;
  overflow: hidden;
}

.skeleton::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 150%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  0% { left: -150%; }
  100% { left: 150%; }
}

/* === Blur-up image transition === */
.blur-up {
  filter: blur(14px);
  transform: scale(1.02);
  transition: filter .35s ease, transform .35s ease, opacity .2s ease;
  opacity: 0; 
}

.post-detail-image {
  opacity: 1;
}

.post-detail-image-wrapper img {
  opacity: 1;
}
.gallery-thumb{
  height: 100px;
  object-fit: cover;
  cursor: pointer;
}
@media (max-width: 576px){
  .gallery-thumb{ height: 140px; }
}

/* ===== Birkent Gallery Thumbnails ===== */
.bk-thumb-wrap {
  aspect-ratio: 4 / 3;  
  width: 100%;
}

.bk-thumb-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;     
  object-position: center;
  cursor: pointer;
  transition: transform .2s ease;
}

.bk-thumb-wrap:hover .bk-thumb-img {
  transform: scale(1.02);
}


.bk-modal-img {
  max-height: 75vh;       
  object-fit: contain;    
  background: #000;       
}

.bk-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 34px;
  line-height: 46px;
  text-align: center;
  cursor: pointer;
  z-index: 10;
  user-select: none;
}

.bk-prev { left: 10px; }
.bk-next { right: 10px; }

.bk-nav-btn:hover {
  background: rgba(0,0,0,0.75);
}

.bk-thumb-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #EFF5F9;
  border-radius: 14px;
}

.bk-thumb-wrap img.bk-thumb-img {
  width: 100% !important;
  height: 100% !important;
  display: block;
  object-fit: cover !important;
  object-position: center;
  cursor: pointer;
}


.bk-thumb-wrap:hover img.bk-thumb-img {
  transform: scale(1.02);
  transition: transform .2s ease;
}

.bk-nav-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 34px;
  line-height: 46px;
  text-align: center;
  cursor: pointer;
  z-index: 9999;          
  pointer-events: auto;   
}

.bk-prev { left: 10px; }
.bk-next { right: 10px; }

.bk-modal-img{
  position: relative;
  z-index: 1;
}



.bk-ad-wrap{
  width: 100%;
  aspect-ratio: 16 / 4; 
  overflow: hidden;
  background: #EFF5F9;
}

.bk-ad-wrap .bk-ad-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}


.bk-school-banner{
  width: 100%;
  aspect-ratio: 16 / 6;      
  overflow: hidden;
  border-radius: 16px;
  background: #EFF5F9;
}

.bk-school-banner img{
  width: 100%;
  height: 100%;
  object-fit: cover;         
  object-position: center;
  display: block;
}

.bk-school-text,
.bk-school-text p,
.bk-school-text li {
  text-align: justify !important;
  text-justify: inter-word;
}


.bk-exam-form input::placeholder,
.bk-exam-form textarea::placeholder {
  color: rgba(78, 78, 78, 0.75) !important;
  opacity: 1 !important;
}

/* Exams form polish */
.card.rounded-4 { border-radius: 1rem !important; }
.form-control-lg, .form-select-lg { border-radius: 0.8rem; }
.form-label { margin-bottom: 0.35rem; }

/* ===== Exam Popup Image Fix ===== */

.bk-popup-img {
    width: 100%;
    height: 100%;
    max-height: 70vh;      
    object-fit: contain;  
    object-position: center;
    background: #fff;
}

/* ================= POPUP REKLAM ================= */

#examPopupModal .modal-dialog {
    max-width: 520px;
}

.bk-popup-content {
    background: transparent;
    border: none;
    position: relative;
}

.bk-popup-img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    margin: auto;
    background: transparent;
}

/* X kapatma */
.bk-popup-close {
    position: absolute;
    top: 1px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #00000000;
    color: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
}

/* Hover */
.bk-popup-close:hover {
    background: #000000;
}

/* backdrop blur */
.modal-backdrop.show {
    opacity: .7;
}


/* ================= EXAM HERO ================= */

.bk-exam-section {
    background: radial-gradient(circle at top,#5a5ceb,#09182e);
    padding:90px 0;
}

.bk-glow-sub {
    color:#fff;
    letter-spacing:3px;
    text-transform:uppercase;
}

.bk-glow-title {
    color:white;
    font-weight:800;
    text-shadow:0 0 15px rgba(255,255,255,.4);
}

.bk-exam-date {
    color:#eaf9ff;
    margin-bottom:25px;
}

.bk-exam-img {
    max-width:420px;
    width:100%;
    border-radius:18px;
    margin:20px auto;
    display:block;
    box-shadow:0 15px 40px rgba(0,0,0,.25);
}

.bk-exam-btn {
    display:inline-block;
    margin-top:25px;
    padding:16px 50px;
    font-size:20px;
    font-weight:700;
    color:white;
    background:linear-gradient(120deg,#ffcc00,#ff7b00,#ffcc00);
    background-size:200% auto;
    border-radius:50px;
    text-decoration:none;
    animation: shimmer 2s infinite linear;
}

@keyframes shimmer {
    0% {background-position:0%}
    100% {background-position:200%}
}

.bk-exam-btn:hover {
    transform:scale(1.05);
}

/* Mobile */

@media(max-width:768px){
    .bk-exam-img{max-width:90%}
}

footer {
    background: linear-gradient(180deg,#0c1e3c,#081426);
    color:#dbe4ff;
    padding-top:60px;
}

footer h4,
footer h5 {
    color:white;
    font-weight:700;
}

footer a {
    color:#c7d2ff;
    text-decoration:none;
}

footer a:hover {
    color:white;
}

footer p,
footer li {
    color:#b9c7ff;
    font-size:14px;
}

footer .btn-square {
    background:#0d6efd;
    border-radius:50%;
}

footer .btn-square:hover {
    background:white;
    color:#0d6efd;
}

.footer-bottom {
    background:#050d1c;
    color:#aab5ff;
    text-align:center;
    padding:12px;
    margin-top:40px;
}

.insta-embed-wrap iframe {
  width: 100% !important;
}

.insta-embed-wrap blockquote {
  margin: 0 !important;
}

.insta-embed-wrap .instagram-media {
  margin: 0 !important;
}

.insta-embed-wrap .instagram-media-rendered,
.insta-embed-wrap .instagram-media > div:last-child {
  overflow: hidden !important;
}

.insta-embed-wrap {
  position: relative;
  overflow: hidden;
}

.insta-embed-wrap .instagram-media {
  max-height: 520px; 
  overflow: hidden !important;
}


.bk-exam-page {
  --bk-card-bg: rgba(255, 255, 255, 0.92);
  --bk-border: rgba(15, 23, 42, 0.10);
  --bk-text: #0f172a;
  --bk-muted: rgba(15, 23, 42, 0.65);
  --bk-focus: rgba(59, 130, 246, 0.35);
}

.bk-exam-logo { height: 128px; width: auto; }

.bk-exam-title {
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--bk-text);
}

.bk-exam-date {
  color: var(--bk-muted);
  font-weight: 500;
}

/* Card */
.bk-exam-card {
  border: 1px solid var(--bk-border);
  border-radius: 22px;
  background: var(--bk-card-bg);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.bk-exam-card-body { padding: 28px; }
@media (min-width: 768px) {
  .bk-exam-card-body { padding: 42px; }
}

/* Fields */
.bk-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.80);
}

.bk-input,
.bk-select {
  width: 100%;
  height: 46px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.98);
  color: var(--bk-text);
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease, transform .05s ease;
}

.bk-input::placeholder { color: rgba(15, 23, 42, 0.35); }

.bk-input:focus,
.bk-select:focus {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 6px var(--bk-focus);
}

.bk-input:hover,
.bk-select:hover {
  border-color: rgba(15, 23, 42, 0.22);
}

/* KVKK */
.bk-kvkk {
  margin-top: 6px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(15, 23, 42, 0.02);
}

.bk-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: rgba(15, 23, 42, 0.72);
}

.bk-check input { margin-top: 4px; }

/* Errors */
.bk-err {
  margin-top: 8px;
  color: #b91c1c;
  font-size: 0.9rem;
}

/* Button */
.bk-btn {
  height: 50px;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #fff;
  background: linear-gradient(90deg, #ef4444, #dc2626);
  box-shadow: 0 14px 30px rgba(220, 38, 38, 0.25);
  transition: transform .08s ease, box-shadow .15s ease, filter .15s ease;
}

.bk-btn:hover { filter: brightness(1.03); box-shadow: 0 18px 40px rgba(220, 38, 38, 0.30); }
.bk-btn:active { transform: translateY(1px); }
.bk-btn:disabled { opacity: 0.65; cursor: not-allowed; box-shadow: none; }
