@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --primary-900: #0c2d6b;
  --primary-800: #0f3a8a;
  --primary-700: #1348a8;
  --primary-600: #1a5bc9;
  --primary-500: #2070e0;
  --primary-400: #4a8ff0;
  --primary-300: #7db1f7;
  --primary-200: #b0d3fc;
  --primary-100: #dbeafe;
  --primary-50: #eff6ff;

  --accent-600: #d97706;
  --accent-500: #f59e0b;
  --accent-400: #fbbf24;

  --red-600: #dc2626;
  --red-500: #ef4444;

  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;

  --green-600: #16a34a;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.08);

  --max-width: 1240px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: 0.2s ease; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--gray-900); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* Top Bar */
.top-bar {
  background: linear-gradient(135deg, var(--primary-900), var(--primary-800));
  color: white;
  font-size: 0.82rem;
  padding: 8px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar-left { display: flex; gap: 20px; }
.top-bar-left a { color: var(--primary-200); }
.top-bar-left a:hover { color: white; }
.top-bar-right { display: flex; gap: 12px; }
.top-bar-right a {
  color: white;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 0.78rem;
}
.top-bar-right a:hover { background: rgba(255,255,255,0.15); }

/* Ticker Bar */
.ticker-bar {
  background: linear-gradient(90deg, var(--accent-500), var(--accent-600));
  color: white;
  padding: 8px 0;
  overflow: hidden;
}
.ticker-content { display: flex; align-items: center; gap: 15px; }
.ticker-label {
  background: rgba(0,0,0,0.15);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.ticker-text { overflow: hidden; flex: 1; }
.ticker-text p {
  white-space: nowrap;
  animation: ticker 25s linear infinite;
  font-size: 0.85rem;
  font-weight: 500;
}
@keyframes ticker {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Header */
.header {
  background: white;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 75px; }
.logo-area { display: flex; align-items: center; gap: 12px; }
.logo-area img { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--primary-100); object-fit: cover; }
.logo-text h1 { font-size: 1.05rem; font-weight: 800; color: var(--primary-800); line-height: 1.2; }
.logo-text span { font-size: 0.75rem; color: var(--gray-500); font-weight: 500; display: block; }

/* Navigation */
.main-nav { display: flex; align-items: center; }
.nav-links { display: flex; gap: 4px; }
.nav-links li { position: relative; }
.nav-links a {
  display: flex; align-items: center; gap: 4px;
  padding: 10px 14px; font-size: 0.88rem; font-weight: 600;
  color: var(--gray-700); border-radius: var(--radius-md);
}
.nav-links a:hover, .nav-links a.active { color: var(--primary-600); background: var(--primary-50); }

/* Dropdown */
.nav-links .dropdown {
  position: absolute; top: 100%; left: 0;
  background: white; border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); border: 1px solid var(--gray-100);
  min-width: 200px; opacity: 0; visibility: hidden;
  transform: translateY(-8px); transition: 0.2s ease; padding: 6px; z-index: 100;
}
.nav-links li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { padding: 10px 14px; font-size: 0.85rem; font-weight: 500; border-radius: var(--radius-sm); }
.dropdown a:hover { background: var(--primary-50); color: var(--primary-600); }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--gray-700); margin: 5px 0; }

/* Hero */
.hero { position: relative; height: 480px; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(12,45,107,0.85), rgba(32,112,224,0.6));
}
.hero-content {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center; color: white; z-index: 2; padding: 20px;
}
.hero-content h2 { font-size: 2.8rem; font-weight: 900; color: white; margin-bottom: 12px; }
.hero-content p { font-size: 1.1rem; color: rgba(255,255,255,0.9); max-width: 600px; margin-bottom: 24px; }
.hero-buttons { display: flex; gap: 15px; }

.hero-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: 2px solid white; background: transparent; cursor: pointer; }
.hero-dots button.active { background: white; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; font-size: 0.9rem; font-weight: 600;
  border-radius: var(--radius-full); border: none; cursor: pointer; transition: 0.2s ease;
}
.btn-primary { background: var(--primary-500); color: white; }
.btn-primary:hover { background: var(--primary-600); transform: translateY(-2px); }
.btn-outline-white { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.5); }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: white; }

/* Quick Access */
.quick-access { margin-top: -40px; position: relative; z-index: 10; }
.quick-access .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.quick-card {
  background: white; border-radius: var(--radius-lg); padding: 24px; text-align: center;
  box-shadow: var(--shadow-md); border: 1px solid var(--gray-100); transition: 0.2s ease;
}
.quick-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--primary-200); }
.quick-card .icon {
  width: 55px; height: 55px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 12px;
  font-size: 1.5rem; background: var(--primary-50); color: var(--primary-600);
}
.quick-card h3 { font-size: 0.95rem; margin-bottom: 4px; }
.quick-card p { font-size: 0.8rem; color: var(--gray-500); }

/* Sections */
.section { padding: 60px 0; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 1.8rem; font-weight: 800; }
.section-line { display: flex; justify-content: center; gap: 6px; margin: 10px 0; }
.section-line span { width: 30px; height: 3px; background: var(--primary-300); border-radius: 2px; }
.section-line span:nth-child(2) { width: 50px; background: var(--primary-500); }

/* Announcements */
.announcement-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
.announcement-main { display: flex; flex-direction: column; gap: 15px; }
.announcement-card {
  display: flex; gap: 20px; padding: 20px; border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200); background: white; transition: 0.2s ease;
}
.announcement-card:hover { border-color: var(--primary-300); transform: translateX(4px); box-shadow: var(--shadow-md); }
.date-badge {
  width: 60px; height: 60px; background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
  border-radius: var(--radius-md); display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: white; flex-shrink: 0;
}
.date-badge .day { font-size: 1.3rem; font-weight: 800; line-height: 1; }
.date-badge .month { font-size: 0.65rem; font-weight: 600; text-transform: uppercase; }
.announcement-card .content h3 { font-size: 0.95rem; margin-bottom: 4px; }
.announcement-card .content p { font-size: 0.84rem; color: var(--gray-600); }
.announcement-card .tag {
  display: inline-block; margin-top: 8px; padding: 2px 10px; font-size: 0.72rem;
  font-weight: 600; border-radius: var(--radius-full); background: var(--primary-100); color: var(--primary-700);
}
.announcement-card .tag.urgent { background: #fee2e2; color: #dc2626; }

/* News Grid */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.news-card {
  background: white; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--gray-200); transition: 0.2s ease;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-card .card-image { height: 180px; position: relative; overflow: hidden; }
.news-card .card-image img { width: 100%; height: 100%; object-fit: cover; }
.news-card .card-image .category {
  position: absolute; top: 10px; left: 10px; padding: 3px 10px;
  font-size: 0.7rem; font-weight: 600; border-radius: var(--radius-full);
  background: rgba(32, 112, 224, 0.85); color: white;
}
.news-card .card-body { padding: 20px; }
.news-card .card-body .date { font-size: 0.75rem; color: var(--gray-400); margin-bottom: 6px; }
.news-card .card-body h3 { font-size: 0.95rem; margin-bottom: 8px; }
.news-card .card-body p { font-size: 0.84rem; color: var(--gray-600); }

/* Footer */
.footer { background: #0a0f1a; color: var(--gray-400); padding: 50px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 30px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.footer-brand h3 { color: white; font-size: 1.05rem; margin-bottom: 6px; }
.footer-brand p { font-size: 0.82rem; }
.footer-links h4 { color: white; font-size: 0.9rem; margin-bottom: 16px; }
.footer-links ul { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.84rem; color: var(--gray-400); }
.footer-links a:hover { color: var(--primary-400); }
.footer-contact h4 { color: white; font-size: 0.9rem; margin-bottom: 16px; }
.footer-contact p { font-size: 0.84rem; margin-bottom: 8px; }
.footer-bottom { padding: 20px 0; text-align: center; font-size: 0.8rem; color: var(--gray-500); }

/* Scroll Top */
.scroll-top {
  position: fixed; bottom: 20px; right: 20px; width: 44px; height: 44px;
  border-radius: 50%; background: var(--primary-500); color: white; border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2); opacity: 0; visibility: hidden; transition: 0.2s ease; z-index: 99;
}
.scroll-top.visible { opacity: 1; visibility: visible; }

/* Ic sayfalar - grid duzenleri (mobilde tek sutuna doner) */
.kurslar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.iletisim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.kurumsal-grid { display: grid; grid-template-columns: 3fr 1fr; gap: 40px; }

/* Responsive */
@media (max-width: 900px) {
  .quick-access .container { grid-template-columns: repeat(2, 1fr); }
  .announcement-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .menu-toggle { display: block; }
  .kurslar-grid { grid-template-columns: repeat(2, 1fr); }
  .iletisim-grid { grid-template-columns: 1fr; }
  .kurumsal-grid { grid-template-columns: 1fr; }

  /* Acilir mobil menu */
  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: var(--shadow-lg);
    padding: 10px;
    gap: 2px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }
  .nav-links.nav-open {
    max-height: 80vh;
    opacity: 1;
    visibility: visible;
    overflow-y: auto;
  }
  .nav-links a { padding: 12px 14px; }

  /* Mobilde dropdown alt menuleri her zaman ust menunun icinde acik gorunur */
  .nav-links .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    min-width: 0;
    padding-left: 12px;
    display: none;
  }
  .nav-links li.dropdown-open .dropdown { display: block; }

  /* Hamburger ikonunun X'e donusmesi */
  .menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .menu-toggle span { transition: 0.2s ease; }
}

@media (max-width: 640px) {
  .top-bar .container { flex-direction: column; gap: 6px; padding-top: 4px; padding-bottom: 4px; }
  .top-bar-left { flex-wrap: wrap; justify-content: center; gap: 10px; }
  .top-bar-left a span { display: none; } /* sadece ikon, yer tasarrufu */
  .top-bar-right { gap: 8px; }

  .header .container { height: 65px; }
  .logo-area img { width: 40px; height: 40px; }
  .logo-text h1 { font-size: 0.85rem; }
  .logo-text span { font-size: 0.65rem; }

  .hero { height: 380px; }
  .hero-content h2 { font-size: 1.7rem; }
  .hero-content p { font-size: 0.95rem; }
  .hero-buttons { flex-direction: column; width: 100%; max-width: 260px; }
  .hero-buttons .btn { width: 100%; justify-content: center; }

  .quick-access .container { grid-template-columns: 1fr 1fr; gap: 12px; }
  .section { padding: 40px 0; }
  .section-header h2 { font-size: 1.4rem; }

  .announcement-card { flex-direction: column; }
  .footer-grid { gap: 24px; }

  .kurslar-grid { grid-template-columns: 1fr; }
  .page-banner h1 { font-size: 1.4rem !important; }

  .mudur-card { flex-direction: column; text-align: center; }
}
