/*
Theme Name:  Discy Child
Theme URI:   https://2code.info/demo/themes/Discy/
Description: Discy - Social Questions and Answers WordPress Theme
Tags:        one-column, two-columns, left-sidebar, right-sidebar, custom-menu, full-width-template, theme-options, translation-ready
Author:      2codeThemes
Author URI:  https://2code.info
Version:     1.0
License:     license purchased
License URI: http://themeforest.net/licenses/regular_extended
Template:    discy
*/
/* The Modal (background) */
/* Background */



.simple-modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
}

/* Modal Box */
.simple-modal-content {
  background: #fff;
  margin: 15% auto;
  padding: 20px;
  border-radius: 10px;
  width: 40%;
  max-width: 500px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  text-align: center;
  animation: fadeIn 0.3s ease-in-out;
}

/* Close Button */
.simple-close {
  float: right;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  color: #555;
}

.simple-close:hover {
  color: #000;
}


nav.nav ul ul {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease; /* smooth slide */
}

nav.nav ul li.open > ul {
  max-height: 500px; /* adjust large enough to fit submenu */
}

.date-display {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  color: #333;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}


/*******************QA Form CSS *********************/

/* General Page */


/* Title & Description inside form-container */
.ttle {
    grid-column: 1 / -1; /* make it full width inside grid */
    text-align: center;
    margin-bottom: 0px;
	/*background: #fff8e7;*/
}

/* Title */
.form-title {
	text-align: left;
	font-size: 32px;
	font-weight: bold;
	color: #000;
	/* font-family: "Georgia", serif; */
	margin-top: 30px;
	margin-bottom: 5px;
	/* text-decoration: none; */
}

/* Small Description */
.form-desc {
    text-align: left;
    font-size: 16px;
    color: #111;
    margin-bottom: 25px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Container (Two Columns) */
.form-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	/* gap: 30px; */
	max-width: 1200px;
	margin: auto;
	padding: 20px;
}

/* Left Column: Rules Box */
.form-rules {
	background: #fff8e7;
	padding: 25px;
	/* border-radius: 16px; */
	/* border: 2px solid #d35400; */
}

.form-rules h3 {
    color: #d35400;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: bold;
}

.form-rules ol {
    padding-left: 18px;
    margin: 0;
}

.form-rules li {
    margin-bottom: 12px;
    color: #222;
    line-height: 1.6;
    font-size: 15px;
}

.form-rules li strong {
    color: #c0392b;
}

/* Right Column: Form Box */
/* Right Column: Form Box */
.ask-question-form {
   /* background: #fff8e7;*/
    padding: 0px;
    grid-column: 1 / -1;  /* NEW: full width */
}


.ask-question-form h3 {
    margin-bottom: 15px;
    color: #8b0000;
    font-size: 20px;
    font-weight: bold;
}

/* Form Labels */
.ask-question-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #222;
}

/* Inputs */
.ask-question-form input[type="text"],
.ask-question-form input[type="email"],
.ask-question-form textarea,
.ask-question-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 18px;
    border: 1px solid #999;
    border-radius: 6px;
    font-size: 15px;
    background: #fff;
}

.inline-fields {
    display: flex;
    gap: 15px; /* space between fields */
}

.inline-fields input {
    flex: 1; /* makes both equal width */
}

.inline-fields .field-group {
    flex: 1; /* equal width */
    display: flex;
    flex-direction: column; /* keep label above input */
}



/* Two-column input (First/Last name inline) */
.ask-question-form .inline-fields {
    display: flex;
    gap: 10px;
}

.ask-question-form .inline-fields input {
    flex: 1;
}

/* Radio Buttons */
.ask-question-form input[type="radio"] {
    margin-right: 5px;
    margin-left: 10px;
}

/* Submit Button */
.ask-question-form input[type="submit"] {
    width: 100%;
    padding: 14px;
    background: #8b0000;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
}

.ask-question-form input[type="submit"]:hover {
    background: #5a0000;
}

/* Responsive */
@media (max-width: 992px) {
    .form-container {
        grid-template-columns: 1fr;
    }
}


/* Responsive design */
@media (max-width: 768px) {
    .ask-question-form {
        margin: 20px;
        padding: 20px;
    }

    .ask-question-form h3 {
        font-size: 20px;
    }
	
	.call-action-unlogged p {
	font-size: 16px;
	line-height: 26px;
	width: 80%;
	/* text-align: center; */
	margin-left: auto;
	margin-right: auto;
}
}

@media (max-width: 480px) {
    .ask-question-form {
        padding: 15px;
    }

    .ask-question-form h3 {
        font-size: 18px;
    }

    .ask-question-form input,
    .ask-question-form textarea,
    .ask-question-form select {
        font-size: 14px;
        padding: 10px;
    }

    .ask-question-form input[type="submit"] {
        font-size: 15px;
        padding: 12px;
    }
}

@media (max-width: 956px) {
	.call-action-unlogged p {
		font-size: 16px;
		line-height: 26px;
		width: 80%;
		margin-left: auto;
		margin-right: auto;
	}
}




/******************* Pop Up CSS *************************/

.modal-body .ask-question-form {
	background: #ffffff;
	padding: 25px;
	/* border-radius: 16px; */
	/* border: 2px solid #8b0000; */
	/* box-shadow: 0 4px 12px rgba(0,0,0,0.15); */
}

.modal-body .ask-question-form input[type="text"], .modal-body .ask-question-form input[type="email"], .modal-body .ask-question-form textarea, .modal-body .ask-question-form select {
	width: 100%;
	padding: 12px;
	margin-bottom: 0px;
	border: 1px solid #999;
	border-radius: 6px;
	font-size: 15px;
	background: #fff;
}

.modal-body .ask-question-form label {
	display: block;
	margin-bottom: 0px;
	font-weight: bold;
	color: #222;
}

.modal-dialog.modal-lg {
	margin-top: 80px;

}


/*********************************/

.header-search button {
	margin-top: 5px;
}

.call-action-unlogged, .dark-skin .call-action-unlogged {
	/*background-position: 50% 60% !important;*/
    background-position: center;
}

.call-action-unlogged.call-action-dark.call-action-style_1 {
	display: none;
}

header.article-header .post-title {
	display: none;
}

body.home .main_center .the-main-inner {
	padding-right: 0px;
	padding-left: 0px;
	padding-bottom: 0px;
}

body.home .notifications__item.question-item.list-item-type-question.d-flex.widget-posts-text.widget-no-img.widget-no-meta {
	border-bottom: none;
}

/****** Drop Down Menu *******/

/* Main dropdown background */
/* Force background on dropdown container */
ul.browse-answers-menu {
  background-color: #0b4f79 !important;  /* dark blue */
  border: 1px solid #06344f !important;
  border-radius: 4px !important;
  z-index: 99999 !important;
  min-width: 200px !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Apply background to each menu item */
ul.browse-answers-menu > li {
  background-color: #0b4f79 !important;
  border-bottom: 1px solid rgba(255,255,255,0.15) !important;
}

/* Style the links */
ul.browse-answers-menu > li > a {
  display: block !important;
  padding: 10px 16px !important;
  color: #fff !important;
  background: transparent !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: all 0.3s ease !important;
}

nav.nav li ul.browse-answers-menu li a {
	line-height: 20px !important;
	font-size: 14px !important;
	font-weight: 500 !important;
}

/* Hover effect */
ul.browse-answers-menu > li > a:hover {
  background-color: #062f47 !important;
  color: #ffd700 !important; /* gold on hover */
}


/* Nested flyout submenus */
/* Sub-submenu (second level dropdowns) */
ul.browse-answers-menu ul {
	background-color: #0b4f79 !important;
	border: 1px solid #06344f !important;
	border-radius: 4px !important;
	position: absolute !important;
	left: 100% !important;
	top: 0 !important;
	z-index: 99999 !important;
	/* min-width: 200px !important; */
	padding: 0 !important;
	margin: 0 !important;
	width: 250px !important;
}

/* Sub-submenu items */
ul.browse-answers-menu ul li {
  background-color: #0b4f79 !important;
  border-bottom: 1px solid rgba(255,255,255,0.15) !important;
}

/* Sub-submenu links */
ul.browse-answers-menu ul li a {
  display: block !important;
  padding: 10px 16px !important;
  color: #fff !important;
  background: transparent !important;
  text-decoration: none !important;
  white-space: normal !important; /* allow wrapping */
  word-wrap: break-word !important; /* break long words if needed */
  transition: all 0.3s ease !important;
  max-width: 350px !important; /* optional: set a max width */
}

ul.posts-submenu {
	width: 350px !important;
}

/* Hover effect for nested links */
ul.browse-answers-menu ul li a:hover {
  background-color: #062f47 !important;
  color: #ffd700 !important;
}

.home-fatwa-ques .question__title a {
	font-size: 19px;
	font-weight: 500;
	color: #000000;
	line-height: 26px ;
}

.home-fatwa-ques .user-notifications.user-profile-area > div > ul > li {
	margin: 0 -30px 10px;
	padding: 0 30px 0px;
}


.success-box {
	/* background: #fff; */
	padding: 40px;
	border-radius: 12px;
	/* box-shadow: 0 4px 12px rgba(0,0,0,0.1); */
	text-align: center;
	/* max-width: 500px; */
	margin: 80px auto;
	font-family: Arial, sans-serif;
}
.success-box h2 {
  color: #28a745;
  margin-bottom: 15px;
}
.success-box p {
	color: #555;
	font-size: 17px;
	font-weight: 700;
}

.question-header .post-author, .question-header .question-author-un {
	text-transform: capitalize;
}

.all_not_single_post_content .excerpt-question {
	line-height: 22px;
}

.alert-message.alert-message-warning {
	display: none;
}

.user-login .float_l {
	text-transform: capitalize;
}

.menu-nav-arrow i.icon-right-open-mini {
	display: none !important;
}

a.button-sign-in:hover, a.button-sign-up:hover, .notifications-number, .user-follow-profile a:hover, .user-follow-profile .user_follow_yes a, .user-follow-profile .user_block_yes a, li.stats-answers.stats-card__item::before, .header-simple .header .button-sign-in:hover, .ask-button {
	background-color: #D7AA4D !important;
}

.call-action-colored.call-action-unlogged .call-action-button:hover {
	border-color: rgba(255, 255, 255, 0.60);
	background-color: #D7AA4D !important;
}

.button-default:hover,.styled-select::before, .user-login-click > i, .page-navigation-before a, .progressbar-percent.poll-result, .progressbar-percent.poll-result-0, .user-follow-profile .user_follow_yes a:hover, .user-follow-profile .user_block_yes a:hover {
	background-color: #D7AA4D !important;
}

#post-356 .post-title {
	text-align: center;
}

.slider-content .slider-colmun-h {
	font-size: 28px;
	margin-bottom: 0px !important;
}

.user-content .user-inner h4.member__name.mb-1 a {
	text-transform: lowercase;
}

.slider-colmun p {
	font-size: 17px !important;
}

.posts-submenu.child {
	display: none !important;
}


a.login-panel.button-default {
  font-size: 0; /* hide original text */
  /*position: relative;*/
}

a.login-panel.button-default::after {
  content: "Have an account? Login"; /* your new text */
  font-size: 16px;  /* restore visible text size */
  color: #fff; /* adjust color */
}


