﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
  overflow-x: hidden;
}

html,
body {
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  overflow-x: hidden;
}

.form-floating>.form-control-plaintext::placeholder,
.form-floating>.form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

:root {
  --primary-accent: #191970;
  --bg-color: #ffffff;
  --bg-secondary: #fafafa;
  --text-main: #111111;
  --text-muted: #666666;
  --border-light: #eaeaea;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 12px 24px rgba(0, 0, 0, 0.08);
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}
.btn-primary {
  background-color: var(--primary-accent);
  border-color: var(--primary-accent);
  color: white;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #121255;
  border-color: #121255;
}

.btn-outline-primary {
  color: var(--primary-accent);
  border-color: var(--border-light);
}

.btn-outline-primary:hover {
  background-color: var(--bg-secondary);
  color: var(--primary-accent);
  border-color: var(--border-light);
}
.transition-hover {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border-light) !important;
  background: white;
}

.transition-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover) !important;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card,
.announcement-card,
.gallery-card {
  border-radius: 1rem;
}
a {
  color: var(--primary-accent);
  transition: opacity 0.2s ease;
}

a:hover {
  color: var(--primary-accent);
  opacity: 0.8;
}
.site-header {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s ease;
}

.navbar-brand {
  color: var(--primary-accent) !important;
  letter-spacing: -0.04em;
  padding: 0;
  margin: 0;
}

.nav-link-custom {
  color: var(--text-muted) !important;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 0.5rem 0 !important;
  position: relative;
  transition: color 0.3s ease;
  background: transparent !important;
  border: none !important;
}

.nav-link-custom:hover,
.nav-link-custom.active {
  color: var(--text-main) !important;
}

@media (min-width: 768px) {
  .nav-link-custom::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-link-custom:hover::after,
  .nav-link-custom.active::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  .navbar-nav {
    gap: 3rem !important;
  }
}
html {
  scrollbar-color: #e0e0e0 #ffffff;
  scrollbar-width: thin;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: #d4d4d4;
  border-radius: 10px;
  border: 2px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
  background: #a0a0a0;
}
.bookmark-ribbon {
  position: absolute;
  top: 0;
  width: 50px;
  height: 180px;
  background-color: #d82329;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 25px), 0 100%);
  z-index: 10;
  box-shadow: inset 0px 5px 15px rgba(0, 0, 0, 0.1);
}

@media (min-width: 992px) {
  .bookmark-ribbon {
    width: 60px;
    height: 220px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 30px), 0 100%);
  }
}

.bookmark-right {
  right: max(1rem, calc(50% - 630px));
}

.bookmark-left {
  left: max(1rem, calc(50% - 850px));
}

.bookmark-ribbon-footer {
  height: 90px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 15px), 0 100%);
}

@media (min-width: 992px) {
  .bookmark-ribbon-footer {
    height: 110px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 20px), 0 100%);
  }
}
