/*******************************/
/********* General CSS *********/
/*******************************/
body {
    color: #333;
    font-weight: 500;
    background: #ffffff;
    font-family: 'Quicksand', sans-serif;
    line-height: 1.7;
}

h1,
h2, 
h3, 
h4,
h5, 
h6 {
    color: black;
}

a {
    color: #4a4c70;
    transition: .3s;
}

a:hover,
a:active,
a:focus {
    color: #FDBE33;
    outline: none;
    text-decoration: none;
}

.btn.btn-custom {
    padding: 12px 20px;
    text-align: center; 
    font-size: 16px;
    font-weight:bolder;
    color: #777777;
    border-radius: 0;
    border: 2px solid black;
    box-shadow: inset 0 0 0 0 rgb(189, 9, 9);
    transition: ease-out 0.3s;
    -webkit-transition: ease-out 0.3s;
    -moz-transition: ease-out 0.3s;
}

.btn.btn-custom:hover {
    color: white;
    box-shadow: inset 0 0 0 30px rgb(189, 9, 9);
}

.btn:focus,
.form-control:focus {
    box-shadow: none;
}

.container-fluid {
    max-width: 1521px; /* This was the culprit for other sections, but overridden for carousel below */
}

/* Specific override for carousel's container-fluid */
.carousel .container-fluid {
    max-width: 100%; /* Ensures the carousel content spans full width */
    width: 100%; /* Explicitly set width to 100% */
    padding: 0; /* Ensures no internal padding */
}


[class^="flaticon-"]:before, [class*=" flaticon-"]:before,
[class^="flaticon-"]:after, [class*=" flaticon-"]:after {   
    font-size: inherit;
    margin-left: 0;
}


/**********************************/
/****** Loader & Back to Top ******/
/**********************************/
#loader {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: opacity .3s ease-out, visibility 0s linear .3s;
    -o-transition: opacity .3s ease-out, visibility 0s linear .3s;
    transition: opacity .3s ease-out, visibility 0s linear .3s;
    z-index: 999;
}

#loader.show {
    -webkit-transition: opacity .6s ease-out, visibility 0s linear 0s;
    -o-transition: opacity .6s ease-out, visibility 0s linear 0s;
    transition: opacity .6s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

#loader .loader {
    position: relative;
    width: 45px;
    height: 45px;
    border: 5px solid #dddddd;
    border-top: 5px solid #FDBE33;
    border-radius: 50%;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.back-to-top {
    position: fixed;
    display: none;
    background:rgb(189, 9, 9);
    width: 44px;
    height: 44px;
    text-align: center;
    line-height: 1;
    font-size: 22px;
    right: 15px;
    bottom: 15px;
    transition: background 0.5s;
    z-index: 9;
}

.back-to-top i {
    color: white;
    padding-top: 10px;
}

.back-to-top:hover {
    background: white;
}

.back-to-top:hover i {
    color: black;
}


/**********************************/
/********** Top Bar CSS ***********/
/**********************************/
/* Top Bar CSS */
.top-bar {
    position: absolute;
    height: 45px;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 3;
    /*border-bottom: 1px solid rgba(255, 255, 255, .3);*/
}

.top-bar .top-bar-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.top-bar .top-bar-left img {
    /* Responsive image sizing for larger screens */
    max-width: 180px; /* Max width for the logo */
    height: auto; /* Maintain aspect ratio */
    margin-top: 20px;
    transition: all 0.3s ease; /* Smooth transition for resizing */
}

@media (min-width: 992px) {
    .top-bar {
        padding: 0 60px;
    }
    .top-bar .top-bar-left img {
        /* Adjust size for very large screens if needed */
        max-height: 180px; /* Original height */
    }
}

/* Nav Bar CSS */
.navbar {
    position: relative;
    transition: .5s;
    z-index: 999;
}

.navbar.nav-sticky {
    position: fixed;
    top: 0;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .3);
    transition: .5s;
}

.navbar .navbar-brand {
    margin: 0;
    color: #ffffff;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    font-family: 'Times New Roman', Times, serif !important;
}

/* Adjustments for the brand text on smaller screens */
.navbar-brand.d-md-none {
    font-size: 24px !important; /* Smaller font size for mobile brand */
    letter-spacing: 2px;
    line-height: normal; /* Reset line height */
    padding: 10px 0; /* Add some padding */
}

.navbar .navbar-brand img {
    max-width: 100%;
    max-height: 60px;
}

/* Responsive navbar brand sizing */
@media (max-width: 1200px) {
    .navbar .navbar-brand {
        font-size: 28px;
        letter-spacing: 2.5px;
        font-family: 'Times New Roman', Times, serif !important;
    }
}

@media (max-width: 991px) {
    .navbar .navbar-brand {
        font-size: 24px;
        letter-spacing: 2px;
        font-family: 'Times New Roman', Times, serif !important;
    }
}

.navbar-dark .navbar-nav .nav-link,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    padding: 10px 15px 8px 15px;
    color: #ffffff;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: rgb(189, 9, 9); /* Changed to Red */
    transition: none;
}

/* Dropdown menu styling */
.navbar .dropdown-menu {
    margin-top: 0;
    border: none;
    background: #ffffff;
    padding: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    min-width: 200px;
    transform: translateY(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.navbar .dropdown.show .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navbar .dropdown-menu .dropdown-item {
    color: #333;
    padding: 12px 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: 500;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus {
    background-color: #f8f9fa;
    color: rgb(189, 9, 9);
}


@media (min-width: 992px) {
    .navbar {
        position: absolute;
        width: 100%;
        top: 45px;
        padding: 20px 60px;
        background: transparent !important;
        /*border-bottom: 1px solid rgba(255, 255, 255, .3);*/
        z-index: 9;
    }
    
    .navbar.nav-sticky {
        padding: 10px 60px;
        background: #20212B !important;
        border-bottom: none;
    }
    
    .page .navbar {
        background: #20212B !important;
    }
    
    .navbar a.nav-link {
        padding: 8px 15px;
        font-size: 17px;
        letter-spacing: 1px;
        font-weight: bolder;
    }
}

@media (max-width: 991.98px) {
    .navbar {
        padding: 15px;
        background: #20212B !important;
    }
    
    .navbar a.nav-link {
        padding: 5px;
    }
    
    .navbar .dropdown-menu {
        box-shadow: none; /* Remove shadow on small screens */
        border-radius: 0;
        /* Reset animations for mobile view */
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        background: rgba(169, 162, 162, 0.05); /* A slightly transparent background for mobile */
    }
    
    .navbar .dropdown-menu .dropdown-item {
        color: #ffffff; /* Use white text for contrast on mobile */
    }
    
    .navbar .dropdown-menu .dropdown-item:hover {
        background-color: transparent;
        color: rgb(189, 9, 9); /* Use theme color for hover (Red) */
    }

    /* Hide the top bar logo on small screens */
    .top-bar {
        display: none !important;
    }
}



/*******************************/
/******* Page Header CSS *******/
/*******************************/
.page-header {
    position: relative;
    margin-bottom: 45px;
    padding: 210px 0 90px 0;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)), url(img/mainimg5.jpg);
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-header h2 {
    position: relative;
    color: white;
    font-size: 60px;
    font-weight: 700;
    margin-bottom: 20px;
    padding: 15px 30px;
    border: 5px solid rgb(189, 9, 9);
    border-radius: 10px;
    display: inline-block;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-header a {
    position: relative;
    padding: 0 12px;
    font-size: 22px;
    color: #ffffff;
}

.page-header a:hover {
    color: #FDBE33;
}

.page-header a::after {
    position: absolute;
    content: "/";
    width: 8px;
    height: 8px;
    top: -2px;
    right: -7px;
    text-align: center;
    color: #ffffff;
}

.page-header a:last-child::after {
    display: none;
}

@media (max-width: 991.98px) {
    .page-header {
        padding: 60px 0;
        background-size: cover !important;
    }
    
    .page-header h2 {
        font-size: 45px;
        padding: 12px 25px;
        border: 4px solid rgb(189, 9, 9);
    }
    
    .page-header a {
        font-size: 20px;
    }
}

@media (max-width: 767.98px) {
    .page-header {
        padding: 45px 15px;
        background-size: cover !important;
    }
    
    .page-header h2 {
        font-size: 35px;
        padding: 10px 20px;
        border: 3px solid rgb(189, 9, 9);
    }
    
    .page-header a {
        font-size: 18px;
    }
}


/*******************************/
/******* Section Header ********/
/*******************************/
.section-header {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto 45px auto;
}

.section-header p {
    margin-bottom: 5px;
    position: relative;
    font-size: 30px;
    font-weight: 800;
    text-transform: capitalize;
    color: rgb(189, 9, 9);
}

.section-header h2 {
    margin: 0;
    font-size: 50px;
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .section-header h2 {
        font-size: 45px;
    }
}

@media (max-width: 767.98px) {
    .section-header h2 {
        font-size: 40px;
    }
}

@media (max-width: 575.98px) {
    .section-header h2 {
        font-size: 35px;
    }
}



/*******************************/
/********* Article CSS *********/
/*******************************/
/* Article images */
.img-left, .img-right {
    width: 40%;
    max-width: 400px;
    margin: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: auto;
}

.img-left {
    float: left;
    margin-right: 25px;
}

.img-right {
    float: right;
    margin-left: 25px;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Blog section */
.blog {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.blog .section-header h2 {
    font-size: 2.8em;
    color: #1a1a1a;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
}

.blog .section-header h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: rgb(189, 9, 9);
    border-radius: 2px;
}

/* Hide red underlines on mobile */
@media (max-width: 767px) {
    .blog .section-header h2::after,
    .related-articles h3::after {
        display: none;
    }
}

.blog .container p {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #555;
}

.blog .container strong {
    color: #222;
}

.blog .container ul {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
}

.blog .container ul li {
    margin-bottom: 8px;
    font-size: 1.05em;
}

.blog .quote {
    font-style: italic;
    margin: 30px 0;
    padding: 20px 30px;
    border-left: 6px solid rgb(189, 9, 9);
    background-color: #f8e3dd;
    color: black;
    border-radius: 5px;
    font-size: 1.2em;
    line-height: 1.5;
}

.blog .highlight {
    background-color: #fff3cd;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
    text-align: center;
    font-weight: bold;
    font-size: 1.3em;
    color: #c1af78;
    border: 1px solid #ffeeba;
}

/* Related articles section */
.related-articles {
    padding: 50px 0;
    background-color: #f0f0f0;
    border-top: 1px solid #ddd;
    margin-top: 40px;
}

.related-articles h3 {
    font-size: 2.2em;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.related-articles h3::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: rgb(189, 9, 9);
    border-radius: 2px;
}

.related-articles ul {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.related-articles li {
    background-color: white;
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-articles li:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.related-articles a {
    color: rgb(189, 9, 9);
    font-size: 1.15em;
    font-weight: 600;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

.related-articles a:hover {
    color: black;
}

.related-articles p.source-info {
    font-size: 0.95em;
    color: #777;
    margin-bottom: 0;
}

/* ========================================= */
/* MOBILE RESPONSIVE MEDIA QUERIES */
/* ========================================= */

/* Tablets and smaller devices (max-width: 991px) */
@media (max-width: 991px) {
    /* Blog section adjustments */
    .blog {
        padding: 40px 0;
    }
    
    .blog .section-header h2 {
        font-size: 2.2em;
    }
    
    .blog .container p {
        font-size: 1.05em;
    }
    
    /* Image adjustments for tablets */
    .img-left, .img-right {
        width: 45%;
        max-width: 350px;
        margin: 15px;
    }
    
    .page-header h2 {
        font-size: 2.8em !important;
        padding: 12px 25px !important;
    }
    
    .related-articles h3 {
        font-size: 2em;
    }
}

/* Mobile devices (max-width: 767px) */
@media (max-width: 767px) {
    /* Navbar fixes for mobile */
    .navbar {
        padding: 10px 15px !important;
    }
    
    .navbar-toggler {
        z-index: 1000;
        background-color: rgb(189, 9, 9) !important;
        border: 2px solid white !important;
        padding: 8px 10px;
    }
    
    .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='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }
    
    .navbar .navbar-brand {
        font-size: 20px !important;
        line-height: 1.3 !important;
        letter-spacing: 1px !important;
        padding-right: 60px !important;
        max-width: calc(100% - 70px) !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        font-family: 'Times New Roman', Times, serif !important;
    }
    
    /* Blog section for mobile */
    .blog {
        padding: 30px 0;
    }
    
    .blog .section-header h2 {
        font-size: 1.8em;
        line-height: 1.3;
        padding: 0 15px;
    }
    
    .blog .container p {
        font-size: 1em;
        padding: 0 10px;
    }
    
    /* Stack images on mobile - remove float */
    .img-left, .img-right {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 20px 0 !important;
        display: block;
    }
    
    /* Remove clearfix float issues on mobile */
    .clearfix {
        overflow: visible;
    }
    
    .clearfix::after {
        display: none;
    }
    
    /* Quote styling for mobile */
    .blog .quote {
        font-size: 1.1em;
        padding: 15px 20px;
        margin: 20px 10px;
    }
    
    .blog .highlight {
        font-size: 1.15em;
        padding: 15px;
        margin: 20px 10px;
    }
    
    /* List adjustments */
    .blog .container ul {
        margin-left: 20px;
        padding-right: 10px;
    }
    
    .blog .container ul li {
        font-size: 1em;
        margin-bottom: 10px;
    }
    
    /* Page header for mobile */
    .page-header {
        min-height: 180px;
        padding: 100px 10px 30px 10px;
        background-size: cover !important;
        background-position: center !important;
    }
    
    .page-header h2 {
        font-size: 1.5em !important;
        padding: 8px 15px !important;
        border: 2px solid rgb(189, 9, 9) !important;
        line-height: 1.4;
        word-wrap: break-word;
        max-width: 100%;
    }
    
    /* Related articles for mobile */
    .related-articles {
        padding: 30px 0;
    }
    
    .related-articles h3 {
        font-size: 1.6em;
        padding: 0 15px;
    }
    
    .related-articles li {
        margin: 0 10px 15px 10px;
        padding: 15px;
    }
    
    .related-articles a {
        font-size: 1.05em;
        line-height: 1.4;
    }
    
    .related-articles p.source-info {
        font-size: 0.9em;
    }
}

/* Extra small mobile devices (max-width: 575px) */
@media (max-width: 575px) {
    .navbar .navbar-brand {
        font-size: 16px !important;
        letter-spacing: 0.5px !important;
        max-width: calc(100% - 70px) !important;
        line-height: 1.3 !important;
        font-family: 'Times New Roman', Times, serif !important;
    }
    
    .blog .section-header h2 {
        font-size: 1.5em;
        line-height: 1.4;
    }
    
    .blog .container p {
        font-size: 0.95em;
    }
    
    .blog .quote {
        font-size: 1em;
        padding: 12px 15px;
        margin: 15px 5px;
    }
    
    .blog .highlight {
        font-size: 1.05em;
        padding: 12px;
        margin: 15px 5px;
    }
    
    .page-header {
        padding: 90px 5px 25px 5px;
        background-size: cover !important;
    }
    
    .page-header h2 {
        font-size: 1.2em !important;
        padding: 6px 12px !important;
        border: 2px solid rgb(189, 9, 9) !important;
        line-height: 1.5;
    }
    
    .related-articles h3 {
        font-size: 1.4em;
    }
    
    .related-articles a {
        font-size: 1em;
    }
    
    /* Footer adjustments for extra small screens */
    .footer-logo {
        font-size: 24px;
    }
    
    .footer-link h3, .footer-contact h3 {
        font-size: 20px;
    }
}

/* Fix for very narrow screens (max-width: 400px) */
@media (max-width: 400px) {
    .navbar .navbar-brand {
        font-size: 13px !important;
        letter-spacing: 0 !important;
        max-width: calc(100% - 65px) !important;
        line-height: 1.4 !important;
        padding: 5px 60px 5px 0 !important;
        font-family: 'Times New Roman', Times, serif !important;
    }
    
    .blog .section-header h2 {
        font-size: 1.3em;
    }
    
    .page-header {
        background-size: cover !important;
    }
    
    .page-header h2 {
        font-size: 1em !important;
        padding: 5px 10px !important;
        border: 1px solid rgb(189, 9, 9) !important;
    }
}

/*******************************/
/********* Footer CSS **********/
/*******************************/
.footer {
    background-color: #000000; /* Black background */
    color: #ffffff; /* White text */
    padding: 60px 0 30px 0;
    font-family: 'Quicksand', sans-serif;
}

.footer-top {
    padding-bottom: 30px;
}

.footer-logo {
    font-family: 'Georgia', serif !important;
    font-size: 28px;
    font-weight: 700;
    color: rgb(189, 9, 9); /* Red for logo/accent */
    margin-bottom: 20px;
}

.footer-about p {
    color: #cccccc; /* Slightly lighter white for body text */
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-cta-btn {
    background-color: rgb(189, 9, 9); /* Red button background */
    color: #ffffff; /* White button text */
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.footer-cta-btn:hover {
    background-color: #cc0000; /* Darker red on hover */
    color: #ffffff;
}

.footer-link h3, .footer-contact h3 {
    font-size: 22px;
    font-weight: 600;
    color: rgb(189, 9, 9); /* Red for section headings */
    margin-bottom: 25px;
    position: relative;
}


.footer-link a, .footer-contact p {
    display: block;
    color: #ffffff; /* White for links and contact text */
    margin-bottom: 10px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link a:hover {
    color: rgb(189, 9, 9); /* Red on link hover */
}

.footer-contact p i {
    margin-right: 10px;
    color: rgb(189, 9, 9); /* Red for contact icons */
}

.footer-contact p a{
    color: #ffffff;
}

.footer-contact p a:hover{
    color: rgb(242, 83, 83);
}

.footer-social .btn-social {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1); /* Slightly transparent white for social buttons */
    border-radius: 50%;
    margin-right: 8px;
    color: #ffffff; /* White icons */
    transition: background-color 0.3s ease;
}

.footer-social .btn-social:hover {
    background: rgb(189, 9, 9); /* Red background on social button hover */
    color: #ffffff; /* White icon on hover */
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Light white border */
    padding-top: 20px;
    margin-top: 30px;
    font-size: 14px;
    color: #cccccc; /* Slightly lighter white for copyright text */
}

.footer-bottom a {
    color: rgb(189, 9, 9); /* Red for links in copyright */
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}