/* General Styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background-color: #2c3e50;
  color: white;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px; /* Fixed height to prevent jumping */
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo svg {
  transition: transform 0.3s ease;
}

.logo:hover svg {
  transform: rotate(15deg);
}

.logo h1 {
  margin: 0;
  font-size: 1.8rem;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

header h1 {
  margin: 0;
  font-size: 1.8rem;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
  color: white;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

#nav-menu {
  display: block;
}

#nav-menu ul {
  display: flex;
}

nav {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  padding-left: 1rem; /* Add padding to prevent left cut-off */
}

nav::-webkit-scrollbar {
  display: none; /* Chrome, Safari, and Opera */
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0 1rem 0 0; /* Add right padding for better spacing */
  display: flex;
  flex-wrap: nowrap;
  min-width: max-content;
  justify-content: flex-start; /* Ensure items start from the left */
}

nav ul li {
  margin-left: 2rem;
  flex-shrink: 0;
  white-space: nowrap; /* Prevent text wrapping */
}

nav ul li:first-child {
  margin-left: 0; /* Remove left margin from first item */
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  padding: 0.5rem 0;
  display: block;
}

nav ul li a:hover {
  color: #3498db;
}

/* Main Content */
main {
  margin-top: 80px;
}

.hero {
  background: linear-gradient(135deg, #667eea 0%, rgb(255 180 0) 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #3d2c50;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 0;
  color: #3d2c50;
}

.section {
  padding: 4rem 0;
}

.section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #2c3e50;
}

/* Advice Section */
.advice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.advice-item {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.advice-item h3 {
  color: #3498db;
  margin-bottom: 1rem;
}

/* Tools Section */
.widgets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.widget:nth-child(1) { /* Loan Calculator */
  grid-column: 1;
  grid-row: 1;
}

.widget:nth-child(2) { /* Income Tax Calculator */
  grid-column: 2;
  grid-row: 1 / span 3;
}

.widget:nth-child(3) { /* Gratuity Calculator */
  grid-column: 1;
  grid-row: 2;
}

.widget:nth-child(4) { /* PF Calculator */
  grid-column: 1;
  grid-row: 3;
}

/* Mobile responsive tools section */
@media (max-width: 768px) {
  .widgets {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .widget {
    padding: 1rem;
  }

  .widget h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .widget input {
    padding: 0.6rem 0.8rem;
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .widget button {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }

  .calculator-inputs {
    margin-bottom: 1rem;
  }

  .input-group {
    margin-bottom: 1rem;
  }

  .input-group label {
    font-size: 0.9rem;
  }

  .calculator-result {
    padding: 1rem;
  }

  .calculator-result-content h4 {
    font-size: 1rem;
  }

  .result-row {
    font-size: 0.9rem;
    padding: 6px 0;
  }

  /* Fix overlapping widgets on mobile */
  .widget:nth-child(1),
  .widget:nth-child(2),
  .widget:nth-child(3),
  .widget:nth-child(4) {
    grid-column: 1;
    grid-row: auto;
  }

  /* Ensure proper spacing between widgets */
  .widget:not(:last-child) {
    margin-bottom: 1.5rem;
  }
}

.adsense-container {
  margin: 2rem 0;
  padding: 1rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.1);
  text-align: center;
}

.widget {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.widget:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.widget h3 {
  color: #2c3e50;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
  position: relative;
}

.widget h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

.widget input {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
  box-sizing: border-box;
}

.widget input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  outline: none;
}

.widget input::placeholder {
  color: #adb5bd;
  font-style: italic;
}

.widget button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 12px;
  cursor: pointer;
  width: 100%;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.widget button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.widget button:active {
  transform: translateY(0);
}

.widget p {
  margin: 0;
  font-weight: 700;
  font-size: 1.1rem;
  color: #2c3e50;
  text-align: center;
  padding: 1rem;
  background: rgba(102, 126, 234, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

/* Stock Chart Styling */
#stock-chart {
  margin-top: 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* News Section */
.news-feed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.news-item {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.news-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.news-item h4 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
}

.news-item p {
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

.news-item a {
  display: inline-block;
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
}

.news-item a:hover {
  color: #764ba2;
  transform: translateX(5px);
}

.news-item a::after {
  content: ' →';
  transition: transform 0.3s ease;
}

.news-item a:hover::after {
  transform: translateX(3px);
}

.news-source {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Contact Section */
#contact {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
}

#contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23667eea" opacity="0.03"/><circle cx="75" cy="75" r="1" fill="%23764ba2" opacity="0.03"/><circle cx="50" cy="10" r="0.5" fill="%23667eea" opacity="0.02"/><circle cx="10" cy="50" r="0.5" fill="%23764ba2" opacity="0.02"/><circle cx="90" cy="30" r="0.5" fill="%23667eea" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.contact-info {
  padding: 2rem 0;
}

.contact-info h3 {
  color: #2c3e50;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.contact-info p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.contact-detail:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.contact-detail-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-detail-content h4 {
  margin: 0 0 0.25rem 0;
  color: #2c3e50;
  font-size: 1.1rem;
  font-weight: 600;
}

.contact-detail-content p {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
}

.contact-form-container {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

.contact-form-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.contact-form-container h3 {
  color: #2c3e50;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 600;
  position: relative;
}

.contact-form-container h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

.contact-form {
  display: grid;
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: #f8f9fa;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  outline: none;
  background: white;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #adb5bd;
  font-style: italic;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.form-submit-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  width: 100%;
  margin-top: 0.5rem;
}

.form-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.form-submit-btn:active {
  transform: translateY(0);
}

.form-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Responsive Contact Section */
@media (max-width: 968px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-info {
    text-align: center;
  }

  .contact-details {
    max-width: 500px;
    margin: 0 auto;
  }

  .contact-form-container {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .contact-container {
    gap: 2rem;
  }

  .contact-form-container {
    padding: 1.5rem;
  }

  .contact-detail {
    padding: 0.75rem;
  }

  .contact-detail-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .contact-detail-content h4 {
    font-size: 1rem;
  }

  .contact-detail-content p {
    font-size: 0.9rem;
  }
}

/* Profile Section */
.profile-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.1);
  position: relative;
  overflow: hidden;
}

.profile-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.profile-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 3px solid #667eea;
  position: relative;
}

.profile-header::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

.profile-header h3 {
  color: #2c3e50;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.profile-address {
  font-style: italic;
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 0;
}

.profile-contact {
  font-size: 1.1rem;
  line-height: 1.6;
}

.profile-section {
  margin-bottom: 3rem;
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(102, 126, 234, 0.08);
  transition: all 0.3s ease;
}

.profile-section:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.profile-section h4 {
  color: #2c3e50;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.5rem;
}

.profile-section h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

.profile-section p {
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #555;
  font-size: 1.05rem;
}

.profile-section ul {
  margin-left: 2rem;
  line-height: 1.9;
  color: #666;
}

.profile-section li {
  margin-bottom: 0.8rem;
  position: relative;
}

.profile-section li::before {
  content: '•';
  color: #667eea;
  font-weight: bold;
  position: absolute;
  left: -1.5rem;
  font-size: 1.2rem;
}

.experience-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.experience-table th,
.experience-table td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
  font-size: 1rem;
}

.experience-table th {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.experience-table tr:nth-child(even) {
  background-color: rgba(102, 126, 234, 0.02);
}

.experience-table tr:hover {
  background-color: rgba(102, 126, 234, 0.05);
  transition: background-color 0.3s ease;
}

.experience-table td:first-child {
  font-weight: 600;
  color: #2c3e50;
}

.experience-table td:nth-child(2) {
  color: #667eea;
  font-weight: 500;
}

/* Leadership Section */
.leadership-summary {
  max-width: 1000px;
  margin: 0 auto;
}

.leader-card {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  gap: 2rem;
  transition: transform 0.3s ease;
}

.leader-card:hover {
  transform: translateY(-5px);
}

.leader-image {
  flex-shrink: 0;
}

.leader-placeholder {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.leader-info {
  flex: 1;
}

.leader-info h3 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
}

.leader-title {
  color: #667eea;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.leader-description {
  color: #555;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.leader-contact p {
  margin: 0.25rem 0;
  color: #666;
  font-size: 0.95rem;
}

.learn-more-btn {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.learn-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Overview and Mission Content */
.overview-content, .mission-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.7;
  font-size: 1.1rem;
  color: #555;
}

.overview-content p, .mission-content p {
  margin-bottom: 1.5rem;
}

/* Expertise Grid */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.expertise-item {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.1);
  transition: all 0.3s ease;
  text-align: center;
}

.expertise-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.expertise-item h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.expertise-item p {
  color: #666;
  line-height: 1.6;
  font-size: 1rem;
}

/* AdSense Container */
.adsense-container {
  text-align: center;
  padding: 2rem 0;
  background: #f8f9fa;
  margin: 2rem 0;
}

/* Tax Calculator Styles */
.tax-calculator-section {
  margin-top: 15px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.tax-input-group {
  margin-bottom: 20px;
}

.tax-input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2c3e50;
  font-size: 14px;
}

.tax-input-group input,
/* Custom Dropdown Styles */
.custom-dropdown {
  position: relative;
  width: 100%;
  margin-bottom: 1rem;
}

.dropdown-button {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e1e8ed;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  color: #2c3e50;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.08);
  position: relative;
}

.dropdown-button:hover {
  border-color: #667eea;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
  transform: translateY(-1px);
  background: #495057;
  color: white;
}

.dropdown-button:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2), 0 4px 16px rgba(102, 126, 234, 0.15);
  background: white;
  transform: translateY(-1px);
}

.dropdown-button:active {
  transform: translateY(0);
  background: white;
}

.dropdown-button.selected.country-selected {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: #667eea;
}

.dropdown-button.selected.regime-selected,
.dropdown-button.selected.status-selected {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  color: white;
  border-color: #6c757d;
}

.dropdown-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.custom-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid #e1e8ed;
  border-top: none;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  padding: 14px 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f1f3f4;
  font-weight: 500;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: #667eea;
  padding-left: 22px;
}

.dropdown-item.selected {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: 600;
}

.tax-input-group input:focus,
.tax-input-group select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.deduction-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 15px;
  padding: 15px;
  background: white;
  border-radius: 6px;
  border: 1px solid #dee2e6;
}

.deduction-item {
  display: flex;
  flex-direction: column;
}

.deduction-item label {
  font-size: 13px;
  margin-bottom: 6px;
  color: #495057;
  font-weight: 500;
}

.deduction-item input {
  padding: 10px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.deduction-item input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.tax-result-section {
  margin-top: 25px;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: none;
}

.tax-result-section:not(:empty) {
  display: block;
}

.tax-breakdown h4 {
  margin: 0 0 20px 0;
  color: white;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.tax-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 15px;
}

.tax-row.final {
  border-bottom: 3px solid #ffd700;
  font-weight: bold;
  color: #ffd700;
  font-size: 18px;
  margin-top: 10px;
  padding-top: 15px;
}

.tax-row span:first-child {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.tax-row span:last-child {
  font-weight: 700;
  text-align: right;
}

.tax-note {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

.tax-note small {
  font-style: italic;
}

/* Mobile responsiveness for tax calculator */
@media (max-width: 768px) {
  .tax-calculator-section {
    padding: 15px;
  }

  .deduction-section {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tax-input-group input,
  .tax-input-group select {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .deduction-item input {
    font-size: 16px;
  }

  .tax-result-section {
    padding: 15px;
  }

  .tax-breakdown h4 {
    font-size: 16px;
  }

  .tax-row {
    font-size: 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .tax-row.final {
    font-size: 16px;
  }

  .tax-row span:last-child {
    text-align: left;
  }
}

/* Privacy Policy Styles */
.privacy-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
  color: #555;
}

.privacy-content h3 {
  color: #2c3e50;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 600;
}

.privacy-content h4 {
  color: #2c3e50;
  font-size: 1.4rem;
  margin: 2rem 0 1rem 0;
  font-weight: 600;
}

.privacy-content p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.privacy-content ul {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.privacy-content li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

/* Footer */
footer {
  background-color: #2c3e50;
  color: white;
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
}

/* Chatbot Styles */
.chatbot-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: all 0.3s ease;
}

.chatbot-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.chatbot-button img {
  width: 30px;
  height: 30px;
}

.chatbot-popup {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 350px;
  height: 500px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
  animation: slideUp 0.3s ease-out;
}

.chatbot-disclaimer {
  padding: 8px 15px;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  font-size: 11px;
  color: #6c757d;
  text-align: center;
  line-height: 1.3;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.chatbot-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 15px 15px 0 0;
  flex-shrink: 0;
}

.chatbot-header span {
  font-weight: bold;
  font-size: 14px;
}

.close-chatbot {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.close-chatbot:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.chat-box {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  background: #f8f9fa;
}

.input-container {
  padding: 15px;
  background: white;
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid #e9ecef;
  flex-shrink: 0;
}

#chatbot-message-input {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid #e9ecef;
  border-radius: 25px;
  outline: none;
  font-size: 14px;
  transition: border-color 0.3s;
}

#chatbot-message-input:focus {
  border-color: #667eea;
}

#chatbot-send-button {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

#chatbot-send-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.message {
  margin-bottom: 12px;
  padding: 10px 15px;
  border-radius: 18px;
  max-width: 80%;
  word-wrap: break-word;
  font-size: 14px;
  line-height: 1.4;
}

.user-message {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  align-self: flex-end;
  margin-left: auto;
  border-bottom-right-radius: 5px;
}

.ai-message {
  background: white;
  color: #333;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border-bottom-left-radius: 5px;
}

.upgrade-button {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.upgrade-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* Payment message styling */
.message.payment-info {
  background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
  color: white;
  font-weight: bold;
  text-align: center;
  border: none;
  box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
}

/* Chatbot Promotion Box */
.chatbot-promotion {
  position: fixed;
  bottom: 90px;
  right: 100px;
  width: 250px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 999;
  display: block;
  animation: slideIn 0.5s ease-out;
}

.chatbot-promotion h3 {
  margin: 0 0 10px 0;
  font-size: 1.2rem;
}

.chatbot-promotion p {
  margin: 0 0 10px 0;
  font-size: 0.9rem;
}

.chatbot-promotion button {
  position: absolute;
  top: 5px;
  right: 10px;
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Tool Direct Bubble */
.tool-direct-bubble {
  margin-top: 2rem;
  text-align: center;
}

.tool-link {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.tool-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
    margin-top: 0.5rem;
    align-self: flex-start;
  }

  #nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: #2c3e50;
    transition: left 0.3s ease;
    z-index: 1000;
    padding-top: 2rem;
  }

  #nav-menu.active {
    left: 0;
  }

  #nav-menu ul {
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin: 0;
  }

  #nav-menu ul li {
    margin: 1rem 0;
    width: 100%;
    text-align: center;
  }

  #nav-menu ul li a {
    padding: 1rem;
    display: block;
    width: 100%;
    font-size: 1.2rem;
  }

  header .container {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 0.5rem 1rem;
    height: auto;
  }

  .logo h1 {
    font-size: 1.5rem;
  }

  nav {
    display: none; /* Hide original nav on mobile */
  }

  .hero h2 {
    font-size: 2rem;
  }

  .chatbot-popup {
    width: 90%;
    right: 5%;
  }

  .chatbot-promotion {
    width: 200px;
    right: 80px;
  }

  /* About page specific mobile styles */
  .profile-container {
    padding: 1rem;
  }

  .profile-section {
    padding: 1.5rem;
  }

  .profile-section ul {
    padding-left: 1rem;
  }

  .profile-section li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
  }

  .profile-address {
    font-size: 0.9rem;
    line-height: 1.3;
  }

  /* Leadership section mobile styles */
  .leader-card {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .leader-image {
    order: -1;
  }

  .leader-info h3 {
    font-size: 1.5rem;
  }

  .leader-description {
    font-size: 0.9rem;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .leader-title {
    font-size: 1rem;
  }

  .leader-contact p {
    font-size: 0.85rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}
