* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

body {
  background-color: #F5EFE6;
  overflow-x: hidden;
}

.navbar {
  background-color: black;
  color: white;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  font-weight: bold;
  box-shadow: 0 0 10px black;
  z-index: 5000;
}

.left-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-direction: row;
}

.left-section h1 {
  font-size: 24px;
}

.icon {
  font-size: 20px;
}

.center-section a {
  text-decoration: none;
  margin: 0 10px;
  transition: 0.3s;
  text-transform: capitalize;
  letter-spacing: 2px;
  font-weight: bold;
  opacity: 0.7;
  margin: 25px;
}

.center-section a:hover {
  color: rgba(0, 0, 0, 0.836);
}

.right-section {
  display: flex;
  gap: 10px;
  margin-right: 30px;
  justify-content: center;
  align-items: center;
  flex-direction: row;
}


.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .center-section,
  .right-section {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
  }

  .center-section.show,
  .right-section.show {
    display: flex;
  }

  .center-section a {
    margin: 10px 0;
  }

  .right-section {
    align-items: flex-start;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
}
}

.hajj-rule {
  background-color: #FFFFFF;
  border-right: 6px solid #C9A227;
  padding: 15px;
  margin: 25px 0;
  border-radius: 14px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
  height: 150px;
  width: 500px;
  

}

.hajj-rule h3 {
  color: #7A5C1E;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: bold;
}

.hajj-rule p {
  color: #333;
  line-height: 1.9;
  font-size: 18px;
  font-weight: bold;
}
.hajj-rule:hover {
  transform: translateY(-2px);
  transition: 0.3s ease;
}

@media (max-width: 768px) {
  .hajj-rule {
    max-width: 340px;
    height: auto;
    padding: 18px;
  }
}
.details-btn {
  background-color: #C9A227; 
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 25px;
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s ease;
  
}

.details-btn:hover {
  background-color: #B08F1D;
}
.overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: 0.9;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
}

.details-card {
  width: 90%;                     
  max-width: 520px;               
  min-width: 280px;              
  min-height: 220px;              
  max-height: 80vh;               
  overflow-y: auto;             

  background: linear-gradient(135deg, #3a1c71, #d76d77);

  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);

  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    inset 0 0 15px rgba(255, 255, 255, 0.05);

  padding: 20px;                  
  position: relative;

  color: #f5f5f5;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;

  text-align: justify;

  box-sizing: border-box;
}

@media (max-width: 400px) {
  .details-card {
    padding: 15px;
    font-size: 0.9rem;            
    min-height: 180px;
  }
}
.hajj-rules {
  margin-top: 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffe6f0;
  margin-bottom: 12px;
}

.rule-title {
  font-size: 1.8rem;       
  font-weight: 800;        
  color: #ffce73;          
  text-transform: uppercase; 
  letter-spacing: 1.5px;   
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6); 
  margin-bottom: 15px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.hajj-rule .rule-title:hover {
  color: #fff8d6;
  transform: scale(1.05);
}


.rule-title {
  font-size: 1.8rem;       
  font-weight: 800;        
  color: #ffce73;          
  text-transform: uppercase; 
  letter-spacing: 1.5px;   
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6); 
  margin-bottom: 15px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.rule-title:hover {
  color: #fff8d6;
  transform: scale(1.05);
}
.rule-short {
  font-size: 1.1rem;           
  font-weight: 500;             
  color: #ffdede;               
  line-height: 1.6;             
  margin-bottom: 15px;          
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
  text-align: justify;           
  transition: color 0.3s ease;
}

.rule-short:hover {
  color: #ffffff;                
}
.rule-details {
  font-size: 1rem;              
  font-weight: 400;              
  color: #e8e8e8;               
  line-height: 1.7;             
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
  text-align: justify;           
  white-space: pre-line;         
  margin-bottom: 15px;
}

.rule-evidence {
  font-size: 0.95rem;           
  font-style: italic;            
  color: #a8ffeb;              
  background-color: rgba(0, 0, 0, 0.3); 
  padding: 8px 12px;             
  border-left: 4px solid #ffd76d;
  border-radius: 8px;            
  margin: 10px 0;                
  line-height: 1.5;
  display: block;
}
.evidence-quran {
  font-size: 1.2rem;                    
  font-weight: 500;                     
  color: #ffd76d;                       
  font-family: 'Amiri', serif;          
  line-height: 1.8;                     
  background-color: rgba(0, 0, 0, 0.35); 
  padding: 12px 16px;                   
  border-radius: 10px;                  
  border-left: 5px solid #ff9a76;      
  display: block;
  margin: 15px 0;
  text-align: right;                    
  white-space: pre-line;                
}
.evidence-sunnah {
  font-size: 0.98rem;                   
  font-weight: 500;                      
  color: #8be9fd;                        
  font-family: 'Tahoma', 'Arial', sans-serif; 
  line-height: 1.7;                      
  background-color: rgba(0, 0, 0, 0.25); 
  padding: 10px 14px;                    
  border-radius: 10px;                   
  border-left: 5px solid #50fa7b;        
  display: block;
  margin: 12px 0;
  text-align: right;                      
  white-space: pre-line;                  
}
.btn-delete-all {
  background: linear-gradient(135deg, #ff4b5c, #ff1e1e); 
  color: #fff;                  
  font-weight: 700;              
  font-size: 1rem;               
  padding: 12px 25px;            
  border: none;                  
  border-radius: 10px;           
  cursor: pointer;               
  box-shadow: 0 6px 18px rgba(0,0,0,0.4); 
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

.btn-delete-all:hover {
  transform: translateY(-2px);  
  box-shadow: 0 10px 25px rgba(0,0,0,0.5); 
  background: linear-gradient(135deg, #ff1e1e, #ff4b5c); 
}

.btn-delete-all:active {
  transform: translateY(1px);   
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
#clickHajj:hover{
  cursor: pointer;
}
#hajjSearch {
  width: 100%;              
  padding: 12px 16px;       
  font-size: 16px;          
  border-radius: 12px;      
  border: 2px solid #1E3A8A; 
  background-color: #fff;     
  color: #333;               
  outline: none;             
  transition: all 0.3s ease; 
}

#hajjSearch::placeholder {
  color: #9CA3AF;            
}

#hajjSearch:focus {
  border-color: #3B82F6;       
  box-shadow: 0 0 0 2px rgba(59,130,246,0.3); 
}
.position{
  position: absolute;
  top: 0px;
}

body.HajjDark{
  background-color: #1F1F1F;
}

body.HajjDark section{
background-color: #121212;
color: #EDEDED;
}
body.HajjDark .hajj-rule{
  background: #220202;

}
body.HajjDark button{
  background-color: #F0B429;
}

body.HajjDark button:hover{
  background-color: #FFC107;
}

body.HajjDark .hajj-rule *{
  color: white;
}
body.HajjDark section *{
  color: white;
}

.Hajj-rule-btn {
  background: linear-gradient(135deg, #d4a850, #c2953d);
  color: #fff;
  border: none;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.Hajj-rule-btn:hover {
  background: linear-gradient(135deg, #c2953d, #b1842f);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.Hajj-rule-btn:active {
  transform: scale(0.96);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.share-btn i {
  font-size: 16px;
}

.share-btn:hover {
  background-color: #f0fdf4;
  border-color: #16a34a;
  color: #166534;
  transform: scale(1.05);
}

.share-btn:active {
  transform: scale(0.95);
}

.share-btn:focus {
  outline: none;
}
.share-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid orange;
  background-color: orange;
  color: white; 
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  position: relative;
  top: 10px;
}
