/* ===================================
   PakOrg Dynamic Global Styles
   =================================== */

/* ------- Default Theme (Theme A: Green) ------- */
:root {
    --color-primary: #198754;
    --color-primary-dark: #146c43;
    --color-secondary: #0d6efd;
    --color-accent: #ffc107;
    --color-dark: #212529;
    --color-light: #f8f9fa;
    --color-gray: #6c757d;
  
    --font-main: "Segoe UI", Tahoma, sans-serif;
    --font-heading: "Poppins", sans-serif;
  
    --radius: 10px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease-in-out;
  
    --container-width: 1200px;
  }
  
  /* ------- Theme B: Blue Palette ------- */
  body.theme-b {
    --color-primary: #0d6efd;
    --color-primary-dark: #0a58ca;
    --color-secondary: #198754;
    --color-accent: #fd7e14;
  }
  
  /* ===================================
     Global Reset & Typography
     =================================== */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: var(--font-main);
    background: var(--color-light);
    color: var(--color-dark);
    line-height: 1.6;
    overflow-x: hidden;
  }
  
  h1, h2, h3, h4 {
    font-family: var(--font-heading);
    margin-bottom: 0.6em;
  }
  
  p {
    margin-bottom: 1em;
    color: var(--color-gray);
  }
  
  /* ===================================
     Layout & Utilities
     =================================== */
  .container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  .flex {
    display: flex;
    align-items: center;
  }
  
  .flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .grid {
    display: grid;
    gap: 1.5rem;
  }
  
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  
  /* ===================================
     Header & Navigation
     =================================== */
  header {
    background: var(--color-primary);
    color: white;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
  }
  
  header .logo {
    font-size: 1.6rem;
    font-weight: bold;
    letter-spacing: 1px;
  }
  
  header nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
  }
  
  header nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
  }
  
  header nav ul li a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--color-accent);
    transition: var(--transition);
  }
  
  header nav ul li a:hover::after,
  header nav ul li a.active::after {
    width: 100%;
  }
  
  /* Hamburger button default hidden (desktop) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary-color);
  }
  
  /* ===================================
     Hero Section
     =================================== */
  .hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
                url("images/hero-bg.jpg") center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 6rem 1rem;
    animation: fadeIn 1.5s ease;
  }
  
  .hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
  }
  
  .hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: auto;
  }
  
  /* ===================================
     Buttons
     =================================== */
  .btn {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
  }
  
  .btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
  }
  
  .btn-secondary {
    background: var(--color-secondary);
  }
  
  .btn-accent {
    background: var(--color-accent);
    color: var(--color-dark);
  }
  
  /* ===================================
     Cards & Sections
     =================================== */
  section {
    margin: 3rem 0;
  }
  
  section h2 {
    color: var(--color-primary);
    border-left: 5px solid var(--color-accent);
    padding-left: 10px;
    margin-bottom: 1.5rem;
  }
  
  .card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
  }
  
  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  }
  
  .card h3 {
    margin-bottom: 0.5rem;
  }
  
  .card::before {
    content: "";
    position: absolute;
    width: 5px;
    height: 100%;
    background: var(--color-primary);
    top: 0;
    left: 0;
  }
  
  /* ===================================
     Blog & Post Styling
     =================================== */
  .blog-post {
    border-left: 5px solid var(--color-secondary);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .blog-post h3 {
    margin-bottom: 0.3rem;
  }
  
  .blog-post small {
    color: var(--color-gray);
    font-size: 0.9rem;
  }
  
  /* ===================================
     Contact Form
     =================================== */
  form {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  
  form .form-group {
    margin-bottom: 1.2rem;
  }
  
  form .form-group label {
    font-weight: 600;
    margin-bottom: 0.3rem;
    display: block;
  }
  
  form input, form textarea {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    transition: var(--transition);
  }
  
  form input:focus, form textarea:focus {
    border-color: var(--color-primary);
    outline: none;
  }
  
  /* ===================================
     Footer
     =================================== */
  footer {
    background: var(--color-dark);
    color: white;
    padding: 1.5rem;
    text-align: center;
  }
  
  footer a {
    color: var(--color-accent);
    text-decoration: none;
  }
  
  footer a:hover {
    text-decoration: underline;
  }
  
  /* ===================================
     Animations
     =================================== */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  
  /* ===================================
     Responsive Basics
     =================================== */
  @media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
    header nav ul { flex-wrap: wrap; gap: 0.8rem; }
  }
  
  
  .auth-message {
  margin: 15px auto;
  padding: 12px;
  width: 90%;
  max-width: 400px;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
  display: none;
}

.auth-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.auth-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.auth-message.info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

  