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

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%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
/* Membership Types Styles */
.membership-section {
    padding: 60px 0;
    margin-top: 40px;
}

.membership-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.membership-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.membership-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: #002c5f; /* Deep blue for premium feel */
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.membership-text {
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.membership-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #002c5f;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.membership-link:hover {
    background-color: #004085;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 44, 95, 0.3);
}

.section-title {
    text-align: center;
    font-weight: 800;
    font-size: 2.25rem;
    color: #212529;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    width: 50px;
    height: 3px;
    background: #002c5f;
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Form Section Styles */
.form-section {
    background-color: #fcfcfc;
}

.form-container {
    background: #fff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
}

.subtitle {
    color: #6c757d;
    font-size: 1.1rem;
}

.form-label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.form-control {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: all 0.2s;
}

.form-control:focus {
    border-color: #002c5f;
    box-shadow: 0 0 0 0.25rem rgba(0, 44, 95, 0.1);
}

.form-check-input:checked {
    background-color: #002c5f;
    border-color: #002c5f;
}

.btn-primary {
    background-color: #002c5f;
    border-color: #002c5f;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #004085;
    border-color: #004085;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 44, 95, 0.2);
}

.success-icon {
    display: inline-block;
    width: 100px;
    height: 100px;
    line-height: 100px;
    background: #e9f7ef;
    border-radius: 50%;
}

/* Honeypot Styling (Hidden from users) */
.h-pot {
    display: none !important;
}

/* --- Custom Home Page Styles --- */

:root {
    --brand-primary: rgb(217, 34, 34);
    --brand-primary-hover: rgb(131, 20, 20);
    --brand-dark: rgb(41, 46, 56);
    --brand-light: rgb(244, 244, 247);
}

body {
    font-family: 'Mulish', sans-serif;
    background-color: #fcfcfc;
    color: #495057;
    overflow-x: hidden;
}

/* Hero Section */
.hero-section {
    height: 80vh;
    min-height: 500px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.65)), url('/images/Header-main.jpg');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    background-attachment: scroll;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.hero-description {
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.hero-btn-primary {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    transition: all 0.3s ease;
}

.hero-btn-primary:hover {
    background-color: var(--brand-primary-hover);
    border-color: var(--brand-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(217, 34, 34, 0.4);
    color: #fff;
}

.hero-btn-secondary {
    border-width: 2px;
    transition: all 0.3s ease;
}

.hero-btn-secondary:hover {
    background-color: #fff;
    color: var(--brand-dark);
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.25);
}

/* Headings & Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
}

.section-title {
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--brand-dark);
    text-align: center;
    position: relative;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--brand-primary);
    margin: 0.75rem auto 0 auto;
    border-radius: 2px;
}

.section-title.text-start::after {
    margin-left: 0;
}

/* Discover Section */
.discover-section {
    background-color: #ffffff;
}

.image-wrapper img {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.image-wrapper:hover img {
    transform: scale(1.02);
}

/* Swimverse Section */
.swimverse-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
}

.swimverse-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
}

.card-img-wrapper {
    height: 250px;
    overflow: hidden;
}

.card-img-wrapper img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.swimverse-card:hover .card-img-wrapper img {
    transform: scale(1.06);
}

/* Para Swimming Banner */
.para-swimming-banner {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('/images/discover-my-world-of-swimming.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    min-height: 450px;
    position: relative;
}

.glassmorphic-panel {
    background: rgba(41, 46, 56, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.divider-line {
    width: 50px;
    height: 4px;
    background-color: var(--brand-primary);
    border-radius: 2px;
}

/* Contact Section */
.contact-section {
    background-image: linear-gradient(rgba(41, 46, 56, 0.85), rgba(41, 46, 56, 0.95)), url('/images/Contact-me-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}

.contact-card-custom {
    background: rgba(41, 46, 56, 0.75) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.bg-dark-input {
    background-color: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    transition: all 0.3s ease;
    padding: 0.75rem 1rem !important;
}

.bg-dark-input:focus {
    background-color: rgba(255, 255, 255, 0.12) !important;
    border-color: var(--brand-primary) !important;
    box-shadow: 0 0 0 0.25rem rgba(217, 34, 34, 0.3) !important;
}

.contact-card-custom .btn-primary {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    transition: all 0.3s ease;
}

.contact-card-custom .btn-primary:hover {
    background-color: var(--brand-primary-hover);
    border-color: var(--brand-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(217, 34, 34, 0.4);
}

.success-msg-container {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Layout overrides for standard pages container spacing */
main:not([role="main"]) {
    padding-bottom: 3rem;
}

/* Database Content Section */
.db-content-section {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

/* Subpage Hero Banner */
.subpage-hero {
    height: 35vh;
    min-height: 250px;
    background-size: cover;
    background-position: center 48%;
    background-repeat: no-repeat;
    background-attachment: scroll;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation Overlay Style for transparent header directly in photo */
.navbar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0) 100%) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15) !important;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.navbar-overlay .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    position: relative;
    transition: color 0.2s ease;
}

.navbar-overlay .nav-link:hover,
.navbar-overlay .nav-link.active {
    color: #ffffff !important;
}

/* Active and Hover indicator line under menu items */
.navbar-overlay .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 8px;
    right: 8px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.85);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.navbar-overlay .nav-link:hover::after,
.navbar-overlay .nav-link.active::after {
    transform: scaleX(1);
}


.subpage-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(41, 46, 56, 0.4);
    z-index: 1;
}

.subpage-hero .container {
    position: relative;
    z-index: 2;
}

.text-justify {
    text-align: justify;
}

/* Photo Gallery Thumbnail Styling */
.gallery-grid {
    margin-top: 1.5rem;
}

.gallery-img-wrapper {
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    background-color: #f8f9fa;
}

.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-img-wrapper:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--brand-primary);
}

.gallery-img-wrapper:hover img {
    transform: scale(1.08);
}

.gallery-item-link {
    text-decoration: none;
    display: block;
}

/* Swimming Stroke Cards */
.stroke-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.stroke-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--brand-primary);
}

.stroke-icon-badge {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.stroke-card:hover .stroke-icon-badge {
    transform: scale(1.15) rotate(5deg);
}

.max-width-700 {
    max-width: 700px;
}

/* Para Swimming World Subpage Styles */
.para-feature-image {
    max-height: 480px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.para-feature-image:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.para-portrait-card {
    border-radius: 16px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.para-portrait-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.org-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90px;
    padding: 15px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.01);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.org-logo-wrapper img {
    max-height: 60px;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.65;
    transition: all 0.3s ease;
}

.org-logo-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--brand-primary);
}

.org-logo-wrapper:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.classification-badge {
    background-color: rgba(217, 34, 34, 0.08);
    color: var(--brand-primary);
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85em;
    display: inline-block;
}

/* External Link Icons */
a[href^="http://"]:not([href*="localhost"]):not([href*="danielkejval.cz"]):not(:has(img))::after,
a[href^="https://"]:not([href*="localhost"]):not([href*="danielkejval.cz"]):not(:has(img))::after {
    content: "";
    display: inline-block;
    width: 0.8em;
    height: 0.8em;
    margin-left: 0.3rem;
    vertical-align: middle;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5'/%3E%3Cpath fill-rule='evenodd' d='M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5'/%3E%3Cpath fill-rule='evenodd' d='M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    opacity: 0.8;
    transition: opacity 0.15s ease-in-out;
}

a[href^="http://"]:not([href*="localhost"]):not([href*="danielkejval.cz"]):not(:has(img)):hover::after,
a[href^="https://"]:not([href*="localhost"]):not([href*="danielkejval.cz"]):not(:has(img)):hover::after {
    opacity: 1;
}

/* Achievements List Styling */
.achievements-list {
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.achievement-row {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.achievement-row:last-child {
    border-bottom: none;
}

.achievement-title {
    color: var(--brand-dark);
    font-size: 1.85rem;
    font-weight: 700;
}

.achievement-date {
    font-family: 'Outfit', sans-serif;
    color: var(--brand-primary) !important;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.achievement-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #495057;
}

.achievement-text a {
    color: var(--brand-primary);
    font-weight: 600;
    transition: color 0.15s ease-in-out;
}

.achievement-text a:hover {
    color: var(--brand-primary-hover);
}
