/*
Theme Name: Academy Theme rc|dc
Theme URI: 
Author: Axel Stockburger - based on Lisa Penz
Author URI: https://lisapenz.com/
Description: Wordpress Theme for Academy Class Websites
Version: 1
*/


body{
	display: flex;
	flex-direction: column;
	align-items: start;
	justify-content: flex-start;
	font-family: "Arial", "sans-serif";
	color: black;
	font-weight: normal;
	max-width: 100%;
	margin: 5px;
	margin-top: 0;
	font-size: 1.1875rem;
	line-height: 1.2;
	overflow-x: hidden;
}

header {
	width: 100%;
	padding: 15px;
	padding-bottom:0;
	box-sizing: border-box;
	position: relative;
}

nav {
	order: -1;
	margin-top: 10px;
	font-size: 1.1875rem;
	width: auto;
	position: absolute;
	right: 0;
	top: 0;
}

nav ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

nav li {
	list-style-type: none;
	display: inline-block;
	margin-right: 10px;
}

a {
	color: black;
	text-decoration: none;
	font-weight: normal;
}


h1 {
	display: block;
	font-size: 3.5rem;
	line-height: 1.2;
	margin-top: 0;
	font-weight: 400;
}


h2 {
	font-size: 2rem;
	font-weight: normal;
}

h2 a:hover {
	color: #5d5d5d;;
}

h3 {
	text-decoration: underline;
	font-size: 1.1875rem;
	font-weight: normal;
}

h4 {
	font-size: 1rem;
	font-weight: normal;
	line-height: 1.4;
}

h4 a:hover {
	color: #5d5d5d;
	text-decoration: underline;
	text-underline-offset: 5px;
	text-decoration-thickness: 1px;
}

p {
	font-size: 1.1875rem;
	font-weight: normal;
	line-height: 1.2;
}

p a:hover {
	color: #5d5d5d;;
}


#sidebar {
	width: 35%;
}

footer {
    background-color: white;
    box-sizing: content-box;
	width: 100%;
    position: relative;
    bottom: 0;
	height: auto;

	overflow-x: hidden;
}

a.logo {
	position: relative;
	top: 0;
	margin-top: 10px;
	font-size: 1.1875rem;
}

a.title {
	position: relative;
}

.titlecontainer {
	position: relative;
	margin-top: 50px;
}

#content {
	margin-left: 10px;
	margin-top: 0;
	position: relative;
	flex: 1;
    max-width: 60%;
}

/* Add styles for the secondary menu */



.container {
	display: flex;
	justify-content: start;
	width: 100%;
	margin-right: 15px;
}

/* Style for each column */
.column1 {
	width: 65%; /* Adjust the width as needed */
	padding: 15px;
	padding-top: 0;
	box-sizing: border-box;
	border: 0px;
}

.column2 {
	display:block;
	width: auto; /* Adjust the width as needed */
	padding: 0;
	box-sizing: border-box;
	margin-top: 39px;
	margin-right: 15px;
}

/* Styles for the full-width container */
.full-width-container {
    max-width: 100%;
    margin: 0;
    padding: 20px;
}

ul, menu, dir {
    display: block;
    list-style-type: none;
    margin-block-start: 1em;
    margin-block-end: 1em;
    padding-inline-start: 0;
	font-size: 1.1875rem;
	line-height: 2rem;
}


.secondary-menu {
	margin-top: 45px;
	border-top: solid #000000 1px;
	background: #eeeeee;
}


.secondary-menu .menu-item{
	border-bottom: solid #000000 1px;
	padding-top: 0.35rem;
	padding-bottom: 0.35rem;
	padding-left: 1px;

	
}

.secondary-menu .menu-item:hover {
	background: #b0b0b0;
}

nav .menu-item :hover{
	color: #5d5d5d;
	text-decoration: underline;
	text-underline-offset: 5px;
	text-decoration-thickness: 1px;
}

/* Styles for the widgetized list in column2 */
.column2 .widget ul {
    list-style: none;
    padding: 0;
    margin:0;
}

.column2 .widget ul li {
    padding:  0;
	font-size: 1.1875rem;
	display: flex;
	
}

.widget{
	border-top: 1px solid #000000;
	padding:0;
	line-height: 0.5rem;
}

.widget:hover {
	background: #d5d5d5;
}

.wp-block-columns {
    margin-bottom: 0;
	padding: 0;	 
}

.read-more {
	
}

.read-more:hover {
	color: #5d5d5d;
	text-decoration: underline;
	text-underline-offset: 5px;
	text-decoration-thickness: 1px;
}

/* Add space between excerpts */
.column1 article {
	margin-bottom: 50px; /* Adjust the value to control the space between excerpts */
}

/* Add a line between excerpts */
.column1 article:not(:last-child) {
    border-bottom: 1px solid #000000; /* Adjust the border style and color as needed */
    padding-bottom:50px;; /* Adjust the value to control the space between the excerpt and the line */
}

.footer-widgets {
    display: flex;
	justify-content: space-between;
}

.footer-widget {
    width: 18%; /* Adjust the width as needed */
	font-size: 0.9rem;
	padding-left: 15px;
	padding-right: 15px;

}

.widget-title {
    margin-bottom: 10px;


}

#scroll-to-top-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #333333;   /* was #007bff */
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
}

#scroll-to-top-button:hover {
    background-color: #5d5d5d;   /* added — was missing, text-only hover before */
}

#scroll-to-top-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
}


/* Media query for smaller screens (e.g., smartphones) */
@media (max-width: 767px) {
    .footer-widgets {
        flex-wrap: wrap;
    }

    .footer-widget {
        width: 48%; /* Adjust the width as needed for a two-column layout */
		padding: 5px;
    }
}

/* Default styles for larger screens */
#mobile-menu-link {
    display: none; /* Hide the mobile menu link by default on larger screens */
    cursor: pointer; /* Change cursor to indicate clickability */
}

#primary-menu {
    display: block; /* Display the primary menu on larger screens */
}

/* Media query for small screens (e.g., mobile devices) */
@media (max-width: 767px) {
    #mobile-menu-link {
        display: block; /* Display the mobile menu link on small screens */
		position: absolute;
		order: -1; 
		width: auto;
		margin-top: 10px;
		margin-right: 10px;
		font-size: 1.1875rem;
		right: 0;
		top: 0;
		
    }

    #primary-menu {
        display: none; /* Hide the primary menu on small screens */
    }

    #primary-menu.open {
        display: block; /* Display the primary menu when open */
		position: relative; 
		background: #FFFFFF;
		margin-top: 10px;
		height: 100vh; 

    }

    #primary-menu li {
        display: block; /* Display menu items as a list on small screens */
    }
}

/* Default styles for larger screens */
.post-preview {
    width: 100%; /* Set the width to 100% for larger screens */
}

/* Media queries for smaller screens */
@media (max-width: 767px) {
    .post-preview {
        width: 100%; /* Adjust the width for smaller screens */
    }
}

/* Add more media queries for other screen sizes if needed */


@media (max-width: 767px) {
	h1 {
		font-size: 2rem;
		line-height: 1.2;
	}
	
	h2 {
		font-size: 1.1875rem;
	}
}

@media (max-width: 1018px) {
	
	.column1 {
		width: 100%;
		margin: 0px;
	}

}

.featured-image.wp-post-image {
    width: 100%;
    height: auto;
}


#column2 {
	width: 35%;
	padding-top: 20px;
	padding-left: 0;
	box-sizing: border-box;
	margin-top: 2rem;
}


#toggle-column2 {
	display: none;
}

/* Media query for smaller screens */
@media (max-width: 1018px) {
    #column2 {
        order:-1; 
		display: none; /* Hide column 2 on smaller screens by default */
        position: relative; /* Set the position to fixed */
        top: 0; /* Align the top to the screen top */
        left: 0; /* Align the left to the screen left */
        min-width: 100vw; /* Take up the full width of the screen */
        height: auto; /* Take up the full height of the screen */
        background: white; /* Optional: Set a background color */
        z-index: 1; /* Ensure a high z-index to appear on top */
        overflow-y: scroll; /* Allow vertical scrolling if content exceeds the screen height */
        padding-top: 0; /* Optional: Add padding to the column */
		overflow-x: hidden;
		padding-right: 15px;
		padding-left: 15px;
		margin-top: 0;
		 

    }

    #toggle-column2 {
		display: block;
		position: relative;
		width: auto;
        cursor: pointer;
		margin-top: 10px;
		margin-right: 10px; 
    }
	
	#toggle-column2:hover{
		text-decoration: underline;
		text-underline-offset: 5px;
		text-decoration-thickness: 1px;
		color:#5d5d5d;;
	}
	
	.column2 {
		margin-right:0;
	}
	
	.column2 .widget {
    padding:  0;
	font-size: 1.1875rem;
	display: block;
	margin-right: 10px;
	
}
	.widget:hover {
		background-color: transparent;
	}
	
	.secondary-menu {
		margin-right: 10px;
	}
	
	body .is-layout-flex {
    display: block;
}
}

.wp-block-image .size-large {
	width: 100%;
}
