
/*---------------------------------------
  GLOBAL BOX-SIZING
-----------------------------------------*/
html {
    box-sizing: border-box;
    /* --- CHANGES MADE HERE --- */
    margin: 0;
    padding: 0;
    width: 100%; /* Ensures html takes 100% of viewport width */
    overflow-x: hidden; /* Hides horizontal scroll for the entire document */
scroll-behavior: smooth;
    /* ------------------------ */
}
*, *::before, *::after {
    box-sizing: inherit;
}

/*---------------------------------------
  CUSTOM PROPERTIES ( VARIABLES )
-----------------------------------------*/
:root {
    --white-color:                   #ffffff;
    --primary-color:                 #E76F51;
    --secondary-color:               #E9C46A;
    --section-bg-color:              #f0f8ff;
    --custom-btn-bg-color:           #F4A261;
    --custom-btn-bg-hover-color:     #E76F51;
    --dark-color:                    #000000;
    --p-color:                       #717275;
    --link-hover-color:              #E76F51;

    --body-font-family:              'Unbounded', sans-serif;

    /* Fixed Font Sizes (in pixels) */
    --h1-font-size: 42px;
    --h2-font-size: 36px;
    --h3-font-size: 28px;
    --h4-font-size: 24px;
    --h5-font-size: 22px;
    --h6-font-size: 20px;
    --p-font-size: 16px;
    --menu-font-size: 12px;
    --btn-font-size: 14px;
    --copyright-font-size: 14px;

    --border-radius-large:           100px;
    --border-radius-medium:          20px;
    --border-radius-small:           10px;

    --font-weight-light:             300;
    --font-weight-normal:            400;
    --font-weight-semibold:          600;
    --font-weight-bold:              700;

    /* Fixed Spacing Variables (in pixels) */
    --section-spacing: 100px; /* Use a single fixed value */
}

/*---------------------------------------
  BASE HTML FONT SIZE (for REM, now fixed)
-----------------------------------------*/
html {
    font-size: 16px; /* Base font size remains fixed */
}

    /* top-bottom-button */
    body {
        margin: 0;
        padding: 20px;
        min-height: 900vh; /* This ensures the page is long enough to scroll down */
        background-color: #f0f4f8;
        color: #334155;
        line-height: 1.6;
    }

    h1 {
        color: #1e293b;
    }

    p {
        margin-bottom: 20px;
    }


        
/*---------------------------------------
  GENERAL buttons
-----------------------------------------*/


body {
    background-color: var(--white-color);
    font-family: var(--body-font-family);
    min-height: 100vh;
    /* --- CHANGES MADE HERE --- */
    overflow-x: hidden; /* Ensures horizontal scroll is hidden */
    overflow-y: auto;   /* Allows vertical scroll if content exceeds height */
    margin: 0;          /* Remove default body margin */
    padding: 0;         /* Remove default body padding */
    /* ------------------------ */
}

/* This wrapper now dictates the fixed width of your entire page content */
.site-container {
    width: 1200px; /* FIXED WIDTH for the entire content area */
    margin-left: auto; /* Center the fixed content */
    margin-right: auto; /* Center the fixed content */
    padding: 0; /* No padding needed here, content should fit within 1200px */
    box-sizing: border-box;
}

main {
    width: 100%; /* Takes 100% of the fixed .site-container width */
    overflow: visible; /* Allows content to be visible within main; clipped by html/body's overflow-x: hidden */
}


section {
    width: 100%; /* Sections take 100% of the fixed .site-container width */
    padding:5px; /* Fixed padding for sections */
    box-sizing: border-box;
}

/* Ensures images scale down within their containers (still important even for fixed layouts) */
img {
    max-width: 100%; /* Will scale down if its parent container is smaller than its intrinsic width */
    height: auto;
    display: block;
}

/* Generic container padding - applied within the fixed .site-container width */
.container {
    padding-left: 15px;
    padding-right: 15px;
}

/*---------------------------------------
  TYPOGRAPHY
-----------------------------------------*/

h2,
h3,
h4,
h5,
h6 {
    color: var(--dark-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--font-weight-semibold);
}

h1 {
    font-size: var(--h1-font-size);
    font-weight: var(--font-weight-bold);
}

h2 {
    font-size: var(--h2-font-size);
    font-weight: var(--font-weight-bold);
}

h3 {
    font-size: var(--h3-font-size);
}

h4 {
    font-size: var(--h4-font-size);
}

h5 {
    font-size: var(--h5-font-size);
}

h6 {
    color: var(--secondary-color);
    font-size: var(--h6-font-size);
}

p {
    color: var(--p-color);
    font-size: var(--p-font-size);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
}

ul li {
    color: var(--p-color);
    font-size: var(--p-font-size);
    font-weight: var(--font-weight-normal);
}

a,
button {
    touch-action: manipulation;
    transition: all 0.3s;
}

a {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    color: var(--link-hover-color);
}

b,
strong {
    font-weight: var(--font-weight-bold);
}

.custom-btn {
    background: var(--custom-btn-bg-color);
    color: var(--white-color);
    padding: 12px 30px;
    border-radius: var(--border-radius-large);
    font-size: var(--btn-font-size);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
}

.custom-btn:hover {
    background: var(--custom-btn-bg-hover-color);
    color: var(--white-color);
}


/*---------------------------------------
  NAVIGATION
-----------------------------------------*/


/* ================================= 
  Media Queries
==================================== */






  

/*
  Desktop and larger screens styles

/* --- REMOVED MEDIA QUERY FOR NAVBAR-COLLAPSE --- */
/* For a truly fixed layout, avoid responsive overrides for the navbar collapse */
/* If you need the navbar to collapse for smaller screens, you'll need to re-introduce
   Bootstrap's responsive classes AND handle the fixed width conflict carefully. */
/* ----------------------------------------------- */

/*---------------------------------------
  THE BOOK SECTION
-----------------------------------------*/
.the-book-section {
    text-align: center;
}

.nav-pills {
    border: 5px solid darkblue;
    background-color: gray;
    border-radius: var(--border-radius-medium);
    position: relative;
    top: 0px;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.nav-pills .nav-item {
    flex-shrink: 0;
    background-color: lightblue;
}

.nav-pills .nav-link {
    background: var(--section-bg-color);
    color: var(--p-color);
    border-radius: var(--border-radius-large);
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 20px 50px;
}

.nav-pills .nav-link:hover,
.nav-pills .nav-link.active,
.show.nav-link {
    background-color: lightblue;
    color: var(--white-color);
}

.tab-content {
    margin-top: 30px;
}

.tab-content img {
    margin-top: 20px;
}

/*----------------- IMAGES STYLING SECTION----------------------*/ 
 

/*---------------------------------------
  AUTHOR SECTION
-----------------------------------------*/
.author-image {
    border: 10px solid var(--secondary-color);
    position:center;
    border-radius: 100%;
    display: block;
    margin: 0;
    width: 350px; /* Fixed image size */
    height: 350px; /* Fixed image size */
    object-fit: cover;
    flex-shrink: 0;
    justify-content: center;
    
}

.author-content {
    max-width: 600px;
    width: auto;
    justify-content: center;
}


/*---------------------------------------
  CONTACT
-----------------------------------------*/
.contact-section {
    background: var(--custom-btn-bg-color);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.contact-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 450px 450px 0 0; /* Fixed border width */
    border-color: var(--white-color)  transparent;
    pointer-events: none;
}

.contact-section .container {
    position: relative;
}

.contact-section p {
    color: var(--white-color);
    font-size: var(--h6-font-size);
}

.contact-link {
    color: var(--white-color);
    text-decoration: underline;
}

.contact-section .copyright-text {
    font-size: var(--copyright-font-size);
}


/*---------------------------------------
  SOCIAL ICON
-----------------------------------------*/
.social-icon {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-icon-item {
    list-style: none;
    vertical-align: top;
}

.social-icon-link {
    background: var(--secondary-color);
    border-radius: var(--border-radius-large);
    color: var(--white-color);
    font-size: var(--copyright-font-size);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px; /* Fixed icon size */
    height: 35px; /* Fixed icon size */
    transition: background 0.2s, color 0.2s;
}

.social-icon-link:hover {
    background: var(--primary-color);
    color: var(--white-color);
}