/****************************************
*           RESET & BASE STYLES        *
****************************************/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Cairo", sans-serif;
}

body {
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  overflow-x: hidden;
  width: 100%;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

/* Font Face */
@font-face {
  font-family: "Arabic Typesetting";
  src: url("fonts/arabic-typesetting-regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
.upload-progress {
    display: none;
    width: 300px;
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px auto;
}

.progress-bar {
    height: 100%;
    background-color: #4CAF50;
    width: 0%;
    transition: width 0.3s;
}

.message {
    display: none;
    padding: 10px 20px;
    border-radius: 5px;
    margin: 10px auto;
    max-width: 300px;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
/****************************************
*           UTILITY CLASSES            *
****************************************/

/* Flex and Grid */
.flex {
  display: flex;
}

.justify-between {
  justify-content: space-between;
}

.items-center {
  align-items: center;
}

.gap-4 {
  gap: 1rem;
}

.gap-5 {
  gap: 1.25rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-10 {
  gap: 2.5rem;
}

.grid {
  display: grid;
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-cols-1fr {
  grid-template-columns: 1fr;
}

/* Spacing */
.px-10 {
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.py-5 {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-10 {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.mb-5 {
  margin-bottom: 1.25rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-10 {
  margin-bottom: 2.5rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

.mt-0 {
  margin-top: 0;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.my-0 {
  margin-top: 0;
  margin-bottom: 0;
}

/* Color & Background */
.bg-white {
  background-color: #fff;
}

.bg-black {
  background-color: #000;
}

.bg-gray-50 {
  background-color: #d9d9d9;
}

.bg-zinc-800 {
  background-color: #27272a;
}

.bg-green-500 {
  background-color: #10b981;
}

.text-green-500 {
  color: #10b981;
}

.text-zinc-800 {
  color: #27272a;
}

.text-white {
  color: #fff;
}

.text-stone-500 {
  color: #78716c;
}

.border-green-500 {
  border-color: #10b981;
}

/* Typography */
.text-base {
  font-size: 1rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-3xl {
  font-size: 1.875rem;
}

.text-4xl {
  font-size: 2.25rem;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.leading-relaxed {
  line-height: 1.75;
}

/* Other Utilities */
.rounded-md {
  border-radius: 0.375rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.text-center {
  text-align: center;
}

.inline-block {
  display: inline-block;
}

.block {
  display: block;
}

.cursor-pointer {
  cursor: pointer;
}
.hidden {
  display: none;
}

.profile-image {
  transition: transform 0.3s ease;
}

.profile-image:hover {
  transform: scale(1.1);
}

.user-profile {
  align-items: center;
  gap: 10px;
}

.user-profile img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.user-profile span {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
}

.user-profile:hover img {
  border-color: #007bff;
}

.user-profile:hover span {
  color: #007bff;
}

/* Mobile Adjustments */
#mobile-menu .user-profile {
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

#mobile-menu .user-profile img {
  width: 60px;
  height: 60px;
}

#mobile-menu .user-profile span {
  font-size: 18px;
}
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  text-align: center;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
/* Add these styles to your ../CSS/style.css file */
.discussion-section {
  width: 100%;
  max-width: 100%;
  margin: 0;
  font-family: 'Cairo', sans-serif;
}

.discussion-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.discussion-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.discussion-subtitle {
  font-size: 1rem;
  color: #718096;
}

.comments-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.comment-card {
  background-color: #fff;
  border-radius: 0.375rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  direction: rtl;
  padding: 0.75rem;
}

.comment-header {
  display: flex;
  align-items: center;
  padding: 0.5rem;
}

.comment-profile {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
  background-color: #e2e8f0;
  border: 2px solid #e2e8f0;
}

.comment-user-info {
  margin-right: 0.5rem;
}

.comment-username {
  font-weight: 600;
  color: #2d3748;
  margin: 0;
  font-size: 0.9rem;
}

.comment-role {
  display: inline-block;
  font-size: 0.7rem;
  background-color: #ebf4ff;
  color: #3182ce;
  padding: 0.125rem 0.25rem;
  border-radius: 0.5rem;
  margin-right: 0.25rem;
}

.comment-date {
  font-size: 0.7rem;
  color: #a0aec0;
}

.comment-bubble {
  background-color: #f7fafc;
  padding: 0.5rem;
  border-radius: 0.375rem;
  margin: 0 0.5rem 0.5rem 0.5rem;
  color: #4a5568;
  direction: rtl;
  text-align: right;
  font-size: 0.85rem;
}

.delete-btn {
  background-color: #e53e3e;
  color: white;
  border: none;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 0.7rem;
  margin-left: 0.5rem;
}

.delete-btn:hover {
  background-color: #c53030;
}

.reply-input {
  width: 100%;
  min-height: 50px;
  padding: 0.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.25rem;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  direction: rtl;
}

.reply-btn {
  background-color: #3182ce;
  color: white;
  border: none;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 0.7rem;
  margin-top: 0.25rem;
}

.reply-btn:hover {
  background-color: #2c5282;
}

.reply-card {
  background-color: #f7fafc;
  padding: 0.25rem;
  border-radius: 0.25rem;
  margin: 0.25rem 0 0 1rem;
  color: #4a5568;
  font-size: 0.75rem;
  direction: rtl;
  text-align: right;
}

.discussion-form {
  background-color: #fff;
  border-radius: 0.375rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  padding: 1rem;
  direction: rtl;
  width: 100%;
  max-width: 100%;
}

.discussion-textarea {
  width: 100%;
  min-height: 80px;
  padding: 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.25rem;
  margin-bottom: 0.75rem;
  font-family: 'Cairo', sans-serif;
  resize: vertical;
  direction: rtl;
  font-size: 0.9rem;
}

.discussion-textarea:focus {
  outline: none;
  border-color: #3182ce;
  box-shadow: 0 0 0 2px rgba(49, 130, 206, 0.2);
}

.send-comment-btn {
  display: block;
  margin-left: auto;
  background-color: #3182ce;
  color: white;
  font-weight: 600;
  padding: 0.375rem 1rem;
  border-radius: 0.25rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 0.9rem;
}

.send-comment-btn:hover {
  background-color: #2c5282;
}

.loading-comments, .comment-error, .no-comments {
  text-align: center;
  padding: 1.5rem;
  color: #718096;
  background-color: #fff;
  border-radius: 0.375rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  direction: rtl;
  font-size: 0.9rem;
}

.comment-error {
  color: #e53e3e;
}

/* Add these styles to your existing CSS file */

/* Upload Progress Bar */
.upload-progress {
    width: 300px;
    height: 30px;
    background-color: #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
    margin: 20px auto;
    display: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 15px;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
    min-width: 0;
}

/* Message Display */
.message {
    max-width: 400px;
    margin: 20px auto;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    display: none;
    animation: slideIn 0.3s ease;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Upload Button Styles */
.btn-contained-2 {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 10px;
}

.btn-contained-2:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.btn-contained-2:active {
    transform: translateY(0);
}

/* Upload Form Styling */
#videoUploadForm {
    margin: 20px 0;
}

#uploadLabel {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#uploadLabel:hover {
    transform: scale(1.05);
}

/* Animation for message */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .upload-progress {
        width: 250px;
    }
    
    .btn-contained-2 {
        width: 250px;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .message {
        max-width: 300px;
        padding: 12px;
        font-size: 14px;
    }
}

/* Loading Animation */
.btn-contained-2.loading {
    position: relative;
    color: transparent;
}

.btn-contained-2.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  .discussion-section {
    padding: 1rem;
  }
  
  .comment-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .comment-user-info {
    margin-right: 0;
    margin-top: 0.25rem;
  }
}
.hidden {
  display: none !important;
}

.user-profile {
  position: relative;
}

.admin-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 100;
  min-width: 150px;
}
.admin-dropdown a {
  display: block;
  padding: 8px 16px;
  text-decoration: none;
  color: #333;
  font-size: 16px;
}
.admin-dropdown a:hover {
  background-color: #f0f0f0;
}

.admin-dropdown.admin-visible {
  left: 30px !important; /* More noticeable shift to the right in RTL (visually less to the left) */
}


.admin-dropdown a.hidden {
  display: none !important;
}


.profile-pic:hover + .user-profile .admin-dropdown,
.user-profile:hover .admin-dropdown {
  display: block !important;
}

.profile-pic {
  margin-right: 0 !important;
}
/****************************************
*         HEADER & HERO SECTION        *
****************************************/
header {
  background-color: #d9d9d9;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 50;
}

.hero-section {
  min-height: 80vh;
  background: linear-gradient(
    to left,
    rgba(255, 255, 255, 0.9),
    rgba(241, 245, 249, 0.9)
  );
}

/****************************************
*           CONTACT SECTION            *
****************************************/
.contact-section {
  background: #ffffff;
  padding: 3rem 1rem;
}

.container-contact {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #4CAF4F;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: #555;
  margin-bottom: 2.5rem;
}

.contact-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f8f8f8;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  text-decoration: none;
  color: #333;
}

.contact-box:hover {
  transform: translateY(-5px);
}

.contact-box .icon {
  font-size: 2.5rem;
  color: #4CAF4F;
  margin-bottom: 0.5rem;
}

.contact-box h3 {
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
  color: #4CAF4F;
}

.contact-box p {
  font-size: 1rem;
  margin: 0;
  color: #666;
}

.social-links h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: #4CAF4F;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: #f8f8f8;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  color: #4CAF4F;
  font-size: 1.5rem;
  transition: transform 0.3s ease, background 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  transform: scale(1.1);
  background: #e0e0e0;
}

/****************************************
*           GUIDES SECTION             *
****************************************/
.guides-section {
  padding: 4rem 6%;
}

.guides-section h2 {
  font-size: 28px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 3rem;
  color: #333;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.guide-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.guide-card:hover {
  transform: translateY(-5px);
}

.guide-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.guide-card h3 {
  padding: 1.5rem;
  font-size: 20px;
  font-weight: 500;
  color: #333;
}

.read-more {
  display: block;
  padding: 0 1.5rem 1.5rem;
  color: #4CAF4F;
}

/****************************************
*           VIDEO SECTION              *
****************************************/
.video_sec {
  background-color: #d9d9d9;
  text-align: right;
  padding-right: 70px;
  width: 100%;
}

.video-placeholder {
  background: linear-gradient(45deg, #4b5563, #374151);
}

/* Video Dropdown */
.nav-video-dropdown {
  position: relative;
  display: inline-block;
}

.nav-video-dropdown .dropdown-trigger {
  font-size: 22px;
  margin: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.nav-video-dropdown .dropdown-trigger svg {
  margin-right: 4px;
}

.nav-video-dropdown .dropdown-menu {
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 200px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(10px);
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10;
}

.nav-video-dropdown:hover .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.nav-video-dropdown .dropdown-menu a {
  display: block;
  padding: 10px 15px;
  font-size: 18px;
  text-align: right;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #eee;
}

.nav-video-dropdown .dropdown-menu a:last-child {
  border-bottom: none;
}

.nav-video-dropdown .dropdown-menu a:hover {
  background-color: #f0f0f0;
}

/* Video Images */
.video-img {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  gap: 1rem;
  width: 100%;
  padding: 20px 0;
  align-items: center;
}

.video-img img {
  border-radius: 0.75rem;
  max-width: 500px;
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.video-img img:hover {
  transform: scale(1.05);
}

.video-img-2 {
  display: flex;
  align-items: center;
  padding: 20px;
  padding-right: 32%;
  width: 1800px;
}

.video-img-2 img {
  border-radius: 0.75rem;
  max-width: 600px;
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.video-img-2 img:hover {
  transform: scale(1.05);
}

        .upload-status {
            margin: 10px auto;
            text-align: center;
            font-size: 14px;
            color: #666;
        }

                /* Progress Bar Styling */
        .upload-progress {
            width: 300px;
            height: 25px;
            background-color: #f0f0f0;
            border-radius: 12px;
            overflow: hidden;
            margin: 20px auto;
            box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
            display: none; /* Hidden by default */
        }

        .progress-bar {
            height: 100%;
            background: linear-gradient(90deg, #4CAF50, #45a049);
            width: 0%;
            transition: width 0.3s ease;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 12px;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
        }

        .message {
            margin: 20px auto;
            padding: 10px;
            border-radius: 8px;
            text-align: center;
            width: 300px;
            font-weight: bold;
        }

        .message.success {
            background-color: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }

        .message.error {
            background-color: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }

/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  overflow: hidden;
}

.lightbox-content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  transition: transform 0.3s ease;
  border-radius: 0.75rem;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  transform: translateY(-50%);
}

.arrow {
  background: none;
  color: white;
  border: none;
  font-size: 4rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.arrow:hover {
  transform: scale(1.4);
}

.arrow.left {
  margin-right: 20px;
}

.arrow.right {
  margin-left: 20px;
}

.slide-in {
  transform: translateX(0);
}

.slide-out {
  transform: translateX(100%);
}

/****************************************
*       BUTTONS & INTERACTIONS         *
****************************************/
.cta-button {
  transition: all 0.3s ease;
  border: 2px solid #10b981;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
}

.btn-container {
  display: flex;
  gap: 1rem;
  margin: 20px;
}

.btn-outlined {
  background-color: #fff;
  color: #4caf4f;
  border: 1px solid #4caf4f;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-outlined:hover {
  background-color: #4caf4f;
  color: #fff;
}

.btn-contained {
  background-color: #4caf4f;
  color: #fff;
  border: 1px solid #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-contained:hover {
  background-color: #fff;
  color: #4caf4f;
}

.btn-contained-2 {
  background-color: #4caf4f;
  color: #fff;
  border: 1px solid #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  width: 200px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-contained-2:hover {
  background-color: #D9D9D9;
  color: #4caf4f;
}

/****************************************
*           FEATURE CARDS              *
****************************************/
.feature-card {
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

/****************************************
*                FOOTER                *
****************************************/
footer {
  background: #18181b;
}

.site-footer {
  background-color: #263238;
  color: #fff;
  padding: 40px 40px 40px;
  margin-top: 40px;
  font-family: Arial, sans-serif;
}

.site-footer .footer-container {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  text-align: center;
}

.site-footer .footer-logo,
.site-footer .footer-links,
.site-footer .footer-support,
.site-footer .footer-contact {
  padding: 16px;
}

.site-footer .footer-logo h2 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #4CAF4F;
  margin-bottom: 8px;
}

.site-footer .footer-logo p {
  font-size: 0.875rem;
  color: #9E9E9E;
  margin-bottom: 16px;
  line-height: 1.4;
}

.site-footer .social-icons {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  justify-content: center;
}

.site-footer .social-icons a img {
  width: 24px;
  height: 24px;
}

.site-footer .footer-section h4 {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 16px;
}

.site-footer .footer-section ul {
  list-style-type: none;
}

.site-footer .footer-section ul li {
  margin-bottom: 8px;
}

.site-footer .footer-section ul li a {
  color: #B0BEC5;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.3s;
}

.site-footer .footer-section ul li a:hover {
  color: #4CAF4F;
}

.site-footer .footer-contact form {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.site-footer .footer-contact input[type="email"] {
  padding: 8px 16px;
  border: none;
  border-radius: 9999px 0 0 9999px;
  outline: none;
  font-size: 0.875rem;
}

.site-footer .footer-contact button {
  background-color: #6B7280;
  border: none;
  padding: 8px 16px;
  border-radius: 0 9999px 9999px 0;
  cursor: pointer;
  transition: background-color 0.3s;
}

.site-footer .footer-contact button:hover {
  background-color: #546E7A;
}

.site-footer .footer-contact svg {
  width: 16px;
  height: 16px;
  color: #fff;
}

.footer-bottom-line {
  margin-top: 0px;
  margin-bottom: 0px;
  height: 10px;
  width: 100%;
  background: linear-gradient(to right, #4CAF4F, #A8C7B7);
}

/* Removed duplicate .footer-bottom-line definition */

/****************************************
*           MOBILE MENU                *
****************************************/
.hamburger-menu {
  display: none;
  width: 30px;
  height: 22px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 51;
}

.hamburger-menu span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #333;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 90px;
  right: -100%;
  width: 100%;
  height: calc(100vh - 90px);
  background-color: #f5f5f5;
  z-index: 50;
  padding: 2rem;
  overflow-y: auto;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  direction: rtl;
  text-align: right;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu a {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid #ddd;
  font-size: 20px;
  text-decoration: none;
  color: #333;
}

.mobile-dropdown {
  border-bottom: 1px solid #ddd;
}

.mobile-dropdown-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  font-size: 20px;
  color: #333;
  cursor: pointer;
}

.mobile-dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-dropdown-content.active {
  max-height: 120px;
}

.mobile-dropdown-content a {
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid #eee;
  font-size: 18px;
}

.mobile-dropdown-content a:last-child {
  border-bottom: none;
}

.mobile-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

/****************************************
*           TYPOGRAPHY                 *
****************************************/
.subhead {
  font-family: 'Noto Sans Arabic', regular;
  font-weight: 1px;
  font-size: 28px;
  color: #4CAF4F;
}

.head {
  font-family: 'Inter', sans-serif;
  font-size: 70px;
  font-weight: bold;
}

.text {
  font-family: 'Arabic Typesetting', regular;
  color: #000;
  font-size: 35px;
  width: 60%;
  padding: 20px;
}

.text_2 {
  font-family: 'Arabic Typesetting', regular;
  color: #000;
  font-size: 35px;
  width: 100%;
  padding: 20px;
}

/****************************************
*           MEDIA QUERIES              *
****************************************/
@media (min-width: 768px) {
  .site-footer .footer-container {
    grid-template-columns: repeat(4, 1fr);
    text-align: right;
  }
  .site-footer .footer-logo {
    text-align: right;
  }
  .site-footer .social-icons {
    justify-content: flex-start;
  }
}

@media (max-width: 1024px) {
  .hamburger-menu {
    display: flex;
  }
  .main-nav {
    display: none;
  }
  .btn-container {
    display: none;
  }
}

@media (max-width: 1000px) {
  #parent {
    flex-direction: column;
    padding: 2rem 1rem;
  }
  #parent > div:first-child {
    order: 2;
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
  }
  #parent > div:first-child img {
    width: 100% !important;
    max-width: 100%;
    margin-right: 0 !important;
    border-radius: 20px;
  }
  #parent > div:nth-child(2) {
    order: 1;
    width: 100%;
    padding-right: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #evaluate {
    flex-direction: column;
    padding: 1.5rem 1rem;
  }
  .footer-bottom-line {
    height: 6px;
  }
  #evaluate > div:first-child {
    order: 1;
    width: 100%;
    padding-left: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #evaluate > div.image-container {
    order: 2;
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    padding-left: 0 !important;
    display: flex;
    justify-content: center;
  }
  #evaluate > div.image-container img {
    width: 100% !important;
    max-width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: top;
    margin-left: 0 !important;
    border-radius: 20px;
  }
  .guides-section {
    padding: 1rem 0.75rem;
  }
  .guides-section .text-center {
    width: 100%;
  }
  .green-accent {
    display: none;
  }
  .guides-section .text {
    width: 100%;
    margin-right: 0 !important;
    padding: 0.5rem;
    font-size: 1.95rem;
    text-align: center;
    color: #444;
  }
  #training {
    flex-direction: column;
    padding: 2rem 1rem;
  }
  #training > div:first-child {
    order: 2;
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
  }
  #training > div:first-child img {
    width: 100% !important;
    max-width: 100%;
    height: 350px;
    margin-right: 0 !important;
    border-radius: 20px;
  }
  #training > div:nth-child(2) {
    order: 1;
    width: 100%;
    padding-right: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #training .subhead {
    width: 100%;
    text-align: center;
    margin-right: 0 !important;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
  }
  #training .text {
    width: 100%;
    padding: 0.5rem;
    font-size: 1.25rem;
    text-align: center;
  }
  #training .btn-contained-2 {
    margin-right: 0 !important;
    align-self: center;
    margin-top: 0;
    width: 100%;
    max-width: 300px;
    text-align: center;
    padding: 0.75rem;
    font-size: 1rem;
  }
  .subhead {
    font-size: 35px; /* 24px */
    margin-bottom: 0.5rem;
    text-align: center;
    width: 100%;
  }
  .text {
    font-size: 24px; /* 20px */
    padding: 0.5rem;
    text-align: center;
    width: 100%;
  }
  .btn-contained-2 {
    order: 3;
    margin-right: 0 !important;
    align-self: center;
    margin-top: 0;
    width: 100%;
    max-width: 300px;
    text-align: center;
    padding: 0.75rem;
    font-size: 1rem;
  }
  #home {
    flex-direction: column;
    padding: 2rem 1rem !important;
  }
  #home > div:first-child {
    order: 1;
    width: 100% !important;
    padding: 0 !important;
    text-align: center;
  }
  #home .subhead {
    font-size: 1.75rem;
    margin-bottom: 0.5rem !important;
    color: #4CAF50;
  }
  #home h2 {
    font-size: 2rem !important;
    margin-bottom: 1rem !important;
  }
  #home .text {
    font-size: 1.25rem !important;
    margin-bottom: 1.5rem !important;
    padding: 0 0.5rem !important;
  }
  #home .btn-contained-2 {
    margin: 0 auto 2rem auto !important;
    display: block;
    width: 100%;
    max-width: 300px;
  }
  #home > div:nth-child(2) {
    order: 2;
    width: 100% !important;
    margin: 0 auto;
    padding: 0 !important;
  }
  #home > div:nth-child(2) img {
    width: 100% !important;
    max-width: 100% !important;
    margin: 1rem auto 0 auto !important;
    border-radius: 20px !important;
  }
  #video .subhead,
  #video .text_2,
  #videos .subhead,
  #videos .text_2 {
    text-align: center !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    width: 100% !important;
  }
  #video .video-img,
  #videos .video-img {
    justify-content: center;
  }
  #videos .btn-contained-2 {
    display: block;
    margin: 2rem auto 0 auto !important;
    width: 80%;
    max-width: 300px;
    padding: 0.75rem 1rem;
    margin-right: 0 !important;
  }
  .subhead {
    font-size: 22px;
  }
  .text_2 {
    font-size: 26px;
    padding: 12px;
    width: 90%;
  }
  .video-img-2 {
    padding: 15px;
    padding-right: 0;
    width: 100%;
    justify-content: center;
  }
}
/* ==========================================================================
   ADMIN DASHBOARD & USER PROFILE
   ========================================================================== */

/* Container shared by both pages */
.admin-dashboard,
.profile-page {
  max-width: 1200px;
  margin: 2rem auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 2rem;
}

/* ---- Admin Dashboard ---- */
.admin-dashboard h2 {
  text-align: center;
  color: #4CAF4F;
  margin-bottom: 1.5rem;
}
.user-table {
  width: 100%;
  border-collapse: collapse;
}
.user-table th,
.user-table td {
  padding: 0.75rem;
  border: 1px solid #eee;
  text-align: right;
}
.user-table th {
  background: #f5f5f5;
  font-weight: 600;
}
.user-table td .admin-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: #4CAF4F;
  color: #fff;
  border-radius: 4px;
  font-size: 0.75rem;
}

/* ---- User Profile ---- */
.profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.profile-info h2 {
  margin: 0;
  font-size: 1.75rem;
  color: #333;
}
.profile-form label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
  color: #555;
}
.profile-form input[type="text"],
.profile-form input[type="email"],
.profile-form input[type="file"] {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.profile-form button {
  margin-top: 1.5rem;
  background: #4CAF4F;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
.profile-form button:hover {
  background: #45a049;
}
/* ==========================================================================
   PARENT DISCUSSION SECTION
   ========================================================================== */

   .discussion-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 2rem;
  }
  
  .discussion-header {
    text-align: center;
    margin-bottom: 2rem;
  }
  .discussion-title {
    font-size: 2rem;
    color: #4CAF4F;
    margin-bottom: 0.5rem;
  }
  .discussion-subtitle {
    font-size: 1rem;
    color: #666;
  }
  
  .comments-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
  }
  
  .comment-card {
    background: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
  }
  .comment-card:hover {
    transform: translateY(-3px);
  }
  
  .comment-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #fff;
  }
  .comment-profile {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
  }
  .comment-user-info h4 {
    margin: 0;
    font-size: 1rem;
    color: #333;
  }
  .comment-role {
    font-size: 0.875rem;
    color: #999;
    margin-right: 0.5rem;
  }
  .comment-date {
    font-size: 0.75rem;
    color: #ccc;
  }
  
  .comment-bubble {
    padding: 1rem;
    color: #444;
    line-height: 1.5;
    font-size: 1rem;
  }
  
  .discussion-form {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .discussion-textarea {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
  }
  .send-comment-btn {
    align-self: flex-end;
    background: #4CAF4F;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
  }
  .send-comment-btn:hover {
    background: #45a049;
  }
  
  /* Center on mobile */
  @media (max-width: 768px) {
    .comments-container {
      grid-template-columns: 1fr;
    }
    .send-comment-btn {
      align-self: center;
    }
  }
  

/* ======== PARENT DISCUSSION SECTION ======== */
.discussion-section {
  background: linear-gradient(to left, #ffffff, #f8f8f8);
  border-radius: 30px;
  text-align: right;
  direction: rtl;
}

.discussion-header {
  text-align: center;
  margin-bottom: 2rem;
}

.discussion-title {
  font-family: 'Arabic Typesetting', serif;
  font-size: 60px;
  font-weight: bold;
  color: #4CAF4F;
}

.discussion-subtitle {
  font-family: 'Cairo', sans-serif;
  font-size: 22px;
  color: #666;
}

.comments-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto 3rem auto;
}

.comment-card {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s ease;
}

.comment-card:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.comment-profile {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #4CAF4F;
}

.comment-user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.comment-username {
  font-size: 22px;
  font-weight: bold;
  color: #333;
}

.comment-role {
  font-size: 16px;
  color: #4CAF4F;
}

.comment-date {
  font-size: 14px;
  color: #888;
}

.comment-bubble {
  background-color: #e0f2f1;
  padding: 1rem;
  border-radius: 16px;
  font-size: 20px;
  font-family: 'Arabic Typesetting', regular;
  line-height: 1.8;
  color: #444;
}

/* Form */
.discussion-form {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.discussion-textarea {
  width: 100%;
  min-height: 130px;
  border-radius: 20px;
  border: 1px solid #ccc;
  padding: 1rem;
  font-size: 20px;
  font-family: 'Cairo', sans-serif;
  resize: vertical;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.discussion-textarea:focus {
  border-color: #4CAF4F;
  box-shadow: 0 0 8px rgba(76, 175, 79, 0.4);
}

/* Publish Button */
.send-comment-btn {
  background-color: #4CAF4F;
  border: none;
  padding: 0.75rem 2rem;
  color: white;
  border-radius: 25px;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.send-comment-btn:hover {
  background-color: #43a047;
  transform: translateY(-2px);
}

/* Profile Page Styling */
.profile-container {
  max-width: 900px;
  width: 95%;
  margin: 2rem auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 2.5rem;
  display: flex;
  gap: 2rem;
}

.profile-sidebar {
  width: 250px;
  border-left: 1px solid #eee;
  padding-left: 1.5rem;
}

.profile-user {
  text-align: center;
  margin-bottom: 1.5rem;
}

.profile-user img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.5rem;
  border: 2px solid #4CAF4F;
}

.profile-user h2 {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}

.profile-user p {
  font-size: 0.75rem;
  color: #666;
}

.profile-nav ul {
  list-style: none;
}

.profile-nav li {
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: #333;
  cursor: pointer;
  transition: background 0.3s ease;
}

.profile-nav li:hover,
.profile-nav li.active {
  background: #f0f0f0;
  color: #4CAF4F;
}

.profile-nav li i {
  margin-left: 0.5rem;
}

.profile-main {
  flex: 1;
}

.profile-main h1 {
  font-size: 1.5rem;
  color: #4CAF4F;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.profile-form,
.password-form {
  max-width: 400px;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.3rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group select,
.form-group input[type="file"] {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #333;
  background-color: #f8f8f8;
}

.form-group select {
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" fill="%234CAF4F" viewBox="0 0 16 16"><path d="M8 12l-6-6h12l-6 6z"/></svg>');
  background-repeat: no-repeat;
  background-position: left 0.5rem center;
  padding-left: 1.5rem;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #4CAF4F;
  box-shadow: 0 0 5px rgba(76, 175, 79, 0.2);
}

.btn-save {
  margin-top: 1rem;
  background: #4CAF4F;
  color: #fff;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-save:hover {
  background: #43a047;
  transform: translateY(-2px);
}

.contact-section {
  margin-top: 2rem;
  text-align: center;
}

.contact-section h3 {
  font-size: 0.875rem;
  color: #4CAF4F;
  margin-bottom: 0.75rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: #f8f8f8;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  color: #4CAF4F;
  font-size: 1.25rem;
  transition: transform 0.3s ease, background 0.3s ease;
}

.social-link:hover {
  transform: scale(1.1);
  background: #e0e0e0;
}

@media (max-width: 768px) {
  .profile-container {
      flex-direction: column;
      padding: 1.5rem;
  }

  .profile-sidebar {
      width: 100%;
      border-left: none;
      border-bottom: 1px solid #eee;
      padding-left: 0;
      padding-bottom: 1.5rem;
  }

  .profile-user img {
      width: 80px;
      height: 80px;
  }

  .profile-user h2 {
      font-size: 0.875rem;
  }

  .profile-user p {
      font-size: 0.75rem;
  }

  .profile-nav li {
      font-size: 0.75rem;
  }

  .profile-main h1 {
      font-size: 1.25rem;
  }

  .form-group label {
      font-size: 0.75rem;
  }

  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="tel"],
  .form-group input[type="password"],
  .form-group select,
  .form-group input[type="file"] {
      font-size: 0.75rem;
      padding: 0.4rem;
  }

  .form-group select {
      background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="8" height="8" fill="%234CAF4F" viewBox="0 0 16 16"><path d="M8 12l-6-6h12l-6 6z"/></svg>');
      padding-left: 1.2rem;
  }

  .btn-save {
      font-size: 0.75rem;
      padding: 0.4rem 1.2rem;
  }

  .contact-section h3 {
      font-size: 0.75rem;
  }

  .social-link {
      width: 35px;
      height: 35px;
      font-size: 1rem;
  }
}

/* Auth section */
.auth-container {
  max-width: 900px;
  width: 95%;
  margin: 2rem auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 3rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.auth-header h1 {
  font-size: 2rem;
  color: #4CAF4F;
  font-weight: 700;
  margin-bottom: 0.5rem;
  animation: fadeIn 1s ease-in-out;
}

.auth-header p {
  font-size: 1rem;
  color: #666;
  animation: fadeIn 1.2s ease-in-out;
}

.auth-toggle {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.toggle-btn {
  background: #f8f8f8;
  color: #333;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.toggle-btn.active {
  background: #4CAF4F;
  color: #fff;
}

.toggle-btn:hover:not(.active) {
  background: #e0e0e0;
}

.auth-forms {
  position: relative;
  height: 400px;
}

.form-wrapper {
  position: absolute;
  width: 100%;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.login-form {
  transform: translateX(0);
  opacity: 1;
}

.signup-form {
  transform: translateX(100%);
  opacity: 0;
}

.form-wrapper.active {
  transform: translateX(0);
  opacity: 1;
}

.form-wrapper.inactive {
  transform: translateX(-100%);
  opacity: 0;
}

.auth-form-box {
  max-width: 400px;
  margin: 0 auto;
  background: #f9f9f9;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.auth-form-box:hover {
  transform: translateY(-3px);
}

.form-group {
  margin-bottom: 1.2rem;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.3rem;
}

.form-group input {
  width: 100%;
  padding: 0.5rem 0.5rem 0.5rem 2.5rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #333;
  background-color: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #4CAF4F;
  box-shadow: 0 0 5px rgba(76, 175, 79, 0.2);
}

.form-group i {
  position: absolute;
  left: 10px;
  top: 70%;
  transform: translateY(-50%);
  color: #4CAF4F;
  font-size: 1rem;
}

.error-message {
  color: #ff4444;
  font-size: 0.75rem;
  margin-top: 0.3rem;
  display: none;
}

.btn-auth {
  width: 100%;
  background: #4CAF4F;
  color: #fff;
  border: none;
  padding: 0.5rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-auth:hover {
  background: #43a047;
  transform: translateY(-2px);
}

.social-login {
  margin-top: 1.5rem;
  text-align: center;
}

.social-login p {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 1rem;
  position: relative;
}

.social-login p::before,
.social-login p::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: #ddd;
}

.social-login p::before {
  right: 0;
}

.social-login p::after {
  left: 0;
}

.social-login-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-social.google {
  border-color: #db4437;
  color: #db4437;
}

.btn-social.facebook {
  border-color: #4267b2;
  color: #4267b2;
}

.btn-social:hover {
  transform: translateY(-2px);
}

.btn-social.google:hover {
  background: #db4437;
  color: #fff;
}

.btn-social.facebook:hover {
  background: #4267b2;
  color: #fff;
}

.contact-section {
  margin-top: 2rem;
  text-align: center;
}

.contact-section h3 {
  font-size: 0.875rem;
  color: #4CAF4F;
  margin-bottom: 0.75rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: #f8f8f8;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  color: #4CAF4F;
  font-size: 1.25rem;
  transition: transform 0.3s ease, background 0.3s ease;
}

.social-link:hover {
  transform: scale(1.1) rotate(360deg);
  background: #e0e0e0;
}

@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .auth-container {
      padding: 2rem;
  }

  .auth-header h1 {
      font-size: 1.5rem;
  }

  .auth-header p {
      font-size: 0.875rem;
  }

  .toggle-btn {
      font-size: 0.75rem;
      padding: 0.4rem 1.2rem;
  }

  .auth-forms {
      height: 450px;
  }

  .auth-form-box {
      padding: 1rem;
  }

  .form-group label {
      font-size: 0.75rem;
  }

  .form-group input {
      font-size: 0.75rem;
      padding: 0.4rem 0.4rem 0.4rem 2rem;
  }

  .form-group i {
      font-size: 0.875rem;
  }

  .error-message {
      font-size: 0.65rem;
  }

  .btn-auth {
      font-size: 0.75rem;
      padding: 0.4rem;
  }

  .social-login p {
      font-size: 0.75rem;
  }

  .btn-social {
      font-size: 0.75rem;
      padding: 0.4rem 0.8rem;
  }

  .contact-section h3 {
      font-size: 0.75rem;
  }

  .social-link {
      width: 35px;
      height: 35px;
      font-size: 1rem;
  }
}

/* Responsive */
@media (max-width: 640px) {
  .discussion-title {
    font-size: 45px;
  }
  .discussion-subtitle {
    font-size: 18px;
  }
  .comment-bubble {
    font-size: 18px;
  }
  .discussion-textarea {
    font-size: 18px;
  }
  .send-comment-btn {
    font-size: 18px;
  }
}


@media (max-width: 768px) {
  .max-md\\:hidden {
    display: none !important;
  }
  .max-md\\:flex-col {
    flex-direction: column;
  }
  .max-md\\:text-center {
    text-align: center;
  }
  .video-img {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 80vh;
  }
  .section-title {
    font-size: 2rem;
  }
  .section-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .max-sm\\:px-5 {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .max-sm\\:py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  .max-sm\\:py-10 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
  .max-sm-grid-cols-1fr {
    grid-template-columns: 1fr !important;
  }
  .max-sm\\:text-3xl {
    font-size: 1.875rem !important;
  }
  .video-img {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 80vh;
  }
  .subhead {
    font-size: 18px;
  }
  .text_2 {
    font-size: 22px;
    padding: 8px;
    width: 100%;
  }
  .video-img-2 {
    padding: 10px;
  }
  .close-btn {
    font-size: 1.5rem;
    top: 5px;
    right: 5px;
  }
}
