
.hero_side {
    width: 25%; /* Smaller hero_side on tablets */
}

.profile-box {
    background-color: #ffffff;
    border-radius: 10px;
    border: 2px solid #000000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: black;
    padding: 30px;
    left: 1vw;
    top: 10vh;
    position: absolute;
    height: 80vh;
    width: 35.5vw;
    z-index: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}


#page-content {
    transition: opacity 0.3s ease-in-out;
}

.page-transition {
    opacity: 0.3;
}

a {
    text-decoration: none;
}

.hero {
    width: 100%;
    height: 60vh;   
    background: 
        linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), /* dark overlay */
        url("images/rains.png");
    background-size: cover;               /* scale to fill */
    background-position: center;          /* center the image */
    background-repeat: no-repeat;
    display: flex;                        /* enable flexbox for centering */
    justify-content: center;              /* horizontal centering */
    align-items: center;                  /* vertical centering */
    color: white;                         /* text color (adjust if needed) */
    text-align: center;
    margin: 100;
    margin-top: 8.5vh;
}

.hero-small {
    width: 100%;
    height: 10vh;   
    background: 
        linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), /* dark overlay */
        url("images/rains.png");
    background-size: cover;               /* scale to fill */
    background-position: center;          /* center the image */
    background-repeat: no-repeat;
    display: flex;                        /* enable flexbox for centering */
    justify-content: left;              /* horizontal centering */
    align-items: center;                  /* vertical centering */
    color: white;                         /* text color (adjust if needed) */
    text-align: center;
    margin: 100;
    margin-top: 8.5vh;
}


.hero_side {
    width: 50vw;
    height: 100vh;   /* Full viewport height */
    position: fixed;  /* Fixed positioning */
    right: 0;        /* Anchor to right side */
    top: 8vh;          /* Start from very top */
    background: 
        linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), /* dark overlay */
        url("images/merchants.jpg");
    background-size: cover;               /* scale to fill */
    background-position: center;          /* center the image */
    background-repeat: no-repeat;
    display: flex;                        /* enable flexbox for centering */
    justify-content: right;              /* horizontal centering */
    align-items: right;                  /* vertical centering */
    color: white;                         /* text color (adjust if needed) */
    text-align: right;
    border-left: 5px solid rgba(13, 29, 33, 1);
    z-index: 1;
}

.hero-content {
    padding: 20px 40px;
    border-radius: 10px;
    font-size: 2vw;
    font-family: 'Space Grotesk', sans-serif; /* Apply globally */
}

.hero-small-content {
    padding: 20px 40px;
    border-radius: 10px;
    font-size: 1.5vw;
    font-family: 'Space Grotesk', sans-serif; /* Apply globally */
}

.hero-content h1 {font-size: 6vw; margin: 0;}
.hero-content p{
    font-size: 2vw;
    margin-bottom: 0;

    color: rgba(255, 255, 255, 0.8);
}
.introduction {
    font-size: 2vw;
    margin-bottom: 0;
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
}

.account-bar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 8vh;
    background: linear-gradient(to bottom, 
        rgba(2, 45, 51, 0.2) 0%);
    backdrop-filter: blur(3px);
    border-bottom: 5px solid rgba(13, 29, 33, 1);
    z-index: 5;
}


.profile-box h1 {
    margin: 0 0 30px 0;
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.profile-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-field {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e5e5e5;
}

.field-label {
    font-weight: 600;
    font-size: 16px;
    min-width: 120px;
    color: #333;
}

.field-value {
    font-size: 16px;
    color: #666;
    margin-left: 10px;
}

.profile-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.edit-profile-btn,
.logout-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edit-profile-btn {
    background: #022d33;
    color: white;
}

.edit-profile-btn:hover {
    background: #034d5a;
}

.logout-btn {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.logout-btn:hover {
    background: #e5e5e5;
}

/* Loading state */
.field-value:contains("Loading") {
    color: #999;
    font-style: italic;
}
.icon {
    position: fixed;
    stroke: #ffffff;
    height: 8vh;
    fill: #000000;
}

.account {
    border-radius: 5px;
    border-color: #ffffff;
    color: black;
    padding: 20px;
    right: 10px;
    position: absolute;

    display: flex;
    align-items: center;
    justify-content: center;
    height: 1vh;
    top: 50%;
    transform: translateY(-50%); 
    background-color: rgb(255, 255, 255);
    z-index: 5;
}



.account.logged-in:hover {
    background: rgba(58, 58, 58, 0.1);
}

.account-bar .icon {


  padding-bottom: 10px;
}

.account-bar::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: url("images/bubble_bar.png");
    background-size: contain;
    opacity: 0.2; /* Optional: combine with transparency */

}

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    font-size: 20px;
    color: white;
}

.grid-item {
    background-color: #252525;
    padding: 20px;
    text-align: center;
    color: white;
}

.grid-item:hover {
    background-color: rgb(97, 125, 97);
    color: black;
}

.grid-container-small {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    font-size: 16px;
    color: white;

}

.grid-item-small {
    background-color: #252525;
    padding: 20px;
    text-align: center;
    color: white;
}

.grid-item-small:hover {
    background-color: rgb(97, 125, 97);
    color: black;
}

button {
    color: black;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-shadow: none;
    text-shadow: none;
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 0;
    outline: none;
    font-family: inherit;
}

.hidden {
  display: none !important;
}


button:hover {
    
    background-color: rgb(97, 125, 97);
    color: black;

}

.login-box {
    background-color: #ffffff;
    border-radius: 10px;
    border: 2px solid #000000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: black;
    padding: 5vw;
    left: 1vw;
    top: 10vh;
    position: absolute;
    height: 80vh;
    width: 35.5vw;
    z-index: 0;
    display: flex;
    flex-direction: column;
    justify-content: left;
}

.login-form {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.login-box h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
    font-weight: 600;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

.input-group input:focus {
    outline: none;
    border-color: #022d33;
    box-shadow: 0 0 0 2px rgba(2, 45, 51, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.forgot-password {
    color: #022d33;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    background: #022d33;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 25px;
}

.login-btn:hover {
    background: #034d5a;
}

.register-section {
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.register-section p {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
}

.register-link {
    color: #022d33;
    text-decoration: none;
    font-weight: 600;
}

.register-link:hover {
    text-decoration: underline;
}


body {

    min-height: 200vh;
    margin: 0;
    font-family: 'Space Grotesk', sans-serif; /* Apply globally */
}



/* BLOG CONTENT*/

/* Blog Layout Styles - Add to your existing styles.css */

.blog-layout {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    gap: 40px;
    margin-top: 20px;
}

.blog-content {
    flex: 2;
    width: 67%;
}

.blog-sidebar {
    flex: 1;
    width: 33%;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e5e5e5;
    height: fit-content;
    position: relative;
    top: 8vh;
}

/* Section Titles */
.section-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #022d33;
    border-bottom: 2px solid #022d33;
    padding-bottom: 10px;
    padding-top: 3vh;
}

/* Featured Post Styles */
.featured-post-image,
.recent-post-image {
    width: 100%;
    height: 100%;       /* adjust for your design */
    object-fit: cover;   /* crop nicely */
    border-radius: 6px;  /* optional: rounded corners */
    display: block;
    margin-bottom: 10px; /* spacing */
}



.featured-post {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #e5e5e5;
    margin-bottom: 40px;
}

.featured-post-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-post-content {
    padding: 30px;
}

.featured-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.post-date {
    color: #666;
    font-size: 14px;
}

.featured-badge {
    background: #022d33;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.featured-post h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #022d33;
    line-height: 1.3;
}

.featured-post p {
    color: #666;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Recent Posts Styles */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.blog-post-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    border: 1px solid #e5e5e5;
    transition: all 0.2s ease;
}

.blog-post-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #022d33;
}

.blog-post-card .post-meta {
    margin-bottom: 10px;
}

.blog-post-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #022d33;
    line-height: 1.4;
}

.blog-post-card p {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Filtered Posts Styles */
#filtered-posts {
  margin-bottom: 2em;

  padding-top: 1.5em;
}

#filtered-title {
  font-size: 24px;
  font-weight: 600;
  color: #022d33;
  margin-bottom: 1em;
}

.filtered-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.filtered-list .blog-post {
  background: white;
  border-radius: 8px;
  padding: 25px;
  border: 1px solid #e5e5e5;
  transition: all 0.2s ease;
}

.filtered-list .blog-post:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-color: #022d33;
}

.filtered-list .blog-post h4 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #022d33;
  line-height: 1.4;
}

.filtered-list .blog-post p {
  color: #666;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 15px;
}

.filtered-list .blog-post button {
  background: transparent;
  border: none;
  color: #022d33;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  text-decoration: underline;
  padding: 0;
  transition: color 0.2s ease;
}

.filtered-list .blog-post button:hover {
  color: #000;
}


/* Tags Styles */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    background: #f0f0f0;
    color: #333;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.tag:hover {
    background: #022d33;
    color: white;
    cursor: pointer;
}

/* Read More Button */
.read-more-btn,
.delete-btn,
.delete-project-btn  {
    background: #022d33;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 5px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.read-more-btn:hover {
    background: #034d5a;
}

/* Sidebar Styles */
.blog-sidebar h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #022d33;
}

.search-section,
.filters-section,
.tags-section {
  margin-top: 2em;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0;
}

.tags-cloud .tag.active {
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
}


.tags-cloud .tag {
  display: inline-block;
  background: rgba(0,0,0,0.05);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 0.9em;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.tags-cloud .tag:hover {
  background: rgba(0,0,0,0.1);
  transform: scale(1.05);
}


/* Search Box */
.search-box {
    display: flex;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.search-box input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    outline: none;
    font-size: 14px;
}

.search-btn {
    background: #022d33;
    color: white;
    border: none;
    padding: 12px 15px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-btn:hover {
    background: #034d5a;
}

/* Filter Options */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #022d33;
}

.filter-option label {
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.filter-option label:hover {
    color: #022d33;
}

/* Tags Cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud-item {
    background: #e5e5e5;
    color: #333;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-cloud-item:hover {
    background: #022d33;
    color: white;
}

/* Add these styles to the end of your existing styles.css */

/* Loading and Empty State Messages */
.loading-message,
.no-content-message,
.error-message {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 12px;

    margin: 20px 0;
}

.loading-message {
    color: #666;
    font-style: italic;
    border-color: #007bff;
    background: #f8f9ff;
}

.loading-message::before {
    font-size: 24px;
    display: block;
    margin-bottom: 10px;
}

.no-content-message {
    color: #999;
    border-color: #ddd;
    background: #fafafa;
}

.no-content-message h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #666;
    font-weight: 500;
}

.no-content-message p {
    font-size: 16px;
    margin: 0;
    color: #999;
}

.error-message {
    color: #d73527;

}

.error-message h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #721c24;
}

.error-message p {
    font-size: 14px;
    margin: 0;
    color: #721c24;
}

/* Featured Post Empty State Specific */


.featured-section .no-content-message {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.featured-section .no-content-message::before {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.3;
}

/* Recent Posts Empty State Specific */
.recent-posts .no-content-message {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.recent-posts .no-content-message::before {
    content: "📝";
    font-size: 36px;
    margin-bottom: 15px;
    opacity: 0.3;
}

/* Search Results Specific Styling */
.search-active .featured-section {
    display: none !important;
}

.search-results-info {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    color: #1565c0;
    font-size: 14px;
}

.clear-search-btn {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.2s ease;
}

.clear-search-btn:hover {
    background: #e5e5e5;
    border-color: #ccc;
}

/* Loading Animation */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading-message {
    animation: pulse 1.5s infinite;
}


.post-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    position: relative;
}

/* override global button style only for the post menu */
.post-menu button {
    all: unset; /* clears inherited button styles */
    display: block;
    text-align: left;
    font-size: 14px;
    padding: 10px 15px;
    cursor: pointer;
    font-family: inherit;
    color: white;
    border-radius: 50px;
    background-color: #1C373C;
    z-index: -1;

}

.post-menu button:hover {
    background: rgb(182, 182, 182);
    border-radius: 50px;
}


.post-menu .menu-btn {
    all: unset; /* reset global button styles */
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 6px 10px;
    color: black; /* or your accent color */
}

.excerpt-preview {
  width: 60%;
  text-align: justify;

}

.menu-options {
    position: absolute;
    top: 30px;
    right: 0;

    display: flex;
    flex-direction: column;
    min-width: 180px;
    z-index: 20;
}

.menu-options.hidden {
    display: none;
}

.menu-option {
    background: none;
    border: none;
    text-align: left;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
}

.menu-option:hover {
    background: #f0f0f0;
}

.post-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.0);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-viewer-overlay.active {
    opacity: 1;
}

.post-viewer-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.post-viewer-overlay.active .post-viewer-container {
    transform: translateY(0);
}

.post-viewer-header {
    position: sticky;
    top: 0;
    background: #252525;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 500;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(3px);
}

.post-viewer-header::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: url("images/bubble_bar.png");
    background-size: contain;
    opacity: 0.2; /* Optional: combine with transparency */
    z-index: -5;

}

.submit-comment {
  background: #022d33;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;

}

.post-viewer-close {
    background: none;
    border: 2px solid white;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.2s ease;
}

.post-viewer-close:hover {
    background: white;
    color: #022d33;
    transform: rotate(90deg);
}

.post-viewer-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    font-size: 20px;
}

.post-creator-content {
    max-width: 1200px;
    margin: 0 auto;

    min-height: 100vh;
}

.post-creator-content.hidden {
    display: none;
}

.post-full-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #022d33;
    line-height: 1.2;
}

.post-full-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e5e5;
    flex-wrap: wrap;
    align-items: center;
}

.post-author {
    font-weight: 600;
    color: #333;
}

.post-date-full {
    color: #666;
}

.post-read-time {
    color: #666;
    font-size: 14px;
}

.post-views {
  color: #666;
  margin-left: 10px;
  font-size: 0.9em;
  margin-right: 1vw;
  font-size: 14px;
}

.post-full-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.post-full-content {
    font-size: 20px;
    line-height: 1.8;
    color: #333;
}

.post-full-content h1,
.post-full-content h2,
.post-full-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #022d33;
}

.post-full-content p {
    margin-bottom: 20px;
}


.post-full-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.editor-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.post-full-content pre {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 20px 0;
}

.post-full-content blockquote {
    border-left: 4px solid #022d33;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #666;
}

.post-navigation {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.post-nav-btn {
    flex: 1;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.post-nav-btn:hover {
    background: #022d33;
    color: white;
}

.post-nav-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.share-buttons {
    margin-top: 30px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.share-btn {
    padding: 8px 16px;
    background: #f0f0f0;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.share-btn:hover {
    background: #022d33;
    color: white;
}

.copy-link-feedback {
    font-size: 12px;
    color: #28a745;
    margin-left: 10px;
    display: none;
}



.new-post-btn {
    display: none;
    overflow: hidden;
    background-color: #022d33;
    color: white;
    border: none;
    padding: .5vw 3vw;
    font-size: 1vw;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;

}

.new-post-btn:hover {
  background-color: #03505d;
}

.new-post-wrapper {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.new-post-frame {
    width: 100%;           /* fills 80% of overlay width */
    min-height: 80vh;     /* tall enough for editing */
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}



.projects-layout {
  padding: 40px 20px; /* top spacing + side breathing room */
}

.projects-filter-bar {
  background: #022d33; /* dark teal bar to match theme */
  color: white;
  border-bottom: 2px solid #011f24;
  padding: 12px 20px;

}

.projects-filter-bar .filters-wrapper {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
}


.projects-filter-bar input[type="checkbox"] {
  accent-color: #ffcc00; /* gold highlight for contrast */
}

/* Sidebar wrapper */
.tags-sidebar {
  position: fixed;
  top: 8vh; /* adjust so it clears header + grid */
  right: 0;
  width: 260px;
  height: calc(100%);
  background: #022d33;
  color: white;
  border-left: 2px solid #011f24;
  transition: transform 0.3s ease;
  z-index: 999;
  display: flex;
  flex-direction: column;
}

/* Collapsed state */
.tags-sidebar.collapsed {
  transform: translateX(250px); /* hide content, leave tab visible */
}



.latex-container:hover {
    border-color: #007bff;
    background: #e7f3ff;
}

.latex-preview {
    min-height: 50px;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 10px 0;
    text-align: center;
}



/* Toggle tab */
.tags-toggle {
  position: absolute;
  left: -30px; /* sticks out from edge */
  bottom: 15vh;
  width: 70px;
  padding: 10px;
  background: #022d33;
  color: white;
  text-align: center;
  cursor: pointer;
  border-radius: 5px 0 0 5px;
  font-size: 14px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  z-index: -5;
}

/* Sidebar content */
.tags-content {
  padding: 20px;
  overflow-y: auto;
}

.tags-content h3 {
  margin-top: 0;
  font-size: 16px;
}

.tags-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tags-content li {
  margin-bottom: 10px;
}

.tags-content button {
  background: #ffffff;
  border: none;
  padding: 6px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  color: #022d33;
  font-weight: 600;
}

.phase-box {
  border: 2px solid #022d33;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 8px;
  background: #f9f9f9;
}
.phase-box h3 {
  margin-top: 0;
}
.phase-editor {
  border: 1px solid #ccc;
  min-height: 150px;
  margin: 10px 0;
  padding: 10px;
  background: white;
}

/* 🔹 Ensure editor content is pushed below header/nav */
.editor-layout {
  margin-top: 8vh; /* equal to account bar height */
  padding: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-family: "Space Grotesk", sans-serif;
}

/* 🔹 Project Metadata Section */

.project-metadata {
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Optional section header */
.project-metadata h2 {
  margin: 0 0 15px 0;
  font-size: 20px;
  color: #022d33;
  border-bottom: 2px solid #ddd;
  padding-bottom: 5px;
}

/* Each field group on its own line */
.metadata-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 18px;
}

/* Label styling */
.metadata-group label {
  font-weight: 600;
  color: #022d33;
  margin-bottom: 6px;
  font-size: 14px;
}

/* Inputs & textareas */
.metadata-group input,
.metadata-group textarea {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #bbb;
  border-radius: 4px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Focus feedback */
.metadata-group input:focus,
.metadata-group textarea:focus {
  border-color: #004b99;
  box-shadow: 0 0 0 2px rgba(0, 75, 153, 0.15);
  outline: none;
}

/* Excerpt box slightly taller */
.metadata-group textarea {
  min-height: 70px;
  resize: vertical;
}


/* Checkbox row */
.featured-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #022d33;
  margin-top: 4px;
}


/* 🔹 Save Status Messages */
.save-status {
  margin-top: 12px;
  padding: 10px;
  border-radius: 4px;
  display: none;
  font-size: 14px;
}

.save-status.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.save-status.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* 🔹 Project Phases Section */
.project-phases {
  margin-top: 40px;
}

.project-phases h2 {
  margin: 0;
  font-size: 20px;
  color: #022d33;
}

.phases-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

#add-phase-btn {
  background: #022d33;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

#add-phase-btn:hover {
  background: #03414b;
}

/* 🔹 Individual Phase Editors */
#phases-container .phase-editor-wrapper {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

#phases-container h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 18px;
  color: #022d33;
}

.phase-title {
  width: 100%;
  padding: 8px;
  margin-bottom: 12px;
  border: 1px solid #bbb;
  border-radius: 4px;
}

.phase-editor {
  border: 1px solid #ccc;
  border-radius: 6px;
  min-height: 200px;
  padding: 10px;
  background: #fafafa;
  margin-bottom: 10px;
}

.save-phase-btn {
  background: #ffcc00;
  color: #022d33;
  font-weight: 600;
  border: none;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
}

.save-phase-btn:hover {
  background: #e6b800;
}

.new-project-container {
  margin-right: auto; /* Pushes button to left */
}

.new-project-btn {
  background: #ffcc00;
  border: none;
  color: #022d33;
  font-weight: bold;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.new-project-btn:hover {
  background: #e6b800;
}

.editor {
  min-height: 100px;   /* or 100%, if wrapped in a container with fixed height */
  height: 100%;        /* fill the parent container */
  width: 100%;
  box-sizing: border-box;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  overflow-y: auto;    /* so it scrolls instead of growing forever */
}

/* --- Overall phase layout --- */
.phase {
  margin-bottom: 24px;
  background: none; /* remove double box background */
}

/* --- Phase title --- */
.phase-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #002b5c;
  margin-bottom: 6px;
  border: none;
  padding-left: 2px;
}

/* --- Editor container (the visible box) --- */
.phase-editor {
  background: #ffffff;
  border: 1px solid #d6d8db;
  border-radius: 6px;
  padding: 16px;
  min-height: 120px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Hide toolbar padding when not editing */
.phase-editor .toolbar {
  margin-bottom: 10px;
}

.phase-buttons {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.phase-buttons button {
  border: none;
  padding: 7px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

/* Edit and Save */
.edit-btn, .save-btn {
  background: #003366;
  color: white;
}

.edit-btn:hover, .save-btn:hover {
  background: #004b99;
}

/* Delete */
.delete-btn {
  background: #a30000;
  color: white;
}

.delete-btn:hover {
  background: #c60000;
}


.phase-buttons button:hover {
  background: #004c99;
}

/* Toolbar container layout */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

/* Ensure groups stay inline */
.toolbar-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Optional: tighter look for inputs/buttons */
.toolbar select,
.toolbar input[type="color"],
.toolbar button {
  height: 32px;
}

/* Optional: consistent button style */
.toolbar button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 0 8px;
}

.editable-title {
  outline: 1px solid #000000;
  padding: 10px 10px;

}

.project-metadata {
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  
  /* Add flex to align content */
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* Left column (Title, Excerpt, Tags, Featured) */
.project-fields {
  flex: 1 1 70%;
  min-width: 400px;
}

/* Right column (Save / Publish buttons) */
.project-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
}

/* Buttons */
/*
.project-actions button {
  width: 120px;
  padding: 8px 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: black;
  transition: background 0.2s ease, transform 0.1s ease;
}
*/
.project-actions button:hover {
  transform: translateY(-1px);
}

/* Button styles */
.save-btn {
  background-color: #003366;
}
.save-btn:hover {
  background-color: #004b99;
}

.publish-btn {
  background-color: #0b7d27;
}
.publish-btn:hover {
  background-color: #0e8e2f;
}
.publish-project-btn.unpublish {
  background: #6c757d; /* gray */
}
.publish-btn.unpublish {
  background: #6c757d; /* gray */
}

/* --- Excerpt and Tags Section --- */

/* Labels above those fields */
label[for="project-excerpt"],
label[for="project-tags"] {
  display: block;
  font-weight: 600;
  color: #022d33;
  margin-bottom: 6px;
  margin-top: 10px;
}

/* 🔹 Project Tags Section */

.tags-input-container {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
}

.tags-input-container input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #bbb;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tags-input-container input:focus {
  border-color: #004b99;
  box-shadow: 0 0 0 2px rgba(0, 75, 153, 0.15);
  outline: none;
}

.tags-display {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tag-item {
  background: #022d33;
  color: white;
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tag-remove {
  cursor: pointer;
  font-weight: bold;
}

.featured-project-image {
  width: 100%;
  max-width: 100px;          /* Limit image width */
  object-fit: cover;         /* Crop instead of stretching */
  border-radius: 8px;
  display: block;
}

/* Default small placeholder size */
.project-preview-image {
  max-width: 100px;
  max-height: 100px;
  opacity: 0.7;
  padding-top: 20px;
  transition: all 0.3s ease;
}

/* Larger custom image style (override default) */
.project-preview-image.custom {
  max-height: 30vw !important;
  max-width: none !important;
  width: auto !important;
  opacity: 1 !important;
  padding-top: 0 !important;
}



.editing-banner{margin:0 0 .5rem 0;padding:.4rem .6rem;border-radius:.5rem;background:#eef5ff}
.phase-block.editing{outline:2px solid #2f7bf6}

/* 🔹 Modal Overlay */

.project-title-field {
  width: 100%;
  height: 500px;
}

.project-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  overflow-y: auto;
}

/* 🔹 Modal Content */
.project-modal-content {
  background: #fff;
  color: #022d33;
  padding: 30px;
  border-radius: 10px;
  max-width: 900px;
  width: 90%;
  margin: 40px auto;
  position: relative;
}

/* 🔹 Close Button */
.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #022d33;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 18px;
  cursor: pointer;
}

/* 🔹 Scrollable Phase Area */
.project-phases-scroll {
  margin-top: 20px;
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 10px;
  border-top: 1px solid #ccc;
}

.project-phase {
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.project-phase h3 {
  color: #003366;
  margin-bottom: 6px;
}

.project-phase p {
  margin: 0;
  line-height: 1.5;
}

.comment-section {
  margin-top: 2rem;
  padding: 1rem;
  border-top: 1px solid #ccc;
}

.comment {
  margin-top: 1rem;
  background: #f9f9f9;
  border-radius: 6px;
  padding: 0.75rem;
}

.comment-author {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.comment-actions button {
  background: none;
  border: none;
  color: #007bff;
  cursor: pointer;
  margin-right: 8px;
}

.comment-actions button:hover {
  text-decoration: underline;
}

.comment-form textarea {
  width: 100%;
  min-height: 60px;
  margin-top: 1rem;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.reply-box {
  margin-top: 0.5rem;
  margin-left: 1rem;
}

.vote-btn.active {
  color: #012953;
}

.vote-btn i {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}


/* ============================= */
/* 🔹 Project View Page Styling  */
/* ============================= */

.project-view-container {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Excerpt Section */
.project-excerpt {
  font-size: 1.2rem;
  font-style: italic;
  color: #012953;
  background: #f2f7fa;
  padding: 1rem 1.5rem;
  border-left: 4px solid #004b99;
  border-radius: 6px;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Project Body */
.project-content {
  font-size: 1rem;
  line-height: 1.7;
  color: #022d33;
  margin-bottom: 2rem;
}

/* Phase Container */
.phases-container {
  margin-top: 2rem;
  border-top: 2px solid #e0e6eb;
  padding-top: 1.5rem;
}

/* Individual Phase Block */
.phase-block {
  background: #f9fbfc;
  border: 1px solid #d4e3ec;
  border-left: 5px solid #004b99;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.phase-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.phase-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #003366;
  margin-bottom: 0.5rem;
}

.phase-desc {
  font-size: 0.95rem;
  color: #022d33;
  line-height: 1.5;
}

/* Delete Button (Admin only) */
.delete-btn {
  display: block;
  margin: 2rem auto 0;
  background-color: #b50000;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.delete-btn:hover {
  background-color: #8b0000;
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.menu-toggle {
  background: none;
  border: none;
  color: #004b99;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  transition: background 0.2s;
}

.menu-toggle:hover {
  background: rgba(0, 75, 153, 0.1);
}

.menu-dropdown {
  position: absolute;
  margin-top: 0.5rem;

  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  min-width: 160px;
  z-index: 10;
}

.menu-dropdown button {
  background: none;
  border: none;
  padding: 10px 14px;
  text-align: left;
  width: 100%;
  font-size: 0.95rem;
  cursor: pointer;
  color: #022d33;
}

.menu-dropdown button:hover {
  background: #f2f7fa;
}

.hidden {
  display: none !important;
}


#aboutme-container {
  max-width: 1000px;
  margin: 50px auto;
  padding: 00px;

  border-radius: 12px;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.7;
}
#aboutme-content p {
  font-size: 1.05rem;
  color: #333;
}
#edit-aboutme-btn {
      display: none;
      margin: 20px auto;
      padding: 10px 20px;
      border: none;
      border-radius: 8px;
      background-color: #444;
      color: #fff;
      font-size: 1rem;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }
    #edit-aboutme-btn:hover {
      background-color: #666;
    }