/* Custom Styles to complement Bootstrap */

/* Use a more professional font */
body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Make header stand out more */
header {
    background: linear-gradient(45deg, #004085, #0056b3);
}

.display-4 {
    font-weight: 300;
}

/* Card styles for main content sections */
.card {
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    scroll-margin-top: 80px; /* Offset for sticky nav */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.card-title {
    color: #004085;
}

.card-title i {
    color: #0056b3;
}

/* Ensure smooth scrolling when clicking nav links */
html {
    scroll-behavior: smooth;
}

.navbar.sticky-top {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1030;
}

/* more */

.card-body {
    display: flex;
    flex-direction: column;
    text-align: left; /* Aligns paragraph text to the left */
}

.card-title-container {
    text-align: center; /* Centers the icon and title */
    margin-bottom: 1.5rem; /* Adds space below the title */
}

.card-title-container .fas,
.card-title-container .far {
    font-size: 2.5rem; /* Makes the icon larger */
    margin-bottom: 0.75rem; /* Space between icon and text */
    color: #004085; /* Consistent navy blue color */
}

.card-title-container h2 {
    font-size: 1.5rem;
    color: #004085; /* Consistent navy blue color */
    margin-bottom: 0;
}

.card .btn {
    margin-top: auto; /* Pushes the button to the bottom of the card */
}

/* Custom Button Styles for color consistency */

/* This sets the text and border color for the buttons in their default state */
.btn-outline-primary {
    --bs-btn-color: #012246;
    --bs-btn-border-color: #004085;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #004085;
    --bs-btn-hover-border-color: #004085;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #004085;
    --bs-btn-active-border-color: #004085;
    --bs-btn-focus-shadow-rgb: 0, 64, 133; /* Optional: Adjusts the glow when focused */
}

/* Custom Button Styles for color consistency */


/* Add this to the end of your style.css file */

.hero-banner {
    position: relative; /* Needed for the overlay */
    height: 40vh; /* Sets the banner height to 60% of the viewport height */
    min-height: 250px; /* Ensures a minimum height on small screens */
    width: 100%;
    
    /* Image background settings */
    background-image: url('images/main.png'); /* Assumes your image is in an 'images' folder */
    background-size: cover; /* This is the key: makes the image cover the entire area */
    background-position: center; /* Centers the image */

    /* Flexbox for centering content */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

/* Adds a dark overlay on top of the image to make text more readable */
.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 25, 51, 0.5); /* Semi-transparent navy overlay */
}

/* Styles the text container */
.hero-content {
    position: relative; /* Puts this content above the overlay */
    padding: 2rem;
    border-radius: 10px;
    background-color: rgba(0, 25, 51, 0.8); /* A slightly darker box for the text */
    max-width: 80%;
}

.hero-content h1 {
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}


/*   Chapter css   */

/* Additions for chapter.html */

/* Style the chapter content for better readability */
.chapter-content h2 {
    color: #004085;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

/* Style for the sticky sidebar navigation */
.sticky-top {
    top: 80px; /* Offset for the height of the sticky navbar */
}

.chapter-nav .nav-link {
    color: #555;
    padding: 0.5rem 0;
    border-left: 3px solid transparent;
    transition: all 0.2s ease-in-out;
}

.chapter-nav .nav-link:hover {
    color: #004085;
    border-left: 3px solid #0056b3;
    transform: translateX(5px);
}

/* You can later use JavaScript to add the .active class based on scroll position */
.chapter-nav .nav-link.active {
    color: #004085;
    font-weight: bold;
    border-left: 3px solid #0056b3;
}

/* Updated header style for all-chapters.html with background image */
.all-chapters-header {
    position: relative; /* This is the anchor for the overlay */
    color: white;
    padding: 4rem 1.5rem; /* A bit more padding for a better look */
    text-align: center;
    background-image: url('images/chapters.png'); /* Sets your background image */
    background-size: cover; /* Ensures the image fills the entire area */
    background-position: center; /* Centers the image */
}

/* This creates the dark, semi-transparent overlay */
.all-chapters-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 26, 45, 0.7); /* Dark navy overlay with 70% opacity */
}

/* This ensures your H1 and P tags appear on top of the dark overlay */
.all-chapters-header .container {
    position: relative; 
}