/* =================================
   SARAT OFFICE – COMMON STYLE.CSS
   ================================= */

/* =================================
   RESET
   ================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =================================
   ROOT VARIABLES
   ================================= */
:root {
  --primary: #6a00ff;
  --secondary: #7ff7f2;
  --dark: #1f2937;
  --light: #f9fafb;
  --text: #333;
  --border: #e5e7eb;
}

/* =================================
   BODY
   ================================= */
body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--light);
  color: var(--text);
  line-height: 1.6;
}

/* =================================
   TOP BAR
   ================================= */
.top-bar {
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  padding: 6px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* =================================
   HEADER
   ================================= */
.site-header {
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px;
  position: relative;
}

/* Gradient bottom border */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
background: linear-gradient(90deg, #0d47a1, #00e676);


}
@media (max-width: 768px) {
  .site-header::after {
    height: 3px;
  }
}

@media (max-width: 480px) {
  .site-header::after {
    height: 2px;
  }
}


/* =================================
  LOGO
   ================================= */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%; /* Make logo container full height of header */
}

.logo img {
  width: auto;
  height: 100%; /* Takes full height of .logo container */
  max-height: 70px; /* 80px (desired max) - 24px (12px padding top+bottom) = 56px */
  object-fit: contain;
}

/* For responsive behavior on different screens */
@media (max-width: 768px) {
  .logo img {
    max-height: 36px; /* 60px (mobile header) - 24px padding = 36px */
  }
}

@media (min-width: 769px) {
  .logo img {
    max-height: 56px; /* 80px (desktop header) - 24px padding = 56px */
  }
}

.logo h1 {
  font-size: 22px;
  font-weight: 700;
}

.logo span {
  font-size: 14px;
  font-style: italic;
}
/* =================================
   NAVIGATION (DESKTOP)
   ================================= */
.menu {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
}

.menu > li {
  position: relative;
}

.menu a {
  text-decoration: none;
  font-weight: 600;
  padding: 8px 12px;
  color: var(--dark);
  border-radius: 6px;
}

.menu a:hover,
.menu a.active {
  background: var(--primary);
  color: #fff;
}

/* Dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  background: #ffffff;
  min-width: 220px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  z-index: 9999;
}

.dropdown:hover > .dropdown-menu {
  display: block;
}

/* =================================
   BUTTON
   ================================= */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 30px;
  background: linear-gradient(135deg, #7CFF00, #0033cc);
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  margin-top: 20px;
}

/* =================================
   GENERAL CONTENT
   ================================= */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 40px 20px;
}

.page-title {
  font-size: 32px;
  margin-bottom: 20px;
  border-bottom: 3px solid var(--primary);
  display: inline-block;
}

/* Cards */
.card {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  margin-bottom: 25px;
}

/* Tables (global) */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

th,
td {
  border: 1px solid var(--border);
  padding: 10px;
  text-align: left;
}

th {
  background: var(--primary);
  color: #fff;
}

/* Forms */
form input,
form select,
form textarea,
form button {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

form button {
  background: var(--primary);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

/* =================================
   ARTICLE / ACT CONTENT
   ================================= */
.container.ec-article {
  max-width: 1100px;
  margin: auto;
  background: #ffffff;
  padding: 40px;
  font-family: "Georgia", "Times New Roman", serif;
  color: #111;
  line-height: 1.7;
}

.ec-article a {
  color: #0b3c5d;
}

.ec-article h1 {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.ec-article h2 {
  background-color: #ffeb3b;
  color: #000;
  padding: 8px 12px;
  font-weight: bold;
  margin: 20px 0 10px;
  border-left: 6px solid #000;
}

.ec-article h3 {
  margin-top: 25px;
  font-size: 1.35rem;
  color: #123;
}

.ec-article h4 {
  margin-top: 18px;
  font-size: 1.15rem;
}

.ec-article p {
  margin: 10px 0;
  text-align: justify;
}

.ec-article ul {
  margin: 10px 0 10px 40px;
}

.ec-article li {
  margin-bottom: 6px;
}

.ec-article table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.ec-article th,
.ec-article td {
  border: 1px solid #444;
  padding: 8px;
  vertical-align: top;
}

.ec-article th {
  background: #101535;
  color: #fff;
  text-align: center;
}

.ec-article .small {
  font-size: 0.95rem;
}

/* =================================
   MEGA FOOTER
   ================================= */
.mega-footer {
  background: #1f2937;
  color: #ffffff;
  width: 100%;
}

.footer-top {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 30px;
  padding: 40px 20px;
}

.footer-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.footer-col {
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.footer-col h3 {
  text-align: center;
  font-size: 18px;
  margin-bottom: 14px;
}

.youtube-box iframe,
.facebook-box iframe {
  width: 100%;
  min-height: 240px;
  border-radius: 6px;
  border: none;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.footer-links-grid ul {
  list-style: disc;
  padding-left: 18px;
}

.footer-links-grid a {
  color: #ffffff;
  text-decoration: none;
}

.footer-links-grid a:hover {
  text-decoration: underline;
}

.footer-bottom {
  background: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
}
.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.footer-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at top left, #9f7aea, #5b21b6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 18px;
  text-decoration: none;

  /* 🔥 GLOW */
  box-shadow:
    0 0 10px rgba(139, 92, 246, 0.8),
    0 0 20px rgba(139, 92, 246, 0.6),
    0 0 30px rgba(139, 92, 246, 0.4);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.footer-social a:hover {
  transform: translateY(-4px) scale(1.08);

  box-shadow:
    0 0 14px rgba(168, 85, 247, 1),
    0 0 28px rgba(168, 85, 247, 0.9),
    0 0 40px rgba(168, 85, 247, 0.7);
}

/* =================================
   MOBILE MENU + RESPONSIVE
   ================================= */
.menu-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark);
}

@media (max-width: 900px) {

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .menu {
    flex-direction: column;
    display: none;
    background: #ffffff;
    padding: 15px;
    margin-top: 10px;
    border-radius: 10px;
    width: 100%;
  }

  .menu.open {
    display: flex;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
  }

  .footer-top,
  .footer-media,
  .footer-links-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}
/* =================================
   FOOTER SOCIAL – MOBILE FIX
   ================================= */

/* Prevent footer from causing horizontal scroll */
.mega-footer,
.footer-bottom {
  max-width: 100%;
  overflow-x: hidden;
}

/* Social icons container */
.footer-social {
  display: flex;
  flex-wrap: nowrap;              /* Force single line */
  justify-content: center;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  overflow-x: hidden;             /* No horizontal scroll */
}

/* Individual social icons */
.footer-social a {
  flex: 0 0 auto;                 /* Prevent stretching */
  width: 40px;
  height: 40px;
}

/* Tablet adjustments */
@media (max-width: 768px) {
  .footer-social {
    gap: 10px;
  }

  .footer-social a {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
}

/* Small mobile screens */
@media (max-width: 480px) {
  .footer-social {
    gap: 8px;
  }

  .footer-social a {
    width: 36px;
    height: 36px;
    font-size: 15px;

    /* Reduce glow slightly to avoid overflow */
    box-shadow:
      0 0 6px rgba(139, 92, 246, 0.6),
      0 0 12px rgba(139, 92, 246, 0.4);
  }
}
/* =================================
   FOOTER-BOTTOM OVERFLOW FIX
   ================================= */

/* Stop footer from exceeding viewport */
.footer-bottom {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Ensure children do not push width */
.footer-bottom * {
  max-width: 100%;
  box-sizing: border-box;
}

/* Social bar safety */
.footer-social {
  flex-wrap: nowrap;
  overflow-x: hidden;
  justify-content: center;
}

/* Reduce glow overflow on small screens */
@media (max-width: 480px) {
  .footer-social a {
    box-shadow:
      0 0 6px rgba(139, 92, 246, 0.6),
      0 0 12px rgba(139, 92, 246, 0.4);
  }
}

