* {
	margin: 0;
  	padding: 0;
  	box-sizing: border-box;
}

html, body {
	color-scheme: light dark;
  	-webkit-text-size-adjust: 100%;
}

body {
  	font-family: Arial, sans-serif;
  	background-color: #FAF9F6;
  	transition: background-color 0.5s, color 0.5s;
}

::selection {
    background: #0b5ed7;
    color: #FAF9F6;
}

::-moz-selection {
    background: #0b5ed7;
    color: #FAF9F6;
}

.search-container input:-webkit-autofill,
.search-container input:-webkit-autofill:focus {
    transition: background-color 9999s ease-in-out 0s;
}

/* Dark Mode Styles */
.dark-mode {
  	background-color: #121212;
}

.dark-mode .site-header {
    background-color: #FAF9F6;
	box-shadow: 0 0.25rem 0.625rem rgba(255, 255, 255, 0.5);
}

.dark-mode .section-heading::before {
  	background-color: #00B3FF;
}

.dark-mode section h1 {
  	color: #33e476;
}

.dark-mode section h2 {
  	color: #33e476;
}

.dark-mode section h3 {
	color: #53e7ff;
}

.dark-mode section p {
  	color: #FAF9F6;
}

.dark-mode section p b {
  	color: #53e7ff;
}

.dark-mode section p a {
  	color: #FFDD00;
}

.dark-mode section p span {
  	color: #FFDD00;
}

.dark-mode .search-item a {
    color: #FAF9F6;
}

.dark-mode .search-item a p {
    color: #FFDD00;
}

.dark-mode section ul li {
    color: #FAF9F6;
}

.dark-mode section ul li a {
  	color: #FFDD00;
}

.dark-mode section ul li b {
  	color: #53e7ff;
}

.dark-mode .posts-list .post-item:hover {
	background-color: #202020;
}

.dark-mode .posts-list .post-item-card-one-liner {
    color: #FFDD00;
}

.dark-mode .post-item-category-link {
    color: #FFDD00;
}

.dark-mode .post-item-one-liner {
    color: #38E981;
}

.dark-mode .post-meta {
    color: #FAF9F6;
}

.dark-mode .post-item-banner-credit {
    color: #FAF9F6;
}

.dark-mode .post-content {
    color: #FAF9F6;
}

.dark-mode .post-content h2 {
    color: #53e7ff;
}

.dark-mode .post-content ul li span {
    color: #FFDD00;
}

.dark-mode form h3 {
	color: #FAF9F6;
}

/* Header */
.site-header {
	background-color: #FAF9F6;
    display: flex;
	align-items: center;
	height: 6.5rem;
	width: 100%;
	box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.5);
	top: 0;
	z-index: 1000;
}

.logo-link {
  	display: flex;
  	align-items: center;
  	text-decoration: none;
  	color: inherit;
}

.site-header img {
	margin-left: 1.5rem;
	height: 4.5rem;
	width: 4.5rem;
}

.site-title {
  	display: flex;
  	flex-direction: column;
}

.site-header .site-title-text {
    font-size: 2.75rem;
    font-weight: bold;
    color: #212121;
    margin-left: 0.5rem;
    margin-bottom: 0.2rem;
    display: block;
}

.line {
	color: #ED1C24;
}

.tagline {
	display: flex;
	flex-direction: column;
	color: #0b1f75;
	font-weight: bold;
	text-align: right;
	margin-right: 0.5rem;
}

/* Search Box */
.search-icon {
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 7.625rem;
    font-size: 1.75rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.search-icon.active {
    transform: rotate(90deg);
}

.search-dropdown {
    background: #0b1f75;
    width: 100%;
    top: 6rem;
    left: 0;
    z-index: 2000;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s ease-in-out;
}

.search-dropdown.show {
    max-height: 10rem;
}

.search-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 1rem;
}

.search-container {
  	display: flex;
  	align-items: stretch;
  	width: 20rem;
  	border: 0.0938rem solid #848884;
  	overflow: hidden;
}

.search-container input {
  	flex: 1;
  	padding: 0.625rem;
  	border: none;
  	outline: none;
  	font-size: 1rem;
}

.search-container button {
  	background-color: #ED1C24;
  	color: white;
  	border: none;
	font-size: 1.25rem;
  	padding: 1rem;
  	height: 100%;
  	cursor: pointer;
  	transition: 0.4s;
}

.search-container button:hover {
  	background-color: #0392d5;
}

/* Hamburger Key */
.hamburger {
  	display: flex;
  	flex-direction: column;
	position: absolute;
	right: 5.5rem;
  	cursor: pointer;
  	gap: 0.313rem;
}

.hamburger span {
  	width: 1.563rem;
  	height: 0.25rem;
	border-radius: 0.25rem;
  	background: #212121;
  	display: block;
	transition: all 0.4s ease-in-out;
}

.hamburger.open span:nth-child(1) {
  	transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  	opacity: 0;
}

.hamburger.open span:nth-child(3) {
  	transform: rotate(-45deg) translate(5px, -5px);
}

/* Navbar */
.navbar {
  	background: #0b1f75;
  	display: flex;
	width: 100%;
  	justify-content: center;
	align-items: center;
    top: 6.5rem;
    z-index: 1000;
}

/* Navigation Menu */
.nav-links {
  	left: 0;
  	right: 0;
	align-items: center;
  	flex-direction: column;
  	list-style: none;
  	margin: 0;
  	overflow: hidden;
  	max-height: 0;
  	transition: max-height 0.5s ease-in-out;
}

.nav-links.show {
  	max-height: 17rem;
}

.nav-links li a {
	text-decoration: none;
	color: #FAF9F6;
	font-size: 1.25rem;
	padding: 0.5rem;
    display: block;
	text-align: center;
}

.nav-links li a:hover {
    text-decoration: underline;
}

.nav-links li a.active {
    text-decoration: underline;
    pointer-events: auto;
    cursor: default;
}

.nav-links li a.active:active {
    pointer-events: none;
}

/* Dark Mode Button */
#dark-mode-toggle {
    background: #121212;
    font-weight: bold;
    font-size: 1.5rem;
    padding: 0.25rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0.5rem;
    margin-left: auto;
    margin-right: 1.5rem;
}

/* Section */
section {
  	padding: 2rem 10%;
  	margin-top: 0.25rem;
}

.section-heading {
    position: relative;
    padding-left: 1rem;
    display: inline-flex;
    align-items: center;
}

.section-heading::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background-color: #0b1f75;
    border-radius: 2px;
}

.section-heading h1,
.section-heading h2 {
    font-size: 2rem;
    color: green;
}

.tech-fact-image {
	text-align: center;
	margin-top: 1.35rem;
	margin-bottom: 1.75rem;
  	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gradient-border {
    position: relative;
    display: inline-block;
    padding: 4px;
    border-radius: 1rem;
    background: linear-gradient(135deg, #FF00CC, #007BFF, #00FFD1);
}

.gradient-border:hover {
  	background: linear-gradient(135deg, #ED1C24, #ED1C24, #ED1C24);
}

.gradient-border img {
  	display: block;
  	width: 100%;
	max-width: 32rem;
	aspect-ratio: 3 / 2;
  	object-fit: cover;  	
	border-radius: 0.8rem;
  	background-color: #fff;
}

.tech-fact-btn {
    display: block;
    position: absolute;
    white-space: normal;
    width: 90%;
    left: 50%;
    bottom: 8%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FF00CC, #007BFF, #00FFD1);
    color: #FAF9F6;
    border: none;
    border-radius: 1rem;
    padding: 0.65rem;
    font-size: 1.125rem;
    font-weight: bold;
    text-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.5);
    text-align: center;
    cursor: pointer;
}

.gradient-border:hover .tech-fact-btn {
  	transform: translateX(-50%) scale(1.05);
	box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.75);
}

.tech-fact-btn:hover {
  	background: linear-gradient(135deg, #ED1C24, #ED1C24, #ED1C24);
}

section h3 {
    margin: 1.5rem 0 0.75rem;
	font-size: 1.375rem;
	font-weight: 600;
}

section p {
    font-size: 1.125rem;
	color: #212121;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

section p:last-child {
    margin-bottom: 0;
}

section p a {
  	color: #0437F2;
	text-decoration: none;
}

section p a:hover {
	text-decoration: underline;
}

section p span {
  	color: #0437F2;
}

.search-item {
    margin-bottom: 0.375rem;
}

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

.search-item a {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    text-decoration: none;
    color: #212121;
}

.search-item a p {
    display: inline;
    color: #0437F2;
}

.search-item a p:hover {
    text-decoration: underline;
}

/* Lists */
section ul {
  	list-style-type: none;
}

section ul li {
  	text-decoration: none;
  	font-size: 1.125rem;
	margin: 0.5rem 0 0 0.75rem;
    line-height: 1.5;
}

section ul li:last-child {
    margin-bottom: 0;
}

section ul li a {
  	color: #0437F2;
	text-decoration: none;
}

section ul li a:hover {
	text-decoration: underline;
}

/* Posts */
.posts-list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem; 
}

.post-item-link {
	text-decoration: none;
	color: inherit;
	display: block;
}

.post-item {
	padding: 0.5rem;
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	text-align: left;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.post-item:hover {
	background-color: #E8E8E8;
}

.post-item-image {
	flex: 0 0 auto;
}

.post-item-image img {
    width: 7.625rem;
    height: 5rem;
    object-fit: cover;
    border-radius: 0.5rem;
    flex-shrink: 0;
    display: block;
}

.post-item-content {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.post-item-card-one-liner {
	all: unset;
	font-size: 1.125rem;
	color: #0437F2;
	line-height: 1.5;
	display: inline;
}

.post-meta {
    margin-left: 0.5rem;
    font-size: 1rem;
    color: #212121;
    margin-bottom: 1.5rem;
}

.post-item-category-link {
	color: #0437F2;
}

.post-item-banner {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0.5rem 0;
}

.post-item-banner img {
	width: 20.4rem;
	height: 13.6rem;
	border-radius: 0.5rem;
	display: block;
}

.post-item-banner-credit {
	font-size: 0.6rem;
	color: #212121;
	margin-top: 0.5rem;
	text-align: center;
	width: 20rem;
}

.post-item-one-liner {
	font-size: 1.5rem;
	font-weight: bold;
	color: #ED1C24;
	margin-top: 1.5rem;
    margin-bottom: 0.625rem;
    line-height: 1.375;
}

.post-content {
    font-size: 1.125rem;
	line-height: 1.5;
}

.post-content h2 {
    color: #212121;
    font-size: 1.375rem;
    margin: 1.25rem 0 0.5rem;
}

.post-content ul {
  	list-style-type: none;
}

.post-content ul li {
  	text-decoration: none;
  	font-size: 1.125rem;
	margin: 0.5rem 0 0 0.75rem;
    line-height: 1.5;
}

.post-content ul li:last-child {
    margin-bottom: 0;
}

.post-content ul li span {
  	color: #0437F2;
}

/* Feedback Form Styling */
form {
  	max-width: 600px;
  	margin: 0.5rem auto;
  	padding: 2rem;
  	background-color: #0b1f75;
    border-color: #444;
	border-radius: 1rem;
  	font-family: 'Segoe UI', sans-serif;
  	color: #FAF9F6;
  	margin-bottom: 1.875rem;
}

form h3 {
    margin-top: 0.5rem;
    font-size: 1.375rem;
    text-align: center;
    color: #FAF9F6;
}

form label {
  	display: block;
  	margin: 1.5rem 0 0.75rem;
  	font-weight: 600;
  	font-size: 1.125rem;
}

form input[type="text"],
form input[type="email"],
form select,
form textarea,
form input[type="file"] {
  	width: 100%;
  	padding: 0.75rem;
  	border: 1px solid #ccc;
  	border-radius: 0.5rem;
  	font-size: 1rem;
  	background-color: #F9F9F9;
  	color: #212121;
  	transition: border 0.3s ease;
}

form input:focus,
form textarea:focus,
form select:focus {
  	border-color: black;
  	outline: none;
}

form textarea {
  	resize: vertical;
}

form button {
  	display: block;
  	width: 100%;
  	padding: 1rem;
  	margin-top: 2.625rem;
  	font-size: 1.0625rem;
  	background-color: #0b5ed7;
  	color: #FAF9F6;
  	border: none;
  	border-radius: 0.6rem;
  	cursor: pointer;
  	transition: background-color 0.3s ease;
}

form button:hover {
  	background-color: #D2042D;
}

/* Footer */
footer {
	display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
	gap: 3rem;
	padding: 2.5rem;
	background-color: #0b1f75;
	color: #FAF9F6;
}

footer h3 {
    font-size: 2rem;
    color: #4ddf85;
    margin-bottom: 1.125rem;
}

footer p {
    font-size: 1.125rem;
    line-height: 1.5;
}

footer p a {
  	color: #FDDA0D;
	text-decoration: none;
}

footer p a:hover {
	text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.3rem;
}

.fb-btn {
	display: inline-block;
    background: #0b5ed7;
    color: #FAF9F6;
    padding: 0.6rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 1.25rem;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.fb-btn:hover {
    transform: translateY(-0.625rem);
    box-shadow: 0 0.625rem 1.25rem rgba(0, 0, 0, 0.5);
}

.insta-btn {
    display: inline-block;
	background: linear-gradient(115deg, #f9ce34, #ee2a7b, #6228d7);
	color: #FAF9F6;
	padding: 0.6rem 0.8rem;
	border-radius: 0.5rem;
	font-size: 1.25rem;
	font-weight: bold;
	text-decoration: none;
	transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.insta-btn:hover {
    transform: translateY(-0.625rem);
    box-shadow: 0 0.625rem 1.25rem rgba(0, 0, 0, 0.5);
}

.page-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
}

.page-links a {
    display: inline-block;
    color: #FAF9F6;
    text-decoration: none;
    font-size: 1.125rem;
	transition: color 0.3s ease;
}

.page-links a:hover {
    color: #FFDD00;
}

.page-links a.active {
    color: #FFDD00;
    cursor: default;
}

/* Footer copyright */
footer .copyright {
	grid-column: 1 / -1;
    text-align: center;
    margin-bottom: -1.5rem;
	font-size: 1rem;
    color: #ccc;
}

/* Media Queries */
@media screen and (max-width: 48rem) {
    .dark-mode .posts-list .post-item:hover {
	    background-color: #121212;
    }

	.site-header {
		height: 5.5rem;
    }

    .site-header img {
		margin-left: 0.875rem;
	    height: 3rem;
	    width: 3rem;
    }

    .site-header .site-title-text {
    	font-size: 1.625rem;
    	margin-left: 0.375rem;
	    margin-bottom: 0.10rem;
    }

    .tagline {
        font-size: 0.875rem;
	    margin-left: 0.375rem;
    }

    .search-icon {
        font-size: 1.625rem;
	    right: 6.675rem;
    }

    .search-dropdown {
        top: 5.5rem;
    }

    .search-container input {
    	font-size: 1.0625rem;
    }

    .search-container button:hover {
  	    background-color: #ED1C24;
    }

	.hamburger {
		right: 4.5rem;
	}
	
	.navbar {
    	top: 5.5rem;
	}

	.nav-links li a:hover {
    	text-decoration: none;
	}

	#dark-mode-toggle {
	    margin-right: 0.875rem;
	}
	
    .update-label {
    	background: #D2042D;
    }

	section {
		padding: 1.85rem;
    }

	.gradient-border:hover {
		background: linear-gradient(135deg, #FF00CC, #007BFF, #00FFD1);
	}

	.gradient-border:hover .tech-fact-btn {
		transform: translateX(-50%) scale(1);
		box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.5);
	}

	.tech-fact-btn:hover {
  		background: linear-gradient(135deg, #FF00CC, #007BFF, #00FFD1);
	}
    
    section p a:hover {
	    text-decoration: none;
    }

    .search-item a p:hover {
        text-decoration: none;
    }

    section ul li a:hover {
	    text-decoration: none;
    }

    .post-item:hover {
	    background-color: #FAF9F6;
    }

	form button:hover {
  		background-color: #0b5ed7;
	}

	footer p a:hover {
		text-decoration: none;
	}

    .fb-btn {
		transition: none;
	}

	.fb-btn:hover {
		transform: none;
		box-shadow: none;
	}

    .insta-btn {
    	transition: none;
	}

    .insta-btn:hover {
	    transform: none;
	    box-shadow: none;
	}

    .page-links a:hover {
    	color: #FAF9F6;
	}

	footer .copyright {
    	margin-bottom: -1rem;
	}
	
	a, button, .post-item, .page-links a {
	    -webkit-tap-highlight-color: transparent;
    }

    .logo-link:active,
    .search-container button:active,
    .tech-fact-image:active,
    form button:active,
    .fb-btn:active,
    .insta-btn:active {
        filter: brightness(0.75);
        transition: filter 0.15s ease;
    }

    .post-item-card-one-liner:active,
    .post-item-category-link:active,
    .search-item a p:active,
    section ul li a:active,
    section p a:active {
        text-decoration: underline;
        text-underline-offset: 0.18rem;
    }

    .nav-links li a.active:hover {
        text-decoration: underline;
    }

    .nav-links li a:not(.active):active {
        filter: brightness(0.75);
        transition: filter 0.15s ease;
    }
    
    .page-links a.active:hover {
        color: #FDDA0D;
    }

    .page-links a:not(.active):active {
        filter: brightness(0.75);
        transition: filter 0.15s ease;
    }
}

#dark-mode-toggle,
.search-icon,
.hamburger {
    -webkit-tap-highlight-color: transparent;
}

#dark-mode-toggle:active,
.search-icon:active,
.hamburger:active {
    opacity: 1;
}