@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

@font-face {
  font-family: 'Trade Gothic LT';
  font-style: normal;
  font-weight: normal;
  src: local('Trade Gothic LT'), url('trade-gothic-lt-1361519976.woff') format('woff');
  }



  /* Add this at the top of your style.css file */
:root {
  --header-color: #71C885;
  --header-size: 20px;
  --text-size: 16px;
}
/*  
  font-family: "Open Sans", serif;
    font-family: "TradeGothicLTPro";
*/

/* Global Styles */

body {
  margin: 0;
  font-family: "Open Sans", serif;
  color: black;
}

/* Navbar */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 100px;
  padding: 20px 0;
  margin-top: 34px;
  z-index: 100;
}

.logo {
  height: 28px;
  width: auto;
  z-index: 100;
}

.logo-link img {
  transition: opacity 0.3s ease;
}

.logo-link img:hover {
  opacity: 0.5;
}

.navbar-right {
  display: flex;
  align-items: center;
  transform: translateY(10px);
  z-index: 100;
}

.dropdown {
  position: relative;
}

/* Remove default list styles */

.dropdown, .navbar-right ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.dropbtn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--color-white);
  transition: opacity 0.3s ease;
  font-family: "Open Sans";
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  box-shadow: 0px 8px 16px rgba(51, 51, 51, 0.20);
  min-width: 160px;
  z-index: 1;
  font-size: 20px;
}

.dropdown-content a {
  color: black;
  padding: 8px 12px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #caf4d3;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover .dropbtn {
  opacity: 0.7;
}

.logo-link {
  display: flex;
  align-items: center;
}

/* Style for the arrow */

.arrow {
  display: inline-block;
  margin-left: 0px;
  font-size: 22px;
  transition: transform 0.3s ease;
}

/* Rotate the arrow on hover */

.dropdown:hover .arrow {
  transform: rotate(180deg);
}






/* ----------------------------------------------------------DEV page */

/* Hero Section */

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 120px;
  position: relative;
}

.hero h1 {
  font-size: 48px;
  font-family: 'Trade Gothic LT';
  color: black;
  font-weight: 900;
  margin: 0;
}

.hero h1 span {
  color: #71C885;
}

.hero p {
  font-size: 18px;
  font-family: "Open Sans", serif;
  color: black;
  text-align: center;
  margin-top: 30px;
  width: 600px;
  font-weight: 500;
}

.hero-image {
  position: absolute;
  top: -100px;
  height: auto;
  width: 660px;
  z-index: -10;
}

.hero-background {
  position: absolute;
  left: 0;
  top: 0;
  height: 100vh;
  width: 100vw;
  z-index: -100;
}

.cards1 {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 58px;
}

.card1 {
  text-decoration: none;
  color: black;
  transition: transform 0.5s ease;
}

.card1:hover {
  transform: scale(1.1);
}

.card1 img {
  width: 300px;
  height: auto;
  object-fit: contain;
}

/* Media Queries */

@media (max-width: 1200px) {
  .hero h1 {
    font-size: 40px;
  }
  .hero p {
    width: 500px;
  }
}

@media (max-width: 992px) {
  .hero h1 {
    font-size: 36px;
  }
  .hero p {
    width: 400px;
  }
  .card1 img {
    width: 200px;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
  }
  .hero p {
    width: 300px;
  }
  .card1 img {
    width: 350px;
  }
  .cards1 {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 28px;
  }
  .hero p {
    width: 300px;
  }
  .card1 img {
    width: 350px;
  }
  .navbar {
    margin: 0 40px;
  }
}




/* ----------------------------------------------------------Create page */


/* Form Container */
.form-container {
  max-width: 1400px;
  margin: 60px auto 0;
  padding: 0 20px;
}

.publish-form {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0px 8px 16px rgba(51, 51, 51, 0.20);
}

/* Two-Column Layout */
.form-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.form-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.left-column {
  flex: 1;
  margin-left: 100px;
}

.right-column {
  width: 400px;
  margin-right: 100px;
}

/* Form Groups */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Ensure consistent spacing for labels and inputs */
.form-group label {
  font-family: "Trade Gothic LT", sans-serif;
  font-size: 18px;
  font-weight: bold;
  display: inline-block; /* Ensure label occupies its content width */
  margin-top: 6px; /* Add some consistent space below the label */
}

.form-group input,
.form-group select,
.form-group textarea {
  margin-top: 6px; /* Add some spacing between label and input/textarea */
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: "Open Sans", serif;
  font-size: 16px;
  width: 98%;
}



/* Make the page selector more compact */
.form-group.compact select {
  width: 100%;
}

/* Article Content */
.form-group textarea {
  min-height: 400px;
  resize: vertical;
}

/* Upload Area */
.upload-area {
  border: 2px dashed #ccc;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  background-color: #f8f9fa;
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
}

/* Publish Button */
.publish-button {
  background-color: #71C885;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-family: "Open Sans", serif;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
  margin-top: 20px;
}

.publish-button:hover {
  background-color: #5da970;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .form-layout {
      flex-direction: column;
  }

  .left-column,
  .right-column {
      width: 100%;
      margin: 0;
  }
}

.form-group textarea {
  min-height: 200px;
  resize: vertical;
}


@media (max-width: 992px) {
  .form-container {
      margin: 100px 20px 0;
  }
}

.articles-container {
  max-width: 1400px;
  margin: 120px auto 0;
  padding: 0 20px;
}

.article-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0px 8px 16px rgba(51, 51, 51, 0.20);
  padding: 30px;
  margin-bottom: 40px;
}

.article-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.article-content-column {
  flex: 1;
  margin-left: 30px;
}

.article-image-column {
  width: 450px;
  height: auto;
  margin-right: 30px;
}

.article-title {
  font-family: "Trade Gothic LT", sans-serif;
  font-weight: bold;
  font-size: 24px;
  margin-bottom: 10px;
}

/* Update your existing article styles to use CSS variables */
.article-header {
  font-family: "Trade Gothic LT", sans-serif;
  font-size: var(--header-size);
  margin-bottom: 10px;
  color: var(--header-color);
}

.article-text {
  font-family: "Open Sans", serif;
  line-height: 1.6;
  font-size: var(--text-size);
}

.article-image img,
.carousel-slide img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .article-layout {
      flex-direction: column;
  }

  .article-content-column,
  .article-image-column {
      width: 100%;
      margin: 0;
  }
}

@media (max-width: 992px) {
  .articles-container {
      margin: 100px 20px 0;
  }
}

/* Existing carousel styles remain the same */

.image-preview {
  margin-top: 10px;
  min-height: 50px;
}

.image-preview img {
  max-width: 200px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.article-image {
  margin: 15px 0;
}

.article-image img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

input[type="file"] {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: "Open Sans", serif;
  font-size: 16px;
  width: 100%;
}


/* Upload Area Styles */
.upload-area {
  border: 2px dashed #ccc;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #f8f9fa;
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-area:hover {
  border-color: #71C885;
  background-color: #f0f8f1;
}

.upload-area.dragover {
  border-color: #71C885;
  background-color: #f0f8f1;
}

.file-input {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-content {
  pointer-events: none;
}

.upload-icon {
  color: #71C885;
  margin-bottom: 15px;
}

.upload-text .primary-text {
  font-family: "Open Sans", serif;
  font-size: 16px;
  color: #333;
  margin-bottom: 8px;
}

.upload-text .secondary-text {
  font-family: "Open Sans", serif;
  font-size: 14px;
  color: #666;
}

.image-preview {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.image-preview img {
  max-width: 200px;
  max-height: 200px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}
.uploaded-files {
  margin-top: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  background-color: #f9f9f9;
  max-height: 150px;
  overflow-y: auto;
}

.uploaded-files div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.uploaded-files img {
  max-width: 50px;
  max-height: 50px;
  border-radius: 4px;
  margin-right: 10px;
}

.uploaded-files .file-name {
  flex-grow: 1;
  font-family: "Open Sans", serif;
  font-size: 14px;
  color: #333;
}

.uploaded-files .remove-btn {
  background-color: #ff4d4d;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.uploaded-files .remove-btn:hover {
  background-color: #e60000;
}


.carousel-container {
  margin: 20px 0;
  position: relative;
}

.carousel {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.carousel-content {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.carousel-slide {
  width: 100%;
}

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

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 12px 18px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 2;
  transition: background-color 0.3s;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.carousel-dots {
  text-align: center;
  margin-top: 10px;
}

.dot {
  height: 10px;
  width: 10px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: #717171;
}



.paragraph-section {
  padding: 0px;
  border-radius: 8px;
  margin-top: 0px;
  position: relative;
}

.add-paragraph-button {
  background-color: #8FE7A3;
  color: black;
  border: none;
  padding: 12px 10px;
  border-radius: 4px;
  font-family: "Open Sans", serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-bottom: 20px;
  width: 40%;
}

.add-paragraph-button:hover {
  background-color: #c1fccf;
}

.remove-paragraph-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #ff4d4d;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.remove-paragraph-button:hover {
  background-color: #e60000;
}




/* ----------------------------------------------------------Edit page */


.edit-container {
  max-width: 90%;
  margin: 100px auto 0;
  padding: 0 20px;
}

.lo-sections {
  display: flex;
  flex-direction: column;
  gap: 90px;
}

.lo-section {
  width: 100%;
  background-color: none;
  padding: 30px 0;
  border-radius: 8px;
}

.lo-name-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 60px;
}

.lo-name-line {
  height: 2px;
  width: 40%;
  background-color: #ccc;
}

.lo-name-container h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 20px;
}

.article-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.card-header h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
}

.card-buttons {
  display: flex;
  gap: 10px;
}

.card-edit {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.card-footer {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 20px;
}

.edit-btn, .delete-btn, .move-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: 0.3s ease;
}

.edit-btn:hover, .delete-btn:hover, .move-btn:hover {
  transform: scale(1.1); /* Corrected syntax */
}
.edit-btn{
  margin-left: 360px;
}
.edit-btn, .delete-btn {
  margin-top: 24px;
}
.card {
  min-width: 420px;
  min-height: 120px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0px 8px 16px rgba(51, 51, 51, 0.20);
}
.card:hover {
  transform: none;
}
.edit-title{
  font-size: 24px;
}

.back-button {
  position: absolute;
  top: 120px;
  left: 100px;
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: #333;
  font-family: "Open Sans", serif;
  font-weight: 600;
  font-size: 18px;
  transition: transform 0.2s ease;
}

.back-button:hover {
  transform: translateX(-5px);
}

.back-arrow {
  width: 20px;
  height: 20px;
}




/* ----------------------------------------------------------INDEX page */
.idx-hero {
  text-align: center;
  margin-top: 40px;
  padding: 10rem 2rem;
  background-color: none;
  position: relative;
}

.idx-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
}

.idx-highlight {
  color: #5da970;
}

.idx-hero-description {
  font-size: 1.2rem;
  margin: 1rem 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.idx-hero-buttons {
  margin: 2rem 0;
}

.idx-button {
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border-radius: 5px;
  display: inline-block;
}

.idx-button-primary {
  background-color: #5da970;
  color: #fff;
  border: none;
}

.idx-button-secondary {
  background-color: #fff;
  color: #5da970;
  border: 2px solid #5da970;
  margin-left: 1rem;
}

.idx-button:hover {
  opacity: 0.9;
}

/* Hero Image */
.idx-hero-image {
  margin-top: 3rem;
  max-width: 100%;
  height: auto;
}

.idx-hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: -1;
  opacity: 0.2;
}



/* ----------------------------------------------------------STYLE page */

.background-wrapper{
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: -100;
}

.article-header {
  color: var(--header-color) !important;
  font-size: var(--header-size) !important;
}

.article-text {
  font-size: var(--text-size) !important;
}

.settings-container {
  margin-left: 100px;
  margin-right: 100px;
  margin-top: 140px;
  display: flex;
  max-width: 1400px;
  padding: 40px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.2);
}

.settings-left {
  flex: 1;
  padding-right: 30px;
}

.settings-group {
  margin-bottom: 20px;
}

.settings-group label {
  display: block;
  margin-bottom: 8px;
  font-family: "Trade Gothic LT", sans-serif;
  font-weight: bold;
}

.settings-group select,
.settings-group input[type="color"],
.settings-group input[type="text"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
  margin-top: 5px;
}

/* Styling for Color Picker */
.settings-group input[type="color"] {
  width: 50px;
  height: 50px;
  padding: 0;
  cursor: pointer;
  margin-top: 5px;
}

.settings-group input[type="color"]:focus,
.settings-group input[type="text"]:focus {
  border-color: #3498db;
  outline: none;
}

/* HEX Input styling */
.settings-group input[type="text"] {
  width: 100%;
  margin-top: 5px;
  padding: 10px;
  font-size: 16px;
  border-radius: 4px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

/* Save Button Styling */
.save-button {
  background-color: #71C885;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-family: "Trade Gothic LT", sans-serif;
  font-size: 16px;
  margin-top: 20px;
}

.save-button:hover {
  background-color: #5fa672;
}

.preview-section {
  flex: 1.7;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #f9f9f9;
}

.preview-section h4 {
  margin-bottom: 20px;
  margin-top: 170px;
}

/* Media Queries for responsiveness */
@media (max-width: 768px) {
  .settings-container {
    flex-direction: column;
    align-items: center;
  }

  .settings-left {
    padding-right: 0;
    margin-bottom: 20px;
  }

  .preview-section {
    margin-top: 20px;
  }
}
