/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* for unordered list */

ul.smart {
  margin: 0;
  padding-left: 20px;   /* keep space for bullets */
  font-size: 16px;      
  color: #333;          /* professional dark gray */
}

ul.smart li {
  margin-bottom: 6px;   /* small spacing between items */
}

ul.smart li:hover {
  color: brown;       /* subtle blue on hover */
  cursor: default;      /* normal pointer, not link-style */
}

.signature {
            text-align: right;
            font-style: italic;
            color: #7f8c8d;
            margin-top: 30px;
        }
/* for ordered list */

main ol.smart {
  margin: 0;
  padding-left: 20px;   /* keep space for bullets */
  font-size: 16px;      
  color: #333;          /* professional dark gray */
}

main ol.smart li {
  margin-bottom: 6px;   /* small spacing between items */
}

main ol.smart li:hover {
  color: brown;       /* subtle blue on hover */
  cursor: default;      /* normal pointer, not link-style */
}


/* Header Styles */
header {
    background: linear-gradient(135deg, #ff7b00, #ff5500);
    padding: 0;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(255, 123, 0, 0.2);
    overflow: hidden;
    font-family: Arial, sans-serif;
}


.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: rgba(255, 255, 255, 0.95);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
}

.nav-menu a {
    text-decoration: none;
    color: #ff5500;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    font-family: Arial, sans-serif;
}

.nav-menu a:hover {
    background-color: #ff5500;
    color: white;
    transform: translateY(-2px);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu a:hover::after {
    width: 70%;
}

.header-content {
    padding: 40px 20px;
    text-align: center;
}

header h1 {
    color: white;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-family: Arial, sans-serif;
}


/* Responsive design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    header h1 {
        font-size: 2rem;
    }
}

/* Ensure other lists are not affected */
body ol:not(.nav-menu),
body ul:not(.nav-menu),
body li:not(.nav-menu li) {
    /* Your existing list styles will remain untouched */
    font-family: Arial, sans-serif;
}

/* Content Styles */
h2 {
    color: #ff5500;
    margin: 25px 0 15px 0;
    border-bottom: 2px solid #ff7b00;
    padding-bottom: 8px;
}


ol.index {
    background-color: #fff8f0;
    padding: 20px 40px;
    border-radius: 8px;
    border-left: 4px solid #ff7b00;
    margin: 20px 0;
}

ol.index li {
    margin: 10px 0;
    padding: 5px;
    transition: background-color 0.3s ease;
}

ol.index li:hover {
    background-color: #ffe0c2;
    border-radius: 4px;
}

/* Table Styles */


table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(255, 123, 0, 0.1);
}

thead {
    background: linear-gradient(135deg, #ff7b00, #ff5500);
    color: white;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ffe0c2;
}

th {
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

tbody tr {
    transition: background-color 0.3s ease;
}

tbody tr:hover {
    background-color: #fff0e0;
}

tbody a {
    color: #ff5500;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

tbody a:hover {
    color: #ff3300;
    text-decoration: underline;
}

/* Form Styles */
/* ===========================
   FORM CONTAINER
=========================== */
form {
  max-width: 650px;
  margin: 40px auto;
  padding: 30px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  font-family: Arial, sans-serif;
  color: #333;
  border-top: 6px solid #ff6600;
}

/* ===========================
   LABELS & HEADINGS
=========================== */
form label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 600;
  font-size: 15px;
  color: #ff5500;
}

form p {
  margin: 18px 0 10px;
  font-weight: 600;
  font-size: 15px;
  color: #ff5500;
}

/* ===========================
   INPUTS, SELECT, TEXTAREA
=========================== */
form input[type="text"],
form input[type="email"],
form select,
form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form select:focus,
form textarea:focus {
  border-color: #ff6600;
  box-shadow: 0 0 6px rgba(255,102,0,0.3);
  outline: none;
}

/* ===========================
   RADIO & CHECKBOX GROUPS
=========================== */
.option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}

.option input[type="radio"],
.option input[type="checkbox"] {
  accent-color: #ff6600; /* modern browsers: theme color */
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.option label {
  display: inline;
  margin: 0;
  font-weight: normal;
  color: #333;
}

/* ===========================
   INLINE OPTIONS (ratings)
=========================== */
.inline-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 8px;
}

.inline-options .option {
  margin: 0;
}

/* ===========================
   DIVIDER
=========================== */
form hr {
  margin: 25px 0;
  border: none;
  border-top: 1px solid #eee;
}

/* ===========================
   BUTTON
=========================== */
form button {
  margin-top: 20px;
  padding: 14px 22px;
  background: linear-gradient(135deg, #ff7b00, #ff5500);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  width: 100%;
}

form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(255,102,0,0.3);
}

/* ===========================
   SMALL TEXT / FOOTER NOTE
=========================== */
form small {
  display: block;
  margin-top: 8px;
  color: #777;
  font-size: 13px;
}

button {
  background: linear-gradient(135deg, #edbf94, #ff3300); /* orange to red */
  color: #ffffff; /* white text */
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

button:hover {
  background: linear-gradient(135deg, #ff3300, #edbf94); /* darker on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(3, 3, 3, 3);
}

button:active {
  transform: scale(0.96); /* press effect */
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}



/* Footer Styles */
footer {
    background: linear-gradient(135deg, #f4d5b8, #ff5500, #f4d5b8);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-top: 40px;
    text-align: center;
}

details {
      background: white;
      border: 1px solid #ddd;
      border-radius: 8px;
      padding: 12px 16px;
      margin-bottom: 12px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.05);
      transition: all 0.3s ease;
    }

    details:hover {
      border-color: #ff6600;
      box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    }

    summary {
      font-weight: bold;
      font-size: 16px;
      cursor: pointer;
      outline: none;
      list-style: none; /* removes default arrow */
    }

    /* Add custom arrow */
    summary::before {
      content: "➤ ";
      color: #ff6600;
      font-size: 14px;
      transition: transform 0.3s ease;
      display: inline-block;
    }

    details[open] summary::before {
      transform: rotate(90deg);
    }

    details p {
      margin: 8px 0 0;
      font-size: 15px;
      line-height: 1.5;
      color: #444;
    }


/* Utility Classes */
hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff7b00, transparent);
    margin: 30px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    header div {
        flex-direction: column;
        gap: 15px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 10px;
    }
    
    form {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    header h1 {
        font-size: 1.5em;
    }
    
    ol {
        padding: 15px 25px;
    }
    
    table {
        font-size: 12px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States for Accessibility */
a:focus,
button:focus,
input:focus,
select:focus {
    outline: 2px solid #ff5500;
    outline-offset: 2px;
}