@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+Tamil:wght@400;500;600;700&display=swap");

:root {
  --primary-color: #800000;
  --secondary-color: #f8f9fa;
  --accent-color: #d32f2f;
  --text-dark: #1a1a1a;
  --text-light: #596275;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
  --radius: 8px;
}
#english {
  font-size: 18px !important;
  line-height: 1.6 !important;
  font-weight: 400 !important;
}

#tamil {
  font-family: "Noto Serif Tamil", serif !important;
}

/* Typography Override for Tamil */
.tamil-text {
  font-family: "Noto Serif Tamil", serif !important;
  line-height: 1.9;
  font-weight: 500;
}

/* Container & Card Styling */
.main-wrapper {
  max-width: 1000px;
  margin: 40px auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.header-section {
  background: linear-gradient(135deg, #800000 0%, #a51818 100%);
  color: var(--white);
  padding: 30px 20px;
  text-align: center;
  position: relative;
}

.header-logo {
  width: 80px;
  margin-bottom: 15px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  padding: 5px;
}

.header-title-notofication {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.header-subtitle {
  font-size: 1rem;
  font-weight: 300;
  opacity: 0.9;
}

/* Navigation Tabs */
.nav-tabs {
  border-bottom: none;
  background: #f1f3f5;
  padding: 0 20px;
}

.nav-tabs .nav-link {
    border-radius: 0 !important;
  border: none;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  color: #6c757d;
  font-weight: 600;
  padding: 15px 30px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.nav-tabs .nav-link.active {
  background-color: var(--white);
  color: var(--primary-color);
  border-bottom: 3px solid var(--primary-color);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}

.nav-tabs .nav-link:hover {
  color: var(--primary-color);
  background-color: rgba(255, 255, 255, 0.5);
}

/* Content Area */
.tab-content {
  padding: 40px;
  background: var(--white);
}

/* Section Styling */
.content-section {
  margin-bottom: 30px;
  position: relative;
  padding-left: 20px;
  border-left: 3px solid #dee2e6;
}

.content-section:hover {
  border-left-color: var(--primary-color);
}

.section-heading {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.section-heading i {
  margin-right: 10px;
  background: rgba(128, 0, 0, 0.1);
  padding: 8px;
  border-radius: 50%;
  font-size: 0.9rem;
}

#english p {
  margin-bottom: 15px;
  color: var(--text-dark);
}

ul,
ol {
  padding-left: 20px;
  color: var(--text-dark);
}

li {
  margin-bottom: 10px;
}

strong {
  font-weight: 600;
  color: #000;
}

/* CTA Button - Updated with Gradient */
.cta-container {
  text-align: center;
  margin: 30px 0;
}

.btn-apply {
  background: linear-gradient(135deg, #a51818 0%, #d32f2f 100%);
  color: var(--white);
  padding: 12px 35px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
  transition: all 0.3s transform;
  border: none;
  display: inline-flex;
  align-items: center;
}

.btn-apply:hover {
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(183, 28, 28, 0.4);
}

.btn-apply i {
  margin-right: 10px;
}

/* Alert Box */
.custom-alert {
  background-color: #e3f2fd; /* Light Blue */
  color: #0d47a1;
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 30px;
  border: none;
  box-shadow: var(--shadow-sm);
}

/* Footer */
.page-footer {
  text-align: center;
  padding: 20px;
  border-top: 1px solid #eee;
  color: #aaa;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .main-wrapper {
    margin: 0;
    border-radius: 0;
  }
  .header-title-notofication {
    font-size: 1.3rem;
  }
  .tamil-text p {
    font-size: 1rem !important;
  }
  .tab-content {
    padding: 20px;
  }
  .nav-tabs .nav-link {
    padding: 10px 15px;
    font-size: 0.8rem;
  }
  /* Adjust dropdown for mobile */
  .notification-wrapper {
    position: static !important;
    /* margin-top: 15px; */

    text-align: center;
  }
}

/* Elegant Notification Dropdown */
.notification-wrapper {
  position: relative;
  /* top: 30px;
  right: 30px; */
  z-index: 1000;
}

.notification-btn {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 5px 20px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  backdrop-filter: blur(5px);
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
}

.notification-btn:hover,
.notification-btn:focus {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

/* Smooth Blink/Pulse Effect */
.blink-effect {
  animation: softPulse 2s infinite ease-in-out;
}

@keyframes softPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* Dropdown Menu Styling */
.custom-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  padding-top: 15px; /* Increase safe area for hover */
  background: transparent; /* Transparent wrapper for hover bridge */
  animation: fadeInDown 0.3s ease forwards;
}

.custom-dropdown-inner {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  min-width: 200px; /* Slightly reduced width */
  padding: 8px 0;
  overflow: hidden;
}

.notification-wrapper:hover .custom-dropdown-menu {
  display: block;
}

.custom-dropdown-item {
  display: block;
  padding: 10px 15px; /* Reduced start padding */
  color: #333;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 0.95rem;
  border-left: 3px solid transparent;
}

.custom-dropdown-item:hover {
  background: #f8f9fa;
  color: var(--primary-color);
  border-left-color: var(--primary-color);
  padding-left: 20px; /* Slight movement, reduced from 25px */
  text-decoration: none;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
