:root {
    --bs-primary: #133469;
    --bs-primary-rgb: 19, 52, 105;
}

.btn-primary {
    background-color: #133469;
    border-color: #133469;
}
.btn-primary:hover {
    background-color: #0e2b54;
    border-color: #0a2342;
}

/* Change main hero heading to Palatino */
.hero-section h1 {
    font-family: Palatino, "Palatino Linotype", "Book Antiqua", serif;
}
/* Navbar brand */
.navbar-brand {
    font-family: Palatino, "Palatino Linotype", "Book Antiqua", serif;
}

.card {
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.hero-section {
    background: linear-gradient(135deg, #133469 0%, #1a4b8c 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 30px;
    border-radius: 0 0 50px 50px;
}

.pricing-card {
    border: 2px solid #e9ecef;
}
.pricing-card.premium {
    border-color: #133469;
    transform: scale(1.02);
}

/* ===== Navbar Enhancements ===== */
.navbar {
    background-color: #133469; /* moved from inline style */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 1rem;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    color: white; /* keep brand white for contrast */
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 4px;
}

/* Hover effect: background highlight + underline */
.navbar-nav .nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 70%;
}

/* Active link style */
.navbar-nav .nav-link.active {
    color: #ffffff !important;
    font-weight: 700;
}
.navbar-nav .nav-link.active::after {
    width: 70%;
    background: #ffffff;
}

/* Sign Up button refinement */
.navbar .btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529 !important;
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s;
}
.navbar .btn-warning:hover {
    background-color: #ffca2c;
    border-color: #ffca2c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Dropdown menu (user menu) */
.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
}
.dropdown-item {
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    transition: background 0.2s;
}
.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #133469; /* updated */
}

/* Mobile toggler icon */
.navbar-toggler {
    border: 1px solid rgba(255,255,255,0.5);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Attachment styles (from forum) */
.attachment-item {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}
.attachment-item .btn-danger {
    opacity: 0.8;
    transition: opacity 0.2s;
}
.attachment-item:hover .btn-danger {
    opacity: 1;
}
.attachment-icon a {
    color: inherit;
}

/* Forum topic cards (if used) */
.forum-topic-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid #133469; /* updated */
    border-radius: 8px;
}
.forum-topic-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15) !important;
}

/* Avatar circle */
.avatar-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    background-color: #133469; /* updated */
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Badge spacing */
.badge {
    padding: 0.5em 0.8em;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .avatar-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .forum-topic-card .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }
    .forum-topic-card .flex-shrink-0 {
        margin-bottom: 10px;
    }
}