/******************************************************************


	------------------------
	-- TABLE OF CONTENTS --
	------------------------
	
	--  01. Basic
	--  02. Preloader
    --  03. Hero
    --  04. Hero --> Front Content
    --  05. Hero --> Background Content
    --  06. Portfolio
    --  07. Footer
    --  08. Page --> About
    --  09. Page --> Portfolio Item Type B
    --  10. Page --> Portfolio Item Type B
 
 
 ******************************************************************/


/** Sidebar
*******************************************************************/


.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 15%; /* Set sidebar width to percentage */
    min-width: 150px; /* Ensure it doesn't get too narrow */
    height: 100%;
    background-color: #333;
    padding-top: 20px;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li {
    text-align: center;
}

.sidebar ul li a {
    display: block;
    color: white;
    padding: 10px;
    text-decoration: none;
    font-size: 18px;
}

.sidebar ul li a:hover {
    background-color: #575757;
}

/* Arrow Icon */
.arrow {
    font-size: 16px;
    margin-left: 10px;
    transition: transform 0.3s;
}

/* Sub-Sidebars (Hidden by default) */
.sub-sidebar {
    display: none;
    list-style-type: none;
    padding-left: 20px;
    background-color: #444; /* Darker background for sub-sidebars */
}

.sub-sidebar li a {
    padding: 10px;
    font-size: 16px;
    text-align: left;
    color: white;
}

.sub-sidebar li a:hover {
    background-color: #575757;
}

/* Active State for Arrow */
.has-sub.active .arrow {
    transform: rotate(180deg); /* Flip arrow when expanded */
}

/* Responsive Design for Small Screens */
@media screen and (max-width: 768px) {
    .sidebar {
        position: relative; /* Sidebar will stack above content */
        width: 100%; /* Take full width on small screens */
        height: auto; /* Adjust height */
        padding-top: 10px;
    }

    .sidebar ul li {
        text-align: left; /* Align text to left */
        padding-left: 10px;
    }

    .main-content {
        margin-left: 0; /* No margin on smaller screens */
        margin-right: 0;
        padding: 10px; /* Reduce padding */
    }

    .main-content h1 {
        font-size: 6rem; /* Reduce heading size */
    }
}






/** Main Content
*******************************************************************/

.main-content {
    margin-left: 18%; /* Space for sidebar (slightly larger than sidebar width) */
    margin-right: 5%; /* Add some breathing room on the right */
    padding: 20px;
}

.main-content h1 {
    font-size: 7rem;
    margin-top: 2em;
    max-width: 850px;
    margin-bottom: 1em;
    color: #40473e;
}

.main-content h2 {
    font-size: 24px;
    max-width: 850px;
    margin-top: 20px;
    color: #40473e;
}

.main-content h4 {
    margin-top: 30px;
    max-width: 850px;
    margin-bottom: 1em;
    color: #40473e;
}

.main-content h5 {
    margin-top: 30px;
    line-height: 2.4em;
    max-width: 850px;
    margin-bottom: 1em;
    color: #40473e;
}

.main-content p {
    font-family: Georgia;
    line-height: 2.4em;
    max-width: 850px;
    margin-bottom: 0.5em;
    color: #1b1e1b;
}




/** Images
*******************************************************************/
.image-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 4rem;
}

/* Individual images */
.image-container figure {
    flex: 1 1 calc(50% - 1rem);
    max-width: calc(50% - 1rem);
    box-sizing: border-box;
    border-radius: 5px;
    margin: 0;
}

/* Make one image fill the container */
.image-container:only-child figure,
.image-container figure:only-child {
    flex: 1 1 100%;
    max-width: 850px;
}

/* Images */
.image-container img {
    max-width: 850px;
    height: auto;
    display: block;
}

/* Caption */
.image-container figcaption {
    font-family: Georgia;
    text-align-last: center;
    font-size: 1.7rem;
    letter-spacing: 0.3px;
    color: #40473e;
    padding: 10px;
    box-sizing: border-box;
}

/* Responsive Design for Small Screens */
@media screen and (max-width: 768px) {
    .image-container figure {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .img-magnifier-container img {
        width: 100%; /* Make magnified image responsive */
        height: auto;
    }
}

.magnifier-container {
    margin-bottom: 4rem;
    text-align: center;
}

/* The magnifier image container */
.img-magnifier-container {
    position: relative;
    margin-bottom: 1rem;
}

.img-magnifier-glass {
  position: absolute;
  border: 3px solid #40473e; /* Greenish/Brown border for better aesthetics */
  border-radius: 50%;
  cursor: none;
  /* Set the size of the magnifier glass */
  width: 150px;  /* Larger glass */
  height: 150px; /* Larger glass */
  background-repeat: no-repeat;
  background-size: 600% 600%; /* Zoom in more */
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3); /* Add shadow for a smooth effect */
}

/* Caption for the magnifier image */
.magnifier-container figcaption {
    font-family: Georgia;
    font-size: 1.7rem;
    letter-spacing: 0.3px;
    color: #40473e; /* Same greenish color */
    padding: 10px;
    box-sizing: border-box;
}





/** Bingo
*******************************************************************/
.bingo-button {
    display: inline-block;
    background-color: #40473e; /* Green */
    color: white;
    text-decoration: none;
    font-size: 7rem;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 8px;
    transition:
        background-color 0.3s ease,
        transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.bingo-button:hover {
    background-color: #778a71; /* Darker green */
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.25);
}

.bingo-button:active {
    transform: translateY(1px);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}






/** Tables
*******************************************************************/
.table-wrapper {
    overflow-x: auto; /* Enables horizontal scrolling if the table overflows */
    -webkit-overflow-scrolling: touch; /* For smoother scrolling on touch devices */
    margin-bottom: 1rem;
}

.responsive-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #40473e;
    box-sizing: border-box;
    margin-bottom: 1rem;
    font-family: Arial, sans-serif;
}

.responsive-table th,
.responsive-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #40473e;
    color: #4b4e4b; /* A soft greenish/brownish color */
}

.responsive-table th {
    background-color: #f4f4f4; /* Light background for headers */
    font-weight: bold;
}

/* Make table responsive */
@media screen and (max-width: 768px) {
    .responsive-table {
        font-size: 14px; /* Slightly smaller text on smaller screens */
    }
    .responsive-table th,
    .responsive-table td {
        padding: 8px; /* Reduced padding for better fitting */
    }
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}



/** 1. Basic
*******************************************************************/

html {
    font-size: 10px !important;
}

body {
    font-family: "Playfair Display", serif;
    font-weight: 300;
    font-style: normal;

    color: #fff;
    background: #dfdace;

    -webkit-font-smoothing: antialiased;
}

body.contains-hero {
    padding-top: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a {
    font-family: "Playfair Display", serif;
    font-weight: normal;

    color: #40473e;
}

h1 {
    font-size: 10rem;

    color: #dfdace;
}

h2 {
    font-size: 5.5rem;

    color: #dfdace;
}

h3 {
    font-size: 4rem;

    color: #dfdace;
}

h4 {
    font-size: 3.7rem;

    color: #dfdace;
}

h5 {
    font-size: 2rem;

    color: #dfdace;
}

h6 {
    font-size: 1.8rem;

    color: #dfdace;
}

p {
    font-size: 1.7rem;
    letter-spacing: 0.3px;

    color: #dfdace;
}

a,
a:hover,
a:focus {
    cursor: pointer;
    -webkit-transition: all 300ms ease;
    -o-transition: all 300ms ease;
    transition: all 300ms ease;
    text-decoration: none;
}

a:hover {
    color: #fff;
}

.navigation-button {
    position: fixed;
    z-index: 10;
    top: 10%;
    right: 0;

    cursor: pointer;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

.navigation-button p {
    font-size: 2.2rem;
    font-weight: 400;

    margin: 0;
    padding: 0.6em 3em 0.6em 1.8em;

    -webkit-transition: 0.15s ease;
    -o-transition: 0.15s ease;
    transition: 0.15s ease;
    letter-spacing: 0.01em;

    color: #dfdace;
    border-top-left-radius: 100px;
    border-bottom-left-radius: 100px;
    background: #40473e;
}

.navigation-button:hover p {
    padding: 0.6em 4em 0.6em 1.8em;
}

@media (max-width: 700px) {
    html {
        font-size: 8px !important;
    }
}

@media (max-width: 500px) {
    html {
        font-size: 6px !important;
    }
}

@media (orientation: landscape) and (max-height: 420px) {
    html {
        font-size: 8px !important;
    }
}

/** 2. Preloader
*******************************************************************/

.preloader {
    position: fixed;
    z-index: 100000;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: #111;
}

.preloader.preloader-hidden {
    height: 0;

    -webkit-transition: 0.5s ease 0.3s;
    -o-transition: 0.5s ease 0.3s;
    transition: 0.5s ease 0.3s;
}

.preloader .spinner {
    position: absolute;
    top: 50%;

    width: 100%;

    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    text-align: center;
    opacity: 1;
}

.preloader.preloader-hidden .spinner {
    opacity: 0;

    -webkit-transition: 0.3s ease;
    -o-transition: 0.3s ease;
    transition: 0.3s ease;
}

.preloader .spinner > div {
    display: inline-block;

    width: 18px;
    height: 18px;
    margin: 0 6px;

    -webkit-animation: spinner-bounce 1.4s infinite ease-in-out both;
    animation: spinner-bounce 1.4s infinite ease-in-out both;

    border-radius: 100%;
    background-color: #fff;
}

.preloader .spinner .bounce-1 {
    -webkit-animation-delay: -0.32s;
    animation-delay: -0.32s;
}

.preloader .spinner .bounce-2 {
    -webkit-animation-delay: -0.16s;
    animation-delay: -0.16s;
}

@-webkit-keyframes spinner-bounce {
    0%,
    80%,
    100% {
        -webkit-transform: scale(0);
    }
    40% {
        -webkit-transform: scale(1);
    }
}

@keyframes spinner-bounce {
    0%,
    80%,
    100% {
        -webkit-transform: scale(0);
        transform: scale(0);
    }

    40% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

/** 3. Hero
*******************************************************************/

.hero {
    position: fixed;
    z-index: -1;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;
}

.hero .animation-container {
    -webkit-transition: 0.5s ease;
    -o-transition: 0.5s ease;
    transition: 0.5s ease;
}

.hero .animation-container.animation-fade {
    opacity: 0;
}

.hero .animation-container.animation-fade.run-animation {
    opacity: 1;
}

.hero .animation-container.animation-fade-up {
    -webkit-transform: translateY(10vh);
    -ms-transform: translateY(10vh);
    transform: translateY(10vh);

    opacity: 0;
}

.hero .animation-container.animation-fade-up.run-animation {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);

    opacity: 1;
}

.hero .animation-container.animation-fade-down {
    -webkit-transform: translateY(-10vh);
    -ms-transform: translateY(-10vh);
    transform: translateY(-10vh);

    opacity: 0;
}

.hero .animation-container.animation-fade-down.run-animation {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);

    opacity: 1;
}

.hero .animation-container.animation-fade-left {
    -webkit-transform: translateX(10vh);
    -ms-transform: translateX(10vh);
    transform: translateX(10vh);

    opacity: 0;
}

.hero .animation-container.animation-fade-left.run-animation {
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);

    opacity: 1;
}

.hero .animation-container.animation-fade-right {
    -webkit-transform: translateX(-10vh);
    -ms-transform: translateX(-10vh);
    transform: translateX(-10vh);

    opacity: 0;
}

.hero .animation-container.animation-fade-right.run-animation {
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);

    opacity: 1;
}

/** 4. Hero --> Front Content 
*******************************************************************/

.hero .front-content {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;
}

.hero .front-content .container-mid {
    position: absolute;
    top: 50%;
    left: 0;

    width: 100%;
    padding: 0 30px;

    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    text-align: center;
}

.hero .front-content .container-mid h1 {
    font-weight: bold;

    margin-top: 0;
    margin-bottom: 0.24em;
}

.hero .front-content .container-mid p.subline {
    font-size: 3rem;

    letter-spacing: 0.025em;
}

/** 5. Hero --> Background Content 
*******************************************************************/

.hero .background-content {
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;

    overflow: hidden;

    width: 100%;
    height: 100%;
}

.hero .background-content .background-content-inner {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;

    width: 100%;
    height: 100%;

    -webkit-transform: translate3d(-50%, -50%, 0px) !important;
    transform: translate3d(-50%, -50%, 0px) !important;
}

.hero .background-content.parallax-on .background-content-inner {
    width: 110%;
    height: 110%;
}

.hero .background-content .background-overlay {
    position: absolute;
    z-index: 50;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    opacity: 0.6;
    background: #111;
}

.hero .background-content .background-img {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: url(../img/background.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.hero .background-content .background-img::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent dark overlay */
    z-index: -1; /* Keep the overlay behind the content */
}

/** 6. PORTFOLIO
*******************************************************************/

.portfolio {
    padding: 0 30px;
}

.portfolio .item {
    position: relative;

    display: block;
    overflow: hidden;

    max-width: 990px;
    margin: 0 auto 10rem auto;

    border: 6px solid #fff;
}

.portfolio .item:before {
    display: block;

    padding-top: 56.25%;

    content: "";
}

.portfolio .item:last-child {
    margin-bottom: 0;
}

.portfolio .item .item-cover {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background-position: center;
    background-size: cover;
}

.portfolio .item i {
    font-size: 2.2rem;
    line-height: 3em;

    position: absolute;
    z-index: 10;
    top: 50%;
    right: 0;

    width: 3em;
    padding: 0;

    -webkit-transition: 0.25s ease;
    -o-transition: 0.25s ease;
    transition: 0.25s ease;
    -webkit-transform: translate(100%, -50%);
    -ms-transform: translate(100%, -50%);
    transform: translate(100%, -50%);
    text-align: center;

    opacity: 0;
    color: #111;
    background: #fff;
}

.portfolio .item:hover i {
    -webkit-transform: translate(0, -50%);
    -ms-transform: translate(0, -50%);
    transform: translate(0, -50%);

    opacity: 1;
}

/** 7. FOOTER
*******************************************************************/

.footer {
    overflow: hidden;

    padding: 10rem 0;

    text-align: center;
}

.footer p {
    font-size: 1.4rem;

    display: inline-block;

    margin: 0;
    margin-right: 1.4em;

    vertical-align: middle;
    letter-spacing: 0.05em;

    opacity: 0.85;
}

.footer i {
    font-size: 2.6rem;
    line-height: 2.4em;

    display: inline-block;

    width: 2.4em;

    cursor: pointer;
    vertical-align: middle;

    color: #dfdace;
    border-radius: 100%;
    background: #40473e;
}

.footer p a {
    font-weight: bold;
}

/** 8. Page --> About
*******************************************************************/

.about {
    margin: 20rem 0 5rem 0;
}

.about .container-fluid {
    max-width: 900px;
    padding: 0 30px;
}

.about h1 {
    margin-bottom: 0.6em;
}

.about h4 {
    margin-bottom: 1.4em;
}

.about p {
    line-height: 2.4em;

    margin-bottom: 1.6em;
}

.about .social-links {
    margin: 3rem 0 4rem 0;
    padding: 0;

    list-style: none;
}

.about .social-links li {
    font-size: 2rem;

    display: inline-block;

    margin-right: 1em;
}

.about h6 {
    margin-bottom: 0.6em;
}

/** 9. Page --> Portfolio Item Type A
*******************************************************************/

.portfolio-item-a {
    margin: 20rem 0 0 0;
}

.portfolio-item-a .container-fluid {
    max-width: 900px;
    padding: 0 30px;
}

.portfolio-item-a h1 {
    margin-bottom: 0.25em;
}

.portfolio-item-a h4 {
    margin-bottom: 1.8em;
}

.portfolio-item-a p {
    line-height: 2.4em;

    margin-bottom: 1.6em;
}

.portfolio-item-a .image-carousel {
    margin-top: 6rem;
}

.portfolio-item-a .image-carousel .owl-item {
    border: 5px solid #fff;
    border-left: none;
}

/** 10. Page --> Portfolio Item Type B
*******************************************************************/

.portfolio-item-b {
    margin: 20rem 0 0 0;
}

.portfolio-item-b .container-fluid {
    max-width: 900px;
    padding: 0 30px;
}

.portfolio-item-b h1 {
    margin-bottom: 0.25em;
}

.portfolio-item-b h4 {
    margin-bottom: 1.8em;
}

.portfolio-item-b p {
    line-height: 2.4em;
    max-width: 850px;
    margin-bottom: 4em;
}

.portfolio-item-b img {
    margin-bottom: 8rem;

    border: 5px solid #fff;
}

.portfolio-item-b img:last-child {
    margin-bottom: 0;
}
