/* nav start */
:root {
    --primary-color: #8B0000; /* Dark red */
    --secondary-color: #ffffff; /* White */
    --hover-color: #ffcccc; /* Light red for hover effects */
}

body {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    background-color: #f8f9fa;
}

.custom-navbar {
    background-color: var(--primary-color);
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar-brand img {
    transition: transform 0.3s ease;
    margin-right: 10px;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: var(--secondary-color) !important;
    font-weight: 500;
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--hover-color) !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 70%;
}

.dropdown-menu {
    background-color: var(--primary-color);
    border: none;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.dropdown-item {
    color: var(--secondary-color);
    padding: 0.7rem 1.2rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--hover-color);
}

.dropdown-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.35rem 0.65rem;
}

.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(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.search-form {
    position: relative;
}

.search-form .form-control {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--secondary-color);
    border-radius: 50px;
    padding: 0.5rem 1.2rem;
    transition: all 0.3s ease;
    width: 220px;
}

.search-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-form .form-control:focus {
    background-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    color: var(--secondary-color);
    width: 280px;
}

.search-button {
    background: transparent;
    border: none;
    color: var(--secondary-color);
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 1199.98px) {
    .search-form .form-control {
        width: 180px;
    }
    
    .search-form .form-control:focus {
        width: 220px;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--primary-color);
        padding: 1rem;
        border-radius: 5px;
        margin-top: 0.5rem;
    }
    
    .search-form {
        margin-top: 1rem;
        width: 100%;
    }
    
    .search-form .form-control {
        width: 100%;
    }
    
    .search-form .form-control:focus {
        width: 100%;
    }
    
    .dropdown-menu {
        background-color: rgba(0, 0, 0, 0.2);
        margin-left: 1rem;
        margin-top: 0.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.7rem 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand img {
        height: 50px !important;
    }
}
/* nav End  */



/* footer Start */
:root{
    --dark-bg: #1b1c1c;
    --accent-red: #8B0000;
    --text-white: #ffffff;
    --hover-color: #ffcccc;
    --border-color: rgba(255, 255, 255, 0.2);
}

.demo-content {
    min-height: 100vh;
    padding: 2rem;
}

.footer-main {
    background-color: var(--dark-bg);
    color: var(--text-white);
    padding: 2rem 0 0;
    margin: 0;
    width: 100%;
}

.footer-section {
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
    font-weight: 600;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-red);
}

.footer-section p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-white);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 0.3rem 0;
    position: relative;
}

.footer-links a:hover {
    color: var(--hover-color);
    padding-left: 0.5rem;
}

.footer-links a::before {
    content: '›';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover::before {
    left: -10px;
    opacity: 1;
}

.footer-divider {
    border-top: 1px solid var(--border-color);
    margin: 1rem 0;
}

.social-icons {
    margin-top: 1rem;
}

.social-icons a {
    display: inline-block;
    color: var(--text-white);
    background-color: rgba(255, 255, 255, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--accent-red);
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: var(--accent-red);
    color: var(--text-white);
    padding: 1rem 0;
    text-align: center;
    margin: 0;
    width: 100%;
}

.copyright {
    margin: 0;
    font-size: 0.9rem;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--accent-red);
    color: var(--text-white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #a52a2a;
    transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .footer-section {
        margin-bottom: 2rem;
    }
    
    .footer-links a {
        padding: 0.5rem 0;
    }
}

@media (max-width: 767.98px) {
    .footer-main {
        padding: 2rem 0 0;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
    }
    
    .footer-section h4::after {
        width: 40px;
    }
}

@media (max-width: 575.98px) {
    .footer-main {
        padding: 1.5rem 0 0;
    }
    
    .footer-section {
        margin-bottom: 1.5rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
}

/* Custom accordion for mobile */
.footer-accordion .accordion-button {
    background-color: transparent;
    color: var(--text-white);
    padding: 0.75rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-accordion .accordion-button:not(.collapsed) {
    background-color: transparent;
    color: var(--text-white);
    box-shadow: none;
}

.footer-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.footer-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125);
}

.footer-accordion .accordion-body {
    padding: 0.5rem 0;
}

.accordion-item {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
}

/* Footer End*/