/* ==========================================================================
   Cosmos Akademi - Modern Tasarım
   Stitch Design Sistemi
   ========================================================================== */

:root {
  --primary: #1976d2;
  --primary-dark: #0d47a1;
  --primary-light: #42a5f5;
  --primary-soft: #e3f2fd;
  --accent: #ff8c00;
  --accent-dark: #e87c00;
  --dark: #0a1929;
  --dark-secondary: #132f4c;
  --text: #2c3e50;
  --text-light: #5a6c7d;
  --text-muted: #8896a6;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --bg-section: #f0f4f9;
  --border: #e1e8f0;
  --success: #16a34a;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06);
  --shadow: 0 4px 14px rgba(15, 23, 42, .08);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, .12);
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --container: 1200px;
  --transition: all .25s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 28px; font-weight: 600; font-size: 15px;
  border-radius: 999px; border: none; cursor: pointer;
  transition: var(--transition); text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--primary-soft); }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-sm { padding: 8px 18px; font-size: 14px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 44px; width: auto; }
.logo-text { font-weight: 800; font-size: 18px; color: var(--dark); letter-spacing: -0.3px; }
.main-nav ul { display: flex; gap: 32px; list-style: none; }
.main-nav > ul > li > a { color: var(--text); font-weight: 500; font-size: 15px; }
.main-nav > ul > li > a:hover, .main-nav > ul > li > a.active { color: var(--primary); }
.main-nav .has-dropdown { position: relative; }
.main-nav .has-dropdown > a::after { content: ' ▾'; font-size: 10px; opacity: .65; margin-left: 2px; }
.main-nav .dropdown {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px);
  background: #fff; min-width: 240px; padding: 8px;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  z-index: 100; margin-top: 8px;
}
.main-nav .has-dropdown:hover .dropdown,
.main-nav .has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear 0s;
}
.main-nav .has-dropdown::before {
  content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 16px;
}
.main-nav .dropdown a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; color: var(--text);
}
.main-nav .dropdown a:hover {
  background: var(--primary-soft); color: var(--primary);
}
.main-nav .dropdown a i {
  width: 18px; color: var(--primary); font-size: 15px; flex-shrink: 0;
}
.main-nav .dropdown a small {
  display: block; font-size: 12px; color: var(--text-muted); font-weight: 400; margin-top: 2px;
}
.main-nav .dropdown a:hover small { color: var(--primary); opacity: .8; }
.main-nav .dropdown .dropdown-divider {
  height: 1px; background: var(--border); margin: 6px 8px;
}
.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; background: none; border: none; font-size: 28px; color: var(--dark); cursor: pointer; }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 560px;
  display: flex; align-items: center;
  background:
    linear-gradient(180deg, rgba(10,25,41,.55) 0%, rgba(10,25,41,.75) 100%),
    url('https://images.unsplash.com/photo-1562774053-701939374585?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  color: #fff; overflow: hidden;
}
.hero-content { max-width: 720px; padding: 80px 0; }
.hero-badge {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  font-size: 13px; font-weight: 600; margin-bottom: 20px; backdrop-filter: blur(6px);
}
.hero h1 {
  font-size: clamp(36px, 5vw, 56px); font-weight: 800; line-height: 1.1;
  margin-bottom: 18px; letter-spacing: -1.5px;
}
.hero h1 span { color: var(--primary-light); }
.hero p { font-size: 18px; opacity: .92; margin-bottom: 32px; max-width: 580px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Search Box ===== */
.search-card {
  position: relative; max-width: 1080px; margin: -50px auto 0;
  background: #fff; border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 14px; align-items: end;
}
.search-card label { display: block; font-size: 12px; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .5px; }
.search-card select, .search-card input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: 15px; color: var(--text);
  background: #fff; transition: var(--transition);
}
.search-card select:focus, .search-card input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-eyebrow { display: inline-block; font-size: 13px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.section-title { font-size: clamp(28px, 3.5vw, 40px); font-weight: 800; color: var(--dark); margin-bottom: 14px; letter-spacing: -1px; }
.section-subtitle { font-size: 17px; color: var(--text-light); }

/* ===== Destinations Grid ===== */
.destinations-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.destination-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  height: 240px; cursor: pointer; transition: var(--transition);
  box-shadow: var(--shadow);
}
.destination-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.destination-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.destination-card:hover img { transform: scale(1.08); }
.destination-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,25,41,.85) 100%);
}
.destination-card .card-content {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 20px;
  color: #fff; z-index: 2;
}
.destination-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.destination-card .count { font-size: 13px; opacity: .85; }

/* ===== Program Categories ===== */
.programs-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.program-card {
  background: #fff; border-radius: var(--radius-lg); padding: 28px;
  border: 1px solid var(--border); transition: var(--transition);
  text-align: center;
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.program-icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin: 0 auto 18px;
}
.program-card h3 { font-size: 19px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.program-card p { color: var(--text-light); font-size: 14px; margin-bottom: 16px; }
.program-card .count-tag {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary);
  font-size: 13px; font-weight: 600;
}

/* ===== Why Choose Us ===== */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.feature-card { padding: 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--border); }
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 18px;
}
.feature-card h3 { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.feature-card p { color: var(--text-light); font-size: 15px; }

/* ===== Universities Grid (Popular Universities) ===== */
.unis-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.uni-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  height: 280px; box-shadow: var(--shadow);
  transition: var(--transition); cursor: pointer;
}
.uni-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.uni-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.uni-card:hover img { transform: scale(1.06); }
.uni-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(13,71,161,.92) 100%);
}
.uni-card .info {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 22px;
  color: #fff; z-index: 2;
}
.uni-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.uni-card .meta { font-size: 14px; opacity: .9; }

/* ===== Testimonials ===== */
.testimonials-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.testimonial {
  background: #fff; border-radius: var(--radius-lg); padding: 24px;
  border: 1px solid var(--border); transition: var(--transition);
}
.testimonial:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.testimonial-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.testimonial-avatar {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--primary-soft);
}
.testimonial-name { font-weight: 700; color: var(--dark); font-size: 15px; }
.testimonial-meta { font-size: 13px; color: var(--text-muted); }
.testimonial-text { color: var(--text-light); font-size: 14px; line-height: 1.6; }
.stars { color: var(--accent); font-size: 14px; margin-bottom: 8px; }

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; padding: 64px 0; border-radius: var(--radius-xl);
  text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; right: -100px; top: -100px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.cta-section h2 { font-size: clamp(28px, 3.5vw, 36px); font-weight: 800; margin-bottom: 14px; }
.cta-section p { font-size: 17px; opacity: .92; margin-bottom: 28px; }

/* ===== Footer ===== */
.site-footer { background: var(--dark); color: #c5d0db; padding: 70px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 50px;
}
.footer-brand .logo-text { color: #fff; }
.footer-brand p { font-size: 14px; line-height: 1.7; margin-top: 16px; opacity: .8; }
.footer-col h4 { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #c5d0db; font-size: 14px; }
.footer-col a:hover { color: var(--primary-light); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.footer-contact i { color: var(--primary-light); font-size: 16px; margin-top: 3px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; opacity: .8; flex-wrap: wrap; gap: 12px;
}
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center;
  color: #fff; transition: var(--transition);
}
.social-links a:hover { background: var(--primary); }

/* ===== Stats Bar ===== */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
  padding: 40px; background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); margin-top: -60px; position: relative; z-index: 5;
}
.stat-item { text-align: center; }
.stat-number { font-size: 36px; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 14px; color: var(--text-light); margin-top: 4px; }

/* ===== Page Hero (Inner Pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff; padding: 70px 0 90px; text-align: center;
}
.page-hero h1 { font-size: clamp(32px, 4.5vw, 48px); font-weight: 800; margin-bottom: 12px; letter-spacing: -1px; }
.page-hero p { font-size: 17px; opacity: .9; max-width: 640px; margin: 0 auto; }
.breadcrumb { font-size: 14px; opacity: .85; margin-top: 14px; }
.breadcrumb a { color: #fff; }
.breadcrumb span { margin: 0 8px; }

/* ===== University Detail ===== */
.uni-hero {
  position: relative; min-height: 480px;
  display: flex; align-items: center; justify-content: center;
  background:
    linear-gradient(180deg, rgba(10,25,41,.5), rgba(10,25,41,.75)),
    url('https://images.unsplash.com/photo-1559629856-32a26c1c2af1?auto=format&fit=crop&w=1920&q=80') center/cover;
  color: #fff; text-align: center; padding: 80px 0;
}
.uni-hero h1 { font-size: clamp(36px, 5vw, 54px); font-weight: 800; margin-bottom: 10px; }
.uni-hero .location { font-size: 17px; opacity: .9; }
.uni-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--primary); border-radius: var(--radius-lg);
  margin: -50px auto 50px; max-width: 1000px; color: #fff; box-shadow: var(--shadow-lg);
}
.uni-stat-item { padding: 22px 18px; text-align: center; border-right: 1px solid rgba(255,255,255,.18); }
.uni-stat-item:last-child { border-right: none; }
.uni-stat-label { font-size: 12px; opacity: .85; text-transform: uppercase; letter-spacing: .5px; }
.uni-stat-value { font-size: 22px; font-weight: 700; margin-top: 4px; line-height: 1.2; }
.uni-stat-value small { display: block; font-size: 12px; opacity: .8; font-weight: 500; margin-top: 2px; }

.detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 36px; }
.tab-bar { display: flex; gap: 6px; border-bottom: 2px solid var(--border); margin-bottom: 26px; flex-wrap: wrap; }
.tab-bar a {
  padding: 12px 22px; font-weight: 600; font-size: 15px; color: var(--text-light);
  border-bottom: 3px solid transparent; margin-bottom: -2px; transition: var(--transition);
}
.tab-bar a.active, .tab-bar a:hover { color: var(--primary); border-bottom-color: var(--primary); }

.apply-card { background: var(--primary); color: #fff; border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-lg); }
.apply-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 18px; }
.apply-card .form-row { margin-bottom: 14px; }
.apply-card label { display: block; font-size: 13px; margin-bottom: 5px; opacity: .9; }
.apply-card input, .apply-card select {
  width: 100%; padding: 11px 14px; border: none; border-radius: var(--radius);
  background: rgba(255,255,255,.95); color: var(--text); font-size: 14px;
}
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-top: 22px; }
.contact-card h4 { font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 14px; }
.contact-card .agent { display: flex; align-items: center; gap: 12px; }
.contact-card .agent img { width: 48px; height: 48px; border-radius: 50%; }
.contact-card .agent strong { display: block; color: var(--dark); font-size: 15px; }
.contact-card .agent span { font-size: 13px; color: var(--text-light); }

.programs-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.programs-table th { background: var(--bg-soft); text-align: left; padding: 14px 18px; font-size: 13px; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: .5px; }
.programs-table td { padding: 14px 18px; border-top: 1px solid var(--border); font-size: 14px; }
.programs-table tr:hover td { background: var(--bg-soft); }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 600; }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
.gallery-grid img { border-radius: var(--radius); height: 160px; width: 100%; object-fit: cover; transition: var(--transition); }
.gallery-grid img:hover { transform: scale(1.04); }

/* === YouTube kampüs turu === */
.video-wrap {
  position: relative; padding-bottom: 56.25%; /* 16:9 oran */
  height: 0; overflow: hidden;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  background: #000;
}
.video-wrap iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; border: 0;
}
.video-placeholder {
  background: linear-gradient(135deg, var(--bg-soft) 0%, #fff 100%);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 60px 30px; text-align: center;
}
.video-placeholder h3 { color: var(--dark); }

/* ===== Application form ===== */
.app-stepper { display: flex; gap: 0; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 32px; }
.app-stepper .step { flex: 1; padding: 18px 16px; text-align: center; font-weight: 600; font-size: 14px; color: var(--text-light); position: relative; }
.app-stepper .step.active { background: var(--primary); color: #fff; }
.app-stepper .step.done { background: var(--primary-soft); color: var(--primary); }
.app-form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: 15px; transition: var(--transition);
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft);
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .destinations-grid, .programs-grid, .features-grid, .testimonials-grid, .unis-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar, .uni-stats { grid-template-columns: repeat(2, 1fr); }
  .uni-stats .uni-stat-item:nth-child(2) { border-right: none; }
  .uni-stats .uni-stat-item:nth-child(1), .uni-stats .uni-stat-item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.18); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .search-card { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .destinations-grid, .programs-grid, .features-grid, .testimonials-grid, .unis-grid, .stats-bar, .uni-stats, .footer-grid, .form-grid, .gallery-grid { grid-template-columns: 1fr; }
  .uni-stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.18); }
  .uni-stat-item:last-child { border-bottom: none; }
  .search-card { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero-content { padding: 60px 0; }
  .app-stepper { flex-direction: column; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
  .main-nav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 16px 24px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); max-height: calc(100vh - 80px); overflow-y: auto; }
  .main-nav.open ul { flex-direction: column; gap: 14px; }
  .main-nav.open .has-dropdown > a::after { content: ''; }
  .main-nav.open .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; padding: 4px 0 4px 14px;
    background: transparent; min-width: 0; margin-top: 8px;
  }
  .main-nav.open .dropdown a { padding: 8px 0; }
  .main-nav.open .has-dropdown::before { display: none; }
}
