/* IPA Regija Beograd - base styles */

:root {
  --navy: #0b2954;
  --navy-dark: #083d6d;
  --navy-light: #16407e;
  --gold: #f2c11a;
  --gold-dark: #d4a70f;
  --red: #c81d25;
  --white: #ffffff;
  --bg: #f4f6fa;
  --text: #22262e;
  --muted: #5b6472;
  --border: #e1e5ec;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(11, 41, 84, 0.08);
  --shadow-lg: 0 8px 30px rgba(11, 41, 84, 0.15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-light); text-decoration: none; }
a:hover { color: var(--red); }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: inherit; color: var(--navy); line-height: 1.25; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header { background: var(--white); box-shadow: var(--shadow); position: relative; z-index: 50; }
.topbar { background: var(--navy-dark); color: #cfd9ec; font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar-tagline { margin: 0; font-style: italic; letter-spacing: .03em; }
.lang-switch a { color: #cfd9ec; padding: 2px 4px; }
.lang-switch a.active, .lang-switch a:hover { color: var(--gold); }
.lang-switch span { color: #4f5f80; margin: 0 2px; }

.main-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-badge { width: 54px; height: 54px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text strong { color: var(--navy); font-size: 1.05rem; }
.brand-text small { color: var(--muted); font-size: .75rem; }

.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--navy); cursor: pointer; }

.main-nav ul { display: flex; flex-wrap: wrap; gap: 2px; }
.main-nav a {
  display: block; padding: 10px 14px; color: var(--navy); font-weight: 600; font-size: .92rem;
  border-radius: 0; transition: background .15s, color .15s;
}
.main-nav a:hover { background: var(--bg); color: var(--red); }
.main-nav a.active { background: var(--navy); color: var(--white); }

/* ---------- Hero: full-width 90vh image slider with centered text ---------- */
.hero {
  position: relative; width: 100%; height: 80vh; min-height: 420px; overflow: hidden;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy-light));
}
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.5s ease; z-index: 1;
}
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-overlay { position: absolute; inset: 0; background: rgba(7,28,60,.58); z-index: 3; }
.hero-center {
  position: relative; z-index: 4; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 0 20px;
}
.hero-center h1 { color: var(--white); font-size: 3.2rem; margin-bottom: .3em; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero-tagline {
  color: var(--white); font-size: 1.15rem; font-weight: 300; letter-spacing: .02em;
  margin-bottom: 1.3em; text-shadow: 0 2px 10px rgba(0,0,0,.35); opacity: .95;
}
.hero-buttons { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 24px; z-index: 4; display: flex; gap: 10px; justify-content: center; }
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.4); border: 0; padding: 0;
  cursor: pointer; transition: background .2s, transform .2s;
}
.hero-dot:hover { background: rgba(255,255,255,.7); }
.hero-dot.active { background: var(--gold); transform: scale(1.2); }
@media (max-width: 720px) {
  .hero { height: 70vh; }
  .hero-center h1 { font-size: 2rem; }
  .hero-tagline { font-size: .95rem; }
}
.btn {
  display: inline-block; background: var(--navy-light); color: var(--white); font-weight: 700;
  padding: 11px 22px; border-radius: 0; margin-top: 16px; border: 0; cursor: pointer;
}
.btn:hover { background: var(--navy-dark); color: var(--white); }
.btn-outline { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }

/* ---------- Sections ---------- */
.section { padding: 50px 0; }
.section-title { text-align: center; margin-bottom: 34px; }
.section-title h2 { font-size: 1.7rem; }
.section-title .kicker { color: var(--red); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
.section-title span.bar { display: block; width: 60px; height: 3px; background: var(--gold); margin: 10px auto 0; }
.section-bg-alt { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- Homepage: about teaser ---------- */
.about-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.about-teaser-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.about-teaser-img img { width: 100%; height: 100%; object-fit: cover; }
.about-teaser-body .kicker { color: var(--red); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
.about-teaser-body h2 { font-size: 1.6rem; margin: 6px 0 16px; color: var(--navy); }
.about-teaser-body p { color: var(--muted); line-height: 1.7; margin-bottom: 18px; }
@media (max-width: 800px) {
  .about-teaser { grid-template-columns: 1fr; }
}

/* ---------- Homepage: quick-link cards ---------- */
.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.quick-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 26px;
  border-top: 4px solid var(--gold); transition: transform .18s ease, box-shadow .18s ease;
}
.quick-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.quick-icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--bg); color: var(--navy);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.quick-card h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 8px; }
.quick-card p { color: var(--muted); font-size: .9rem; line-height: 1.55; margin: 0; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img { aspect-ratio: 16/10; overflow: hidden; background: #dfe4ee; display: block; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.card-date { color: var(--red); font-size: .78rem; font-weight: 700; text-transform: uppercase; margin-bottom: 6px; }
.card-body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card-title-link { color: inherit; text-decoration: none; }
.card-title-link:hover { color: var(--red); }
.card-body p { color: var(--muted); font-size: .92rem; flex: 1; }
.card-link { margin-top: 10px; font-weight: 700; font-size: .85rem; color: var(--navy); }
.card-link:hover { color: var(--red); }

/* ---------- Page header (interior pages) ---------- */
.page-header {
  background: var(--navy);
  background-image: linear-gradient(135deg, var(--navy-dark), var(--navy-light));
  color: var(--white); padding: 40px 0; margin-bottom: 10px;
}
.page-header h1 { color: var(--white); margin: 0; }
.breadcrumb { color: #b9c7e3; font-size: .85rem; margin-bottom: 8px; }
.breadcrumb a { color: #b9c7e3; }
.breadcrumb a:hover { color: var(--gold); }

.content-block { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; margin-bottom: 30px; }
.content-block img { border-radius: 6px; height: auto; }
.content-block table { width: 100%; border-collapse: collapse; }
.content-block td, .content-block th { padding: 8px; border: 1px solid var(--border); }

/* ---------- News list / detail ---------- */
.news-meta { color: var(--muted); font-size: .85rem; margin-bottom: 20px; }
.post-gallery-block h2 { font-size: 1.15rem; color: var(--navy); margin-bottom: 18px; }
.related-activities-title { margin-top: 50px; padding-top: 40px; border-top: 1px solid var(--border); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.pagination a, .pagination span {
  padding: 8px 14px; border-radius: 6px; background: var(--white); border: 1px solid var(--border); font-weight: 600; font-size: .88rem;
}
.pagination a:hover { border-color: var(--navy); }
.pagination .current { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ---------- Documents ---------- */
.doc-list { display: flex; flex-direction: column; gap: 10px; }
.doc-item {
  display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--border);
  border-radius: 8px; padding: 14px 18px; box-shadow: var(--shadow);
}
.doc-item .doc-icon { font-size: 1.6rem; color: var(--red); }
.doc-item .doc-title { font-weight: 700; color: var(--navy); }
.doc-item a.doc-download { margin-left: auto; font-weight: 700; color: var(--navy); }

/* ---------- Links ---------- */
.links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.link-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; text-align: center; }
.link-card img { max-height: 60px; margin: 0 auto 10px; object-fit: contain; }
.link-card h4 { font-size: .95rem; margin-bottom: 4px; }
.link-card p { font-size: .82rem; color: var(--muted); }

/* ---------- Discounts / benefits ---------- */
.benefit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 26px; }
.benefit-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column; border-top: 4px solid var(--gold);
  transition: transform .18s ease, box-shadow .18s ease;
}
.benefit-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.benefit-media {
  position: relative; aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center;
  padding: 22px; background: linear-gradient(135deg, #eef1f7, #dfe4ee);
}
.benefit-media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.benefit-media.no-image { color: var(--navy-light); opacity: .55; }
.benefit-media[data-benefit-trigger] { cursor: zoom-in; }
.benefit-media[data-benefit-trigger]::after {
  content: '\26f6'; position: absolute; bottom: 10px; right: 10px; width: 30px; height: 30px;
  background: rgba(11,41,84,.75); color: var(--white); border-radius: 50%; font-size: .95rem;
  display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s;
}
.benefit-media[data-benefit-trigger]:hover::after { opacity: 1; }

.benefit-modal {
  position: fixed; inset: 0; background: rgba(4,12,28,.8); display: none; align-items: center; justify-content: center;
  z-index: 999; padding: 24px;
}
.benefit-modal.open { display: flex; }
.benefit-modal-panel {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  max-width: 880px; width: 100%; max-height: 88vh; overflow: auto;
  display: flex; position: relative;
}
.benefit-modal-media {
  flex: 0 0 46%; background: linear-gradient(135deg, #eef1f7, #dfe4ee);
  display: flex; align-items: center; justify-content: center; padding: 30px;
}
.benefit-modal-media img { max-width: 100%; max-height: 60vh; object-fit: contain; }
.benefit-modal-body { flex: 1; padding: 36px 38px; display: flex; flex-direction: column; min-width: 0; }
.benefit-modal-body h3 { color: var(--navy); font-size: 1.35rem; margin-bottom: 16px; }
.benefit-modal-body p { color: var(--muted); font-size: .95rem; line-height: 1.7; white-space: pre-wrap; flex: 1; margin: 0 0 20px; }
.benefit-modal-close {
  position: absolute; top: 14px; right: 16px; font-size: 1.8rem; line-height: 1; background: none; border: 0;
  cursor: pointer; color: var(--muted); z-index: 1;
}
.benefit-modal-close:hover { color: var(--red); }
@media (max-width: 700px) {
  .benefit-modal-panel { flex-direction: column; max-height: 92vh; }
  .benefit-modal-media { flex: none; padding: 20px; }
  .benefit-modal-body { padding: 26px 24px 30px; }
}
.benefit-badge {
  position: absolute; top: 12px; right: 12px; background: var(--red); color: var(--white);
  font-weight: 800; font-size: .8rem; letter-spacing: .3px; padding: 6px 12px; border-radius: 999px;
  box-shadow: 0 3px 10px rgba(0,0,0,.2);
}
.benefit-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.benefit-body h3 { font-size: 1.05rem; line-height: 1.3; margin-bottom: 10px; color: var(--navy); }
.benefit-body p { color: var(--muted); font-size: .88rem; line-height: 1.55; flex: 1; margin: 0 0 16px; }
.benefit-link {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  background: var(--navy); color: var(--white); font-weight: 700; font-size: .85rem;
  padding: 9px 18px; border-radius: 999px; transition: background .15s;
}
.benefit-link:hover { background: var(--red); color: var(--white); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.gallery-item { position: relative; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; background:#dfe4ee; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 10px 8px;
  background: linear-gradient(transparent, rgba(7,28,60,.85)); color: var(--white); font-size: .82rem; font-weight: 600;
}
.lightbox {
  position: fixed; inset: 0; background: rgba(4,12,28,.92); display: none; align-items: center; justify-content: center;
  z-index: 999; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 6px; }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: var(--white); font-size: 2rem; cursor: pointer; background:none; border:0; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  background: rgba(255,255,255,.12); color: var(--white); border: 0; width: 48px; height: 48px;
  border-radius: 50%; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.lightbox-nav:hover { background: rgba(255,255,255,.28); }
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }
@media (max-width: 600px) {
  .lightbox-nav { width: 40px; height: 40px; font-size: 1rem; }
  .lightbox-nav.prev { left: 8px; }
  .lightbox-nav.next { right: 8px; }
}

/* ---------- Events ---------- */
.event-item { display: flex; gap: 18px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 14px; align-items: center; }
.event-date-badge { background: var(--navy); color: var(--white); border-radius: 8px; padding: 10px 14px; text-align: center; min-width: 66px; }
.event-date-badge .day { font-size: 1.4rem; font-weight: 800; line-height: 1; }
.event-date-badge .month { font-size: .72rem; text-transform: uppercase; }
.empty-state { text-align: center; color: var(--muted); padding: 40px 20px; }

/* ---------- Discount categories ---------- */
.discount-cats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.discount-cats span { background: var(--white); border: 1px solid var(--border); padding: 8px 16px; border-radius: 20px; font-size: .85rem; font-weight: 600; color: var(--navy); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .88rem; color: var(--navy); }
.form-group input, .form-group textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: 6px; font-family: inherit; font-size: .95rem;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 20px; font-weight: 600; }
.alert-success { background: #e4f6ea; color: #1e7a3d; border: 1px solid #b9e6c6; }
.alert-error { background: #fbe6e7; color: var(--red); border: 1px solid #f3c1c4; }
.info-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.info-card p { margin-bottom: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #b9c7e3; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 30px; padding: 40px 20px; }
.footer-badge { width: 60px; margin-bottom: 10px; }
.footer-col h4 { color: var(--white); font-size: .95rem; margin-bottom: 12px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { color: #b9c7e3; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 14px 0; text-align: center; font-size: .82rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white);
    box-shadow: var(--shadow-lg); padding: 10px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .grid { grid-template-columns: 1fr; }
  .event-item { flex-direction: column; text-align: center; }
}
