/* posts*/

.MsoNormal img{
  align-items: center;
  margin: 0 auto;
}
@media (max-width: 768px){
    .MsoNormal img{
        display: flex;
        align-items: center;
        margin: 0 auto;
    }
}
#blog-posts .row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

#blog-posts .col-md-4 {
  flex: 1 1 calc(33.333% - 1rem);
  max-width: calc(33.333% - 1rem);
}

@media (max-width: 768px) {
  #blog-posts .col-md-4 {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
.container {
    max-width: 1140px;
    margin: 0 auto;
}

/* Card styling */
.blog-card {
    background-color: #fff;
    border: none;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect for cards */
.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Image styling */
.card-img-top {
    height: 250px;
    object-fit: cover;
    border-bottom: 2px solid #f0f0f0;
}

/* Card body with title and description */
.card-body {
    padding: 15px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #333;
}

.card-text {
    color: #666;
    font-size: 0.95rem;
}

/* Curved buttons */
.btn {
    border-radius: 30px;
    padding: 10px 25px;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Button hover effect */
.btn:hover {
    background-color: #007bff;
}

/* Footer styling for admin name and date */
.card-footer {
    background-color: #fafafa;
    font-size: 0.875rem;
    color: #777;
}

.card-footer small {
    font-size: 0.875rem;
}

/* Responsive layout for 3 columns */
@media (max-width: 1199px) {
    .col-md-4 {
        flex: 0 0 32%;
    }
}

@media (max-width: 991px) {
    .col-md-4 {
        flex: 0 0 48%;
    }
}

@media (max-width: 767px) {
    .col-md-4 {
        flex: 0 0 100%;
    }
}


/*bg*/
.cta1{
    background: #F4EEE5;
    color: #000;
}

.heading1-w h2, .heading1-w p {
    color: #000;
}
/*scroll-margins*/

section{
     scroll-margin-top: 4rem;
}
/*admin icon styles*/

.single-input {
    position: relative;
}

.otp-container {
    display: flex;
    align-items: center;
}

.otp-container input {
    width: 100%;
    padding: 10px;
    padding-right: 100px;  /* Add space for the button */
    box-sizing: border-box;
}

.otp-container button {
    position: absolute;
    right: 0;  /* Position the button inside the input */
    padding: 10px 20px;
    background-color: #007bff; /* Adjust to your button's color */
    color: white;
    border: none;
    cursor: pointer;
    height: 50px;
	bottom:2px;
}

.otp-container button:hover {
    background-color: #0056b3; /* Adjust for button hover effect */
}

.comment-container {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
}

.comment {
    margin-bottom: 10px;
}

.replies {
    margin-left: 20px;
    padding-left: 10px;
    border-left: 2px solid #eee;
}

.reply {
    margin: 10px 0;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
}

.reply-form {
    margin: 15px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

.reply-form textarea {
    width: 100%;
    margin-bottom: 10px;
}

.reply-icon {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #666;
    text-decoration: none;
    margin-top: 10px;
}

.reply-icon:hover {
    color: #333;
}

.reply-icon i {
    font-size: 14px;
}

.reply-action {
    margin-top: 10px;
}

.btn-primary.reply-submit {
    padding: 8px 20px;
}

/*sidebar images*/
.sidebar-details-widget_1._recent-posts .blog1-recent-box .recent-thumb img {
  width: 5rem;
 /* width: 100%;*/
  height: 5rem;
  border-radius: 5px;
}
.sidebar-widget_1._recent-posts .blog1-recent-box .recent-thumb img {
  width: 5rem;
  height: 5rem;
  border-radius: 5px;
}
.user-menu {
	position: relative;
	display: inline-block;
}
.user-dropdown {
	display: none;
	position: absolute;
	right: 0;
	background-color: #fff;
	border: 1px solid #ddd;
	border-radius: 5px;
	box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
	padding: 1rem;
	z-index: 10;
	width: 10rem;
	margin: 0.3rem;
}
.user-dropdown a {
	
	display: block;
	text-decoration: none;
	color: #333;
	padding: 5px;
}
.user-dropdown a:hover {
	background-color: #f1f1f1;
}
.user-dropdown.show {
	display: block;
}
/* Shake animation for error feedback */
/* Shake animation */
.shake-animation {
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
    75% { transform: translateX(-10px); }
    100% { transform: translateX(0); }
}
.user-dropdown span{
    padding: 5px;
}

/* Loader and success tick customization */
.spinner-border {
    width: 50px;
    height: 50px;
    border-width: 5px;
}

.fa-check-circle {
    font-size: 3rem;
}

/* Ensure modal always appears properly centered */
.modal-dialog {
    top: 10%;
}
			
.hero {
	background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('assets/img/hero.jpg') no-repeat center center/cover;
	color: white;
	text-align: center;
	padding: 100px 20px;
}
.hero h1 {
	font-size: 3rem;
	margin-bottom: 20px;
}
.hero p {
	font-size: 1.25rem;
}
.blog-card img {
	height: 16rem;
	object-fit: cover;
}
.sidebar .recent-posts {
	list-style: none;
	padding: 0;
}
.sidebar .recent-posts li {
	margin-bottom: 10px;
}
.sidebar .recent-posts li a {
	color: #007bff;
	text-decoration: none;
}
.sidebar .recent-posts li a:hover {
	text-decoration: underline;
}

.sidebar-widget_1 {
	background-color: white;
	padding: 32px 24px;
	border-radius: 8px;
}

.posts{
	background-color: #f3f4f6;
	margin-top: 5rem;
}

.page-link{
	width: 55px;
	height: 55px;
	text-align: center;
	line-height: 55px;
	margin: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--vtc-bg-main1);
	transition: all 0.3s;

}

/* Style for .page-item */
.page-item {
	list-style: none;
	display: inline-block;			
}

/* Active page styling */
.page-item.active .page-link {
	background: #4b1ab3; 
	color: #fff; 
	font-weight: bold;
	
}

/* Disabled button styling */
.page-item.disabled .page-link {
	background: #e0e0e0; 
	color: #a0a0a0;
	cursor: not-allowed;
}

.page-item:first-child .page-link {
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
}

.page-item:last-child .page-link {
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}

/* Hover effect for page links */


/* Optional: Add transition to active state */
.page-item.active .page-link:hover {
	background: #4b1ab3;
	color: #fff;
}	

.card.blog-card {
	display: flex;                
	flex-direction: column;      
	height: 100%;               
	background-color: #fff;
	border-radius: 10px;			
	overflow: hidden;             
}

/* Ensure the card image maintains its aspect ratio */
.card-img-top {
	height: 200px;                
	object-fit: cover;           
}

/* Card Body (content section) */
.card-body {
	flex-grow: 1;                 
	display: flex;
	flex-direction: column;
	justify-content: space-between;  
}

/* Card Footer */
.card-footer {			
	background-color: #fff;	
	padding: 1rem;			
	text-align: left;
}

/* Button styling */
.blog-card .btn {
	width:60%;                  
	margin: 0.6rem auto;             
	background-color: #4b1ab3;     
	color: #fff;                   
	border: none; 
    padding: 0.7rem	;
	border-radius: 3rem;
}

.btn:hover {
	background-color: #3a0c80;    
}

.blog-card {
	position: relative;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

.card-badge {
	font-size: 0.85rem;
	font-weight: bold;
	z-index: 1;
	background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent background */
}

.card-img-top {
	height: 200px; /* Adjust as needed */
	object-fit: cover;
}

.card-body {
	padding: 20px;
}

.card-title {
	font-size: 1.25rem;
	margin-bottom: 10px;
}

.card-text {
	font-size: 1rem;
	color: #000;
}
header {
  background: #fff;
  padding: 1.5rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: black;
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: black;
  text-decoration: none;
  padding: 5px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-links a.active {
    background-color: #ff6c00;  /* same accent color for consistency */
    color: white;
}
/*.nav-links a:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}*/

.search-input {
  padding: 0.5rem 1rem;
  border: 1px solid #000;
  border-radius: 50px;
  background: white;
  color: black;
  width: 200px;
  transition: all 0.3s ease;
}

.search-input::placeholder {
  color: #000;
}

.search-container {
    position: relative;
    max-width: 400px;
    margin: auto;
}

.search-container .form-control {
    padding-right: 50px; /* Space for the button */
}

.theme-btn1{
	border-radius: 50px;
}

/* Mobile Search Container */

.mobile-search-input {
  width: 0;
  opacity: 0;
  padding: 0.6rem;
  border: 1px solid #000;
  border-radius: 50px;
  background: white;
  color: black;
  transition: width 0.3s ease, opacity 0.3s ease; /* Animate width and opacity */
}

/* When active, set the width and opacity to normal */
.mobile-search-input.active {
  width: 180px; /* Desired width */
  opacity: 1;
  transition: width 0.3s ease-out, opacity 0.3s ease-out; /* Ensure smooth transition */
}

@media (max-width: 768px) {
    .mobile-search-container {
        position: relative;
    }
    .mobile-search-container button.theme-btn1 {
      position: absolute;
      left: 9rem;
      top: 0;
      bottom: 0;
      padding: 10px 15px;
      background-color: #007bff;
      color: white;
      border-radius: 50px;
      cursor: pointer;
    }
} 

/*login & passwrod UI*/
.input-container {
	position: relative;
}

#password {
    padding-right: 40px; /* Add space for the eye icon */
}
.toggle-password-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
}

.toggle-password-btn:hover{
	background-color: transparent;
	color: #000;
}

#loginError {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 15px;
    animation: fadeIn 0.4s ease;
	text-align: center;
}

/* Success Message Styling */
.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 15px;
    text-align: center;
}

.toggle-password-btn i {
    font-size: 1.25rem; /* Adjust icon size */
}
/*search UI*/
.search-container button.theme-btn1 {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    padding: 10px 15px;
    background-color: #007bff; /* Customize button color */
    color: white;
    border-radius: 50px;
    cursor: pointer;
}

.search-container button.theme-btn1:hover {
    background-color: #0056b3; 
}
.theme-btn1::before {
	background-color: green;
	border-radius: 5px;
}

.theme-btn1::after {
	background-color: green;
	border-radius: 5px;
}

.login-btn {
  background: #50983c;
  color: white;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-btn:hover {
  background: #c0392b;
  transform: translateY(-2px);
}
.modal-body{
	padding: 0;
}
.login-form {
  margin-top: 1rem;
  padding: 2.5rem
}
/*Mobile Menu control*/
.mobile-controls {
  display: none;
  align-items: center;
  gap: 1rem;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #320d07;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-search-icon {
  color: #000;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.mobile-search-icon:hover {
  transform: scale(1.1);
}

.mobile-menu {
  position: fixed;
  top: -100%;
  left: 0;
  width: 100%;
  background: #fff;
  padding: 1rem;
  transition: all 0.5s ease;
}

.mobile-menu.active {
  top: 5.4rem;
}

.mobile-menu a {
  display: block;
  color: #000;
  text-decoration: none;
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid #d4d4d4;
}

.progress-wrap {
  position: fixed;
  right: 30px;
  bottom: 30px;
  height: 46px;
  width: 46px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(44, 62, 80, 0.95);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transform: translateY(100px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.progress-wrap.active-progress {
  transform: translateY(0);
}

.progress-wrap::after {
  content: '↑';
  font-family: 'Arial', sans-serif;
  color: white;
  font-size: 20px;
  position: absolute;
  transition: all 0.3s ease;
}

.progress-wrap:hover::after {
  transform: translateY(-3px);
}

.progress-wrap svg path {
  fill: none;
  stroke: #e74c3c;
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.3s ease;
}
/*Blog UI*/
.blog-header {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.post-meta small {
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.post-meta i {
    margin-right: 6px;
    color: #666;
}

.blog-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    margin: 0 0 30px;
    color: #1a1a1a;
}

.blog-description {
    font-size: 18px;
    line-height: 1.7;
    color: #666;
    text-align: center;
    margin-bottom: 40px;
}

/* Post content styles */
.post {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.image-container {
    margin: 0 0 30px;
}

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

.post-content {
    padding: 1rem;
    font-size: 16px;
    line-height: 1.8;
    color: #000;
}
/* target the new class we added above */
.post-content-render {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
}

/* Fix for spacing: Ensures single <p> tags have bottom margin so you don't need 'Double Enter' */
.post-content-render p {
    margin-bottom: 1.5rem !important; 
    display: block;
}

/* Fix for Lists: Explicitly restoring bullets and numbers */
.post-content-render ul {
    list-style-type: disc !important;
    padding-left: 40px !important;
    margin-bottom: 1.5rem;
}

.post-content-render ol {
    list-style-type: decimal !important;
    padding-left: 40px !important;
    margin-bottom: 1.5rem;
}

.post-content-render li {
    margin-bottom: 0.5rem;
    display: list-item !important; /* Forces the 'dot' or 'number' to appear */
}
.post-content-render img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
/* Styles for the 4-column gallery you created in TinyMCE */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 30px 0;
}
.image-gallery div {
    flex: 1;
    min-width: 200px;
}

.image-gallery img {
    border-radius: 8px;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.image-gallery img:hover {
    transform: scale(1.03);
}

/* Comments section improvements */
.details-contact-area {
    margin-top: 60px;
	background-color: #f3f4f6;
	padding: 2rem;
    border-radius: 8px;
}

.details-contact-area .heading1 {
    margin-bottom: 30px;
}

.details-contact-area .heading1 h5 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.single-input {
    margin-bottom: 20px;
}

.single-input input,
.single-input textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 15px;
}

.single-input textarea {
    min-height: 150px;
}

.progress {
	height:auto; 
}

/* Basic Toast Styles */
.login-success-tooltip {
  position: fixed;
  top: 5rem;
  right: 6rem;
  z-index: 1050; /* Ensure it's above other content */
  min-width: 300px;
}

.toast {
  opacity: 0;
  animation: fadeInOut 5s ease-in-out forwards;
}

.toast-header {
  font-size: 16px;
  background-color: #28a745; /* Success color */
  color: white;
}

.toast-body {
  padding: 10px;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Comments display */

.comments h5 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
}

.comment {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.comment strong {
    color: #1a1a1a;
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
}

.comment small {
    color: #666;
    font-size: 13px;
    display: block;
    margin-top: 10px;
}
/*Admin*/
 .admin-menu {
	position: relative;
	display: inline-block;
	cursor: pointer;
}
.user-icon {
	font-size: 24px;
	color: #333;
}
.dropdown {
	display: none;
	position: absolute;
	top: 40px;
	right: 0;
	background: white;
	border: 1px solid #ddd;
	padding: 10px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.dropdown.show {
	display: block;
}
.logout-btn {
	text-decoration: none;
	color: #e74c3c;
}

/*media Queries*/

@media (max-width: 768px) {
  .progress-wrap {
	right: 15px;
	bottom: 15px;
	height: 40px;
	width: 40px;
  }
  
  .nav-links {
	display: none;
  }

  .mobile-controls {
	display: flex;
  }

  .mobile-menu {
	display: block;
  }
  
  .mobile-search-container{
  position: relative;
}
  
.mobile-search-container button.theme-btn1 {
  position: absolute;
  left: 9rem;
  top: 0;
  bottom: 0;
  padding: 10px 15px;
  background-color: #007bff;
  color: white;
  border-radius: 50px;
  cursor: pointer;
}
.login-success-tooltip {

  right: 1rem;

}

  
}