:root {
    --primary-color: #c1121f;
    --secondary-color: #780000;
    --accent-color: #e9c46a;
    --dark-color: #9a0a0a;
    --light-color: #fff8f8;
    --neutral-light: #f9f4f4;
    --neutral-dark: #333;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.7;
    padding-top: 85px;
    background-image: linear-gradient(to bottom, var(--neutral-light) 1px, transparent 1px);
    background-size: 100% 2rem;
}

.site-header .navbar {
    background: linear-gradient(135deg, var(--dark-color) 0%, #1d1f2e 100%);
    box-shadow: var(--shadow-sm);
    padding: 0.8rem 1rem;
    backdrop-filter: blur(6px);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 2rem;
    color: var(--accent-color) !important;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.navbar-brand::after {
    content: none;
    display: inline-block;
    width: 4px;
    height: 2rem;
    background: var(--accent-color);
    margin-left: 12px;
    border-radius: 2px;
    transform: rotate(12deg);
}

.nav-link {
    font-weight: 500;
    transition: var(--transition);
    color: rgba(255, 255, 255, 0.9) !important;
    position: relative;
    margin: 0 8px;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-signup .nav-link {
    background: linear-gradient(to right, var(--accent-color), #f4a261);
    color: var(--dark-color) !important;
    border-radius: 50px;
    padding: 10px 24px !important;
    margin-left: 15px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(233, 196, 106, 0.3);
}

.btn-signup .nav-link:hover {
    background: linear-gradient(to right, var(--primary-color), #c1121f);
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(193, 18, 31, 0.4);
}

.main-content {
    min-height: calc(100vh - 320px);
    padding-bottom: 60px;

}

.card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    margin-bottom: 30px;
    height: 100%;
    background: white;
    position: relative;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--accent-color), var(--primary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-img-top {
    height: 280px;
    object-fit: cover;
    background: linear-gradient(45deg, #f8f2e4, #f9dfd4);
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--dark-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.card-title::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;

    border-radius: 2px;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary-color), #9d0208);
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(193, 18, 31, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(to right, #9d0208, #780000);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 20px rgba(120, 0, 0, 0.4);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    padding: 10px 25px;
    background: transparent;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(193, 18, 31, 0.3);
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--dark-color);
    letter-spacing: -0.5px;
}

h1 {
    font-size: 3rem;
    margin-bottom: 35px;
    position: relative;
    padding-bottom: 20px;
    text-align: center;
}

h1:after {
    content: none;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(to right, var(--accent-color), var(--primary-color));
    border-radius: 3px;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
}

.article-image {
    width: 100%;
    max-height: 550px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
    border: 8px solid white;
}

.article-meta {
    background: linear-gradient(to right, rgba(255,248,248,0.9), rgba(241,250,238,0.7));
    padding: 20px 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(4px);
}

.article-author-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    margin-right: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.article-content {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--neutral-dark);
    max-width: 800px;
    margin: 0 auto;
}

.article-content p {
    margin-bottom: 25px;
    position: relative;
    padding-left: 20px;
}

.article-content p::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-color);
    font-size: 1.5rem;
    line-height: 1;
}

.form-control, .form-select {
    border-radius: 12px;
    padding: 14px 20px;
    border: 2px solid #e9e9e9;
    transition: var(--transition);
    font-size: 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(233, 196, 106, 0.2);
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .navbar-brand {
        font-size: 1.7rem;
    }

    .btn-signup .nav-link {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 75px;
    }

    h1 {
        font-size: 2.3rem;
    }

    .card-img-top {
        height: 220px;
    }

    .article-meta {
        flex-direction: column;
        text-align: center;
    }

    .article-author-img {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .article-content p::before {
        display: none;
    }
}

.icon-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    font-size: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.icon-circle:hover {
    transform: rotate(15deg) scale(1.1);
}

.hero-section {
    background: linear-gradient(110deg, var(--secondary-color), #500000);
    color: white;
    padding: 4rem 0;
    margin-bottom: 3rem;
    border-radius: 0 0 30px 30px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 C20,40 50,60 100,0 L100,100 L0,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
}

.site-footer {
    background: linear-gradient(to top, var(--dark-color), #1a1c28);
    color: rgba(255,255,255,0.85);
    padding: 3rem 0 2rem;
    position: relative;
    clip-path: polygon(0 20px, 100% 0, 100% 100%, 0% 100%);
}

.site-footer::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 20px;
    background: var(--accent-color);
    clip-path: polygon(0 100%, 100% 0, 100% 100%, 0% 100%);
}

.site-footer a {
    color: var(--accent-color);
    transition: var(--transition);
    position: relative;
    display: inline-block;
}

.site-footer a:hover {
    color: white;
    transform: translateX(5px);
}

.site-footer a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: var(--transition);
}

.site-footer a:hover::after {
    width: 100%;
}