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

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-image: url('assets/your-background-image.jpg'); /* Background image for the whole page */
  background-size: cover;
  background-position: center;
  color: #333;
  padding-top: 80px; /* Space for the fixed header */
  padding-bottom: 60px; /* Space for the fixed footer */
}

/* Header Styling */
header {
  background: #333;
  color: #fff;
  padding: 20px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  height: 50px;
  margin-right: 20px;
}

h1 {
  font-size: 2rem;
  text-align: center;
}

.right-logo {
  height: 50px;
  margin-left: 20px;
}

/* Navigation Styling */
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
}

nav a {
  color: #fff;
  text-decoration: none;
  padding: 10px;
}

nav a:hover {
  background-color: #555;
}

footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 10px;
  position: fixed;
  width: 100%;
  bottom: 0;
  z-index: 100;
}

footer p {
  font-size: 0.9rem;
}

/* Main Content */
main {
  padding: 20px;
  padding-top: 100px; /* Added padding for space below the fixed header */
}

/* Two-Column Layout */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section {
  width: 80%;
  display: flex;
  justify-content: space-between;
  margin-bottom: 80px;
  align-items: center;
}

.section .text-column {
  width: 48%;
}

.section .image-column {
  width: 48%;
}

/* Text Blocks with Opaque Background */
.text-block {
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
  color: #fff;
  padding: 40px;
  margin-bottom: 20px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
}

.text-block h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.text-block ul {
  list-style: none;
}

.text-block ul li {
  margin: 5px 0;
}

/* Mid Section - Fully Opaque with Two Columns */
.mid-text-block {
  background-color: #fff;
  color: #333;
  padding: 40px;
  margin: 80px 0;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
}

.mid-text-block .column {
  width: 48%;
}

.mid-text-block .column a {
  display: block;
  padding: 10px;
  background-color: #0073e6;
  color: white;
  text-decoration: none;
  text-align: center;
  margin-bottom: 20px;
}

.mid-text-block .column a:hover {
  background-color: #005bb5;
}

.mid-text-block .column p {
  font-size: 1rem;
  line-height: 1.5;
}

/* Portfolio Section */
.portfolio-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.portfolio-item {
  width: 300px;
  margin-bottom: 20px;
  text-align: center;
}

.portfolio-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.portfolio-item h3 {
  font-size: 1.5rem;
  margin-top: 10px;
}

.portfolio-item p {
  font-size: 1rem;
  margin-top: 5px;
}

.portfolio-item a {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #0073e6;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

.portfolio-item a:hover {
  background-color: #005bb5;
}

/* Restoring Timeline and Portfolio Timeline */
.timeline-section {
  margin-top: 80px;
  padding: 40px;
  background-color: #f9f9f9;
  border-radius: 10px;
}

.timeline-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 20px;
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-item .date {
  font-weight: bold;
}

.timeline-item .description {
  margin-left: 20px;
  flex: 1;
}

/* Table of Contents - Centered at Top */
.table-of-contents {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 20px;
}

.table-of-contents h1 {
  font-size: 3rem;
  font-weight: bold;
  color: #0073e6;
}

/* Explore Section */
.explore-section {
  background-color: rgba(255, 255, 255, 0.9); /* 90% opacity */
  color: #333;
  padding: 40px;
  margin-top: 80px;
  border-radius: 10px;
}

.explore-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 20px;
}

.flashcards {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.flashcard {
  width: 30%;
  padding: 20px;
  background-color: #f4f4f4;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.flashcard:hover {
  background-color: #f0f0f0;
}

.flashcard h3 {
  margin-bottom: 10px;
}

.preview-content {
  display: none; /* Hide preview content by default */
  margin-top: 20px;
}

.preview-content img {
  width: 100%;
  border-radius: 10px;
  margin-top: 10px;
}

.preview-content.show {
  display: block; /* Display the content when 'show' class is added */
}

.preview-content a {
  display: block;
  margin-top: 10px;
  text-decoration: none;
  color: #0073e6;
}

.preview-content a:hover {
  text-decoration: underline;
}

/* About Section - Text and Image Layout */
.about-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 40px 10%;
  margin-bottom: 40px;
}

.text-column {
  width: 60%;
}

.text-column h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.text-column p {
  font-size: 1.1rem;
  line-height: 1.8;
}

.image-column {
  width: 35%;
}

.image-container {
  border: 4px solid #0073e6; /* Blue border */
  padding: 10px;
  border-radius: 10px;
  text-align: center;
}

.image-container img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.image-caption {
  margin-top: 10px;
  font-size: 1rem;
  color: #0073e6;
}

/* Contact Info Box Styling */
.contact-info-box {
  margin-top: 20px;
  background-color: #f1f1f1;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

.contact-info-box p {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 10px;
}

.contact-links {
  list-style-type: none;
  padding: 0;
}

.contact-links li {
  margin: 8px 0;
}

.contact-links a {
  font-size: 1.1rem;
  color: #0073e6;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.contact-links i {
  margin-right: 10px;
}

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

/* Quote Section Styling */
.quote-section {
  background-color: #d3e7f9;
  padding: 40px;
  margin-top: 40px;
  border-radius: 10px;
  text-align: center;
}

.quote-box {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.quote-line {
  font-size: 3rem;
  font-weight: bold;
  color: #005bb5;
  position: absolute;
  left: 5%;
}

.quote-text {
  font-size: 1.5rem;
  font-style: italic;
  color: #333;
  padding-left: 40px;
  margin-left: 20px;
}


/*profile only : 
/* Portfolio Section Styling */
/* Blog Layout */
.blog-layout {
  display: flex;
  justify-content: space-between;
  padding: 20px;
}

.blog-section {
  width: 70%;
}

.blog-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  margin-top: 75px;
}

.blog-post {
  background-color: #fff;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.blog-post h2 {
  font-size: 2rem;
}

.post-meta {
  font-size: 0.9rem;
  color: #888;
  margin: 10px 0;
}

.post-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

.post-description {
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.read-more {
  font-weight: bold;
  color: #333;
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}

/* Sidebar */
.sidebar {
  width: 25%;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.sidebar h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  margin-top: 50px;
}

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

.sidebar ul li {
  margin-bottom: 10px;
}

.sidebar ul li a {
  text-decoration: none;
  color: #333;
}

.sidebar ul li a:hover {
  color: #007BFF;
}

/* Footer */
footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 30px;
}

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

footer a:hover {
  color: #ddd;
}

/*for read more/
/* Style for hidden content */
.more-content {
  display: none;
}

.more-content.show {
  display: block;
}

/* Style for Read More link */
.read-more {
  color: #007bff;
  cursor: pointer;
}

.read-more:hover {
  text-decoration: underline;
}
