html, body {
    height: 100%;
}

body {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
}

body > main {
    min-height: calc(100vh - 400px);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
}

main {
    scrollbar-width: none;
    margin: 1rem;
}

::-webkit-scrollbar {
    display: none;
}

.title-logo {
    width: 170px;
    height: 40px;
}

input {
    margin-bottom: 1.5rem;
}

.appointment-title {
    margin-right: 1.5rem;
}

.title-headline {
    font-family: 'Montserrat', sans-serif;
    font-weight: 200;
}

.navbar-gradient {
    background: linear-gradient(270deg, #e97f71 0%, #2c2f80 40%, #90dcfc 100%);
}

.navbar .nav-btn {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.15);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.3rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.navbar .nav-btn:hover,
.navbar .nav-btn:focus {
    background-color: rgba(255, 255, 255, 0.3);
    color: #fff !important;
}

.btn-cta {
    color: #ffffff;
    background: linear-gradient(90deg, #1e3c72 0%, #2a5298 100%);
    opacity: 1;
    transition: 0.3s;
}

.btn-cta:hover,
.btn-cta:focus {
    color: #ffffff;
    opacity: 0.8;
}

.btn-subscribe,
.btn-outline-primary {
    background-color: #e97f71;
    color: #ffffff;
    border: none;
    padding: 0.5rem 1.25rem;
    transition: background-color 0.3s ease;
}

.btn-subscribe:hover,
.btn-outline-primary:hover {
    background-color: #d96c61;
    color: #fff;
}

.gradient-tag {
    background: linear-gradient(90deg, #1e3c72 0%, #2a5298 50%, #f97316 100%);
    color: white;
    font-size: 0.875rem;
    padding: 0.35rem 0.75rem;
    border-radius: 1rem;
    white-space: nowrap;
    font-weight: 500;
}

#card-search {
    border: 1px solid #e97f71;
}

footer {
    background: linear-gradient(90deg, #e97f71 0%, #2c2f80 40%, #90dcfc 100%);
    color: white;
    padding: 3rem 0;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
    color: #90dcfc;
}

footer .footer-divider {
    padding: 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: #ccc;
}

footer .nav.flex-column .nav-item {
    white-space: normal;
}

footer h5 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.title {
    font-weight: 600;
    color: #1e3c72;
}

.tag {
    background-color: #1e1e1e;
    color: white;
    font-size: 0.875rem;
    padding: 0.35rem 0.75rem;
    border-radius: 1rem;
    white-space: nowrap;
}

.card-3d {
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
}
.card-3d:hover {
    transform: rotateY(5deg) scale(1.02);
}

.card-popup-backdrop {
    background-color: rgba(0, 0, 0, 0.75);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.card-popup-inner {
    perspective: 1200px;
    width: 400px;
    height: 300px;
    position: relative;
}

.card-3d-view {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s ease-in-out;
    cursor: pointer;
}

.card-3d-view.is-flipped {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    backface-visibility: hidden;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.card-face.front {
    background-color: white;
}

.card-face.back {
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
}

.card-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1100;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    line-height: 1;
    text-align: center;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flip-card {
    perspective: 1000px;
}

.flip-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.flip-card-inner {
    transition: transform 0.6s;
    transform-style: preserve-3d;
    position: relative;
}
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 1rem;
}
.flip-card-front {
    z-index: 2;
}
.flip-card-back {
    transform: rotateY(180deg);
    color: #ffffff;
    background-color: #90dcfc;
}
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.headline-gradient {
    background: linear-gradient(90deg, #e97f71, #2c2f80, #90dcfc);
    background-size: 200%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: gradientShift 6s ease-in-out infinite;
    display: inline-block;
}

@keyframes gradientShift {
    0% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
    100% {
        background-position: 0% center;
    }
}

.mobile-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: #e97f71;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    overflow: hidden;
    z-index: 9999;
    display: flex;
    align-items: center;
}
  
.ticker-track {
    white-space: nowrap;
    overflow: hidden;
}
  
.ticker-text {
    display: inline-block;
    padding-left: 100%;
    animation: ticker-scroll 60s linear infinite;
}
  
@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
  
.ticker-link {
    color: white;
    text-decoration: underline;
    text-underline-offset: 2px;
}
  
.ticker-link:hover,
.ticker-link:focus {
    color: #fdfdfd;
    text-decoration-thickness: 1px;
}
  
  

@media screen and (max-width: 800px) {
    body {
        font-size: 80%;
    }

    main {
        margin: 0;
    }

    .title-logo {
        width: 130px;
        height: 30px;
    }

    .navbar-nav {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding-left: 0;
        margin-top: 2rem;
    }

    .navbar .nav-btn {
        width: 100%;
        padding: 0.75rem 0;
        font-weight: 600;
        font-size: 1rem;
        color: white !important;
        background-color: transparent;
        text-align: center;
    }

    .navbar-brand {
        margin: 0 !important;
    }

    .search-bar {
        display: none !important;
    } 
}

@media screen and (max-width: 500px) {
    .card-popup-inner {
        width: 90%;
        height: 90%;
        max-width: 400px;
        max-height: 250px;
        margin: 0 1.5rem;
    }

    .card .card-title {
        font-size: 1rem !important;
    }
    
    .card .card-text {
        font-size: 0.8rem;
    }
    
    .card img {
        object-fit: cover;
    }
    
    .card .card-body {
        padding: 0.75rem 1rem;
    }
}