/* ======================= */
/*   GENERAL NAV STYLES    */
/* ======================= */
nav {
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	/* Ensure enough height for both rows */
	width: 100%;
}

/* Fixed navigation with two-row layout */
.nav-main {
	display: flex;
	flex-direction: column;
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100;
}

/* Top Row: Social Media, Contact Info & Auth Links */
.nav-top {
	background: rgb(172, 0, 0);
	/*linear-gradient(45deg, #ff4229, #ff9f32);*/
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 16px;
	min-height: 70px;
}

/* Left part of top row (social icons & contact details) */
.nav-top-left {
	display: flex;
	align-items: center;
	gap: 16px;
}

.social-media {
	display: flex;
	gap: 8px;
}

.social-media a {
	color: #ffffff;
	font-size: 20px;
	text-decoration: none;
}

.social-media a:hover {
	color: #000000;
}

.contact-details {
	display: flex;
	gap: 16px;
	font-size: 20px;
	color: #fff;
}

/* Right part of top row (login/signup links) */
.nav-top-right {
	display: flex;
	align-items: center;
	gap: 16px;
}

/* Auth Navigation Links */
#nav-mobile {
	display: flex;
	gap: 16px;
	list-style: none;
	padding: 0;
	margin: 0;
}

#nav-mobile li a {
	font-size: 16px;
	font-weight: bold;
	padding: 8px 16px;
	text-decoration: none;
	border-radius: 4px;
	transition: all 0.3s ease;
	color: #fff;
}

#nav-mobile li a:hover {
	background: #c03333;

	box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

.logged-in a {
	background: rgba(255, 255, 255, 0.2);
}

.logged-out a {
	background: rgba(255, 255, 255, 0.1);
}

/* Bottom Row: Action Buttons (placeholders) */


/* Logged-in and Logged-out Link Styles */
.logged-in a {
	background: rgba(255, 255, 255, 0.2);
}

.logged-out a {
	background: rgba(255, 255, 255, 0.1);
}



/* Bottom Row: Aligns buttons in a straight line */
.nav-bottom {
	background: #bd1000;
	/*linear-gradient(45deg, #ff4229, #ff9f32);*/
	display: flex;
	justify-content: left;
	align-items: center;
	border-top: 2px solid rgba(0, 0, 0, 0.2);
	padding: 0 10px;
	position: relative;
	/* Needed for absolute positioning of dropdown */
	min-height: 60px;

}

/* Default Navigation */
#action-nav {
	display: flex;
	list-style: none;
	padding: 0;
	margin: 0;
}

/* Category Buttons */
#action-nav li {
	border-left: 2px solid rgba(0, 0, 0, 0.2);
	min-height: 60px;
	display: flex;
	align-items: center;
}

/*
#action-nav li:last-child {
	border-right: none;
}*/

#action-nav li a {
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	font-size: 16px;
	font-weight: bold;
	padding: 10px 16px;
	text-decoration: none;
	color: white;
	height: 40px;
	border-radius: 0;
	white-space: nowrap;
}

#action-nav li:hover {
	background: #da00005b;
	color: #fdfdfd;
}

#action-nav .toggled-category {
	background: #ffb13c44;
	color: #fdfdfd;
}


/* Pre-category dropdown styling */
.nav-bottom li {
	position: relative;
}

.pre-category-dropdown {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: #333;
	padding: 0;
	margin: 0;
	list-style: none;
	min-width: 120px;
	z-index: 1000;
}

/* Show dropdown on hover (desktop) or when the li is toggled (mobile) */
.nav-bottom li:hover>.pre-category-dropdown,
.nav-bottom li.toggled-category>.pre-category-dropdown {
	display: block;
}

.pre-category-dropdown {
	background-color: #bf1101;
}

.pre-category-dropdown li {
	border-bottom: 1px solid #900c00;
}

.pre-category-dropdown li a {
	display: block;
	padding: 8px 12px;
	color: white;
	text-decoration: none;
}

/*
.pre-category-dropdown li a:hover {
	background: #df1300;
}*/

.pre-category-btn {
	height: 100%;
	width: 100%;
	padding: 0;
}

#logo-img {
	height: 60px;
}

.language-dropdown {
	position: relative;
	display: inline-block;
	font-family: sans-serif;
}

.dropdown-toggle {
	display: flex;
	align-items: center;
	border: 1px solid #ccc;
	background: #fff;
	padding: 0.25rem 0.5rem;
	cursor: pointer;
	border-radius: 4px;
}

.dropdown-toggle .fi {
	font-size: 1.25rem;
	margin-right: 0.25rem;
}

.dropdown-toggle .chevron {
	font-size: 0.75rem;
	color: #666;
}

.dropdown-menu {
	position: absolute;
	top: calc(100% + 0.25rem);
	right: 0;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	list-style: none;
	margin: 0;
	padding: 0.25rem 0;
	display: none;
	min-width: 6rem;
	z-index: 1000;
}

.language-dropdown.open .dropdown-menu {
	display: block;
}

.dropdown-menu li {
	padding: 0.25rem 0.5rem;
	cursor: pointer;
	display: flex;
	align-items: center;
}

.dropdown-menu li .fi {
	margin-right: 0.5rem;
	font-size: 1.25rem;
}

.dropdown-menu li:hover {
	background: #f2f2f2;
}


/* Mobile Styles */
@media screen and (max-width: 768px) {
	#action-nav {
		display: flex;
		flex-direction: column;
		position: absolute;
		top: 100%;
		left: 0;
		background: linear-gradient(45deg, #c41101, #cd1505);
		width: 100%;
		border-top: 2px solid rgba(0, 0, 0, 0.2);
		box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
		z-index: 100;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.6s ease-in-out;
	}

	#action-nav.active {
		max-height: 300px;
	}

	#action-nav li {
		border-bottom: 1px solid rgba(0, 0, 0, 0.2);
		width: 100%;
	}

	#action-nav li a {
		justify-content: left;
		padding: 12px;
		width: 100%;
		text-align: left;
		text-wrap: auto;
	}

	.nav-main {
		position: relative;
	}

	.nav-top {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 4px;
		padding-bottom: 10px;
	}

	.nav-top-left {
		flex-direction: column;
		gap: 0;
	}

	.nav-top-right {
		margin-top: 0px;
		gap: 8px;
	}

	#nav-mobile {
		flex-direction: row;
		gap: 8px;
		flex-wrap: wrap;
		justify-content: center;
	}

	.nav-bottom {
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.contact-details {
		display: none;
	}

	/* Mobile Menu Toggle Button */
	.menu-toggle {
		display: block;
		font-size: 24px;
		color: white;
		background: none;
		border: none;
		cursor: pointer;
		margin-left: 10px;
		-webkit-tap-highlight-color: transparent;
	}

	.menu-toggle:focus {
		outline: none;
	}

	/* The icon within the button */
	.menu-toggle .menu-icon {
		font-size: 24px;
		/* default size for hamburger icon */
		transition: font-size 0.3s ease;
		margin-left: 5px;
	}

	/*
	.menu-toggle.active .menu-icon {
		font-size: 30px;
	}*/

	.pre-category-dropdown {
		display: none !important;
	}
}

/* Desktop: Hide the toggle button */
@media screen and (min-width: 769px) {
	.menu-toggle {
		display: none;
	}
}



/* ======================= */
/*  GENERAL FOOTER STYLES  */
/* ======================= */
.site-footer {
	background: #111;
	/* deep black */
	color: #ddd;
	font-size: 15px;
	line-height: 1.6;
	flex-shrink: 0;
	margin-top: 80px;
	/* push it below content */
}

.footer-top {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 40px;
	padding: 60px 20px;
	padding-bottom: 0;
	background-color: #1b1a1a;
	width: 95%;
	display: flex;
	flex-wrap: wrap;
	margin: 0 30px;
	justify-content: space-between;
}

.footer-col h4 {
	font-size: 17px;
	color: #fff;
	margin-bottom: 15px;
	text-transform: uppercase;
	letter-spacing: .5px;
}

.footer-col .tagline {
	font-style: italic;
	margin: 15px 0 20px;
	color: #aaa;
	text-wrap: auto;
	max-width: 250px;
}

.footer-info {
	max-width: 200px;
}

.footer-col {
	/* grow | shrink | basis */
	flex: 1 1 240px;
	/* default: try to take ≥240 px, but can grow */
	min-width: 0;
	/* lets long words wrap instead of forcing overflow */
}

.footer-sections {
	flex: 0 1 160px;
}

/* narrow list of links   */
.footer-reporter {
	flex: 0 0 200px;
}

/* fixed width photo box  */

/* Make reporter photo stay full width of its column */
.reporter-photo {
	width: 100%;
	max-width: 200px;
}

#footer-categories {
	max-width: 250px;
}

.footer-reporter {
	text-align: center;
}

.reporter-photo {
	width: 170px;
	/* keeps it compact */
	max-width: 100%;
	border-radius: 4px;
	object-fit: cover;
	box-shadow: 0 3px 6px rgba(0, 0, 0, .4);
}

.reporter-name {
	margin-top: 10px;
	font-weight: 700;
	color: #eee;
	line-height: 1.4;
}

.reporter-tag {
	display: block;
	font-size: 14px;
	font-weight: 400;
	color: #bbb;
}

.footer-logo img {
	max-width: 140px;
	height: auto;
}

.footer-social a {
	color: #ddd;
	font-size: 20px;
	margin-right: 10px;
	transition: color .3s;
}

.footer-social a:hover {
	color: #ff4d4d;
}

.footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-links li+li {
	margin-top: 6px;
}

.footer-links a {
	color: #ccc;
	text-decoration: none;
	transition: color .3s;
}

.footer-links a:hover {
	color: #fff;
}

.newsletter-form {
	display: flex;
	margin-top: 10px;
}

.newsletter-form input {
	flex: 1;
	padding: 8px 10px;
	border: none;
	border-radius: 3px 0 0 3px;
	font-size: 14px;
}

.newsletter-form button {
	padding: 8px 16px;
	border: none;
	background: #bd1000;
	color: #fff;
	font-weight: bold;
	border-radius: 0 3px 3px 0;
	cursor: pointer;
	transition: background .3s;
}

.newsletter-form button:hover {
	background: #da0000;
}

.muted {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	color: #777;
}

.footer-bottom {
	border-top: 1px solid #222;
	padding: 15px 20px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
}

.footer-bottom a {
	color: #ffb13c;
	text-decoration: none;
}

.footer-bottom a:hover {
	text-decoration: underline;
}


.footer-copyright p {
	font-size: 14px;
	color: #ccc;
	line-height: 1.8;
	text-align: justify;
}

.footer-copyright a {
	color: #ffb13c;
	text-decoration: none;
}

.footer-copyright a:hover {
	text-decoration: underline;
}

@media (min-width:1400px) {
	.footer-copyright {
		max-width: 720px;
	}
}

@media only screen and (max-width: 768px) {
	.footer-top {
		flex-direction: column;
		margin: 0 5px !important;
	}

	.footer-col {
		max-width: 340px;
	}
}