/**
 * ExamsAlerts.in - Main Stylesheet
 * Pixel-perfect match to the official ExamsAlerts layout (Desktop & Mobile)
 */

:root {
  --ea-red: #c00000;
  --ea-red-header: #c51111;
  --ea-red-box: #b71c1c;
  --ea-navy: #080866;
  --ea-navy-dark: #050549;
  --ea-green-wa: #16a34a;
  --ea-blue-link: #0033cc;
  --ea-blue-link-hover: #c00000;
  
  --ea-bg: #ffffff;
  --ea-bg-page: #ffffff;
  --ea-border: #cbd5e1;
  --ea-border-dashed: #94a3b8;
  --ea-footer-bg: #121212;
  
  --ea-font: Arial, Helvetica, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--ea-font);
  background-color: var(--ea-bg-page);
  color: #111827;
  line-height: 1.4;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--ea-blue-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: var(--ea-blue-link-hover);
}

.ea-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 12px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.ea-header {
  background: var(--ea-red-header);
  color: #ffffff;
  text-align: center;
  padding: 12px 10px 10px;
}

.ea-title {
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: -0.3px;
  text-transform: none !important;
  margin: 0;
  line-height: 1.1;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.ea-title a {
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  text-transform: none !important;
}

.ea-brand-name {
  color: #ffffff;
  font-weight: 900;
  letter-spacing: -0.3px;
  text-transform: none !important;
}

.ea-brand-ext {
  color: #FFD700 !important;
  font-weight: 900;
  text-transform: none !important;
}

.ea-alert-bell-icon {
  display: inline-block;
  vertical-align: middle;
  width: 32px;
  height: 24px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.25));
  animation: bell-ring 3.5s infinite ease-in-out;
  transform-origin: top center;
}

@keyframes bell-ring {
  0%, 80%, 100% { transform: rotate(0deg); }
  84% { transform: rotate(10deg); }
  88% { transform: rotate(-10deg); }
  92% { transform: rotate(6deg); }
  96% { transform: rotate(-6deg); }
}

.ea-tagline {
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 4px;
  color: #ffffff;
  letter-spacing: 0.2px;
}

.ea-tagline-desktop {
  display: inline;
}

.ea-tagline-mobile {
  display: none;
}

.ea-tagline-dash {
  opacity: 0.75;
  padding: 0 4px;
}

/* Nav bar */
.ea-navbar {
  background: var(--ea-navy);
  color: #ffffff;
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.ea-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
}

.ea-nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  flex-wrap: wrap;
}

.ea-nav-links li {
  position: relative;
}

.ea-nav-links a {
  display: block;
  padding: 9px 14px;
  color: #ffffff;
  font-weight: bold;
  font-size: 0.9rem;
  white-space: nowrap;
}

.ea-nav-links a:hover,
.ea-nav-links li.active a {
  background: rgba(255, 255, 255, 0.15);
  text-decoration: none;
}

.ea-nav-search-btn {
  color: #ffffff;
  font-size: 1.1rem;
  padding: 6px 12px;
  background: none;
  border: none;
  cursor: pointer;
}

/* Mobile Nav Toggle */
.ea-mobile-nav-toggle {
  display: none;
  color: #ffffff;
  font-size: 1.5rem;
  background: none;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
}

/* Dropdown */
.ea-nav-links .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--ea-navy);
  min-width: 200px;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.ea-nav-links li:hover .dropdown-menu {
  display: block;
}

.ea-nav-links .dropdown-menu li {
  width: 100%;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ea-nav-links .dropdown-menu a {
  padding: 8px 14px;
  font-size: 0.85rem;
}

/* Mobile Nav Drawer */
.ea-mobile-drawer {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background: var(--ea-navy);
  color: #ffffff;
  z-index: 9999;
  transition: left 0.3s ease;
  overflow-y: auto;
}

.ea-mobile-drawer.open {
  left: 0;
}

.ea-mobile-drawer-header {
  background: var(--ea-red-box);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: bold;
}

.ea-mobile-drawer-header button {
  color: #ffffff;
  font-size: 1.3rem;
  background: none;
  border: none;
  cursor: pointer;
}

.ea-mobile-menu-list {
  list-style: none;
  padding: 10px 0;
}

.ea-mobile-menu-list a {
  display: block;
  padding: 10px 18px;
  color: #ffffff;
  font-weight: bold;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ea-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  display: none;
}

.ea-mobile-overlay.open {
  display: block;
}

/* Search Modal */
.ea-search-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}

.ea-search-modal.open {
  display: flex;
}

.ea-search-box-card {
  width: 90%;
  max-width: 550px;
  background: #ffffff;
  padding: 18px;
  border-radius: 6px;
  border: 3px solid var(--ea-red-box);
  position: relative;
}

.ea-search-close-btn {
  position: absolute;
  top: -12px;
  right: -12px;
  background: var(--ea-red-box);
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

/* ==========================================================================
   Homepage Intro & Actions
   ========================================================================== */
.ea-intro-section {
  text-align: center;
  padding: 14px 10px 10px;
}

.ea-intro-title {
  font-size: 0.95rem;
  font-weight: bold;
  color: #111827;
  line-height: 1.45;
  max-width: 900px;
  margin: 0 auto 10px auto;
}

.ea-live-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1.5px solid #dc2626;
  border-radius: 50px;
  padding: 2px 14px;
  color: #dc2626;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.ea-live-dot {
  width: 8px;
  height: 8px;
  background: #dc2626;
  border-radius: 50%;
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.ea-wa-btn-wrap {
  margin-bottom: 14px;
}

.ea-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--ea-green-wa);
  color: #ffffff;
  font-weight: bold;
  font-size: 0.95rem;
  padding: 8px 24px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: background 0.15s;
}

.ea-wa-btn:hover {
  background: #15803d;
  color: #ffffff;
  text-decoration: none;
}

.ea-tools-link-wrap {
  margin-bottom: 14px;
}

.ea-tools-heading-link {
  color: #0033cc;
  font-weight: bold;
  font-size: 1.05rem;
  text-decoration: underline;
}

.ea-tools-heading-link:hover {
  color: var(--ea-red);
}

/* ==========================================================================
   8 Colorful Rectangular Cards Grid
   ========================================================================== */
.ea-featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.ea-f-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 8px;
  border-radius: 3px;
  color: #ffffff;
  font-weight: bold;
  font-size: 0.88rem;
  line-height: 1.3;
  min-height: 52px;
  text-decoration: none;
  transition: opacity 0.15s;
}

.ea-f-card:hover {
  opacity: 0.9;
  color: #ffffff;
  text-decoration: none;
}

/* Exact Card Colors from Image */
.ea-f-card.c-rrb       { background: #cc0000; } /* Red */
.ea-f-card.c-upsssc    { background: #e65100; } /* Orange */
.ea-f-card.c-sbi       { background: #c026d3; } /* Magenta/Purple */
.ea-f-card.c-rajasthan { background: #002288; } /* Dark Blue */
.ea-f-card.c-ibps      { background: #7c7304; } /* Olive/Gold */
.ea-f-card.c-bihar     { background: #0288d1; } /* Cyan/Blue */
.ea-f-card.c-uppolice  { background: #6b0c20; } /* Maroon/Dark Red */
.ea-f-card.c-ssc       { background: #1b7a2b; } /* Green */

/* ==========================================================================
   Advertisement Slots
   ========================================================================== */
.ea-ad-slot {
  background: #ffffff;
  border: 1px dashed var(--ea-border-dashed);
  padding: 14px 10px;
  margin: 14px 0;
  text-align: center;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   3-Column Content Box Grid
   ========================================================================== */
.ea-box-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.ea-cat-box {
  background: #ffffff;
  border: 1px solid var(--ea-border);
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.ea-cat-box-title {
  background: var(--ea-red-box);
  color: #ffffff;
  text-align: center;
  padding: 6px 8px;
  font-size: 0.98rem;
  font-weight: bold;
}

.ea-cat-box-title a {
  color: #ffffff;
}

.ea-cat-box-list {
  list-style: none;
  padding: 8px 10px;
  flex: 1;
}

.ea-cat-box-list li {
  padding: 4px 0;
  font-size: 0.85rem;
  line-height: 1.35;
}

.ea-cat-box-list a {
  color: #0033cc;
  font-weight: 600;
}

.ea-cat-box-list a:hover {
  color: var(--ea-red);
  text-decoration: underline;
}

.ea-cat-box-footer {
  padding: 4px 8px 6px;
  text-align: right;
}

.ea-view-more-red {
  color: #cc0000;
  font-size: 0.82rem;
  font-weight: bold;
}

.ea-view-more-red:hover {
  color: var(--ea-navy);
  text-decoration: underline;
}

/* ==========================================================================
   Latest Updates (Full Width 2-Column Box)
   ========================================================================== */
.ea-full-box {
  background: #ffffff;
  border: 1px solid var(--ea-border);
  margin-bottom: 12px;
}

.ea-full-box-title {
  background: var(--ea-red-box);
  color: #ffffff;
  text-align: center;
  padding: 6px 8px;
  font-size: 0.98rem;
  font-weight: bold;
}

.ea-updates-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
  padding: 10px 14px;
}

.ea-update-item {
  font-size: 0.85rem;
  padding: 3px 0;
}

.ea-update-item a {
  color: #0033cc;
  font-weight: 600;
}

/* ==========================================================================
   Important Links Table
   ========================================================================== */
.ea-links-table-wrap {
  padding: 0;
  overflow-x: auto;
}

.ea-links-table-exact {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.ea-links-table-exact td {
  padding: 7px 14px;
  border: 1px solid var(--ea-border);
}

.ea-links-table-exact td:first-child {
  font-weight: bold;
  color: #111827;
  width: 60%;
}

.ea-links-table-exact td:last-child {
  text-align: center;
  width: 40%;
}

.ea-links-table-exact a {
  color: #0033cc;
  font-weight: bold;
}

.ea-links-table-exact tr:nth-child(even) {
  background: #fdfdfd;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.ea-faq-box {
  background: #ffffff;
  border: 1px solid var(--ea-border);
  margin-bottom: 14px;
}

.ea-faq-header-bar {
  background: #eef2ff;
  border-bottom: 1px solid var(--ea-border);
  padding: 7px 12px;
  font-weight: bold;
  font-size: 0.92rem;
  color: #1e3a8a;
}

.ea-faq-item-simple {
  border-bottom: 1px solid var(--ea-border);
}

.ea-faq-item-simple:last-child {
  border-bottom: none;
}

.ea-faq-q-btn {
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  background: none;
  border: none;
  font-weight: bold;
  font-size: 0.86rem;
  color: #111827;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}

.ea-faq-ans-text {
  padding: 0 12px 10px 12px;
  font-size: 0.84rem;
  color: #4b5563;
  line-height: 1.4;
}

/* ==========================================================================
   Desktop Grid for Secondary Row 2
   ========================================================================== */
@media (min-width: 769px) {
  .ea-desktop-col-1 {
    width: 32.2%;
    float: left;
    margin-right: 1.7%;
  }
  .ea-desktop-col-2 {
    width: 32.2%;
    float: left;
    margin-right: 1.7%;
  }
  .ea-desktop-col-3 {
    width: 32.2%;
    float: left;
  }
  .clearfix-row2 {
    clear: both;
  }
  .ea-mobile-accordion-bar {
    display: none !important;
  }
  .ea-mobile-accordion-content {
    display: block !important;
  }
}

/* ==========================================================================
   Mobile Accordions for Secondary Sections (< 769px)
   ========================================================================== */
@media (max-width: 768px) {
  .ea-header {
    padding: 10px 8px 8px;
  }
  .ea-title {
    font-size: 1.45rem;
    gap: 8px;
  }
  .ea-alert-bell-icon {
    width: 26px;
    height: 20px;
  }
  .ea-tagline {
    font-size: 0.76rem;
    margin-top: 3px;
  }
  .ea-tagline-desktop {
    display: none;
  }
  .ea-tagline-mobile {
    display: inline;
  }
  .ea-nav-links {
    display: none;
  }
  .ea-mobile-nav-toggle {
    display: block;
  }
  .ea-featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ea-box-grid-3 {
    grid-template-columns: 1fr;
  }
  .ea-updates-2col {
    grid-template-columns: 1fr;
  }
  
  /* Red accordion buttons on mobile */
  .ea-mobile-accordion-bar {
    display: flex !important;
    width: 100%;
    background: var(--ea-red-box);
    color: #ffffff;
    font-weight: bold;
    font-size: 0.92rem;
    padding: 8px 12px;
    border: none;
    margin-bottom: 4px;
    border-radius: 2px;
    text-align: left;
    cursor: pointer;
    justify-content: space-between;
    align-items: center;
  }
  .ea-mobile-accordion-bar .ea-acc-icon {
    font-size: 1.1rem;
    font-weight: bold;
  }
  .ea-mobile-accordion-content {
    display: none;
    margin-bottom: 8px;
  }
  .ea-mobile-accordion-content.open {
    display: block !important;
  }
  .desktop-only-title {
    display: none;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.ea-footer {
  background: var(--ea-footer-bg);
  color: #ffffff;
  text-align: center;
  padding: 24px 10px 18px;
  margin-top: 14px;
}

.ea-footer-heading {
  font-size: 1rem;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 12px;
}

.ea-social-circles {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.ea-sc-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s;
}

.ea-sc-icon:hover {
  transform: scale(1.1);
  color: #ffffff;
}

.ea-sc-icon.wa { background: #25d366; }
.ea-sc-icon.tg { background: #0088cc; }
.ea-sc-icon.fb { background: #1877f2; }
.ea-sc-icon.ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.ea-sc-icon.yt { background: #ff0000; }

.ea-footer-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 0.85rem;
}

.ea-footer-nav a {
  color: #ffffff;
}

.ea-footer-nav a:hover {
  text-decoration: underline;
}

.ea-copyright {
  font-size: 0.8rem;
  color: #9ca3af;
}

/* ==========================================================================
   Static Pages, Forms & Compliance Cards
   ========================================================================== */
.contact-form-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  margin-top: 14px;
}
.contact-info-card {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 18px;
}
.contact-info-item {
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
}
.contact-info-item .icon {
  font-size: 1.2rem;
}
.btn-submit-contact {
  background: #c00000;
  color: #ffffff;
  font-weight: bold;
  font-size: 0.92rem;
  padding: 10px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
}
.btn-submit-contact:hover {
  background: #a00000;
}
@media (max-width: 768px) {
  .contact-form-grid {
    grid-template-columns: 1fr;
  }
}

