/* General Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #ffffff;
    font-size: 14px; 
}

.header-section {
    background-image: url('../../images/slide1.jpg'); /* Arka plan resmi */
    background-size: cover; /* Resmi tamamen kaplar */
    background-position: center; /* Resmi ortalar */
    background-repeat: no-repeat; /* Resmin tekrar etmesini engeller */
    background-color: #333338; /* Yedek arka plan rengi */
    padding: 20px 0;
    position: relative;
    top: 0;
    width: 100%;
    z-index: 10;
    display: flex;
    justify-content: center;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    padding: 20px 40px;
    border-radius: 50px;
    margin: 20px auto;
    width: 85%;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2), inset 0px 0px 10px rgba(0, 0, 0, 0.5);
}

.header-section .logo {
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
}

.header-section .logo img {
    width: 120px;
    height: auto;
    border-radius: 50%;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.nav-links li {
    margin-left: 30px;
    position: relative;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #ffae00;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobil İçin Düzenlemeler */
@media screen and (max-width: 768px) {
  
    /* Header */
    .header-section {
        position: relative;
        padding: 60px 0;
    }

    .header {
        background-color: transparent;
        box-shadow: none;
        padding: 0;
        margin: 0;
        border-radius: 0;
    }
    
    .header-section .logo {
        position: absolute;
        left: 50%;
        top: 45px;
        transform: translateX(-50%);
        z-index: 2;
    }

    .header-section .logo img {
        width: 130px;
        height: auto;
        border-radius: 50%;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
    }

    .nav-links li {
        margin-left: 0;
        margin-bottom: 10px;
    }
}

/* Footer Genel Ayarları */
.footer {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #123456, #091e42);
    color: #ffffff;
    padding: 20px 0;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    position: relative;
}

/* Footer container */
.footer-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Footer logo */
.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 20px;
}

.footer-logo img {
    width: 110px;
    margin-bottom: 5px;
    transition: transform 0.3s ease;
}

/* Footer Links */
.footer-links,
.footer-contact {
    flex: 1;
    text-align: center;
}

.footer-links h3,
.footer-contact h3 {
    margin-bottom: 5px;
    font-size: 13px;
    text-transform: uppercase;
    color: #ffab00;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li,
.footer-contact ul li {
    margin: 4px 0;
}

.footer-links ul li a,
.footer-contact ul li a {
    color: #f0f4f8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover,
.footer-contact ul li a:hover {
    color: #ffab00;
}

/* Footer alt kısmı */
.footer-bottom {
    padding-top: 20px;
    font-size: 12px;
    text-align: center;
    width: 100%;
}

/* Mobil görünüm ayarları */
@media screen and (max-width: 768px) {
    .footer-container {
        flex-direction: column;
    }
    .footer-links, .footer-contact {
        text-align: center;
    }
}

/* WhatsApp ve Mail Sabit İkonları */
.whatsapp-icon,
.mail-icon {
    position: fixed;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #ffffff;
    animation: pulse 1.5s infinite;
    right: 20px;
}

.whatsapp-icon {
    bottom: 40px;
}

.mail-icon {
    bottom: 120px;
}

.whatsapp-icon img,
.mail-icon img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0%;
    border-radius: 50%;
}

.whatsapp-icon:hover,
.mail-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

/* Mobil görünüm için medya sorgusu */
@media screen and (max-width: 768px) {
    .whatsapp-icon,
    .mail-icon {
        width: 55px;
        height: 55px;
    }
    .mail-icon {
        bottom: 100px;
    }
    .whatsapp-icon {
        bottom: 30px;
    }
}

/* Mobil İçin Düzenlemeler */
@media screen and (max-width: 768px) {

    /* Hamburger Menu */
    .hamburger {
        position: absolute;
        right: 60px;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        width: 35px;
        height: 30px;
        cursor: pointer;
        z-index: 200;
        transition: transform 0.3s ease;
    }

    .hamburger .bar {
        width: 100%;
        height: 2px;
        background-color: #ffffff;
        transition: all 0.3s ease;
        border-radius: 2px;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
        background-color: #fff;
        width: 30px;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
        background-color: #fff;
        width: 30px;
    }

    /* Sağdan Kaydırmalı Mobil Menü */
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 50%;
        height: 100vh;
        background-color: rgba(51, 51, 51, 0.9);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.3s ease, background-color 0.3s ease;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
        z-index: 150;
        text-align: left;
    }

    .nav-links.active {
        left: 0;
        background-color: rgba(51, 51, 51, 0.9);
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links a {
        color: #ffffff;
        font-size: 12px;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .nav-links a:hover {
        color: #fcd00c;
    }

    body.nav-open {
        overflow: hidden;
    }
}

/* Overlay ayarları */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 100;
    display: none;
}

#overlay.active {
    display: block;
}

/* Tablet ekranlar için düzenlemeler (768px - 1024px) */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .header-section {
        padding: 30px 0;
    }

    .header {
        padding: 15px 30px;
        margin: 15px auto;
        width: 90%;
        box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.2), inset 0px 0px 8px rgba(0, 0, 0, 0.4);
    }

    .header-section .logo {
        left: 5%;
        top: 50%;
        transform: translateY(-50%);
    }

    .header-section .logo img {
        width: 100px;
    }

    .nav-links {
        justify-content: flex-end;
        flex: 1;
    }

    .nav-links li {
        margin-left: 10px;
    }

    .nav-links a {
        font-size: 14px;
        padding-bottom: 3px;
    }

    .nav-links a::after {
        height: 2px;
    }

    .hamburger {
        right: 50px;
        top: 50%;
        transform: translateY(-50%);
    }

    #overlay {
        background-color: rgba(0, 0, 0, 0.5);
    }
}

/* Buradan sonraya yeni sayfa kodlarını ekle */

/* ERASMUS+ PROJECTS – LIGHT THEME (FULL UPDATED) */

.erasmus-section.light {
  padding: 80px 10%;
  background: radial-gradient(circle at top left, #f4f7ff 0%, #ffffff 45%, #f9fafb 100%);
  color: #111827;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* HEADINGS & TEXT */

.erasmus-section.light h1,
.erasmus-section.light h2,
.erasmus-section.light h3 {
  letter-spacing: 0.04em;
}

.erasmus-intro {
  max-width: 900px;
  margin: 0 auto 60px auto;
  text-align: center;
}

.erasmus-intro h1 {
  font-size: 2.5rem;
  margin-bottom: 18px;
  text-transform: uppercase;
  color: #111827;
}

.erasmus-intro p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 8px;
  color: #4b5563;
}

/* PARTICIPATION CONDITIONS */

.erasmus-conditions {
  max-width: 1000px;
  margin: 0 auto 70px auto;
  background: #ffffff;
  border-radius: 24px;
  padding: 28px 26px 26px 26px;
  box-shadow: 0 18px 60px rgba(148, 163, 184, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.erasmus-conditions h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #111827;
}

.conditions-intro {
  margin-bottom: 18px;
  color: #4b5563;
  font-size: 0.98rem;
}

.conditions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.condition-card {
  background: #f9fafb;
  border-radius: 18px;
  padding: 18px 16px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: 0 10px 35px rgba(209, 213, 219, 0.55);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.condition-icon {
  font-size: 1.6rem;
}

.condition-card h3 {
  font-size: 1.05rem;
  margin-top: 4px;
  margin-bottom: 2px;
  color: #111827;
}

.condition-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #4b5563;
}

.conditions-note {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #4b5563;
  margin-top: 4px;
}

/* PROJECT GROUPS */

.erasmus-projects-group {
  margin-top: 60px;
}

.erasmus-projects-header {
  max-width: 900px;
  margin: 0 auto 26px auto;
  text-align: center;
}

.erasmus-projects-header h2 {
  font-size: 1.9rem;
  margin-bottom: 8px;
  color: #111827;
}

.erasmus-projects-header p {
  color: #6b7280;
  font-size: 0.98rem;
}

/* CARDS GRID */

.erasmus-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

/* PROJECT CARD */

.erasmus-card {
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: 0 16px 50px rgba(148, 163, 184, 0.55);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.erasmus-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(148, 163, 184, 0.8);
  border-color: #2563eb;
}

/* KARE RESİM ALANI */
.erasmus-card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e5e7eb;
}

.erasmus-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* BUTTONS */

.erasmus-card-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 16px 16px;
}

.btn-erasmus {
  flex: 1;
  text-align: center;
  padding: 9px 10px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.1s ease, border-color 0.18s ease;
}

.btn-erasmus.primary {
  background: linear-gradient(135deg, #028008, #028008);
  color: #f9fafb;
  box-shadow: 0 12px 28px rgba(196, 197, 197, 0.45);
}

.btn-erasmus.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(4, 112, 31, 0.65);
}

.btn-erasmus.secondary {
  background: #ffffff;
  color: #1f2937;
  border-color: rgba(209, 213, 219, 1);
}

.btn-erasmus.secondary:hover {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1d4ed8;
}

/* RESPONSIVE */

@media (max-width: 1024px) {
  .erasmus-section.light {
    padding: 60px 6%;
  }

  .erasmus-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .conditions-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .erasmus-section.light {
    padding: 50px 5%;
  }

  .erasmus-intro h1 {
    font-size: 2.1rem;
  }

  .erasmus-cards-grid {
    grid-template-columns: 1fr;
  }

  .erasmus-conditions {
    padding: 22px 18px;
  }
}

/* ============================= */
/*      PAST PROJECTS – DARK     */
/* ============================= */

/* ============================= */
/*      PAST PROJECTS – DARK     */
/* ============================= */

.erasmus-past-wrapper {
  margin-top: 70px;
  padding: 50px 8% 70px 8%;
  border-radius: 28px;
  background: radial-gradient(circle at top, #020617 0%, #020617 40%, #020617 100%);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
}

.erasmus-past-header {
  max-width: 900px;
  margin: 0 auto 30px auto;
  text-align: center;
}

.erasmus-past-header h2 {
  font-size: 1.9rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #e5e7eb;
}

.erasmus-past-header p {
  font-size: 0.95rem;
  color: #9ca3af;
}

/* GRID: MASAÜSTÜNDE YANYANA, MOBİLDE 2'ŞERLİ */

.erasmus-past-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;   /* biraz daha boşluk */
}

/* KARTLAR — BÜYÜTÜLMÜŞ HALİ */

.erasmus-past-card {
  background: #020617;
  border-radius: 20px;
  border: 1px solid #1f2937;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.95);
  max-width: 300px;        /* 260 → 300: daha büyük kart */
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

/* KARE RESİM ALANI — büyük karta uyumlu */

.erasmus-past-image {
  width: 100%;
  aspect-ratio: 1 / 1;   /* kare */
  overflow: hidden;
  background: #111827;
}

.erasmus-past-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* MAVİ TEMA BUTON */

.erasmus-past-buttons {
  padding: 12px 14px 16px 14px;
  display: flex;
  justify-content: center;
}

.btn-erasmus.past-announcement {
  flex: 0 0 auto;
  min-width: 130px;          /* daha geniş */
  font-size: 0.88rem;        /* biraz büyük yazı */
  padding: 8px 14px;
  background: transparent;
  color: #bfdbfe;
  border: 1px solid #2563eb;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.45);
  transition: 0.2s ease;
}

.btn-erasmus.past-announcement:hover {
  background: #3b82f6;
  color: #0b1120;
  box-shadow: 0 12px 36px rgba(59, 130, 246, 0.7);
  transform: translateY(-2px);
}

/* RESPONSIVE */

/* Daha küçük laptop & tablet */
@media (max-width: 1200px) {
  .erasmus-past-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Mobil - ikili düzen */
@media (max-width: 768px) {
  .erasmus-past-wrapper {
    padding: 40px 6% 50px 6%;
  }

  .erasmus-past-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .erasmus-past-card {
    max-width: 230px;   /* 200 → 230: mobilde daha büyük */
  }
}

/* Çok küçük ekranlar */
@media (max-width: 480px) {
  .erasmus-past-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* ERASMUS VIDEO BLOCK */

/* 🔹 ERASMUS VIDEO BLOCK */
.erasmus-video-block{
  width: min(1100px, 92%);
  margin: 0 auto;
  padding: 40px 0;
}

.erasmus-video-block h2{
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.2;
  margin: 0 0 12px;
}

.erasmus-video-block p{
  max-width: 900px;
  margin: 0 0 22px;
  line-height: 1.7;
  opacity: 0.9;
}

/* Wrapper: 2 video (YouTube + local) */
.erasmus-video-wrapper{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

/* Responsive iframe container feel */
.erasmus-video-wrapper iframe{
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
}

/* Local video styling */
.erasmus-local-video{
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  display: block;
}

/* Mobile */
@media (max-width: 900px){
  .erasmus-video-wrapper{
    grid-template-columns: 1fr;
  }
  .erasmus-video-block{
    padding: 28px 0;
  }
}
