/* style.css - Main Stylesheet for SSOID Login Portal */

:root {
  /* Colors - Government Style Palette */
  --primary-blue: #004b87; /* Deep professional blue */
  --secondary-blue: #0066cc;
  --accent-orange: #f2a900; /* Standard accent for CTAs */
  --text-dark: #333333;
  --text-light: #666666;
  --bg-main: #f9fbfd;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;
  --success-green: #28a745;
  --danger-red: #dc3545;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* Spacing & Layout */
  --max-width: 1200px;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  --box-shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--text-dark);
  background-color: var(--bg-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-blue);
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: var(--spacing-md); color: var(--text-light); }
a { color: var(--secondary-blue); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-blue); text-decoration: underline; }

/* Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.text-center { text-align: center; }
.mt-lg { margin-top: var(--spacing-lg); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.py-xl { padding-top: var(--spacing-xl); padding-bottom: var(--spacing-xl); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background-color: var(--primary-blue);
  color: var(--bg-white);
  box-shadow: 0 4px 6px rgba(0, 75, 135, 0.2);
}
.btn-primary:hover {
  background-color: var(--secondary-blue);
  color: var(--bg-white);
  box-shadow: 0 6px 12px rgba(0, 102, 204, 0.3);
}

.btn-accent {
  background-color: var(--accent-orange);
  color: #fff;
  box-shadow: 0 4px 6px rgba(242, 169, 0, 0.2);
}
.btn-accent:hover {
  background-color: #d99700;
  color: #fff;
}

/* Header & Navigation */
header {
  background-color: var(--bg-white);
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-blue);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo:hover { text-decoration: none; color: var(--primary-blue); }

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
}

.nav-link {
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: none;
  padding: 8px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-orange);
  transition: var(--transition);
}

.nav-link:hover { text-decoration: none; color: var(--primary-blue); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.hamburger { display: none; cursor: pointer; border: none; background: none; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; transition: var(--transition); background-color: var(--primary-blue); }

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(249,251,253,1) 0%, rgba(228,240,251,1) 100%);
  padding: 80px 0;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.hero h1 { margin-bottom: 20px; font-size: 3rem; }
.hero p { font-size: 1.2rem; max-width: 800px; margin: 0 auto 30px; }
.hero-cta { display: flex; justify-content: center; gap: 20px; margin-top: 30px; }

/* Grid Layouts for Features/Guides */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: var(--spacing-lg);
}

.card {
  background: var(--bg-white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border-top: 4px solid var(--primary-blue);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.card h3 { margin-bottom: 15px; color: var(--primary-blue); }
.card p { flex-grow: 1; }
.card .btn { margin-top: 20px; align-self: flex-start; }

/* Content Pages Styling */
.page-header {
  background-color: var(--primary-blue);
  color: var(--bg-white);
  padding: 60px 0;
  text-align: center;
}
.page-header h1 { color: var(--bg-white); margin-bottom: 0; }
.page-header p { color: rgba(255,255,255,0.8); margin-bottom: 0; margin-top: 10px; }

.content-section {
  padding: var(--spacing-xl) 0;
}

.article-content {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.article-content h2 { margin-top: 40px; border-bottom: 2px solid var(--border-color); padding-bottom: 10px; }
.article-content h3 { margin-top: 30px; }
.article-content ul, .article-content ol { margin-bottom: 20px; margin-left: 20px; color: var(--text-light); }
.article-content li { margin-bottom: 10px; }

/* Notice Box / Callout */
.notice-box {
  background-color: #e8f4fd;
  border-left: 4px solid var(--primary-blue);
  padding: 20px;
  margin: 30px 0;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}
.notice-box h4 { margin-top: 0; margin-bottom: 10px; color: var(--primary-blue); }
.notice-box p:last-child { margin-bottom: 0; }

/* Table Styling for Data */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
}
th, td {
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  text-align: left;
}
th {
  background-color: var(--primary-blue);
  color: var(--bg-white);
}
tr:nth-child(even) { background-color: #f8f9fa; }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-dark); }
.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--primary-blue); box-shadow: 0 0 0 3px rgba(0, 75, 135, 0.1); }
textarea.form-control { resize: vertical; min-height: 150px; }

/* Footer */
footer {
  background-color: #1a202c;
  color: #a0aec0;
  padding: 60px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h3 { color: #fff; margin-bottom: 20px; font-size: 1.2rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #a0aec0; text-decoration: none; }
.footer-links a:hover { color: var(--accent-orange); }
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #2d3748;
}
.footer-bottom p { margin-bottom: 10px; font-size: 0.9rem; }
.disclaimer-text { font-size: 0.8rem; color: #718096; max-width: 800px; margin: 0 auto; line-height: 1.4; }

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger { display: block; }
  .hamburger.active .bar:nth-child(2) { opacity: 0; }
  .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  
  .nav-menu {
    position: absolute;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--bg-white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    padding: 20px 0;
    gap: 0;
  }
  
  .nav-menu.active { left: 0; }
  .nav-item { margin: 15px 0; }
  
  .hero h1 { font-size: 2rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 300px; }
  
  .article-content { padding: 20px; }
}
