/* =========================================================
   ANTALYA MEMUR-SEN — GLOBAL DESIGN SYSTEM
   ========================================================= */

/* --- Color & Typography Tokens -------------------------- */
:root {
  --ms-red:          #cc2b3a;
  --ms-red-light:    #e84055;
  --ms-red-soft:     #fdf2f3;
  --ms-blue:         #1a4b9a;
  --ms-blue-mid:     #1e57b3;
  --ms-dark-blue:    #102d6b;
  --ms-navy:         #0d1f4a;
  --ms-light-blue:   #e8f0fb;
  --ms-bg:           #f5f7fc;
  --ms-text:         #1e2340;
  --ms-text-muted:   #6b7280;
  --ms-border:       #e5e9f2;
  --ms-white:        #ffffff;
  --ms-shadow-sm:    0 2px 8px rgba(16, 45, 107, 0.07);
  --ms-shadow-md:    0 6px 24px rgba(16, 45, 107, 0.10);
  --ms-shadow-lg:    0 16px 40px rgba(16, 45, 107, 0.13);
  --ms-radius:       10px;
  --ms-radius-lg:    16px;
  --transition:      all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  background: var(--ms-bg);
  color: var(--ms-text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  min-height: 100vh;
}

/* =========================================================
   TOP BAR
   ========================================================= */
.top-bar {
  background: var(--ms-navy);
  color: rgba(255,255,255,0.82);
  font-size: 0.82rem;
  padding: 0.45rem 0;
  letter-spacing: 0.01em;
}
.top-bar a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: var(--transition);
}
.top-bar a:hover { color: #fff; }

/* =========================================================
   MAIN NAVBAR
   ========================================================= */
.main-navbar {
  background: var(--ms-white);
  border-bottom: 3px solid var(--ms-red);
  box-shadow: 0 3px 16px rgba(16, 45, 107, 0.08);
  padding: 0.4rem 0;
  transition: box-shadow 0.3s;
  z-index: 1030;
}

.main-navbar .navbar-brand img {
  transition: var(--transition);
}
.main-navbar .navbar-brand:hover img {
  opacity: 0.88;
  transform: scale(1.02);
}
 
.brand-text-container {
  border-left: 2px solid var(--ms-red);
  padding-left: 14px;
}
.brand-name-top {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ms-dark-blue);
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.brand-name-bottom {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ms-red);
  letter-spacing: 0.15em;
  margin-top: 2px;
}

.main-navbar .nav-link {
  color: var(--ms-dark-blue);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.85rem 1.1rem !important;
  position: relative;
  transition: var(--transition);
}
.main-navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 6px; left: 1.1rem; right: 1.1rem;
  height: 2px;
  background: var(--ms-red);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
  color: var(--ms-red);
}
.main-navbar .nav-link:hover::after,
.main-navbar .nav-link.active::after {
  transform: scaleX(1);
}

/* Accent nav link (İndirim) */
.nav-link-accent {
  color: var(--ms-red) !important;
  background: var(--ms-red-soft);
  border-radius: 6px;
}
.nav-link-accent:hover {
  background: var(--ms-red) !important;
  color: #fff !important;
}
.nav-link-accent::after { display: none !important; }

/* Dropdown */
.dropdown-menu-modern {
  border-radius: var(--ms-radius) !important;
  padding: 8px !important;
  min-width: 220px;
  border: 1px solid var(--ms-border) !important;
  box-shadow: var(--ms-shadow-lg) !important;
}
.dropdown-menu-modern .dropdown-item {
  border-radius: 6px;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  color: var(--ms-text);
  transition: var(--transition);
}
.dropdown-menu-modern .dropdown-item:hover {
  background: var(--ms-light-blue);
  color: var(--ms-blue);
}

/* =========================================================
   PORTAL COMPONENTS
   ========================================================= */
.portal-section-title {
  border-left: 5px solid var(--ms-red);
  padding-left: 15px;
  margin-bottom: 24px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ms-dark-blue);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.portal-card {
  background: var(--ms-white);
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius-lg);
  box-shadow: var(--ms-shadow-sm);
  margin-bottom: 24px;
  overflow: hidden;
  transition: var(--transition);
}
.portal-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ms-shadow-md);
}

.portal-card-header {
  background: linear-gradient(135deg, var(--ms-blue) 0%, var(--ms-dark-blue) 100%);
  color: white;
  padding: 13px 18px;
  font-weight: 600;
  font-size: 0.97rem;
  letter-spacing: 0.01em;
}

.portal-list-item {
  border-bottom: 1px solid var(--ms-border);
  padding: 11px 18px;
  display: flex;
  align-items: center;
  color: var(--ms-text);
  transition: var(--transition);
}
.portal-list-item:last-child { border-bottom: none; }
.portal-list-item:hover {
  background: var(--ms-light-blue);
  color: var(--ms-blue);
  padding-left: 22px;
}

/* =========================================================
   UNION LOGO SLIDER
   ========================================================= */
.logo-slider-section {
  background: var(--ms-white);
  padding: 28px 0;
  border-top: 1px solid var(--ms-border);
  border-bottom: 1px solid var(--ms-border);
  overflow: hidden;
}

.logo-slider-container {
  display: flex;
  width: calc(250px * 24);
  animation: logo-scroll 40s linear infinite;
}

.logo-slider-item {
  width: 250px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 36px;
}

.logo-slider-item img {
  max-width: 100%;
  max-height: 70px;
  filter: grayscale(100%);
  opacity: 0.55;
  transition: var(--transition);
}
.logo-slider-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.08);
}

@keyframes logo-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-250px * 12)); }
}
.logo-slider-container:hover { animation-play-state: paused; }

/* =========================================================
   DISCOUNT CARDS
   ========================================================= */
.discount-section {
  padding: 48px 0 56px;
  background: linear-gradient(160deg, #eef3fb 0%, #f6f8fd 60%, #fdf2f3 100%);
}

.discount-scroll-container {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 8px 4px 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--ms-red) transparent;
}
.discount-scroll-container::-webkit-scrollbar { height: 5px; }
.discount-scroll-container::-webkit-scrollbar-track { background: transparent; }
.discount-scroll-container::-webkit-scrollbar-thumb {
  background: var(--ms-red);
  border-radius: 10px;
}

.discount-card {
  min-width: 280px;
  max-width: 280px;
  background: var(--ms-white);
  border-radius: var(--ms-radius-lg);
  overflow: hidden;
  box-shadow: var(--ms-shadow-sm);
  border: 1px solid var(--ms-border);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.discount-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: var(--ms-shadow-lg);
  border-color: var(--ms-red-light);
}

.discount-card-img-wrapper {
  height: 160px;
  overflow: hidden;
  position: relative;
}
.discount-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.discount-card:hover .discount-card-img { transform: scale(1.1); }

.discount-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--ms-red);
  color: white;
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(204, 43, 58, 0.3);
  z-index: 2;
}

.discount-card-body {
  padding: 18px 20px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.discount-category {
  font-size: 0.7rem;
  color: var(--ms-red);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.discount-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ms-dark-blue);
  margin-bottom: 8px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7rem;
}
.discount-desc {
  font-size: 0.84rem;
  color: var(--ms-text-muted);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.4rem;
}
.discount-footer {
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px dashed var(--ms-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.discount-btn {
  background: var(--ms-blue);
  color: white;
  border: none;
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 0.83rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}
.discount-btn:hover {
  background: var(--ms-red);
  color: white;
  box-shadow: 0 4px 12px rgba(204, 43, 58, 0.25);
  transform: translateY(-1px);
}

/* =========================================================
   FOOTER  (completely redesigned)
   ========================================================= */
.site-footer {
  font-size: 0.9rem;
}

/* Main footer body — soft navy gradient, not pitch-black */
.footer-main {
  background: linear-gradient(160deg, #1a2f6a 0%, #162254 60%, #1c2f6f 100%);
  color: rgba(255,255,255,0.82);
  padding: 64px 0 48px;
}

/* Brand */
.footer-brand-text {
  color: #fff;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.footer-text {
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  max-width: 340px;
}

/* Section headings */
.footer-heading {
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 28px; height: 2px;
  background: var(--ms-red);
  border-radius: 2px;
}

/* Link lists */
.footer-links {
  list-style: none;
  padding: 0; margin: 0;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-links a::before {
  content: '›';
  color: var(--ms-red-light);
  font-size: 1rem;
  line-height: 1;
}
.footer-links a:hover {
  color: #fff;
  padding-left: 4px;
}

/* Contact list */
.footer-contact {
  list-style: none;
  padding: 0; margin: 0;
}
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.6);
}
.footer-contact i {
  color: var(--ms-red-light);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Social icons */
.footer-social { display: flex; gap: 10px; }
.footer-social-link {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: rgba(255,255,255,0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
}
.footer-social-link:hover {
  background: var(--ms-red);
  border-color: var(--ms-red);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(204, 43, 58, 0.35);
}

/* Bottom bar — slightly darker than main */
.footer-bottom {
  background: rgba(10, 18, 46, 0.95);
  color: rgba(255,255,255,0.45);
  font-size: 0.82rem;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-bottom-link {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: var(--transition);
}
.footer-bottom-link:hover { color: var(--ms-red-light); }

/* =========================================================
   RESPONSIVE TWEAKS
   ========================================================= */
@media (max-width: 991.98px) {
  .main-navbar .nav-link::after { display: none; }
  .nav-link-accent { width: fit-content; margin: 4px 0; }
  .footer-main { padding: 48px 0 36px; }
  .brand-name-top { font-size: 1rem; }
  .brand-name-bottom { font-size: 0.75rem; }
  .brand-text-container { padding-left: 10px; }
}

@media (max-width: 480px) {
  .brand-text-container { display: none; } /* Hide text on very small screens to keep logo visible */
}
 . p - 3 . b g - w h i t e . b o r d e r : h o v e r   { 
         b a c k g r o u n d - c o l o r :   # f 8 f 9 f a   ! i m p o r t a n t ; 
         t r a n s f o r m :   t r a n s l a t e Y ( - 5 p x ) ; 
         b o x - s h a d o w :   0   . 5 r e m   1 r e m   r g b a ( 0 , 0 , 0 , . 1 5 ) ! i m p o r t a n t ; 
 } 
 . p - 3 . b g - w h i t e . b o r d e r   { 
         t r a n s i t i o n :   a l l   0 . 3 s   e a s e - i n - o u t ; 
 } 
  
 